Browse Source

Merge pull request #2086 from saurabh6790/paypal_currency_code_fix

[fix] currency code fix for paypal payment
version-14
Nabin Hait 8 years ago
committed by GitHub
parent
commit
43ec493a08
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      frappe/integrations/paypal.py

+ 2
- 2
frappe/integrations/paypal.py View File

@@ -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)


Loading…
Cancel
Save