LiveMart provides integration with two popular payment gateway. One is Stripe (Global) and another one is SSLCommerz (Bangladesh only).

In this guide you will learn how you can configure Stripe with LiveMart. First of all you have to setup Stripe. You can follow their instruction to learn how you can do that. You will get Publishable key , Secret key.

Goto your LiveMart account. If you have already created any store, you will get an option to setup Payment Gateway.

Goto Payment Gateway.

In the payment gateway settings page, from Choose Gateway choose Stripe.

Then fill Stripe Key , Stripe Secret .

Success callback url is the link where the customer will be redirected if the payment succeed.

Failure callback url is the link where the customer will be redirected if the payment fails.

In the url you may have {ORDER_HASH} tag and if so it will be replaced with the order hash.

ie: if the url is: http://example.com/{ORDER_HASH} and the customer is paying for order 123 . Then the customer will be redirected to http://example.com/123 after payment.

Allow only digital payment choose Yes if you want only digital payment to be available.

Is Disabled choose Yes if you want to disable digital payment.

If you want to impose payment processing fee, put that value in Payment processing fee field. Suppose you have put 2, then 2% additional charge will be added with the original amount.

Now using orderGeneratePaymentNonce mutation you can generate payment nonce and then using that nonce you can send the customer to checkout page.

That's all. If you face any difficulties feel free to write us @ [email protected].