Added feature toggle for the check box on custom form. Turned off at the moment so we can push to prod even though this feature is complete.
This commit is contained in:
@@ -120,6 +120,9 @@ def call_payment_api(payload):
|
||||
@frappe.whitelist()
|
||||
def run_token_payment(invoice, token, cardholder_name=None, billing_zip=None, save_autopay=0):
|
||||
|
||||
if not frappe.conf.get("enable_autopay_signup"):
|
||||
save_autopay = 0
|
||||
|
||||
inv = frappe.get_doc("Sales Invoice", invoice)
|
||||
customer = frappe.get_doc("Customer", inv.customer)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user