curl --request POST \
--url https://api-dev.paymentoptions.com/api/v1/server-to-server-interface/payment \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"amount": "200",
"currency": "SGD",
"payment_method": {
"type": "paynow"
},
"merchant_txn_ref": "TEST00989012878787878787878787",
"customer_ip": "124.219.163.171",
"merchant_id": "SG00003085",
"return_url": {
"webhook_url": "https://merchant.example.com/webhook",
"success_url": "https://merchant.example.com/success",
"decline_url": "https://merchant.example.com/decline"
},
"billing_address": {
"country": "JP",
"email": "customer@example.com",
"address1": "Chiyoda1-1",
"phone_number": "767676767",
"city": "Minatoku",
"state": "Tokyoto",
"postal_code": "1000001"
},
"shipping_address": {
"country": "JP",
"email": "customer@example.com",
"address1": "Chiyoda1-1",
"phone_number": "08012341234",
"city": "Minatoku",
"state": "Tokyoto",
"postal_code": "1000001"
},
"time_zone": "Asia/Tokyo"
}
'import requests
url = "https://api-dev.paymentoptions.com/api/v1/server-to-server-interface/payment"
payload = {
"amount": "200",
"currency": "SGD",
"payment_method": { "type": "paynow" },
"merchant_txn_ref": "TEST00989012878787878787878787",
"customer_ip": "124.219.163.171",
"merchant_id": "SG00003085",
"return_url": {
"webhook_url": "https://merchant.example.com/webhook",
"success_url": "https://merchant.example.com/success",
"decline_url": "https://merchant.example.com/decline"
},
"billing_address": {
"country": "JP",
"email": "customer@example.com",
"address1": "Chiyoda1-1",
"phone_number": "767676767",
"city": "Minatoku",
"state": "Tokyoto",
"postal_code": "1000001"
},
"shipping_address": {
"country": "JP",
"email": "customer@example.com",
"address1": "Chiyoda1-1",
"phone_number": "08012341234",
"city": "Minatoku",
"state": "Tokyoto",
"postal_code": "1000001"
},
"time_zone": "Asia/Tokyo"
}
headers = {
"Authorization": "<api-key>",
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
Authorization: '<api-key>',
'x-api-key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
amount: '200',
currency: 'SGD',
payment_method: {type: 'paynow'},
merchant_txn_ref: 'TEST00989012878787878787878787',
customer_ip: '124.219.163.171',
merchant_id: 'SG00003085',
return_url: {
webhook_url: 'https://merchant.example.com/webhook',
success_url: 'https://merchant.example.com/success',
decline_url: 'https://merchant.example.com/decline'
},
billing_address: {
country: 'JP',
email: 'customer@example.com',
address1: 'Chiyoda1-1',
phone_number: '767676767',
city: 'Minatoku',
state: 'Tokyoto',
postal_code: '1000001'
},
shipping_address: {
country: 'JP',
email: 'customer@example.com',
address1: 'Chiyoda1-1',
phone_number: '08012341234',
city: 'Minatoku',
state: 'Tokyoto',
postal_code: '1000001'
},
time_zone: 'Asia/Tokyo'
})
};
fetch('https://api-dev.paymentoptions.com/api/v1/server-to-server-interface/payment', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api-dev.paymentoptions.com/api/v1/server-to-server-interface/payment",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'amount' => '200',
'currency' => 'SGD',
'payment_method' => [
'type' => 'paynow'
],
'merchant_txn_ref' => 'TEST00989012878787878787878787',
'customer_ip' => '124.219.163.171',
'merchant_id' => 'SG00003085',
'return_url' => [
'webhook_url' => 'https://merchant.example.com/webhook',
'success_url' => 'https://merchant.example.com/success',
'decline_url' => 'https://merchant.example.com/decline'
],
'billing_address' => [
'country' => 'JP',
'email' => 'customer@example.com',
'address1' => 'Chiyoda1-1',
'phone_number' => '767676767',
'city' => 'Minatoku',
'state' => 'Tokyoto',
'postal_code' => '1000001'
],
'shipping_address' => [
'country' => 'JP',
'email' => 'customer@example.com',
'address1' => 'Chiyoda1-1',
'phone_number' => '08012341234',
'city' => 'Minatoku',
'state' => 'Tokyoto',
'postal_code' => '1000001'
],
'time_zone' => 'Asia/Tokyo'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api-dev.paymentoptions.com/api/v1/server-to-server-interface/payment"
payload := strings.NewReader("{\n \"amount\": \"200\",\n \"currency\": \"SGD\",\n \"payment_method\": {\n \"type\": \"paynow\"\n },\n \"merchant_txn_ref\": \"TEST00989012878787878787878787\",\n \"customer_ip\": \"124.219.163.171\",\n \"merchant_id\": \"SG00003085\",\n \"return_url\": {\n \"webhook_url\": \"https://merchant.example.com/webhook\",\n \"success_url\": \"https://merchant.example.com/success\",\n \"decline_url\": \"https://merchant.example.com/decline\"\n },\n \"billing_address\": {\n \"country\": \"JP\",\n \"email\": \"customer@example.com\",\n \"address1\": \"Chiyoda1-1\",\n \"phone_number\": \"767676767\",\n \"city\": \"Minatoku\",\n \"state\": \"Tokyoto\",\n \"postal_code\": \"1000001\"\n },\n \"shipping_address\": {\n \"country\": \"JP\",\n \"email\": \"customer@example.com\",\n \"address1\": \"Chiyoda1-1\",\n \"phone_number\": \"08012341234\",\n \"city\": \"Minatoku\",\n \"state\": \"Tokyoto\",\n \"postal_code\": \"1000001\"\n },\n \"time_zone\": \"Asia/Tokyo\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api-dev.paymentoptions.com/api/v1/server-to-server-interface/payment")
.header("Authorization", "<api-key>")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"amount\": \"200\",\n \"currency\": \"SGD\",\n \"payment_method\": {\n \"type\": \"paynow\"\n },\n \"merchant_txn_ref\": \"TEST00989012878787878787878787\",\n \"customer_ip\": \"124.219.163.171\",\n \"merchant_id\": \"SG00003085\",\n \"return_url\": {\n \"webhook_url\": \"https://merchant.example.com/webhook\",\n \"success_url\": \"https://merchant.example.com/success\",\n \"decline_url\": \"https://merchant.example.com/decline\"\n },\n \"billing_address\": {\n \"country\": \"JP\",\n \"email\": \"customer@example.com\",\n \"address1\": \"Chiyoda1-1\",\n \"phone_number\": \"767676767\",\n \"city\": \"Minatoku\",\n \"state\": \"Tokyoto\",\n \"postal_code\": \"1000001\"\n },\n \"shipping_address\": {\n \"country\": \"JP\",\n \"email\": \"customer@example.com\",\n \"address1\": \"Chiyoda1-1\",\n \"phone_number\": \"08012341234\",\n \"city\": \"Minatoku\",\n \"state\": \"Tokyoto\",\n \"postal_code\": \"1000001\"\n },\n \"time_zone\": \"Asia/Tokyo\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-dev.paymentoptions.com/api/v1/server-to-server-interface/payment")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"amount\": \"200\",\n \"currency\": \"SGD\",\n \"payment_method\": {\n \"type\": \"paynow\"\n },\n \"merchant_txn_ref\": \"TEST00989012878787878787878787\",\n \"customer_ip\": \"124.219.163.171\",\n \"merchant_id\": \"SG00003085\",\n \"return_url\": {\n \"webhook_url\": \"https://merchant.example.com/webhook\",\n \"success_url\": \"https://merchant.example.com/success\",\n \"decline_url\": \"https://merchant.example.com/decline\"\n },\n \"billing_address\": {\n \"country\": \"JP\",\n \"email\": \"customer@example.com\",\n \"address1\": \"Chiyoda1-1\",\n \"phone_number\": \"767676767\",\n \"city\": \"Minatoku\",\n \"state\": \"Tokyoto\",\n \"postal_code\": \"1000001\"\n },\n \"shipping_address\": {\n \"country\": \"JP\",\n \"email\": \"customer@example.com\",\n \"address1\": \"Chiyoda1-1\",\n \"phone_number\": \"08012341234\",\n \"city\": \"Minatoku\",\n \"state\": \"Tokyoto\",\n \"postal_code\": \"1000001\"\n },\n \"time_zone\": \"Asia/Tokyo\"\n}"
response = http.request(request)
puts response.read_body{
"id": "cd3c8f8c-75ec-4d63-a90d-10046616c5da",
"url": {
"qrCode": "data:image/png;base64,<BASE64_PNG_DATA>",
"data": "00020101021226490009SG.PAYNOW010120210201213048R0301004082026123152040000530370254032005802SG5919BeanWorks Pte. Ltd.6009SINGAPORE621001063535026304C619"
},
"amount": 200,
"currency": "SGD",
"merchant_txn_ref": "TEST00989012878787878787878787",
"merchant_id": "SG00003085",
"merchant_email": null,
"return_url": {
"webhook_url": "https://merchant.example.com/webhook",
"success_url": "https://merchant.example.com/success",
"decline_url": "https://merchant.example.com/decline"
},
"billing_address": {
"city": "Minatoku",
"email": "customer@example.com",
"state": "Tokyoto",
"country": "JP",
"address1": "Chiyoda1-1",
"postal_code": "1000001",
"phone_number": "767676767"
},
"shipping_address": {},
"redirecturl": {
"qrCode": "data:image/png;base64,<BASE64_PNG_DATA>",
"data": "00020101021226490009SG.PAYNOW010120210201213048R0301004082026123152040000530370254032005802SG5919BeanWorks Pte. Ltd.6009SINGAPORE621001063535026304C619"
}
}QRコード決済
QRコード決済では、対応する決済アプリケーションで生成されたQRコードをスキャンすることで、取引を完了できます。このセクションでは、QRコード決済連携の例としてPayNowを使用します。
curl --request POST \
--url https://api-dev.paymentoptions.com/api/v1/server-to-server-interface/payment \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"amount": "200",
"currency": "SGD",
"payment_method": {
"type": "paynow"
},
"merchant_txn_ref": "TEST00989012878787878787878787",
"customer_ip": "124.219.163.171",
"merchant_id": "SG00003085",
"return_url": {
"webhook_url": "https://merchant.example.com/webhook",
"success_url": "https://merchant.example.com/success",
"decline_url": "https://merchant.example.com/decline"
},
"billing_address": {
"country": "JP",
"email": "customer@example.com",
"address1": "Chiyoda1-1",
"phone_number": "767676767",
"city": "Minatoku",
"state": "Tokyoto",
"postal_code": "1000001"
},
"shipping_address": {
"country": "JP",
"email": "customer@example.com",
"address1": "Chiyoda1-1",
"phone_number": "08012341234",
"city": "Minatoku",
"state": "Tokyoto",
"postal_code": "1000001"
},
"time_zone": "Asia/Tokyo"
}
'import requests
url = "https://api-dev.paymentoptions.com/api/v1/server-to-server-interface/payment"
payload = {
"amount": "200",
"currency": "SGD",
"payment_method": { "type": "paynow" },
"merchant_txn_ref": "TEST00989012878787878787878787",
"customer_ip": "124.219.163.171",
"merchant_id": "SG00003085",
"return_url": {
"webhook_url": "https://merchant.example.com/webhook",
"success_url": "https://merchant.example.com/success",
"decline_url": "https://merchant.example.com/decline"
},
"billing_address": {
"country": "JP",
"email": "customer@example.com",
"address1": "Chiyoda1-1",
"phone_number": "767676767",
"city": "Minatoku",
"state": "Tokyoto",
"postal_code": "1000001"
},
"shipping_address": {
"country": "JP",
"email": "customer@example.com",
"address1": "Chiyoda1-1",
"phone_number": "08012341234",
"city": "Minatoku",
"state": "Tokyoto",
"postal_code": "1000001"
},
"time_zone": "Asia/Tokyo"
}
headers = {
"Authorization": "<api-key>",
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
Authorization: '<api-key>',
'x-api-key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
amount: '200',
currency: 'SGD',
payment_method: {type: 'paynow'},
merchant_txn_ref: 'TEST00989012878787878787878787',
customer_ip: '124.219.163.171',
merchant_id: 'SG00003085',
return_url: {
webhook_url: 'https://merchant.example.com/webhook',
success_url: 'https://merchant.example.com/success',
decline_url: 'https://merchant.example.com/decline'
},
billing_address: {
country: 'JP',
email: 'customer@example.com',
address1: 'Chiyoda1-1',
phone_number: '767676767',
city: 'Minatoku',
state: 'Tokyoto',
postal_code: '1000001'
},
shipping_address: {
country: 'JP',
email: 'customer@example.com',
address1: 'Chiyoda1-1',
phone_number: '08012341234',
city: 'Minatoku',
state: 'Tokyoto',
postal_code: '1000001'
},
time_zone: 'Asia/Tokyo'
})
};
fetch('https://api-dev.paymentoptions.com/api/v1/server-to-server-interface/payment', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api-dev.paymentoptions.com/api/v1/server-to-server-interface/payment",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'amount' => '200',
'currency' => 'SGD',
'payment_method' => [
'type' => 'paynow'
],
'merchant_txn_ref' => 'TEST00989012878787878787878787',
'customer_ip' => '124.219.163.171',
'merchant_id' => 'SG00003085',
'return_url' => [
'webhook_url' => 'https://merchant.example.com/webhook',
'success_url' => 'https://merchant.example.com/success',
'decline_url' => 'https://merchant.example.com/decline'
],
'billing_address' => [
'country' => 'JP',
'email' => 'customer@example.com',
'address1' => 'Chiyoda1-1',
'phone_number' => '767676767',
'city' => 'Minatoku',
'state' => 'Tokyoto',
'postal_code' => '1000001'
],
'shipping_address' => [
'country' => 'JP',
'email' => 'customer@example.com',
'address1' => 'Chiyoda1-1',
'phone_number' => '08012341234',
'city' => 'Minatoku',
'state' => 'Tokyoto',
'postal_code' => '1000001'
],
'time_zone' => 'Asia/Tokyo'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api-dev.paymentoptions.com/api/v1/server-to-server-interface/payment"
payload := strings.NewReader("{\n \"amount\": \"200\",\n \"currency\": \"SGD\",\n \"payment_method\": {\n \"type\": \"paynow\"\n },\n \"merchant_txn_ref\": \"TEST00989012878787878787878787\",\n \"customer_ip\": \"124.219.163.171\",\n \"merchant_id\": \"SG00003085\",\n \"return_url\": {\n \"webhook_url\": \"https://merchant.example.com/webhook\",\n \"success_url\": \"https://merchant.example.com/success\",\n \"decline_url\": \"https://merchant.example.com/decline\"\n },\n \"billing_address\": {\n \"country\": \"JP\",\n \"email\": \"customer@example.com\",\n \"address1\": \"Chiyoda1-1\",\n \"phone_number\": \"767676767\",\n \"city\": \"Minatoku\",\n \"state\": \"Tokyoto\",\n \"postal_code\": \"1000001\"\n },\n \"shipping_address\": {\n \"country\": \"JP\",\n \"email\": \"customer@example.com\",\n \"address1\": \"Chiyoda1-1\",\n \"phone_number\": \"08012341234\",\n \"city\": \"Minatoku\",\n \"state\": \"Tokyoto\",\n \"postal_code\": \"1000001\"\n },\n \"time_zone\": \"Asia/Tokyo\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api-dev.paymentoptions.com/api/v1/server-to-server-interface/payment")
.header("Authorization", "<api-key>")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"amount\": \"200\",\n \"currency\": \"SGD\",\n \"payment_method\": {\n \"type\": \"paynow\"\n },\n \"merchant_txn_ref\": \"TEST00989012878787878787878787\",\n \"customer_ip\": \"124.219.163.171\",\n \"merchant_id\": \"SG00003085\",\n \"return_url\": {\n \"webhook_url\": \"https://merchant.example.com/webhook\",\n \"success_url\": \"https://merchant.example.com/success\",\n \"decline_url\": \"https://merchant.example.com/decline\"\n },\n \"billing_address\": {\n \"country\": \"JP\",\n \"email\": \"customer@example.com\",\n \"address1\": \"Chiyoda1-1\",\n \"phone_number\": \"767676767\",\n \"city\": \"Minatoku\",\n \"state\": \"Tokyoto\",\n \"postal_code\": \"1000001\"\n },\n \"shipping_address\": {\n \"country\": \"JP\",\n \"email\": \"customer@example.com\",\n \"address1\": \"Chiyoda1-1\",\n \"phone_number\": \"08012341234\",\n \"city\": \"Minatoku\",\n \"state\": \"Tokyoto\",\n \"postal_code\": \"1000001\"\n },\n \"time_zone\": \"Asia/Tokyo\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-dev.paymentoptions.com/api/v1/server-to-server-interface/payment")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"amount\": \"200\",\n \"currency\": \"SGD\",\n \"payment_method\": {\n \"type\": \"paynow\"\n },\n \"merchant_txn_ref\": \"TEST00989012878787878787878787\",\n \"customer_ip\": \"124.219.163.171\",\n \"merchant_id\": \"SG00003085\",\n \"return_url\": {\n \"webhook_url\": \"https://merchant.example.com/webhook\",\n \"success_url\": \"https://merchant.example.com/success\",\n \"decline_url\": \"https://merchant.example.com/decline\"\n },\n \"billing_address\": {\n \"country\": \"JP\",\n \"email\": \"customer@example.com\",\n \"address1\": \"Chiyoda1-1\",\n \"phone_number\": \"767676767\",\n \"city\": \"Minatoku\",\n \"state\": \"Tokyoto\",\n \"postal_code\": \"1000001\"\n },\n \"shipping_address\": {\n \"country\": \"JP\",\n \"email\": \"customer@example.com\",\n \"address1\": \"Chiyoda1-1\",\n \"phone_number\": \"08012341234\",\n \"city\": \"Minatoku\",\n \"state\": \"Tokyoto\",\n \"postal_code\": \"1000001\"\n },\n \"time_zone\": \"Asia/Tokyo\"\n}"
response = http.request(request)
puts response.read_body{
"id": "cd3c8f8c-75ec-4d63-a90d-10046616c5da",
"url": {
"qrCode": "data:image/png;base64,<BASE64_PNG_DATA>",
"data": "00020101021226490009SG.PAYNOW010120210201213048R0301004082026123152040000530370254032005802SG5919BeanWorks Pte. Ltd.6009SINGAPORE621001063535026304C619"
},
"amount": 200,
"currency": "SGD",
"merchant_txn_ref": "TEST00989012878787878787878787",
"merchant_id": "SG00003085",
"merchant_email": null,
"return_url": {
"webhook_url": "https://merchant.example.com/webhook",
"success_url": "https://merchant.example.com/success",
"decline_url": "https://merchant.example.com/decline"
},
"billing_address": {
"city": "Minatoku",
"email": "customer@example.com",
"state": "Tokyoto",
"country": "JP",
"address1": "Chiyoda1-1",
"postal_code": "1000001",
"phone_number": "767676767"
},
"shipping_address": {},
"redirecturl": {
"qrCode": "data:image/png;base64,<BASE64_PNG_DATA>",
"data": "00020101021226490009SG.PAYNOW010120210201213048R0301004082026123152040000530370254032005802SG5919BeanWorks Pte. Ltd.6009SINGAPORE621001063535026304C619"
}
}主なポイント
- **加盟店ID(Merchant ID)**は、選択したQRコード決済方法に対応するように設定されている必要があります。
- PayNowを利用する場合、
payment_methodのtypeにpaynowを指定する必要があります。 - PayNowのリクエスト例では、処理通貨として**SGD(シンガポールドル)**を使用しています。
- Direct Payment APIは、顧客が決済を行うためのQRコードデータを生成します。
- PayNowの場合、レスポンスの
url.qrCodeにBase64エンコードされたQRコード画像が、url.dataに対応するQR決済データが含まれます。 - 加盟店は生成されたQRコードを顧客に表示し、対応する銀行アプリケーションでスキャンして決済できるようにします。
- QRコードが生成された時点では、決済の完了を意味しません。
承認
認証用のAPIキー。形式:「Basic YOUR_API_KEY_HERE」
x-api-keyヘッダー専用のAPIキー。
ボディ
PayNowのダイレクト決済リクエスト。請求先住所は必須、配送先住所は任意です。
文字列形式で指定する取引金額。
"200"
決済処理通貨(このPayNowの例ではSGD)。
3"SGD"
決済方法の詳細を含むJSONオブジェクト。
Show child attributes
Show child attributes
加盟店の取引参照ID。
45"TEST00989012878787878787878787"
取引を開始する顧客のIPアドレス。
"124.219.163.171"
加盟店の一意の識別子(DASMID)。
128"SG00003085"
取引のコールバックURLおよびリターンURL。
Show child attributes
Show child attributes
顧客の請求先住所(必須)。
Show child attributes
Show child attributes
配送先住所(任意)。リクエストから省略できます。
Show child attributes
Show child attributes
取引のタイムゾーン。
"Asia/Tokyo"
レスポンス
QRコード決済が作成され、QR決済データが返されました。これは決済完了を意味しません。
取引参照ID。
"cd3c8f8c-75ec-4d63-a90d-10046616c5da"
生成されたQR決済データ(チェックアウトURLではありません)。
Show child attributes
Show child attributes
取引金額。
200
決済処理通貨。
"SGD"
加盟店の取引参照ID。
"TEST00989012878787878787878787"
取引の加盟店ID。
"SG00003085"
加盟店のメールアドレス(取得できる場合)。
null
決済コールバック用のリターンURLの詳細。
Show child attributes
Show child attributes
請求先住所の詳細。
Show child attributes
Show child attributes
配送先住所の詳細。指定されていない場合は空のオブジェクトになることがあります。
Show child attributes
Show child attributes
QR決済データはredirecturlにも含まれます(通常のリダイレクトURLではなくオブジェクトです)。
Show child attributes
Show child attributes