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:

DocumentWhat it does
Payment GatewayA record of the gateway, for example "Stripe-My Account".
AccountA bank-type account in your chart of accounts for the money that the gateway collects.
Payment Gateway AccountThe 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 ​

GatewayTypical useCurrencies
PayPalCard and PayPal wallet payments25 major currencies
RazorpayCards, UPI, and net banking in IndiaINR only
StripeCards worldwide, and subscriptionsMore than 130 currencies
BraintreeCards and wallets worldwideMore than 130 currencies
GoCardlessDirect debit, such as SEPAEUR, GBP, SEK, DKK
PaytmCards, UPI, and Paytm wallet in IndiaINR only
M-PesaMobile money at the point of sale in KenyaKES only