🌐 KO
This guide covers only Settlebank specific information. Check the following general payment integration sections in the README file.
Use the following guide to set up Settlebank as PG in test mode: Settlebank General Test Mode Configuration
To open the payment window, call IMP.request_pay(param, callback).
In PC browsers, callback is invoked after calling IMP.request_pay(param, callback)
. In mobile browsers, the page is redirected to m_redirect_url
.
pg
:- If not specified and this is the only PG setting that exists,
default PG
is automatically set. - If there are multiple PG settings, set to
settle
.
- If not specified and this is the only PG setting that exists,
pay_method
: card, trans, vbank, or phonebuyer_tel
: required
IMP.request_pay({
pg : 'settle',
pay_method : 'card',
merchant_uid : '{Merchant created Order ID}', // Example: order_no_0001
name : 'Order name: Test payment request',
amount : 14000,
buyer_email : '[email protected]',
buyer_name : 'John Doe',
buyer_tel : '010-1234-5678',
buyer_addr : 'Shinsa-dong, Gangnam-gu, Seoul',
buyer_postcode : '123-456',
m_redirect_url : '{Mobile only - URL to redirect to after payment approval}' // Example: https://www.my-service.com/payments/complete/mobile
}, function(rsp) { // callback logic
//* ...Omitted (Check sample code in README file)... *//
});