To list external wallet on your web application, you need to first integrate our
. After you integrate, follow the steps given below:-
Add a key
external
tocheckout.js
options. -
Set
wallets
with wallet name array inexternal
as the first parameter.external: {wallets: ['paytm']} -
Set
handler
with a callback function inexternal
as second parameter. This is where you receive a callback from which you can handle external wallets based on the parameters:
external: {wallets: ['paytm'],handler: function (data) {console.log(data)}}
The external wallet sent in options will be shown in the wallets section.
If the customer selects external wallet and clicks Submit, our checkout.js
library will return the control to you in the external.handler
method. You will get the selected wallet name as an argument. You will now have to handle the external payment method.