Browse Source

Merge pull request #2240 from saurabh6790/hotfix

[path][fix] paypal integration
version-14
Saurabh 8 years ago
committed by GitHub
parent
commit
050e456335
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      frappe/integrations/doctype/paypal_settings/paypal_settings.py

+ 2
- 2
frappe/integrations/doctype/paypal_settings/paypal_settings.py View 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):


Loading…
Cancel
Save