Pra*_*nit 4 paypal magento magento-1.9
我已经在Magnto 1.9中启用了paypal现在我想在我的Observer中调用另一个paypal API,因为我需要paypal用户,密码和签名,我已经保存,同时启用了paypal.
我想使用config从admin获取这些详细信息到我的代码.
我试过下面的代码,但它不起作用.
$store = Mage::app()->getStore(Mage::app()->getStore()->getStoreId());
$Settings = Mage::getStoreConfig('paypal_payments/payment/required_settings/express',$store);
Run Code Online (Sandbox Code Playgroud)
那可能吗?
我测试了下面的代码.它运作良好..
$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);
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
26 次 |
最近记录: |