Skip to content

Commit

Permalink
chore: cleanup & update
Browse files Browse the repository at this point in the history
  • Loading branch information
blaggacao committed Jun 18, 2024
1 parent c232c7e commit 4079aef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions payments/payments/doctype/payment_button/payment_button.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.<br>\n<pre>{\n \"doc\": &lt;Instance of PaymentController&gt;,\n \"payload\": &lt;Instance of RemoteServerInitiationPayload&gt;,\n}</pre>\n<span class=\"text-muted\"><small>This jinja context is specific to the gateway.</small></span>",
"description": "The code fields of this section are HTML snippets templated via jinja.<br>\n<pre>{\n \"doc\": &lt;Instance of PaymentController&gt;,\n \"extra\": &lt;Dict of parsed Extra Payload Json&gt;,\n \"psl\": &lt;Dict of PSL&gt;,\n \"tx_data\": &lt;TX Data&gt;,\n \"gateway_data\": &lt;Dict of Gateway-specific Pre Data Capture State&gt;, \n}</pre>\n<span class=\"text-muted\"><small>This jinja context is specific to the gateway.</small></span>",
"fieldname": "button_configuration_section",
"fieldtype": "Section Break",
"label": "Button Configuration"
Expand Down Expand Up @@ -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",
Expand Down
3 changes: 0 additions & 3 deletions payments/payments/doctype/payment_button/payment_button.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4079aef

Please sign in to comment.