diff --git a/frappe/integrations/paypal.py b/frappe/integrations/paypal.py index f490e04295..477db6c9b7 100644 --- a/frappe/integrations/paypal.py +++ b/frappe/integrations/paypal.py @@ -152,7 +152,7 @@ class Controller(IntegrationController): "METHOD": "SetExpressCheckout", "PAYMENTREQUEST_0_PAYMENTACTION": "SALE", "PAYMENTREQUEST_0_AMT": amount, - "PAYMENTREQUEST_0_CURRENCYCODE": currency, + "PAYMENTREQUEST_0_CURRENCYCODE": currency.upper(), "returnUrl": get_url("/api/method/frappe.integrations.paypal.get_express_checkout_details"), "cancelUrl": get_url("/payment-cancel") }) @@ -212,7 +212,7 @@ def confirm_payment(token): "TOKEN": token, "PAYMENTREQUEST_0_PAYMENTACTION": "SALE", "PAYMENTREQUEST_0_AMT": data.get("amount"), - "PAYMENTREQUEST_0_CURRENCYCODE": data.get("currency") + "PAYMENTREQUEST_0_CURRENCYCODE": data.get("currency").upper() }) response = Controller().post_request(url, data=params)