curl --request POST \
--url https://waffo.com/api/v1/order/session/update \
--header 'Content-Type: application/json' \
--data '
{
"paymentRequestId": "<string>",
"merchantOrderId": "<string>",
"orderCurrency": "IDR",
"orderDescription": "replace order desc...,",
"orderRequestedAt": "2023-11-07T05:31:56Z",
"notifyUrl": "https://merchant-notify-url.com",
"merchantInfo": {
"merchantId": 1000000201,
"subMerchantId": "<string>"
},
"userInfo": {
"userId": "0001",
"userEmail": "0001@examples.com",
"userTerminal": "WEB",
"userCreatedAt": "2021-05-16T08:00:00.000Z",
"userPhone": "<string>",
"userCountryCode": "<string>",
"userFirstName": "<string>",
"userLastName": "<string>",
"userBrowserIp": "<string>",
"userAgent": "<string>",
"userReceiptUrl": "<string>"
},
"paymentInfo": {
"productName": "ONE_TIME_PAYMENT",
"payMethodType": "EWALLET",
"payMethodName": "DANA",
"payMethodProperties": "<string>",
"userPaymentAccessToken": "<string>",
"payMethodUserAccountNo": "<string>",
"payMethodUserAccountType": "<string>",
"cashierLanguage": "<string>",
"receiptTemplateId": "<string>",
"cashierAppearance": "<string>",
"payMethodCountry": "<string>",
"captureMode": "<string>",
"merchantInitiatedMode": "<string>",
"setupFutureUsage": true
},
"sessionId": "<string>",
"orderAmount": 10,
"promotionInfo": {
"promotionCode": "<string>",
"couponId": "<string>"
},
"userCurrency": "IDR",
"orderExpiredAt": "2023-11-07T05:31:56Z",
"successRedirectUrl": "https://merchant-success-redirecturl.com",
"failedRedirectUrl": "https://merchant-failed-redirecturl.com",
"cancelRedirectUrl": "https://merchant-cancel-url.com",
"extendInfo": "<string>",
"brandInfo": {
"cashierLogoUrl": "<string>",
"cashierDisplayName": "<string>",
"cashierProductImageUrl": "<string>"
},
"cardInfo": null,
"paymentTokenData": "<string>",
"riskData": {
"userType": "Individual",
"userCategory": "Member",
"userLegalName": "<string>",
"userDisplayName": "<string>",
"userRegistrationIp": "252.13.13.26",
"userLastSeenIp": "252.10.10.20",
"userIsNew": "No",
"userIsFirstPurchase": "No"
},
"x402Info": {
"x402Request": true,
"paymentSignatureHeader": "<string>"
},
"taxInfo": {
"taxCountry": "PHL",
"orderAmountInclTax": 112
},
"addressInfo": {
"address": "street 123 ...",
"city": "city123",
"region": "region or state or province 123",
"postcode": 112233,
"addressCountryCode": "IDN"
}
}
'import requests
url = "https://waffo.com/api/v1/order/session/update"
payload = {
"paymentRequestId": "<string>",
"merchantOrderId": "<string>",
"orderCurrency": "IDR",
"orderDescription": "replace order desc...,",
"orderRequestedAt": "2023-11-07T05:31:56Z",
"notifyUrl": "https://merchant-notify-url.com",
"merchantInfo": {
"merchantId": 1000000201,
"subMerchantId": "<string>"
},
"userInfo": {
"userId": "0001",
"userEmail": "0001@examples.com",
"userTerminal": "WEB",
"userCreatedAt": "2021-05-16T08:00:00.000Z",
"userPhone": "<string>",
"userCountryCode": "<string>",
"userFirstName": "<string>",
"userLastName": "<string>",
"userBrowserIp": "<string>",
"userAgent": "<string>",
"userReceiptUrl": "<string>"
},
"paymentInfo": {
"productName": "ONE_TIME_PAYMENT",
"payMethodType": "EWALLET",
"payMethodName": "DANA",
"payMethodProperties": "<string>",
"userPaymentAccessToken": "<string>",
"payMethodUserAccountNo": "<string>",
"payMethodUserAccountType": "<string>",
"cashierLanguage": "<string>",
"receiptTemplateId": "<string>",
"cashierAppearance": "<string>",
"payMethodCountry": "<string>",
"captureMode": "<string>",
"merchantInitiatedMode": "<string>",
"setupFutureUsage": True
},
"sessionId": "<string>",
"orderAmount": 10,
"promotionInfo": {
"promotionCode": "<string>",
"couponId": "<string>"
},
"userCurrency": "IDR",
"orderExpiredAt": "2023-11-07T05:31:56Z",
"successRedirectUrl": "https://merchant-success-redirecturl.com",
"failedRedirectUrl": "https://merchant-failed-redirecturl.com",
"cancelRedirectUrl": "https://merchant-cancel-url.com",
"extendInfo": "<string>",
"brandInfo": {
"cashierLogoUrl": "<string>",
"cashierDisplayName": "<string>",
"cashierProductImageUrl": "<string>"
},
"cardInfo": None,
"paymentTokenData": "<string>",
"riskData": {
"userType": "Individual",
"userCategory": "Member",
"userLegalName": "<string>",
"userDisplayName": "<string>",
"userRegistrationIp": "252.13.13.26",
"userLastSeenIp": "252.10.10.20",
"userIsNew": "No",
"userIsFirstPurchase": "No"
},
"x402Info": {
"x402Request": True,
"paymentSignatureHeader": "<string>"
},
"taxInfo": {
"taxCountry": "PHL",
"orderAmountInclTax": 112
},
"addressInfo": {
"address": "street 123 ...",
"city": "city123",
"region": "region or state or province 123",
"postcode": 112233,
"addressCountryCode": "IDN"
}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
paymentRequestId: '<string>',
merchantOrderId: '<string>',
orderCurrency: 'IDR',
orderDescription: 'replace order desc...,',
orderRequestedAt: '2023-11-07T05:31:56Z',
notifyUrl: 'https://merchant-notify-url.com',
merchantInfo: {merchantId: 1000000201, subMerchantId: '<string>'},
userInfo: {
userId: '0001',
userEmail: '0001@examples.com',
userTerminal: 'WEB',
userCreatedAt: '2021-05-16T08:00:00.000Z',
userPhone: '<string>',
userCountryCode: '<string>',
userFirstName: '<string>',
userLastName: '<string>',
userBrowserIp: '<string>',
userAgent: '<string>',
userReceiptUrl: '<string>'
},
paymentInfo: {
productName: 'ONE_TIME_PAYMENT',
payMethodType: 'EWALLET',
payMethodName: 'DANA',
payMethodProperties: '<string>',
userPaymentAccessToken: '<string>',
payMethodUserAccountNo: '<string>',
payMethodUserAccountType: '<string>',
cashierLanguage: '<string>',
receiptTemplateId: '<string>',
cashierAppearance: '<string>',
payMethodCountry: '<string>',
captureMode: '<string>',
merchantInitiatedMode: '<string>',
setupFutureUsage: true
},
sessionId: '<string>',
orderAmount: 10,
promotionInfo: {promotionCode: '<string>', couponId: '<string>'},
userCurrency: 'IDR',
orderExpiredAt: '2023-11-07T05:31:56Z',
successRedirectUrl: 'https://merchant-success-redirecturl.com',
failedRedirectUrl: 'https://merchant-failed-redirecturl.com',
cancelRedirectUrl: 'https://merchant-cancel-url.com',
extendInfo: '<string>',
brandInfo: {
cashierLogoUrl: '<string>',
cashierDisplayName: '<string>',
cashierProductImageUrl: '<string>'
},
cardInfo: null,
paymentTokenData: '<string>',
riskData: {
userType: 'Individual',
userCategory: 'Member',
userLegalName: '<string>',
userDisplayName: '<string>',
userRegistrationIp: '252.13.13.26',
userLastSeenIp: '252.10.10.20',
userIsNew: 'No',
userIsFirstPurchase: 'No'
},
x402Info: {x402Request: true, paymentSignatureHeader: '<string>'},
taxInfo: {taxCountry: 'PHL', orderAmountInclTax: 112},
addressInfo: {
address: 'street 123 ...',
city: 'city123',
region: 'region or state or province 123',
postcode: 112233,
addressCountryCode: 'IDN'
}
})
};
fetch('https://waffo.com/api/v1/order/session/update', 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://waffo.com/api/v1/order/session/update",
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([
'paymentRequestId' => '<string>',
'merchantOrderId' => '<string>',
'orderCurrency' => 'IDR',
'orderDescription' => 'replace order desc...,',
'orderRequestedAt' => '2023-11-07T05:31:56Z',
'notifyUrl' => 'https://merchant-notify-url.com',
'merchantInfo' => [
'merchantId' => 1000000201,
'subMerchantId' => '<string>'
],
'userInfo' => [
'userId' => '0001',
'userEmail' => '0001@examples.com',
'userTerminal' => 'WEB',
'userCreatedAt' => '2021-05-16T08:00:00.000Z',
'userPhone' => '<string>',
'userCountryCode' => '<string>',
'userFirstName' => '<string>',
'userLastName' => '<string>',
'userBrowserIp' => '<string>',
'userAgent' => '<string>',
'userReceiptUrl' => '<string>'
],
'paymentInfo' => [
'productName' => 'ONE_TIME_PAYMENT',
'payMethodType' => 'EWALLET',
'payMethodName' => 'DANA',
'payMethodProperties' => '<string>',
'userPaymentAccessToken' => '<string>',
'payMethodUserAccountNo' => '<string>',
'payMethodUserAccountType' => '<string>',
'cashierLanguage' => '<string>',
'receiptTemplateId' => '<string>',
'cashierAppearance' => '<string>',
'payMethodCountry' => '<string>',
'captureMode' => '<string>',
'merchantInitiatedMode' => '<string>',
'setupFutureUsage' => true
],
'sessionId' => '<string>',
'orderAmount' => 10,
'promotionInfo' => [
'promotionCode' => '<string>',
'couponId' => '<string>'
],
'userCurrency' => 'IDR',
'orderExpiredAt' => '2023-11-07T05:31:56Z',
'successRedirectUrl' => 'https://merchant-success-redirecturl.com',
'failedRedirectUrl' => 'https://merchant-failed-redirecturl.com',
'cancelRedirectUrl' => 'https://merchant-cancel-url.com',
'extendInfo' => '<string>',
'brandInfo' => [
'cashierLogoUrl' => '<string>',
'cashierDisplayName' => '<string>',
'cashierProductImageUrl' => '<string>'
],
'cardInfo' => null,
'paymentTokenData' => '<string>',
'riskData' => [
'userType' => 'Individual',
'userCategory' => 'Member',
'userLegalName' => '<string>',
'userDisplayName' => '<string>',
'userRegistrationIp' => '252.13.13.26',
'userLastSeenIp' => '252.10.10.20',
'userIsNew' => 'No',
'userIsFirstPurchase' => 'No'
],
'x402Info' => [
'x402Request' => true,
'paymentSignatureHeader' => '<string>'
],
'taxInfo' => [
'taxCountry' => 'PHL',
'orderAmountInclTax' => 112
],
'addressInfo' => [
'address' => 'street 123 ...',
'city' => 'city123',
'region' => 'region or state or province 123',
'postcode' => 112233,
'addressCountryCode' => 'IDN'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$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://waffo.com/api/v1/order/session/update"
payload := strings.NewReader("{\n \"paymentRequestId\": \"<string>\",\n \"merchantOrderId\": \"<string>\",\n \"orderCurrency\": \"IDR\",\n \"orderDescription\": \"replace order desc...,\",\n \"orderRequestedAt\": \"2023-11-07T05:31:56Z\",\n \"notifyUrl\": \"https://merchant-notify-url.com\",\n \"merchantInfo\": {\n \"merchantId\": 1000000201,\n \"subMerchantId\": \"<string>\"\n },\n \"userInfo\": {\n \"userId\": \"0001\",\n \"userEmail\": \"0001@examples.com\",\n \"userTerminal\": \"WEB\",\n \"userCreatedAt\": \"2021-05-16T08:00:00.000Z\",\n \"userPhone\": \"<string>\",\n \"userCountryCode\": \"<string>\",\n \"userFirstName\": \"<string>\",\n \"userLastName\": \"<string>\",\n \"userBrowserIp\": \"<string>\",\n \"userAgent\": \"<string>\",\n \"userReceiptUrl\": \"<string>\"\n },\n \"paymentInfo\": {\n \"productName\": \"ONE_TIME_PAYMENT\",\n \"payMethodType\": \"EWALLET\",\n \"payMethodName\": \"DANA\",\n \"payMethodProperties\": \"<string>\",\n \"userPaymentAccessToken\": \"<string>\",\n \"payMethodUserAccountNo\": \"<string>\",\n \"payMethodUserAccountType\": \"<string>\",\n \"cashierLanguage\": \"<string>\",\n \"receiptTemplateId\": \"<string>\",\n \"cashierAppearance\": \"<string>\",\n \"payMethodCountry\": \"<string>\",\n \"captureMode\": \"<string>\",\n \"merchantInitiatedMode\": \"<string>\",\n \"setupFutureUsage\": true\n },\n \"sessionId\": \"<string>\",\n \"orderAmount\": 10,\n \"promotionInfo\": {\n \"promotionCode\": \"<string>\",\n \"couponId\": \"<string>\"\n },\n \"userCurrency\": \"IDR\",\n \"orderExpiredAt\": \"2023-11-07T05:31:56Z\",\n \"successRedirectUrl\": \"https://merchant-success-redirecturl.com\",\n \"failedRedirectUrl\": \"https://merchant-failed-redirecturl.com\",\n \"cancelRedirectUrl\": \"https://merchant-cancel-url.com\",\n \"extendInfo\": \"<string>\",\n \"brandInfo\": {\n \"cashierLogoUrl\": \"<string>\",\n \"cashierDisplayName\": \"<string>\",\n \"cashierProductImageUrl\": \"<string>\"\n },\n \"cardInfo\": null,\n \"paymentTokenData\": \"<string>\",\n \"riskData\": {\n \"userType\": \"Individual\",\n \"userCategory\": \"Member\",\n \"userLegalName\": \"<string>\",\n \"userDisplayName\": \"<string>\",\n \"userRegistrationIp\": \"252.13.13.26\",\n \"userLastSeenIp\": \"252.10.10.20\",\n \"userIsNew\": \"No\",\n \"userIsFirstPurchase\": \"No\"\n },\n \"x402Info\": {\n \"x402Request\": true,\n \"paymentSignatureHeader\": \"<string>\"\n },\n \"taxInfo\": {\n \"taxCountry\": \"PHL\",\n \"orderAmountInclTax\": 112\n },\n \"addressInfo\": {\n \"address\": \"street 123 ...\",\n \"city\": \"city123\",\n \"region\": \"region or state or province 123\",\n \"postcode\": 112233,\n \"addressCountryCode\": \"IDN\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
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://waffo.com/api/v1/order/session/update")
.header("Content-Type", "application/json")
.body("{\n \"paymentRequestId\": \"<string>\",\n \"merchantOrderId\": \"<string>\",\n \"orderCurrency\": \"IDR\",\n \"orderDescription\": \"replace order desc...,\",\n \"orderRequestedAt\": \"2023-11-07T05:31:56Z\",\n \"notifyUrl\": \"https://merchant-notify-url.com\",\n \"merchantInfo\": {\n \"merchantId\": 1000000201,\n \"subMerchantId\": \"<string>\"\n },\n \"userInfo\": {\n \"userId\": \"0001\",\n \"userEmail\": \"0001@examples.com\",\n \"userTerminal\": \"WEB\",\n \"userCreatedAt\": \"2021-05-16T08:00:00.000Z\",\n \"userPhone\": \"<string>\",\n \"userCountryCode\": \"<string>\",\n \"userFirstName\": \"<string>\",\n \"userLastName\": \"<string>\",\n \"userBrowserIp\": \"<string>\",\n \"userAgent\": \"<string>\",\n \"userReceiptUrl\": \"<string>\"\n },\n \"paymentInfo\": {\n \"productName\": \"ONE_TIME_PAYMENT\",\n \"payMethodType\": \"EWALLET\",\n \"payMethodName\": \"DANA\",\n \"payMethodProperties\": \"<string>\",\n \"userPaymentAccessToken\": \"<string>\",\n \"payMethodUserAccountNo\": \"<string>\",\n \"payMethodUserAccountType\": \"<string>\",\n \"cashierLanguage\": \"<string>\",\n \"receiptTemplateId\": \"<string>\",\n \"cashierAppearance\": \"<string>\",\n \"payMethodCountry\": \"<string>\",\n \"captureMode\": \"<string>\",\n \"merchantInitiatedMode\": \"<string>\",\n \"setupFutureUsage\": true\n },\n \"sessionId\": \"<string>\",\n \"orderAmount\": 10,\n \"promotionInfo\": {\n \"promotionCode\": \"<string>\",\n \"couponId\": \"<string>\"\n },\n \"userCurrency\": \"IDR\",\n \"orderExpiredAt\": \"2023-11-07T05:31:56Z\",\n \"successRedirectUrl\": \"https://merchant-success-redirecturl.com\",\n \"failedRedirectUrl\": \"https://merchant-failed-redirecturl.com\",\n \"cancelRedirectUrl\": \"https://merchant-cancel-url.com\",\n \"extendInfo\": \"<string>\",\n \"brandInfo\": {\n \"cashierLogoUrl\": \"<string>\",\n \"cashierDisplayName\": \"<string>\",\n \"cashierProductImageUrl\": \"<string>\"\n },\n \"cardInfo\": null,\n \"paymentTokenData\": \"<string>\",\n \"riskData\": {\n \"userType\": \"Individual\",\n \"userCategory\": \"Member\",\n \"userLegalName\": \"<string>\",\n \"userDisplayName\": \"<string>\",\n \"userRegistrationIp\": \"252.13.13.26\",\n \"userLastSeenIp\": \"252.10.10.20\",\n \"userIsNew\": \"No\",\n \"userIsFirstPurchase\": \"No\"\n },\n \"x402Info\": {\n \"x402Request\": true,\n \"paymentSignatureHeader\": \"<string>\"\n },\n \"taxInfo\": {\n \"taxCountry\": \"PHL\",\n \"orderAmountInclTax\": 112\n },\n \"addressInfo\": {\n \"address\": \"street 123 ...\",\n \"city\": \"city123\",\n \"region\": \"region or state or province 123\",\n \"postcode\": 112233,\n \"addressCountryCode\": \"IDN\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://waffo.com/api/v1/order/session/update")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"paymentRequestId\": \"<string>\",\n \"merchantOrderId\": \"<string>\",\n \"orderCurrency\": \"IDR\",\n \"orderDescription\": \"replace order desc...,\",\n \"orderRequestedAt\": \"2023-11-07T05:31:56Z\",\n \"notifyUrl\": \"https://merchant-notify-url.com\",\n \"merchantInfo\": {\n \"merchantId\": 1000000201,\n \"subMerchantId\": \"<string>\"\n },\n \"userInfo\": {\n \"userId\": \"0001\",\n \"userEmail\": \"0001@examples.com\",\n \"userTerminal\": \"WEB\",\n \"userCreatedAt\": \"2021-05-16T08:00:00.000Z\",\n \"userPhone\": \"<string>\",\n \"userCountryCode\": \"<string>\",\n \"userFirstName\": \"<string>\",\n \"userLastName\": \"<string>\",\n \"userBrowserIp\": \"<string>\",\n \"userAgent\": \"<string>\",\n \"userReceiptUrl\": \"<string>\"\n },\n \"paymentInfo\": {\n \"productName\": \"ONE_TIME_PAYMENT\",\n \"payMethodType\": \"EWALLET\",\n \"payMethodName\": \"DANA\",\n \"payMethodProperties\": \"<string>\",\n \"userPaymentAccessToken\": \"<string>\",\n \"payMethodUserAccountNo\": \"<string>\",\n \"payMethodUserAccountType\": \"<string>\",\n \"cashierLanguage\": \"<string>\",\n \"receiptTemplateId\": \"<string>\",\n \"cashierAppearance\": \"<string>\",\n \"payMethodCountry\": \"<string>\",\n \"captureMode\": \"<string>\",\n \"merchantInitiatedMode\": \"<string>\",\n \"setupFutureUsage\": true\n },\n \"sessionId\": \"<string>\",\n \"orderAmount\": 10,\n \"promotionInfo\": {\n \"promotionCode\": \"<string>\",\n \"couponId\": \"<string>\"\n },\n \"userCurrency\": \"IDR\",\n \"orderExpiredAt\": \"2023-11-07T05:31:56Z\",\n \"successRedirectUrl\": \"https://merchant-success-redirecturl.com\",\n \"failedRedirectUrl\": \"https://merchant-failed-redirecturl.com\",\n \"cancelRedirectUrl\": \"https://merchant-cancel-url.com\",\n \"extendInfo\": \"<string>\",\n \"brandInfo\": {\n \"cashierLogoUrl\": \"<string>\",\n \"cashierDisplayName\": \"<string>\",\n \"cashierProductImageUrl\": \"<string>\"\n },\n \"cardInfo\": null,\n \"paymentTokenData\": \"<string>\",\n \"riskData\": {\n \"userType\": \"Individual\",\n \"userCategory\": \"Member\",\n \"userLegalName\": \"<string>\",\n \"userDisplayName\": \"<string>\",\n \"userRegistrationIp\": \"252.13.13.26\",\n \"userLastSeenIp\": \"252.10.10.20\",\n \"userIsNew\": \"No\",\n \"userIsFirstPurchase\": \"No\"\n },\n \"x402Info\": {\n \"x402Request\": true,\n \"paymentSignatureHeader\": \"<string>\"\n },\n \"taxInfo\": {\n \"taxCountry\": \"PHL\",\n \"orderAmountInclTax\": 112\n },\n \"addressInfo\": {\n \"address\": \"street 123 ...\",\n \"city\": \"city123\",\n \"region\": \"region or state or province 123\",\n \"postcode\": 112233,\n \"addressCountryCode\": \"IDN\"\n }\n}"
response = http.request(request)
puts response.read_body{
"code": 0,
"msg": "success",
"data": {
"sessionId": "<string>",
"expiresAt": 123
}
}Update payment session
Recalculates an existing payment session (reprice / currency change / quote refresh). Takes the same request body as Payment session create plus a sessionId; sessionId and expiry stay unchanged, the confirm token is re-signed.
curl --request POST \
--url https://waffo.com/api/v1/order/session/update \
--header 'Content-Type: application/json' \
--data '
{
"paymentRequestId": "<string>",
"merchantOrderId": "<string>",
"orderCurrency": "IDR",
"orderDescription": "replace order desc...,",
"orderRequestedAt": "2023-11-07T05:31:56Z",
"notifyUrl": "https://merchant-notify-url.com",
"merchantInfo": {
"merchantId": 1000000201,
"subMerchantId": "<string>"
},
"userInfo": {
"userId": "0001",
"userEmail": "0001@examples.com",
"userTerminal": "WEB",
"userCreatedAt": "2021-05-16T08:00:00.000Z",
"userPhone": "<string>",
"userCountryCode": "<string>",
"userFirstName": "<string>",
"userLastName": "<string>",
"userBrowserIp": "<string>",
"userAgent": "<string>",
"userReceiptUrl": "<string>"
},
"paymentInfo": {
"productName": "ONE_TIME_PAYMENT",
"payMethodType": "EWALLET",
"payMethodName": "DANA",
"payMethodProperties": "<string>",
"userPaymentAccessToken": "<string>",
"payMethodUserAccountNo": "<string>",
"payMethodUserAccountType": "<string>",
"cashierLanguage": "<string>",
"receiptTemplateId": "<string>",
"cashierAppearance": "<string>",
"payMethodCountry": "<string>",
"captureMode": "<string>",
"merchantInitiatedMode": "<string>",
"setupFutureUsage": true
},
"sessionId": "<string>",
"orderAmount": 10,
"promotionInfo": {
"promotionCode": "<string>",
"couponId": "<string>"
},
"userCurrency": "IDR",
"orderExpiredAt": "2023-11-07T05:31:56Z",
"successRedirectUrl": "https://merchant-success-redirecturl.com",
"failedRedirectUrl": "https://merchant-failed-redirecturl.com",
"cancelRedirectUrl": "https://merchant-cancel-url.com",
"extendInfo": "<string>",
"brandInfo": {
"cashierLogoUrl": "<string>",
"cashierDisplayName": "<string>",
"cashierProductImageUrl": "<string>"
},
"cardInfo": null,
"paymentTokenData": "<string>",
"riskData": {
"userType": "Individual",
"userCategory": "Member",
"userLegalName": "<string>",
"userDisplayName": "<string>",
"userRegistrationIp": "252.13.13.26",
"userLastSeenIp": "252.10.10.20",
"userIsNew": "No",
"userIsFirstPurchase": "No"
},
"x402Info": {
"x402Request": true,
"paymentSignatureHeader": "<string>"
},
"taxInfo": {
"taxCountry": "PHL",
"orderAmountInclTax": 112
},
"addressInfo": {
"address": "street 123 ...",
"city": "city123",
"region": "region or state or province 123",
"postcode": 112233,
"addressCountryCode": "IDN"
}
}
'import requests
url = "https://waffo.com/api/v1/order/session/update"
payload = {
"paymentRequestId": "<string>",
"merchantOrderId": "<string>",
"orderCurrency": "IDR",
"orderDescription": "replace order desc...,",
"orderRequestedAt": "2023-11-07T05:31:56Z",
"notifyUrl": "https://merchant-notify-url.com",
"merchantInfo": {
"merchantId": 1000000201,
"subMerchantId": "<string>"
},
"userInfo": {
"userId": "0001",
"userEmail": "0001@examples.com",
"userTerminal": "WEB",
"userCreatedAt": "2021-05-16T08:00:00.000Z",
"userPhone": "<string>",
"userCountryCode": "<string>",
"userFirstName": "<string>",
"userLastName": "<string>",
"userBrowserIp": "<string>",
"userAgent": "<string>",
"userReceiptUrl": "<string>"
},
"paymentInfo": {
"productName": "ONE_TIME_PAYMENT",
"payMethodType": "EWALLET",
"payMethodName": "DANA",
"payMethodProperties": "<string>",
"userPaymentAccessToken": "<string>",
"payMethodUserAccountNo": "<string>",
"payMethodUserAccountType": "<string>",
"cashierLanguage": "<string>",
"receiptTemplateId": "<string>",
"cashierAppearance": "<string>",
"payMethodCountry": "<string>",
"captureMode": "<string>",
"merchantInitiatedMode": "<string>",
"setupFutureUsage": True
},
"sessionId": "<string>",
"orderAmount": 10,
"promotionInfo": {
"promotionCode": "<string>",
"couponId": "<string>"
},
"userCurrency": "IDR",
"orderExpiredAt": "2023-11-07T05:31:56Z",
"successRedirectUrl": "https://merchant-success-redirecturl.com",
"failedRedirectUrl": "https://merchant-failed-redirecturl.com",
"cancelRedirectUrl": "https://merchant-cancel-url.com",
"extendInfo": "<string>",
"brandInfo": {
"cashierLogoUrl": "<string>",
"cashierDisplayName": "<string>",
"cashierProductImageUrl": "<string>"
},
"cardInfo": None,
"paymentTokenData": "<string>",
"riskData": {
"userType": "Individual",
"userCategory": "Member",
"userLegalName": "<string>",
"userDisplayName": "<string>",
"userRegistrationIp": "252.13.13.26",
"userLastSeenIp": "252.10.10.20",
"userIsNew": "No",
"userIsFirstPurchase": "No"
},
"x402Info": {
"x402Request": True,
"paymentSignatureHeader": "<string>"
},
"taxInfo": {
"taxCountry": "PHL",
"orderAmountInclTax": 112
},
"addressInfo": {
"address": "street 123 ...",
"city": "city123",
"region": "region or state or province 123",
"postcode": 112233,
"addressCountryCode": "IDN"
}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
paymentRequestId: '<string>',
merchantOrderId: '<string>',
orderCurrency: 'IDR',
orderDescription: 'replace order desc...,',
orderRequestedAt: '2023-11-07T05:31:56Z',
notifyUrl: 'https://merchant-notify-url.com',
merchantInfo: {merchantId: 1000000201, subMerchantId: '<string>'},
userInfo: {
userId: '0001',
userEmail: '0001@examples.com',
userTerminal: 'WEB',
userCreatedAt: '2021-05-16T08:00:00.000Z',
userPhone: '<string>',
userCountryCode: '<string>',
userFirstName: '<string>',
userLastName: '<string>',
userBrowserIp: '<string>',
userAgent: '<string>',
userReceiptUrl: '<string>'
},
paymentInfo: {
productName: 'ONE_TIME_PAYMENT',
payMethodType: 'EWALLET',
payMethodName: 'DANA',
payMethodProperties: '<string>',
userPaymentAccessToken: '<string>',
payMethodUserAccountNo: '<string>',
payMethodUserAccountType: '<string>',
cashierLanguage: '<string>',
receiptTemplateId: '<string>',
cashierAppearance: '<string>',
payMethodCountry: '<string>',
captureMode: '<string>',
merchantInitiatedMode: '<string>',
setupFutureUsage: true
},
sessionId: '<string>',
orderAmount: 10,
promotionInfo: {promotionCode: '<string>', couponId: '<string>'},
userCurrency: 'IDR',
orderExpiredAt: '2023-11-07T05:31:56Z',
successRedirectUrl: 'https://merchant-success-redirecturl.com',
failedRedirectUrl: 'https://merchant-failed-redirecturl.com',
cancelRedirectUrl: 'https://merchant-cancel-url.com',
extendInfo: '<string>',
brandInfo: {
cashierLogoUrl: '<string>',
cashierDisplayName: '<string>',
cashierProductImageUrl: '<string>'
},
cardInfo: null,
paymentTokenData: '<string>',
riskData: {
userType: 'Individual',
userCategory: 'Member',
userLegalName: '<string>',
userDisplayName: '<string>',
userRegistrationIp: '252.13.13.26',
userLastSeenIp: '252.10.10.20',
userIsNew: 'No',
userIsFirstPurchase: 'No'
},
x402Info: {x402Request: true, paymentSignatureHeader: '<string>'},
taxInfo: {taxCountry: 'PHL', orderAmountInclTax: 112},
addressInfo: {
address: 'street 123 ...',
city: 'city123',
region: 'region or state or province 123',
postcode: 112233,
addressCountryCode: 'IDN'
}
})
};
fetch('https://waffo.com/api/v1/order/session/update', 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://waffo.com/api/v1/order/session/update",
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([
'paymentRequestId' => '<string>',
'merchantOrderId' => '<string>',
'orderCurrency' => 'IDR',
'orderDescription' => 'replace order desc...,',
'orderRequestedAt' => '2023-11-07T05:31:56Z',
'notifyUrl' => 'https://merchant-notify-url.com',
'merchantInfo' => [
'merchantId' => 1000000201,
'subMerchantId' => '<string>'
],
'userInfo' => [
'userId' => '0001',
'userEmail' => '0001@examples.com',
'userTerminal' => 'WEB',
'userCreatedAt' => '2021-05-16T08:00:00.000Z',
'userPhone' => '<string>',
'userCountryCode' => '<string>',
'userFirstName' => '<string>',
'userLastName' => '<string>',
'userBrowserIp' => '<string>',
'userAgent' => '<string>',
'userReceiptUrl' => '<string>'
],
'paymentInfo' => [
'productName' => 'ONE_TIME_PAYMENT',
'payMethodType' => 'EWALLET',
'payMethodName' => 'DANA',
'payMethodProperties' => '<string>',
'userPaymentAccessToken' => '<string>',
'payMethodUserAccountNo' => '<string>',
'payMethodUserAccountType' => '<string>',
'cashierLanguage' => '<string>',
'receiptTemplateId' => '<string>',
'cashierAppearance' => '<string>',
'payMethodCountry' => '<string>',
'captureMode' => '<string>',
'merchantInitiatedMode' => '<string>',
'setupFutureUsage' => true
],
'sessionId' => '<string>',
'orderAmount' => 10,
'promotionInfo' => [
'promotionCode' => '<string>',
'couponId' => '<string>'
],
'userCurrency' => 'IDR',
'orderExpiredAt' => '2023-11-07T05:31:56Z',
'successRedirectUrl' => 'https://merchant-success-redirecturl.com',
'failedRedirectUrl' => 'https://merchant-failed-redirecturl.com',
'cancelRedirectUrl' => 'https://merchant-cancel-url.com',
'extendInfo' => '<string>',
'brandInfo' => [
'cashierLogoUrl' => '<string>',
'cashierDisplayName' => '<string>',
'cashierProductImageUrl' => '<string>'
],
'cardInfo' => null,
'paymentTokenData' => '<string>',
'riskData' => [
'userType' => 'Individual',
'userCategory' => 'Member',
'userLegalName' => '<string>',
'userDisplayName' => '<string>',
'userRegistrationIp' => '252.13.13.26',
'userLastSeenIp' => '252.10.10.20',
'userIsNew' => 'No',
'userIsFirstPurchase' => 'No'
],
'x402Info' => [
'x402Request' => true,
'paymentSignatureHeader' => '<string>'
],
'taxInfo' => [
'taxCountry' => 'PHL',
'orderAmountInclTax' => 112
],
'addressInfo' => [
'address' => 'street 123 ...',
'city' => 'city123',
'region' => 'region or state or province 123',
'postcode' => 112233,
'addressCountryCode' => 'IDN'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$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://waffo.com/api/v1/order/session/update"
payload := strings.NewReader("{\n \"paymentRequestId\": \"<string>\",\n \"merchantOrderId\": \"<string>\",\n \"orderCurrency\": \"IDR\",\n \"orderDescription\": \"replace order desc...,\",\n \"orderRequestedAt\": \"2023-11-07T05:31:56Z\",\n \"notifyUrl\": \"https://merchant-notify-url.com\",\n \"merchantInfo\": {\n \"merchantId\": 1000000201,\n \"subMerchantId\": \"<string>\"\n },\n \"userInfo\": {\n \"userId\": \"0001\",\n \"userEmail\": \"0001@examples.com\",\n \"userTerminal\": \"WEB\",\n \"userCreatedAt\": \"2021-05-16T08:00:00.000Z\",\n \"userPhone\": \"<string>\",\n \"userCountryCode\": \"<string>\",\n \"userFirstName\": \"<string>\",\n \"userLastName\": \"<string>\",\n \"userBrowserIp\": \"<string>\",\n \"userAgent\": \"<string>\",\n \"userReceiptUrl\": \"<string>\"\n },\n \"paymentInfo\": {\n \"productName\": \"ONE_TIME_PAYMENT\",\n \"payMethodType\": \"EWALLET\",\n \"payMethodName\": \"DANA\",\n \"payMethodProperties\": \"<string>\",\n \"userPaymentAccessToken\": \"<string>\",\n \"payMethodUserAccountNo\": \"<string>\",\n \"payMethodUserAccountType\": \"<string>\",\n \"cashierLanguage\": \"<string>\",\n \"receiptTemplateId\": \"<string>\",\n \"cashierAppearance\": \"<string>\",\n \"payMethodCountry\": \"<string>\",\n \"captureMode\": \"<string>\",\n \"merchantInitiatedMode\": \"<string>\",\n \"setupFutureUsage\": true\n },\n \"sessionId\": \"<string>\",\n \"orderAmount\": 10,\n \"promotionInfo\": {\n \"promotionCode\": \"<string>\",\n \"couponId\": \"<string>\"\n },\n \"userCurrency\": \"IDR\",\n \"orderExpiredAt\": \"2023-11-07T05:31:56Z\",\n \"successRedirectUrl\": \"https://merchant-success-redirecturl.com\",\n \"failedRedirectUrl\": \"https://merchant-failed-redirecturl.com\",\n \"cancelRedirectUrl\": \"https://merchant-cancel-url.com\",\n \"extendInfo\": \"<string>\",\n \"brandInfo\": {\n \"cashierLogoUrl\": \"<string>\",\n \"cashierDisplayName\": \"<string>\",\n \"cashierProductImageUrl\": \"<string>\"\n },\n \"cardInfo\": null,\n \"paymentTokenData\": \"<string>\",\n \"riskData\": {\n \"userType\": \"Individual\",\n \"userCategory\": \"Member\",\n \"userLegalName\": \"<string>\",\n \"userDisplayName\": \"<string>\",\n \"userRegistrationIp\": \"252.13.13.26\",\n \"userLastSeenIp\": \"252.10.10.20\",\n \"userIsNew\": \"No\",\n \"userIsFirstPurchase\": \"No\"\n },\n \"x402Info\": {\n \"x402Request\": true,\n \"paymentSignatureHeader\": \"<string>\"\n },\n \"taxInfo\": {\n \"taxCountry\": \"PHL\",\n \"orderAmountInclTax\": 112\n },\n \"addressInfo\": {\n \"address\": \"street 123 ...\",\n \"city\": \"city123\",\n \"region\": \"region or state or province 123\",\n \"postcode\": 112233,\n \"addressCountryCode\": \"IDN\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
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://waffo.com/api/v1/order/session/update")
.header("Content-Type", "application/json")
.body("{\n \"paymentRequestId\": \"<string>\",\n \"merchantOrderId\": \"<string>\",\n \"orderCurrency\": \"IDR\",\n \"orderDescription\": \"replace order desc...,\",\n \"orderRequestedAt\": \"2023-11-07T05:31:56Z\",\n \"notifyUrl\": \"https://merchant-notify-url.com\",\n \"merchantInfo\": {\n \"merchantId\": 1000000201,\n \"subMerchantId\": \"<string>\"\n },\n \"userInfo\": {\n \"userId\": \"0001\",\n \"userEmail\": \"0001@examples.com\",\n \"userTerminal\": \"WEB\",\n \"userCreatedAt\": \"2021-05-16T08:00:00.000Z\",\n \"userPhone\": \"<string>\",\n \"userCountryCode\": \"<string>\",\n \"userFirstName\": \"<string>\",\n \"userLastName\": \"<string>\",\n \"userBrowserIp\": \"<string>\",\n \"userAgent\": \"<string>\",\n \"userReceiptUrl\": \"<string>\"\n },\n \"paymentInfo\": {\n \"productName\": \"ONE_TIME_PAYMENT\",\n \"payMethodType\": \"EWALLET\",\n \"payMethodName\": \"DANA\",\n \"payMethodProperties\": \"<string>\",\n \"userPaymentAccessToken\": \"<string>\",\n \"payMethodUserAccountNo\": \"<string>\",\n \"payMethodUserAccountType\": \"<string>\",\n \"cashierLanguage\": \"<string>\",\n \"receiptTemplateId\": \"<string>\",\n \"cashierAppearance\": \"<string>\",\n \"payMethodCountry\": \"<string>\",\n \"captureMode\": \"<string>\",\n \"merchantInitiatedMode\": \"<string>\",\n \"setupFutureUsage\": true\n },\n \"sessionId\": \"<string>\",\n \"orderAmount\": 10,\n \"promotionInfo\": {\n \"promotionCode\": \"<string>\",\n \"couponId\": \"<string>\"\n },\n \"userCurrency\": \"IDR\",\n \"orderExpiredAt\": \"2023-11-07T05:31:56Z\",\n \"successRedirectUrl\": \"https://merchant-success-redirecturl.com\",\n \"failedRedirectUrl\": \"https://merchant-failed-redirecturl.com\",\n \"cancelRedirectUrl\": \"https://merchant-cancel-url.com\",\n \"extendInfo\": \"<string>\",\n \"brandInfo\": {\n \"cashierLogoUrl\": \"<string>\",\n \"cashierDisplayName\": \"<string>\",\n \"cashierProductImageUrl\": \"<string>\"\n },\n \"cardInfo\": null,\n \"paymentTokenData\": \"<string>\",\n \"riskData\": {\n \"userType\": \"Individual\",\n \"userCategory\": \"Member\",\n \"userLegalName\": \"<string>\",\n \"userDisplayName\": \"<string>\",\n \"userRegistrationIp\": \"252.13.13.26\",\n \"userLastSeenIp\": \"252.10.10.20\",\n \"userIsNew\": \"No\",\n \"userIsFirstPurchase\": \"No\"\n },\n \"x402Info\": {\n \"x402Request\": true,\n \"paymentSignatureHeader\": \"<string>\"\n },\n \"taxInfo\": {\n \"taxCountry\": \"PHL\",\n \"orderAmountInclTax\": 112\n },\n \"addressInfo\": {\n \"address\": \"street 123 ...\",\n \"city\": \"city123\",\n \"region\": \"region or state or province 123\",\n \"postcode\": 112233,\n \"addressCountryCode\": \"IDN\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://waffo.com/api/v1/order/session/update")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"paymentRequestId\": \"<string>\",\n \"merchantOrderId\": \"<string>\",\n \"orderCurrency\": \"IDR\",\n \"orderDescription\": \"replace order desc...,\",\n \"orderRequestedAt\": \"2023-11-07T05:31:56Z\",\n \"notifyUrl\": \"https://merchant-notify-url.com\",\n \"merchantInfo\": {\n \"merchantId\": 1000000201,\n \"subMerchantId\": \"<string>\"\n },\n \"userInfo\": {\n \"userId\": \"0001\",\n \"userEmail\": \"0001@examples.com\",\n \"userTerminal\": \"WEB\",\n \"userCreatedAt\": \"2021-05-16T08:00:00.000Z\",\n \"userPhone\": \"<string>\",\n \"userCountryCode\": \"<string>\",\n \"userFirstName\": \"<string>\",\n \"userLastName\": \"<string>\",\n \"userBrowserIp\": \"<string>\",\n \"userAgent\": \"<string>\",\n \"userReceiptUrl\": \"<string>\"\n },\n \"paymentInfo\": {\n \"productName\": \"ONE_TIME_PAYMENT\",\n \"payMethodType\": \"EWALLET\",\n \"payMethodName\": \"DANA\",\n \"payMethodProperties\": \"<string>\",\n \"userPaymentAccessToken\": \"<string>\",\n \"payMethodUserAccountNo\": \"<string>\",\n \"payMethodUserAccountType\": \"<string>\",\n \"cashierLanguage\": \"<string>\",\n \"receiptTemplateId\": \"<string>\",\n \"cashierAppearance\": \"<string>\",\n \"payMethodCountry\": \"<string>\",\n \"captureMode\": \"<string>\",\n \"merchantInitiatedMode\": \"<string>\",\n \"setupFutureUsage\": true\n },\n \"sessionId\": \"<string>\",\n \"orderAmount\": 10,\n \"promotionInfo\": {\n \"promotionCode\": \"<string>\",\n \"couponId\": \"<string>\"\n },\n \"userCurrency\": \"IDR\",\n \"orderExpiredAt\": \"2023-11-07T05:31:56Z\",\n \"successRedirectUrl\": \"https://merchant-success-redirecturl.com\",\n \"failedRedirectUrl\": \"https://merchant-failed-redirecturl.com\",\n \"cancelRedirectUrl\": \"https://merchant-cancel-url.com\",\n \"extendInfo\": \"<string>\",\n \"brandInfo\": {\n \"cashierLogoUrl\": \"<string>\",\n \"cashierDisplayName\": \"<string>\",\n \"cashierProductImageUrl\": \"<string>\"\n },\n \"cardInfo\": null,\n \"paymentTokenData\": \"<string>\",\n \"riskData\": {\n \"userType\": \"Individual\",\n \"userCategory\": \"Member\",\n \"userLegalName\": \"<string>\",\n \"userDisplayName\": \"<string>\",\n \"userRegistrationIp\": \"252.13.13.26\",\n \"userLastSeenIp\": \"252.10.10.20\",\n \"userIsNew\": \"No\",\n \"userIsFirstPurchase\": \"No\"\n },\n \"x402Info\": {\n \"x402Request\": true,\n \"paymentSignatureHeader\": \"<string>\"\n },\n \"taxInfo\": {\n \"taxCountry\": \"PHL\",\n \"orderAmountInclTax\": 112\n },\n \"addressInfo\": {\n \"address\": \"street 123 ...\",\n \"city\": \"city123\",\n \"region\": \"region or state or province 123\",\n \"postcode\": 112233,\n \"addressCountryCode\": \"IDN\"\n }\n}"
response = http.request(request)
puts response.read_body{
"code": 0,
"msg": "success",
"data": {
"sessionId": "<string>",
"expiresAt": 123
}
}Body
Reprice recalculation request: identical to the order/session/create request body plus a sessionId identifying the existing session to recalculate.
Payment request id sent from Merchant. It will also be used for idempotent check.
32Merchant order id
64Merchant order currency
12"IDR"
Order description information
128"replace order desc...,"
Merchant-side request time
The callback address to notify the merchant after the payment is completed / failed
1024"https://merchant-notify-url.com"
Merchant info
Show child attributes
Show child attributes
User info
Show child attributes
Show child attributes
Payment information
Show child attributes
Show child attributes
Payment session id returned by session/create, identifying which existing session to recalculate. sessionId and expiry stay unchanged; amount details are recalculated and the confirm token is re-signed.
1Order amount excluding tax (order currency). Required unless you provide the tax-inclusive total via orderAmountInclTax instead
2410
Promotion info for coupon marketing and internal amount adjustment
Show child attributes
Show child attributes
User payment currency. This is needed when merchant order currency is NOT the same as user payment currency
12"IDR"
The order expiry time set by merchant. If not set, the default merchant contract expiry time will be used
The address of the merchant page to redirect to after successful payment. If no value is provided, it will stay on the cashier page after successful payment. Required for x402 Waffo-hosted payment (x402Info.x402Request = true and x402Info.paymentSignatureHeader not provided): the Agent is redirected back to this address once the payment is settled, so the order is rejected when it is missing.
1024"https://merchant-success-redirecturl.com"
The address of the merchant page to which the payment pre-verification fails, or the redirection after the payment fails. If no value is provided, it will stay on the cashier page after the payment fails
1024"https://merchant-failed-redirecturl.com"
The address of the merchant page to redirect to when user cancels the payment
512"https://merchant-cancel-url.com"
Reserved. Json format e.g. {"key1":"value1", "key2":"value2"}
128Merchant goods information
Show child attributes
Show child attributes
Brand display information for cashier
Show child attributes
Show child attributes
Card data info (optional). Pass raw card data directly in the API (requires PCI DSS certification), or pass only threeDsDecision without any card field.
Show child attributes
Show child attributes
null
User's ApplePay / GooglePay payment token. It is only required when Merchant choose to integrate with ApplePay / GooglePay frontend directly and pass in the encrypted payment token for Waffo to process the payment
8192riskData
Show child attributes
Show child attributes
x402 stablecoin payment info. x402Info.x402Request=true marks an x402 payin; mode① carries the Agent signature in x402Info.paymentSignatureHeader.
Show child attributes
Show child attributes
Merchant tax input (order currency). Provide orderAmountInclTax alone for a tax-inclusive total, or together with the top-level orderAmount and taxCountry when reporting both net and gross prices
Show child attributes
Show child attributes
Address Information
Show child attributes
Show child attributes
Was this page helpful?