-
Notifications
You must be signed in to change notification settings - Fork 0
Technical docs
Hasan Hasanzade edited this page Aug 21, 2024
·
7 revisions
- Add payment method main class file in
includes/payment-gateways
. Follow the class structure and naming (Ctrl+C
&Ctrl+V
😉) from other async payment methods (i.e. Credit Card). Shortcode, name, description should be defined in this file. - Include that file in the
init()
method of plugin base class file -bp-plugin-woocommerce-api2.php
. Then add it to$methods
array inadd_betterpayment_gateways()
. - Generate, translate and compile strings used (name & description). As a result strings should be added to .pot file, then compiled into corresponding locale .po file.
I guess that's it :)
Support: [email protected]