Skip to content

Payment Methods ​

Payment methods are the ways shoppers can pay at checkout. Bagisto comes with nine, and each has its own section under Configure >> Sales >> Payment Methods, in the order below.

MethodHow shoppers payWhat you need
StripeBy card, on Stripe's payment pageStripe secret and publishable keys
RazorpayIn a Razorpay payment windowRazorpay client ID and secret, and INR as your base currency
PayUOn PayU's payment pagePayU merchant key and salt, and INR as your base currency
PhonePeOn PhonePe's payment pagePhonePe client ID, client secret and merchant ID, and INR as your base currency
PayPalWith PayPal's buttons on the checkout pageThe client ID and secret of a PayPal app
PayPal StandardOn PayPal's websiteThe email address of a PayPal business account
PayGlocalOn PayGlocal's payment pageA PayGlocal merchant ID, key IDs and key files
Cash On DeliveryIn cash when the order arrivesNothing extra. It's offered only for carts of shippable products.
Money TransferBy bank transfer or chequeThe name and address payments are sent to

Switch off the methods you haven't set up

In a new store, Status is on for all nine methods. Stripe, Razorpay, PayU, PhonePe and PayGlocal come with placeholder keys, so they appear at checkout and fail when a shopper tries to pay. Before you take orders, switch off every method you haven't set up with your own credentials.

Offer a payment method ​

  1. Go to Configure >> Sales >> Payment Methods.
  2. If your store has more than one channel or language, choose them at the top of the screen.
  3. In the method's section, switch Status on. The method's other settings appear.
  4. Enter the Title shoppers see at checkout.
  5. Optionally, enter a Description.
  6. Optionally, click Add Image under Logo and choose the logo.
  7. Enter the settings of that method, described in its section below.
  8. Enter the Sort Order.
  9. Click Save Configuration.

To stop offering a method, switch its Status off and save. At least one payment method has to stay on: saving with all of them switched off shows Enable at least one payment method.

Settings every method has ​

SettingWhat it does
StatusOffers the method at checkout. The other settings appear only while it's on.
TitleThe name of the method at checkout. Required while Status is on.
DescriptionA short line shown under the title at checkout.
LogoThe logo on the method's card at checkout. Without one, Bagisto shows its built-in logo for the method. A size of 55 × 45 pixels is recommended.
Sort OrderThe position of the method at checkout. Methods with a lower number come first. Required while Status is on.

At checkout, shoppers see each method you offer as a card with its title and description, in sort order.

Payment methods offered as cards on the storefront checkout page

All settings are per channel. Title, Description and the Cash On Delivery Instructions are also per language.

Sandbox mode ​

Every method except Cash On Delivery and Money Transfer has a Sandbox switch, and it's on in a new store. While it's on, payments go to the gateway's test environment, so no real money is taken. Stripe and Razorpay have separate fields for test keys, which are used while Sandbox is on. The other gateways use the same credential fields in both modes, so enter the test credentials the gateway gives you while you test, and your live credentials when you switch Sandbox off.

What happens when a shopper pays online ​

With Stripe, Razorpay, PayU, PhonePe, PayPal and PayGlocal, the order is created once the gateway confirms the payment. It's invoiced automatically and set to Processing, or to Completed when nothing in it needs shipping. If the shopper cancels or the payment fails, they return to the cart. With PayPal, a shopper who closes the PayPal window stays on the checkout page and can try again. PayPal Standard works differently; see PayPal Standard.

Stripe ​

Stripe takes card payments. After clicking Place Order, shoppers pay on Stripe's secure payment page and return to the store.

Stripe section with Status and Sandbox switched on
SettingWhat it does
API KeyThe live secret key from your Stripe account, used while Sandbox is off.
API Publishable KeyThe live publishable key from your Stripe account, used while Sandbox is off.
SandboxUses the test keys below, so no real payments are taken.
API Test Secret KeyThe test secret key from your Stripe account, used while Sandbox is on.
API Test Publishable KeyThe test publishable key from your Stripe account, used while Sandbox is on.

Stripe appears at checkout only while both keys for the current mode have a value.

Razorpay ​

Razorpay takes payments in Indian rupees. After clicking Place Order, shoppers pay in a Razorpay payment window. If your store's base currency isn't INR, switch Razorpay off: it still shows at checkout, but the order can't be placed with it.

Razorpay section with Status and Sandbox switched on
SettingWhat it does
Merchant NameYour business name, shown in the Razorpay payment window. Up to 200 characters.
Merchant DescriptionA short description shown in the payment window. Up to 200 characters.
Client ID and Client SecretYour live API keys from Razorpay, used while Sandbox is off.
SandboxUses the test keys below, so no real payments are taken.
Test Mode Client ID and Test Mode Client SecretYour test API keys from Razorpay, used while Sandbox is on.

Razorpay appears at checkout only while the client ID and secret for the current mode have a value: the test pair while Sandbox is on, the live pair while it's off.

PayU ​

PayU takes payments in Indian rupees. After clicking Place Order, shoppers are taken to PayU to pay. If your store's base currency isn't INR, switch PayU off: it still shows at checkout, but the order can't be placed with it.

PayU section with Status and Sandbox switched on
SettingWhat it does
Merchant KeyThe merchant key from your PayU dashboard.
Merchant SaltThe merchant salt from your PayU dashboard.
SandboxSends payments to PayU's test environment.

PayU appears at checkout only while Merchant Key and Merchant Salt have a value.

PhonePe ​

PhonePe takes payments in Indian rupees. After clicking Place Order, shoppers are taken to PhonePe to pay. If your store's base currency isn't INR, switch PhonePe off: it still shows at checkout, but the order can't be placed with it.

PhonePe section with Status and Sandbox switched on
SettingWhat it does
Client IDThe client ID from your PhonePe dashboard. Required while Status is on.
Client SecretThe client secret from your PhonePe dashboard. Required while Status is on.
Merchant IDThe merchant ID from your PhonePe dashboard. Required while Status is on.
SandboxSends payments to PhonePe's test environment.

PayPal ​

PayPal shows PayPal's own payment buttons on the checkout page in place of Place Order, so shoppers can pay without leaving the store. Which ways to pay the buttons offer, such as a PayPal account or a card, is decided by PayPal.

PayPal section with Status and Sandbox switched on
SettingWhat it does
Client IDThe client ID of your PayPal app. While Sandbox is on, use the client ID of your sandbox app.
Client SecretThe client secret of your PayPal app.
Accepted currenciesThe currency codes your PayPal account accepts, separated by commas, such as USD,EUR. List every currency your shoppers can pay in.
SandboxSends payments to PayPal's sandbox, so no real payments are taken.

PayPal Standard ​

PayPal Standard sends shoppers to PayPal's website to pay, and brings them back to the store afterwards. The order is created as Pending when the shopper returns. It's invoiced and moves to Processing once PayPal confirms to the store a payment that matches the order total.

PayPal Standard section with Status and Sandbox switched on
SettingWhat it does
Business AccountThe email address of your PayPal business account. Required while Status is on.
SandboxSends payments to PayPal's sandbox, so no real payments are taken.

PayGlocal ​

PayGlocal takes cross-border payments. After clicking Place Order, shoppers pay on PayGlocal's payment page and return to the store. The link in the section's description takes you to PayGlocal to sign up and get your credentials.

PayGlocal section with Status and Sandbox switched on
SettingWhat it does
Merchant IDYour merchant ID, found under My Account in the PayGlocal dashboard.
Public Key IDThe ID of the PayGlocal public key, shown in the PayGlocal dashboard.
Private Key IDThe ID of your private key, shown in the PayGlocal dashboard.
PayGlocal Public KeyThe contents of the PayGlocal public key file.
Merchant Private KeyThe contents of the private key file you generated in the PayGlocal dashboard.
Accepted currenciesThe currency codes your PayGlocal account accepts, separated by commas, such as USD,INR. Include your store's base currency. Required while Status is on.
SandboxSends payments to PayGlocal's test environment.

PayGlocal appears at checkout only while the Merchant ID, both key IDs and both keys have a value. The keys aren't checked when you save, so test a payment in sandbox mode before you go live.

Cash On Delivery ​

Cash On Delivery lets shoppers pay in cash when the order arrives. It's offered only when every product in the cart is shipped, so it doesn't appear for carts with virtual, downloadable or booking products.

Cash On Delivery section with Status and automatic invoicing switched on
SettingWhat it does
InstructionsInstructions for the customer, such as having the exact amount ready. They are included in the order emails and on the invoice PDF.
Automatically generate the invoice after placing an orderCreates the invoice as soon as the order is placed.
Set the invoice status after creating the invoice toPending or Paid. Used only while the switch above is on.
Set the order status after creating the invoice toPending, Pending Payment or Processing. Used only while the switch above is on.

Money Transfer ​

Money Transfer lets shoppers pay by bank transfer or cheque.

Money Transfer section with Status and automatic invoicing switched on
SettingWhat it does
Automatically generate the invoice after placing an orderCreates the invoice as soon as the order is placed.
Set the invoice status after creating the invoice toPending or Paid. Used only while the switch above is on.
Set the order status after creating the invoice toPending, Pending Payment or Processing. Used only while the switch above is on.
Send Check toThe name and address customers send their payment to. It's included in the order emails and on the invoice PDF.

For orders you take yourself in the admin panel, see Create Order. To create an invoice later, see Create Invoice. What each invoice status means is described in Invoice status, and payments for pending invoices are recorded in Transactions.

Released under the MIT License.