Custom Payment Integration

I want to write custom payment integration for local payment system used in my country. How do I go about it. are there some classes and methods I need to inherit? Thanks.

Look at the current payment integration implementations.

Eg:

  1. Paypal:

https://github.com/frappe/frappe/tree/develop/frappe/integrations/doctype/paypal_settings

  1. Stripe:

https://github.com/frappe/frappe/tree/develop/frappe/integrations/doctype/stripe_settings

  1. PayTM:

https://github.com/frappe/frappe/tree/develop/frappe/integrations/doctype/paytm_settings

You’ll find such examples throughout the framework and ERPNext to help you implement it.

1 Like

Thanks. I can see the common property “supported_currencies” which is clearly understood. I also see common methods like “get_gateway_controller”, “finalize_request” and “get_payment_url”. Can I get little expiation as to what these methods should do … ? How also do I handle the case where my payment provider requires a return url to send transaction status. Thanks