瀏覽代碼

[path][fix] paypal integration

pull/2/head
Saurabh 8 年之前
父節點
當前提交
360b5b8ff4
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      payments/payment_gateways/doctype/paypal_settings/paypal_settings.py

+ 2
- 2
payments/payment_gateways/doctype/paypal_settings/paypal_settings.py 查看文件

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


Loading…
取消
儲存