4

これは非常に一般的な質問であることは知っていますが、私の場合は異なります。完全に読んでください。

インド通貨ベースの Magento Store で PayPal を構成しているときに、以下のエラーが発生します。

PayPal gateway has rejected request. Currency is not supported (#10605: Transaction refused because of an invalid argument. See additional error messages for details). Internal Error (#10001: Transaction failed due to internal error).

Magento paypal currency errorで利用可能なすべてのソリューションを試しました

私の店の基本通貨は - インドルピーです

app/code/core/Mage/Paypal/Model/Config.phpですべての通貨を構成しましたが 、残りのすべての設定は完全にセットアップされているようです。しかし、それでも私は上記のエラーを取得しています。

どこが間違っているのか教えてください。

4

3 に答える 3

0

このエラーを取り除くために小さなトリックを使用しました。これは良い解決策ではありませんが、役に立つ場合もあります。

app\code\core\Mage\Paypal\Model\Express\Checkout.php に移動します。パブリック関数の開始を見つけ、以下のコードを見つけます

$this->_api->setAmount($this->_quote->getBaseGrandTotal())
            ->setCurrencyCode($this->_quote->getBaseCurrencyCode())
            ->setInvNum($this->_quote->getReservedOrderId())
            ->setReturnUrl($returnUrl)
            ->setCancelUrl($cancelUrl)
            ->setSolutionType($solutionType)
            ->setPaymentAction($this->_config->paymentAction);

Just replace the below code  

$this->_api->setAmount($this->_quote->getBaseGrandTotal())
            ->setCurrencyCode('USD')
            ->setInvNum($this->_quote->getReservedOrderId())
            ->setReturnUrl($returnUrl)
            ->setCancelUrl($cancelUrl)
            ->setSolutionType($solutionType)
            ->setPaymentAction($this->_config->paymentAction);

このトリックを使用すると、エラーなしでペイパルにアクセスできます。ただし、価格を基本通貨から米ドルに換算する必要があります。

注: この解決策は、Paypal Express ユーザーのみを対象としています。

コードの出典: http://chandreshrana.blogspot.in/2016/06/paypal-gateway-has-rejected-request.html

于 2016-06-04T06:36:41.280 に答える