10444

API

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, including DoExpressCheckoutPayment.
  • Review your code to ensure the currency argument is not changed at any point.
    1// SetExpressCheckout request
    2$payerDetails = [
    3 'PAYMENTREQUEST_0_AMT' => '100.00',
    4 'PAYMENTREQUEST_0_CURRENCYCODE' => 'USD',
    5];
    6
    7// DoExpressCheckoutPayment request must match initial currency
    8$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:

    If you accept cookies, we’ll use them to improve and customize your experience and enable our partners to show you personalized PayPal ads when you visit other sites. Manage cookies and learn more