Sfoglia il codice sorgente

[path][fix] paypal integration

pull/2/head
Saurabh 8 anni fa
parent
commit
360b5b8ff4
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. +2
    -2
      payments/payment_gateways/doctype/paypal_settings/paypal_settings.py

+ 2
- 2
payments/payment_gateways/doctype/paypal_settings/paypal_settings.py Vedi File

@@ -135,7 +135,7 @@ class PayPalSettings(IntegrationService):
"PAYMENTREQUEST_0_PAYMENTACTION": "SALE",
"PAYMENTREQUEST_0_AMT": amount,
"PAYMENTREQUEST_0_CURRENCYCODE": currency.upper(),
"returnUrl": get_url("/api/method/frappe.integrations.paypal.get_express_checkout_details"),
"returnUrl": get_url("/api/method/frappe.integrations.doctype.paypal_settings.paypal_settings.get_express_checkout_details"),
"cancelUrl": get_url("/payment-cancel")
})

@@ -210,7 +210,7 @@ def get_express_checkout_details(token):

frappe.local.response["type"] = "redirect"
frappe.local.response["location"] = get_url( \
"/api/method/frappe.integrations.paypal.confirm_payment?token={0}".format(token))
"/api/method/frappe.integrations.doctype.paypal_settings.paypal_settings.confirm_payment?token={0}".format(token))

@frappe.whitelist(allow_guest=True, xss_safe=True)
def confirm_payment(token):


Caricamento…
Annulla
Salva