2014-09-26 44 views
2

您好,我嘗試在PayPal中創建與EURO的付款,但收到錯誤。但是,當我使用美元付款時,它工作正常。指定的交易幣種必須與先前指定的幣種相同

[TIMESTAMP] => 2014-09-26T10:03:06Z 
[CORRELATIONID] => 4d802c104e0ae 
[ACK] => Failure 
[VERSION] => 64 
[BUILD] => 13055236 
[L_ERRORCODE0] => 10444 
[L_SHORTMESSAGE0] => Transaction refused because of an invalid argument. See additional error messages for details. 
[L_LONGMESSAGE0] => The transaction currency specified must be the same as previously specified. 
[L_SEVERITYCODE0] => Error 
+0

您在指定貨幣的方式可能有錯誤。顯示你的代碼。 – RST 2014-09-26 10:20:12

+0

請回顧一下http://teste.ebroselow.com/Paypal.php – Hasibur 2014-09-26 10:34:28

+0

我指的是您的代碼,而不是代碼示例。這個例子使用澳元 – RST 2014-09-26 10:38:47

回答

4

替換這個代碼,貝寶棄用像

PAYMENTACTION一些領域PAYMENTREQUEST_n_PAYMENTACTION

AMT TO PAYMENTREQUEST_n_AMT

CUSTOMPAYMENTREQUEST_n_CUSTOM

$nvpstr = "&TOKEN=" . $token; 
$nvpstr = $nvpstr . "&PAYMENTREQUEST_0_PAYMENTACTION=Sale"; 
$nvpstr = $nvpstr . "&PAYERID=" . $payerID; 
$nvpstr = $nvpstr . "&PAYMENTREQUEST_0_AMT=" . $paymentAmount; 
$nvpstr = $nvpstr . "&PAYMENTREQUEST_0_CUSTOM=" . $userId; 
$nvpstr = $nvpstr . "&PAYMENTREQUEST_0_CURRENCYCODE=".$currency; 

這些更改在 「DoExpressCheckoutPayment」 API調用它應該罰款。

0

您傳遞有關貨幣的 「SetExpressCheckout」 API調用像下面兩個參數:

$ nvpstr = $ nvpstr。 「& CURRENCYCODE =」。 $ currencyCodeType;

$ nvpstr = '& PAYMENTREQUEST_0_CURRENCYCODE =' $ currencyCodeType。;

但在 「DoExpressCheckoutPayment」 API調用你只有一個路過:

$ nvpstr = $ nvpstr。 「& PAYMENTREQUEST_0_CURRENCYCODE =」。$ currency;

你應該只通過兩個API調用有關貨幣一個參數:。 $ nvpstr = '& PAYMENTREQUEST_0_CURRENCYCODE =' $ currencyCodeType;

一旦你在你的 「SetExpressCheckout」 這些變化的API調用它應該罰款

+0

我已經改變了這一點,但不工作。 – Hasibur 2014-09-26 10:55:12

+0

但在上面的「http://teste.ebroselow.com/Paypal.php」網址中,仍然是通過這兩個參數。 – Eshan 2014-09-26 11:03:25

+0

其演示文件我已經從我原來的代碼 – Hasibur 2014-09-26 11:45:30