【问题标题】:PayPal rejecting payment request and giving currency error in MagentoPayPal 拒绝付款请求并在 Magento 中出现货币错误
【发布时间】:2013-11-22 14:42:00
【问题描述】:

我知道这是一个非常笼统的问题,但我的情况不同。请完整阅读。

在使用基于印度货币的 Magento 商店配置 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中配置了所有货币 其余所有设置似乎都设置得很完美。但我仍然遇到错误。

请指出我在哪里犯了错误。

【问题讨论】:

  • 您的问题解决了吗?

标签: magento paypal payment-gateway


【解决方案1】:

印度卢比似乎不是 Paypal 接受的货币。请咨询currency list 了解您可以接受和不能接受的内容

【讨论】:

  • 你能简单解释一下吗?
  • 我不确定有什么要解释的。 PayPal 不接受印度卢比
【解决方案2】:

Paypal 不支持印度货币。因此,您需要将您的基础货币转换为 Paypal 接受的货币,然后才能通过 Paypal 结帐。

【讨论】:

  • 你能指定我应该更改哪个文件以便它接受印度货币
  • @ManojChaurasia : 你找到解决办法了吗?
【解决方案3】:

我使用了小技巧来消除这个错误。这不是很好的解决方案,但有时它很有用。

转到 app\code\core\Mage\Paypal\Model\Express\Checkout.php。找到公共函数 start 并找到下面的代码

$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

【讨论】:

  • 这个工作正常,但价格显示就像,如果我的产品价格 Rs.70 意味着,它在我的 PayPal 支付页面上显示为 70 美元。如何解决这个问题?
猜你喜欢
  • 2020-05-28
  • 1970-01-01
  • 2020-05-20
  • 2019-06-13
  • 2014-06-04
  • 2013-01-11
  • 2015-03-18
  • 2021-05-22
  • 2017-02-02
相关资源
最近更新 更多