Payment Gateways

Payment gateways lists every gateway modules...

Applies to LBM 1.x Updated 22 November 2026

Settings > Payment gateways lists every gateway module in your release. For each one you can switch it on, enter its keys, and choose where it is offered. The gateways you leave off never appear at checkout.

Test mode first #

Every gateway has Live and Test settings. Enter the test (sandbox) keys, make a test payment, then enter the live keys. A key from the other mode is refused before anything is sent. Test connection checks the keys you saved.

The two kinds of gateway #

  • Pay on the gateway's own page (a redirect or a pop-up): the customer never types a card into your site. Examples here: SSLCommerz, ShurjoPay, PayPal and Paddle.
  • Card on your own invoice page (Stripe, PayPal Cards, Authorize.Net, 2Checkout): the card is typed into the provider's own secure fields on your invoice page. Card numbers never reach your server. Stripe, PayPal Cards and Authorize.Net can save the card for one-click payment and automatic charges; 2Checkout cannot, because its card token works once.

The gateways in a release are: Stripe, PayPal, PayPal Cards, Paddle, 2Checkout, Authorize.Net, SSLCommerz, ShurjoPay and Offline.

Stripe #

Cards typed into Stripe's own field on the invoice page. You need a Stripe account.

  1. In the Stripe Dashboard, under Developers > API keys, copy the publishable key (pk_…) and secret key (sk_…). Do this in test mode first and then in live mode.
  2. In LBM, open Payment gateways > Stripe, switch it on, and paste the test publishable and secret keys, then the live ones.
  3. The webhook signing secret is filled in for you: saving a secret key with the webhook box left empty registers the webhook with Stripe. Paste one yourself only when Stripe cannot reach your address.
  4. Press Test connection.

Customers can tick Save this card to keep it. A saved card can be used for one-click payment and for automatic charges.

SSLCommerz #

For cards, mobile banking and internet banking in Bangladesh.

  1. Enter your Store ID and Store password (the API password SSLCommerz sent you, not the merchant panel login). Use a sandbox store from developer.sslcommerz.com for testing.
  2. Choose the Integration:
    • Easy Checkout Integration (the default): SSLCommerz's payment page opens in a layer over your invoice page, so the customer stays on your site.
    • Hosted Payment Integration: the customer goes to SSLCommerz's own page and comes back.
  3. Every payment is checked with SSLCommerz's validation API before it is recorded, and refunds go through its API.
Note

SSLCommerz can only refund a converted payment in full. A payment made in a currency other than BDT is recorded in the invoice's currency.

PayPal #

PayPal takes the payment on its own page.

  1. At developer.paypal.com, Apps & Credentials, create a REST app. Copy the client ID and secret, for Sandbox and for Live.
  2. In LBM, switch PayPal on and enter the sandbox and live client IDs and secrets.
  3. The webhook ID is filled in for you when the client ID and secret are saved.

PayPal Cards #

The card is typed into PayPal's own hosted fields on your invoice page and can be saved in the PayPal Vault for later charges. It uses the same client ID and secret as the PayPal gateway, so set PayPal up first; this gateway has its own Live/Test switch. Your PayPal business account needs Advanced Card Payments and the Vault, which PayPal approves per account and country. A bank step (3-D Secure) takes the customer to their bank and back.

Paddle #

Paddle is the merchant of record: it takes the payment on its own checkout, collects the customer's tax itself and pays you what is left. The invoice's total is sent as the price with tax inside it, so the customer pays exactly the invoice.

  1. In Paddle, create an API key and copy the client-side token (Developer tools > Authentication), for sandbox and live.
  2. In LBM, switch Paddle on and enter them. The webhook secret is filled in when you save the API key; leave it blank.
  3. In Paddle's Checkout settings, approve a default payment link. Without one Paddle answers with no checkout link and the payment cannot start.

Refunds are sent to Paddle as an adjustment, which Paddle reviews. A transaction whose total is not the invoice's balance (because Paddle's settings changed the price) is held for staff, not recorded as paid in full.

2Checkout #

The card is typed into 2Checkout's own frames and turned into a token by its 2Pay.js; no card number reaches your server. Enter your merchant code and secret key. 3-D Secure sends the customer to their bank and back. Every return and notification is checked by fetching the order from 2Checkout, and an order whose price differs from the invoice (tax added on top, say) is held for staff. Cards are not saved. The sandbox is the same account placing orders marked as test, chosen by the Live/Test switch.

Authorize.Net #

The card is typed on your invoice page and turned into a token by Accept.js. Enter the API login ID, transaction key and public client key for each of Test and Live (the signature key is optional). Cards can be saved in a customer profile for one-click and automatic charges, and refunds (or a void for a payment not yet settled) go through its API. This flow has no 3-D Secure: a card whose bank insists on it is declined with Authorize.Net's words. Authorize.Net keys carry no sandbox or live prefix, so they cannot be checked against the mode; each mode has its own fields and only the mode's own are used.

ShurjoPay #

For cards, mobile banking and internet banking in Bangladesh, on ShurjoPay's hosted page. Enter the username, password and order prefix ShurjoPay gave you. Nothing the browser brings back is believed: ShurjoPay's verification API is asked what it holds for the payment. ShurjoPay sends no notification to a server, so a customer who never comes back is not recorded until staff record it, and it has no refund call here: refund in ShurjoPay's own panel.

Offline payments #

For a bank transfer, cash or any method you check by hand.

  • Payment instructions: shown to the customer on the invoice, as you wrote them: the bank, the account, and the reference to quote.
  • Boxes the customer fills in: what the customer must tell you after paying, such as a transaction number.

The customer reports the payment; nothing is settled until staff have checked it and recorded it.

Where a gateway is offered #

For each gateway you can limit the countries it is offered to. A client outside them never sees it.

Charging saved cards #

Switch on automatic charges on the gateways screen to charge saved cards when an invoice is due. Only gateways that can save a card (Stripe, PayPal Cards, Authorize.Net) take part. Set how many days before a card is tried. A charge that needs the customer to confirm with their bank is not retried silently: the customer is emailed and pays the invoice themselves. Failed attempts are logged.

Fraud checks #

Settings > Fraud check chooses which fraud module screens every order and payment. A payment from another currency than the invoice's, or one that a check blocks, is held for staff instead of being recorded.

Tip

Only the gateways you use need to be in your release. A gateway module that is not in modules/Gateways/ is simply not offered.

Something missing or wrong? Tell us or contact us.