【问题标题】:Get saved paypal credential in observer?在观察者中获得保存的贝宝凭证?
【发布时间】:2019-02-10 02:45:41
【问题描述】:

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

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

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

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

这可能吗?

【问题讨论】:

    标签: magento paypal magento-1.9


    【解决方案1】:

    我已经测试了下面的代码。它运行良好..

    $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);
    

    【讨论】:

      猜你喜欢
      • 2019-02-03
      • 2011-08-04
      • 2022-12-14
      • 1970-01-01
      • 1970-01-01
      • 2012-02-16
      • 1970-01-01
      • 1970-01-01
      • 2011-11-17
      相关资源
      最近更新 更多