Skip to content

Commit 63a5131

Browse files
committed
fix: Add event handlers for Payment Entry and Bank Account forms
1 parent 16bb206 commit 63a5131

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

payment_integration_utils/hooks.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,15 @@
1919
"User": "payment_integration_utils/client_overrides/form/user.js",
2020
}
2121

22+
23+
doc_events = {
24+
"Payment Entry": {
25+
"onload": "payment_integration_utils.payment_integration_utils.server_overrides.doctype.payment_entry.onload",
26+
"validate": "payment_integration_utils.payment_integration_utils.server_overrides.doctype.payment_entry.validate",
27+
},
28+
"Bank Account": {
29+
"validate": "payment_integration_utils.payment_integration_utils.server_overrides.doctype.bank_account.validate",
30+
},
31+
}
32+
2233
before_payment_authentication = "payment_integration_utils.payment_integration_utils.utils.permission.has_payment_permissions"

0 commit comments

Comments
 (0)