diff --git a/payments/payments/doctype/payment_button/payment_button.json b/payments/payments/doctype/payment_button/payment_button.json index 3a1fe787..00d7f485 100644 --- a/payments/payments/doctype/payment_button/payment_button.json +++ b/payments/payments/doctype/payment_button/payment_button.json @@ -96,7 +96,7 @@ { "collapsible": 1, "collapsible_depends_on": "eval: doc.enabled", - "description": "The code fields of this section are HTML snippets templated via jinja.
\n
{\n  \"doc\":     <Instance of PaymentController>,\n  \"payload\": <Instance of RemoteServerInitiationPayload>,\n}
\nThis jinja context is specific to the gateway.", + "description": "The code fields of this section are HTML snippets templated via jinja.
\n
{\n  \"doc\":     <Instance of PaymentController>,\n  \"extra\":   <Dict of parsed Extra Payload Json>,\n  \"psl\":     <Dict of PSL>,\n  \"tx_data\": <TX Data>,\n  \"gateway_data\": <Dict of Gateway-specific Pre Data Capture State>, \n}
\nThis jinja context is specific to the gateway.", "fieldname": "button_configuration_section", "fieldtype": "Section Break", "label": "Button Configuration" @@ -129,7 +129,7 @@ ], "image_field": "icon", "links": [], - "modified": "2024-05-05 11:33:11.418592", + "modified": "2024-06-17 15:09:04.579657", "modified_by": "Administrator", "module": "Payments", "name": "Payment Button", diff --git a/payments/payments/doctype/payment_button/payment_button.py b/payments/payments/doctype/payment_button/payment_button.py index 5cad2ea1..83930675 100644 --- a/payments/payments/doctype/payment_button/payment_button.py +++ b/payments/payments/doctype/payment_button/payment_button.py @@ -60,9 +60,6 @@ def get_data_capture_assets(self, state: PSLState) -> Wrapper: "extra": frappe._dict(json.loads(self.extra_payload)), } context.update(state) - from pprint import pprint - - pprint(context) return frappe.render_template(self.data_capture, context) @property