Search…
Korea–Bank Transfer
Korea Bank is a payment method that represents 20% of the local market share. Recurring payments are supported.

Configuring Korea—Bank transfer for DigitalRiver.js

Create a Bank Transfer payment method for your app or website in four easy steps:

Step 1: Build the Bank Transfer objects

Build a Bank Transfer Source Request and Details objects.

Bank Transfer source request object

The Bank Transfer Source Request object requires the following fields.
Field
Value
type
bankTransfer
sessionId
The payment session identifier.
owner

Bank Transfer source details object

The Bank Transfer Source Details object requires the following fields.
1
{
2
"returnUrl": "https://example.com"
3
}
Copied!
Field
Required/Optional
Description
returnUrl
Required
If you choose to use the full redirect flow, this is where you will redirect your Customer to after authorizing or canceling within the Bank Transfer experience.

Step 2: Create the Bank Transfer source using DigitalRiver.js

Use the DigitalRiver.js library to create and mount elements to the HTML container.
1
var data = {
2
"type": "bankTransfer",
3
"sessionId": "3c9473b0-630d-4f20-af61-63d3aa8acb35",
4
"owner": {
5
firstName: "John",
6
lastName: "Doe",
7
8
address: {
9
line1: "1234 Fake Street",
10
line2: "Yaum-dong",
11
city: "Ulsan-si",
12
state: "Kyongsangnamdo",
13
postalCode: "100-011",
14
country: "KR"
15
}
16
},
17
"bankTransfer": {
18
"returnUrl": "https://yourReturnUrl.com"
19
}
20
}
21
22
digitalriver.createSource(data).then(function(result) {
23
if (result.error) {
24
//handle errors
25
} else {
26
var source = result.source;
27
//send source to back end
28
sendToBackend(source);
29
}
30
});
Copied!

Bank Transfer source example

1
{
2
"clientId": "gc",
3
"channelId": "drdod15",
4
"liveMode": false,
5
"id": "bdcf5832-fc2c-4c79-92e0-85b261s18ae0",
6
"clientSecret": "bdcf5832-fc2c-4c79-92e0-85b261s18ae0_bdcf5832-fc2c-4c79-92e0-85b261s18ae0",
7
"sessionId": "3c9473b0-630d-4f20-af61-63d3aa8acb35",
8
"type": "bankTransfer",
9
"reusable": false,
10
"owner": {
11
"firstName": "John",
12
"lastName": "Doe",
13
"email": "[email protected]",
14
"phoneNumber": "000-000-0000",
15
"address": {
16
"line1": "1-16-24 Minami-gyotoku",
17
"line2": "Ichikawa-shi",
18
"city": "Chiba",
19
"state": "Kyongsangnamdo",
20
"postalCode": "272-0138",
21
"country": "JP"
22
}
23
},
24
"amount": "100.00",
25
"currency": "KRW",
26
"state": "chargeable",
27
"creationIp": "209.87.178.4",
28
"createdTime": "2019-05-22T02:40:53.631Z",
29
"updatedTime": "2019-05-22T02:40:53.631Z",
30
"flow": "redirect",
31
"redirect": {
32
"redirectUrl": "https://api.digitalriver.com:443/payments/redirects/06e428cf-e23e-4ee9-b64f-ce17de062fd1?apiKey=pk_test_6cb0fe9ce312d093a9ad906f6c589e2d",
33
"returnUrl": "https://example.com"
34
},
35
"bankTransfer": {}
36
}
Copied!

Step 3: Authorize a Bank Transfer source

When you create a Bank Transfer source, the customer is required to authorize the charge through their payment provider. You can accomplish this by redirecting the customer to their payment provider.

Redirecting the customer for Bank Transfer authorization

To redirect your customer to the payment provider for authorization, use the redirectUrl parameter in your createSource response.
1
window.location.href = sourceResponse.redirect.redirectUrl;
Copied!
The payment provider will present the customer with the transaction details where they can authorize, or cancel the transaction. A successful authorization redirects the customer to the Bank Transfer Return URL parameter you specified when you created the source.
Once authorized, the source state will change to chargeable.
1
{
2
"clientId": "gc",
3
"channelId": "drdod15",
4
"liveMode": false,
5
"id": "bdcf5832-fc2c-4c79-92e0-85b261s18ae0",
6
"clientSecret": "bdcf5832-fc2c-4c79-92e0-85b261s18ae0_bdcf5832-fc2c-4c79-92e0-85b261s18ae0",
7
"type": "bankTransfer",
8
"reusable": false,
9
"owner": {
10
"firstName": "John",
11
"lastName": "Doe",
12
"email": "[email protected]",
13
"phoneNumber": "000-000-0000",
14
"address": {
15
"line1": "1-16-24 Minami-gyotoku",
16
"line2": "Ichikawa-shi",
17
"city": "Chiba",
18
"state": "Kyongsangnamdo",
19
"postalCode": "272-0138",
20
"country": "JP"
21
}
22
},
23
"amount": "100.00",
24
"currency": "KRW",
25
"state": "chargeable",
26
"creationIp": "209.87.178.4",
27
"createdTime": "2019-05-22T02:40:53.631Z",
28
"updatedTime": "2019-05-22T02:40:53.631Z",
29
"flow": "redirect",
30
"redirect": {
31
"redirectUrl": "https://api.digitalriver.com:443/payments/redirects/06e428cf-e23e-4ee9-b64f-ce17de062fd1?apiKey=pk_test_6cb0fe9ce312d093a9ad906f6c589e2d",
32
"returnUrl": "https://example.com"
33
},
34
"bankTransfer": {}
35
}
Copied!

Step 4: Use the Authorized source

Once authorized, you can use the source by attaching it to a cart.
POST /v1/shoppers/me/carts/active/apply-payment-method
1
{
2
"paymentMethod": {
3
"sourceId": "e7ba0595-059c-460c-bad8-2812123b9313"
4
}
5
}
Copied!

Supported markets

For information on supported markets and currencies for Drop-in and DigitalRiver.js, go to:
Last modified 28d ago