About payment gateways
A payment gateway is a service that takes a card, bank, or wallet payment from your customer online and passes it to your bank account. ERPNext uses a gateway when a customer pays from a link, for example a link in a Payment Request email or the checkout of your webshop.
INFO
This gateway is provided by the payments app. Payment gateway settings moved out of ERPNext and the Frappe Framework into this app. Install it to see the settings page.
How a gateway connects to your books
When you enable a gateway in its settings page, ERPNext creates three things:
| Document | What it does |
|---|---|
| Payment Gateway | A record of the gateway, for example "Stripe-My Account". |
| Account | A bank-type account in your chart of accounts for the money that the gateway collects. |
| Payment Gateway Account | The link between the gateway and an account of a company. It holds the default Payment Request message. |
In the Payment Gateway Account, you can change these fields:
- Payment Account: the account that receives the payment. Its currency is the currency of the gateway account.
- Is Default: makes this gateway account the default for Payment Requests.
- Payment Channel: Email, Phone, or Other. Phone is used for mobile-money gateways such as M-Pesa.
- Default Payment Request Message: the text of the email that sends the payment link.
When the customer pays, ERPNext marks the Payment Request as paid and creates a Payment Entry against it.
Supported gateways
| Gateway | Typical use | Currencies |
|---|---|---|
| PayPal | Card and PayPal wallet payments | 25 major currencies |
| Razorpay | Cards, UPI, and net banking in India | INR only |
| Stripe | Cards worldwide, and subscriptions | More than 130 currencies |
| Braintree | Cards and wallets worldwide | More than 130 currencies |
| GoCardless | Direct debit, such as SEPA | EUR, GBP, SEK, DKK |
| Paytm | Cards, UPI, and Paytm wallet in India | INR only |
| M-Pesa | Mobile money at the point of sale in Kenya | KES only |