10444
Last updated: Mar 3rd, 10:58am
Returns from the DoExpressCheckoutPayment
API.
Cause
The currency code in the request does not match the currency code in subsequent calls.
Impact
The payment process is halted, preventing the customer from finalizing their purchase. This can lead to a poor customer experience and potentially lost sales if the issue is not resolved promptly.
Resolution
- Ensure that the currency code in your
SetExpressCheckout
API request matches the currency code in all subsequent calls, includingDoExpressCheckoutPayment
. - Review your code to ensure the currency argument is not changed at any point.
1// SetExpressCheckout request2$payerDetails = [3 'PAYMENTREQUEST_0_AMT' => '100.00',4 'PAYMENTREQUEST_0_CURRENCYCODE' => 'USD',5];67// DoExpressCheckoutPayment request must match initial currency8$paymentDetails = [9 'TOKEN' => $token,10 'PAYERID' => $payerId,11 'PAYMENTREQUEST_0_AMT' => '100.00',12 'PAYMENTREQUEST_0_CURRENCYCODE' => 'USD',13];
Upgrade
The NVP/SOAP API integration method is deprecated. You can find more information about our latest integrations from the following resources:
Additional resources
You can reach out for support at paypal-techsupport.com.