开发者

Magento paypal currency error

开发者 https://www.devze.com 2023-02-06 19:13 出处:网络
Im using jamaican currency for my magento shopping cart.And i use paypal Express checkout with website payment standard.

Im using jamaican currency for my magento shopping cart.And i use paypal Express checkout with website payment standard. I set up 开发者_如何学Gothe currency in the admin panel and also the paypal settings etc are done. My problem is when i click the button with Checkout with paypal i get the folowing error

"PayPal gateway has rejected request. Currency is not supported (#10605" I go to paypal the paypal does not support the jamaican dollar. It would be great if some one can provide insights.

Thannks


In the admin under System > Configuration > Currency Setup > Currency Options it says:

Base currency is used for all online payment transactions. Scope is defined by the catalog price scope ("Catalog" > "Price" > "Catalog Price Scope").

So I would guess you need to set the base currency to USD so paypal can cope, and display currency to Jamaican Dollars which is what your customers will see.


  1. Enable USD and Jamaican dollar as currency in admin (System -> GENERAL -> Currency Setup)

  2. Save currency rates (System -> Manage Currency Rates)

  3. Rewrite Mage_Paypal_Model_Config (app/code/core/Mage/Paypal/Model/Config.php) class to allow Jamaican dollar as supported currency, i.e. you can add your country code in $__supportedCurrencyCodes array present on that file.

  4. Rewrite Mage_Paypal_Model_Standard (app/code/core/Mage/Paypal/Model/Standard.php) class to change the array parameters sent to Paypal. Here, you have to edit the Jamaican dollar amount to USD equivalent. Hence, sending data to Paypal as USD amount. It's about modifying function getStandardCheckoutFormFields().

You can rewrite/override those files by creating your custom module. OR, a simple way to override will be copying core file to local directory and editing the local file.

For example:

You can copy

app/code/core/Mage/Paypal/Model/Config.php

to

app/code/local/Mage/Paypal/Model/Config.php

and edit the file in local directory.

Update:

Here is a FREE Magento extension that supports PayPal payments for not supported currencies by PayPal.

https://github.com/Meabed/Paypal-Multi-Currency-Magento

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号