magento - 在观察者中获取保存的 Paypal 凭证?

标签 magento paypal magento-1.9

我在 Magnto 1.9 中启用了 paypal 现在我想在我的 Observer 中调用另一个 paypal API,为此我需要 paypal 用户、密码和签名,我在启用 paypal 时已经保存了这些信息。

我想使用配置从管理员那里获取这些详细信息到我的代码中。

我试过下面的代码,但它不起作用。

$store = Mage::app()->getStore(Mage::app()->getStore()->getStoreId()); 
$Settings = Mage::getStoreConfig('paypal_payments/payment/required_settings/express',$store);

这可能吗?

最佳答案

我测试了下面的代码。它运作良好..

$store = Mage::app()->getStore(Mage::app()->getStore()->getStoreId()); 

$Email = Mage::getStoreConfig('paypal/general/business_paypal/general/business_accountaccount');
$UserName = Mage::getStoreConfig('paypal/wpp/api_username',$store);
$Password = Mage::getStoreConfig('paypal/wpp/api_password',$store);
$Signature = Mage::getStoreConfig('paypal/wpp/api_signature',$store);

关于magento - 在观察者中获取保存的 Paypal 凭证?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52176928/

相关文章:

iphone - 适用于 Android 操作系统的 PayPal 应用内购买 - 服务器/客户端模型

mysql - Magento 慢类别计数查询

android - SoapFault - 故障代码 : '1062' faultstring: 'Shipping method is not available'

Magento,拆分 sitemap.xml 和 cron 作业

php - Magento:通过事件以编程方式更新购物车

magento - 在Magento产品页面上一次显示价格

Paypal IPN 历史记录为空白

c# - Paypal c# REST API 请求未记录的配置部分

php - 如何修复 Magento 中与 load() 方法相关的内存泄漏?

magento - 将产品默认图片更新为图片库中的第一张图片