Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Currency issue – CANNOT_MIX_CURRENCIES

$
0
0

Replies: 0

Hi,

Since a recent major update with WCML (WPML multi currency for woocommerce), there is the following issue:

The currency seems to be sent in EUR and in USD in the same checkout process?

This happen when the user do the following actions:

– Add product in cart with EUR currency
– Checkout, change billing information to a country that will be billed in USD. Currency is changed to USD In checkout page.
– Pay (with credit cards processing) and get the error.

LOGS:

Request Body: {"intent":"AUTHORIZE","purchase_units":[{"reference_id":"default","amount":{"currency_code":"EUR",....

Request Body: [{"op":"replace","value":{"reference_id":"default","amount":{"currency_code":"USD",.....

ERROR:


Response Body: {"name":"UNPROCESSABLE_ENTITY","details":[{"location":"body","issue":"CANNOT_MIX_CURRENCIES","description":"CANNOT_MIX_CURRENCIES"}],"message":"The requested action could not be performed, semantically incorrect, or failed business validation.","debug_id":"74c007b5cfcef","links":[{"href":"https://developer.paypal.com/docs/api/orders/v2/#error-CANNOT_MIX_CURRENCIES","rel":"information_link","method":"GET"}]}

Thanks for help,


Viewing all articles
Browse latest Browse all 59525

Trending Articles