使用不同/多种货币的Paypal并行付款

时间:2013-05-23 02:38:44

标签: paypal paypal-adaptive-payments

我已经在网上寻找可能的解决方案,最后决定亲自帮助你们。

我正在设置并行付款,商家可以使用不同的货币。在我的例子中,两种货币都应该得到支持:美元和PHP(菲律宾比索)。这是我的请求参数:

--------------------------------------------------

[METHOD] => SetExpressCheckout
[VERSION] => 98.0
[USER] => ******************
[PWD] => *******************
[SIGNATURE] => *********************************************
[RETURNURL] => http://somewhere.com
[CANCELURL] => http://somewhere.com

[PAYMENTREQUEST_0_AMT] => 1319.64
[PAYMENTREQUEST_0_ITEMAMT] => 1319.64
[PAYMENTREQUEST_0_CURRENCYCODE] => PHP
[PAYMENTREQUEST_0_SELLERPAYPALACCOUNTID] => kyledomingo@gmail.com
[PAYMENTREQUEST_0_PAYMENTREQUESTID] => CHANGETHISREQUESTID-0
[PAYMENTREQUEST_0_PAYMENTACTION] => Order

[PAYMENTREQUEST_1_AMT] => 28
[PAYMENTREQUEST_1_ITEMAMT] => 28
[PAYMENTREQUEST_1_CURRENCYCODE] => USD
[PAYMENTREQUEST_1_SELLERPAYPALACCOUNTID] => kyledomingo@gmail.com
[PAYMENTREQUEST_1_PAYMENTREQUESTID] => CHANGETHISREQUESTID-1
[PAYMENTREQUEST_1_PAYMENTACTION] => Order

--------------------------------------------------

如果您注意到,第一个付款请求是PHP,而第二个是USD。在语义上,这看起来很好,但是当我尝试调用SetExpressCheckout时,它会抛出错误10444 - The transaction currency specified must be the same as previously specified

--------------------------------------------------

[TIMESTAMP] => 2013-05-23T02:21:35Z
[CORRELATIONID] => 81e18fe68af6a
[ACK] => Failure
[VERSION] => 98.0
[BUILD] => 6020375
[L_ERRORCODE0] => 10444
[L_SHORTMESSAGE0] => Invalid Data
[L_LONGMESSAGE0] => The transaction currency specified must be the same as previously specified.
[L_SEVERITYCODE0] => Error

--------------------------------------------------

任何指针如何使这项工作?我已经浏览了很多论坛,包括x.com和stackoverflow,但似乎没有什么可以带领。

类似的问题是在Paypal Parallel Payment with Multiple Currencies,但仍然没有答案。

任何帮助都会很棒。谢谢!

1 个答案:

答案 0 :(得分:2)

如果在一笔交易中多次付款,则所有付款必须具有相同的货币代码。