Przeglądaj źródła

Merge pull request #2086 from saurabh6790/paypal_currency_code_fix

[fix] currency code fix for paypal payment
version-14
Nabin Hait 8 lat temu
committed by GitHub
rodzic
commit
43ec493a08
1 zmienionych plików z 2 dodań i 2 usunięć
  1. +2
    -2
      frappe/integrations/paypal.py

+ 2
- 2
frappe/integrations/paypal.py Wyświetl plik

@@ -152,7 +152,7 @@ class Controller(IntegrationController):
"METHOD": "SetExpressCheckout", "METHOD": "SetExpressCheckout",
"PAYMENTREQUEST_0_PAYMENTACTION": "SALE", "PAYMENTREQUEST_0_PAYMENTACTION": "SALE",
"PAYMENTREQUEST_0_AMT": amount, "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"), "returnUrl": get_url("/api/method/frappe.integrations.paypal.get_express_checkout_details"),
"cancelUrl": get_url("/payment-cancel") "cancelUrl": get_url("/payment-cancel")
}) })
@@ -212,7 +212,7 @@ def confirm_payment(token):
"TOKEN": token, "TOKEN": token,
"PAYMENTREQUEST_0_PAYMENTACTION": "SALE", "PAYMENTREQUEST_0_PAYMENTACTION": "SALE",
"PAYMENTREQUEST_0_AMT": data.get("amount"), "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) response = Controller().post_request(url, data=params)


Ładowanie…
Anuluj
Zapisz