[fixes] redirect uri fixes
This commit is contained in:
parent
27e8ae0ff9
commit
f7caad8ecb
@ -40,7 +40,6 @@ class PaymentRequest(Document):
|
|||||||
if not frappe.conf.paypal_username:
|
if not frappe.conf.paypal_username:
|
||||||
frappe.throw(_("PayPal Settings missing"))
|
frappe.throw(_("PayPal Settings missing"))
|
||||||
|
|
||||||
|
|
||||||
def on_submit(self):
|
def on_submit(self):
|
||||||
if not self.mute_email:
|
if not self.mute_email:
|
||||||
self.send_payment_request()
|
self.send_payment_request()
|
||||||
@ -227,10 +226,7 @@ def get_print_format_list(ref_doctype):
|
|||||||
|
|
||||||
@frappe.whitelist(allow_guest=True)
|
@frappe.whitelist(allow_guest=True)
|
||||||
def generate_payment_request(name):
|
def generate_payment_request(name):
|
||||||
payment_url = frappe.get_doc("Payment Request", name).run_method("get_payment_url")
|
frappe.get_doc("Payment Request", name).run_method("get_payment_url")
|
||||||
if payment_url:
|
|
||||||
frappe.local.response["type"] = "redirect"
|
|
||||||
frappe.local.response["location"] = payment_url
|
|
||||||
|
|
||||||
@frappe.whitelist(allow_guest=True)
|
@frappe.whitelist(allow_guest=True)
|
||||||
def resend_payment_email(docname):
|
def resend_payment_email(docname):
|
||||||
|
Loading…
Reference in New Issue
Block a user