Onerway Payment API
Onerway APIs
  1. Indonesia
  • Onerway 商户 API 接入指南
  • Onerway Merchant API Testing
  • Payment APIs
    • Checkout
      • Card Checkout
      • Card Checkout - Subscribe
      • APMs Checkout
      • Single-Method APM Checkout
      • Card Checkout - Authorizaiton
    • JS-SDK
      • One-Time Payment Intent
      • Subscription Payment Intent
      • Card Tokenization Intent
    • API
      • Card
      • Pre-Auth
      • Auth Reversal
      • Capture
      • Card Tokenization
      • Tokenized Payment
      • Subscription - Charge by Onerway
      • Subscription Initial Charge
      • Subscription Recurring Charge
      • Subscription Cancellation
      • Subscription Reactivation
      • Token Removal
    • APMs - Alternative Payment Methods
      • Thailand
        • Thailand-TrueMoney Wallet
        • Thailand-PromptPay
        • Thailand-Rabbit_Line_pay
        • Thailand-KRUNGSRI_ONLINE
      • Malaysia
        • Malaysia-TOUCH_GO_EWALLET
        • Malaysia-Boost
        • Malaysia-MCASH
        • Malaysia-ShopeePay
        • Malaysia-FPX
      • Indonesia
        • Indonesia-ShopeePay
          POST
        • Indonesia-OVO
          POST
        • Indonesia-DANA
          POST
        • Indonesia-QRIS
          POST
        • Indonesia-BNI
          POST
        • Indonesia-MANDIRI
          POST
        • Indonesia-Maybank
          POST
        • Indonesia-PERMATA
          POST
        • Indonesia-BRI
          POST
        • Indonesia-CIMB
          POST
        • Indonesia-AKULAKU
          POST
        • Indonesia-DANA(Subscribe)
          POST
      • Japan
        • Japan-Konbini
        • Japan-PayEasy
      • South Korea
        • South Korea-Kakao_Pay
        • South Korea-Naver_Pay
        • South Korea-PAYCO
        • South Korea-Cards_KOR
      • Vietnam
        • Vietnam-NINE_PAY
        • Vietnam-PAYME
        • Vietnam-VIET_QR
        • Vietnam-MOMO
        • Vietnam-ATM_CARD
      • Philippines
        • Philippines-Dragonpay
        • Philippines-QR_PH
      • Brazil
        • Brazil-Boleto
        • Brazil-Visa/Master
        • Brazil-PIX
        • Brazil-PicPay
        • Brazil-MercadoPago
      • Mexico
        • Mexico-Visa/Master
        • Mexico-SPEI
        • Mexico-OXXO
        • Mexico-PaySafeCard
      • Chile
        • Chile-Visa/Master
        • Chile-Khipu
        • Chile-Webpay
        • Chile-Servipag
        • Chile-Sencillito
      • Paraguay
        • Paraguay-Visa/Master
        • Paraguay-Infonet
      • United States
        • United States-PayPal
        • United States-Venmo
        • United States-CASH_APP
      • Belgium
        • Belgium-Bancontact
        • Belgium-Payconiq
      • Germany
        • Germany-PaySafeCard
        • Germany-Giropay
      • Italy
        • Italy-MyBank
      • Luxembourg
        • Luxembourg-Payconiq
      • Estonia
      • Turkey
        • Turkey-Papara
      • Peru
        • Peru-PagoEfectivo
    • Refund
      • Initiate Refund
      • Cancel Refund
    • Settlement
      • Settlement File Download
    • Query
      • Retrieve Transaction Orders
      • Query Installment Options
      • Retrieve Subscription Details
      • Query Chargeback Records
      • Retrieve Card Tokenization Records
    • Utils
      • Signature Validation Helper
  1. Indonesia

Indonesia-AKULAKU

Testing
Sandbox Env
https://sandbox-acq.onerway.com
Sandbox Env
https://sandbox-acq.onerway.com
POST
/v1/txn/doTransaction

Request

Body Params application/json
billingInformation
object (TransactionAddress) 
账单信息,格式为JSON字符串
required
Billing Information
address
string 
地址信息(账单或配送地址)
required
Address information (billing or shipping)
city
string 
城市名称
required
City name
country
enum<string> 
国家代码,请参考ISO 3166标准
required
Country code according to ISO 3166 standard
Allowed value:
US
email
string 
电子邮件地址
required
Email address
firstName
string 
名字
required
First name
identityNumber
string 
证件号码
optional
Identity document number
lastName
string 
姓氏
required
Last name
phone
string 
电话号码
required
Phone number
postalCode
string 
邮政编码
required
Postal code
province
enum<string> 
省/州
required
State/province
Allowed value:
CO
merchantCustId
string 
客户在商户系统中的唯一标识
optional
Merchant Customer ID
merchantNo
enum<string> 
商户号
required
Merchant number assigned by Onerway
Allowed value:
{{MERCHANT-NO}}
merchantTxnId
string 
商户创建的交易订单号
required
Transaction order number created by the merchant
merchantTxnTime
string 
商户交易时间,格式为yyyy-MM-dd HH:mm:ss
optional
Merchant transaction time in yyyy-MM-dd HH:mm:ss format
orderAmount
string 
订单金额
required
Order amount
orderCurrency
enum<string> 
订单币种,参考ISO 4217货币代码
required
Order currency according to ISO 4217 standard
Allowed value:
USD
shippingInformation
object (TransactionAddress) 
配送信息,格式为JSON字符串
required
Shipping information in JSON string format
sign
null 
签名
required
Signature string for request verification
txnOrderMsg
object (TxnOrderMsg) 
交易订单信息,格式为JSON字符串
required
Transaction order information in JSON string format
accept
enum<string> 
持卡人浏览器的Accept请求头
required
Browser's Accept header from the cardholder's HTTP request
<= 2048 characters
Allowed value:
*/*
Example:
text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
appId
enum<string> 
商户应用程序ID,商户注册网站时Onerway会为商户创建
required
Unique identifier for the merchant's website/application. Can be obtained from Onerway merchant dashboard
<= 20 characters
Allowed value:
{{APPID}}
Example:
{{appId}}
colorDepth
enum<string> 
持卡人屏幕色深
required
Color depth of cardholder's screen. Obtained via window.screen.colorDepth
Allowed values:
162432
contentLength
enum<string> 
持卡人浏览器内容长度头部以外的内容长度
required
Content length of the request body, excluding headers
Allowed values:
0102440961638465536
javaEnabled
boolean 
持卡人浏览器是否开启java
required
Indicates if Java is enabled in cardholder's browser. Obtained via window.navigator.javaEnabled()
Example:
false
language
enum<string> 
持卡人浏览器的语言
required
Browser language setting. Obtained via window.navigator.language
<= 64 characters
Allowed value:
en-US
Example:
zh-CN
products
array[object (Product) {5}] 
商品信息数组,JSON字符串格式
required
Array of products in the current transaction
>= 1 items<= 3 items
returnUrl
enum<string> 
同步返回地址
required
URL where the customer will be redirected after completing 3DS authentication
<= 256 characters
Allowed value:
{{RETURN-URL}}
Example:
https://docs.onerway.com/
notifyUrl
enum<string> 
异步通知地址
required
Webhook URL for asynchronous notifications
Allowed value:
{{WEBHOOK-ENDPOINT}}
screenHeight
enum<string> 
持卡人的屏幕高度
required
Screen height of cardholder's device. Obtained via window.screen.height
Allowed values:
4805686406677367407808008448518969159321024108011801200136614401600162018002160
screenWidth
enum<string> 
持卡人的屏幕宽度
required
Screen width of cardholder's device. Obtained via window.screen.width
Allowed values:
32036037539039341241442876880082096210241280136614401536168019202048256034403840
timeZoneOffset
enum<string> 
持卡人浏览器的时区偏移
required
Browser's timezone offset in minutes. Obtained via (new Date()).getTimezoneOffset()
Allowed values:
-840-720-660-600-540-480-420-360-300-240-180-120-60060120180240300360420480540600660720
transactionIp
string 
商户客户的交易IP地址
required
IP address of the cardholder making the transaction
<= 64 characters
Example:
127.0.0.1
userAgent
enum<string> 
持卡人的浏览器类型
required
Browser's User-Agent string. Obtained via window.navigator.userAgent
<= 2048 characters
Allowed value:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36
Example:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36
productType
enum<string> 
产品类型
optional
Product type specifying the payment method category (LPMS for alternative payment methods specific to particular regions)
Allowed value:
LPMS
subProductType
enum<string> 
子产品类型
optional
Sub-product type indicating the specific processing method (DIRECT for standard one-time payment)
Allowed value:
DIRECT
txnType
enum<string> 
交易类型
optional
Transaction type defining the payment operation (SALE for immediate processing and settlement)
Allowed value:
SALE
lpmsInfo
object 
本地支付方式信息
required
Configuration parameters for alternative payment methods specific to particular regions or payment ecosystems
lpmsType
enum<string> 
本地支付方式类型
required
Local payment method type. Please refer to LpmsTypeEnum.
<= 64 characters
Allowed value:
{{APM-NAME}}
Examples:
Alipay+KlarnaBoleto
bankName
null 
银行名称,某些本地支付方式需要
optional
Bank name required for specific local payment methods. When lpmsType is EFT, refer to EFTBankNameEnum. When lpmsType is Przelewy24, refer to Przelewy24BankNameEnum.
iBan
null 
银行账户,部分地区转账时需要
optional
International Bank Account Number required for transfers in certain regions.
walletAccountId
null 
钱包/本地账户ID,部分地区转账时需要
optional
Wallet or local account identifier required for specific payment scenarios. Required when: 1) productType is LPMS and lpmsType is ATM_CARD (provide local bank account number), or 2) productType is PAYMENT_CODE (provide wallet payment code).
walletAccountName
null 
钱包/本地账户名称,部分地区转账时需要
optional
Wallet or local account name required for specific payment scenarios. Mandatory when productType is LPMS and lpmsType is ATM_CARD, in which case the local bank account holder name must be provided.
prepaidNumber
null 
预付费卡号
optional
Prepaid card number required for certain payment methods.
Example
{
    "billingInformation": {
        "address": "893 Michale Spring",
        "city": "North Eliseburgh",
        "country": "US",
        "email": "Noelia_Smitham@yahoo.com",
        "firstName": "Margot",
        "identityNumber": "35303494100",
        "lastName": "Kovacek",
        "phone": "17827663195",
        "postalCode": "17383-6411",
        "province": "CO"
    },
    "merchantCustId": "CustId-Z405-FH8H",
    "merchantNo": "{{MERCHANT-NO}}",
    "merchantTxnId": "2b29ef9f-f3de-48c1-ae8a-2f360461c851",
    "merchantTxnTime": "2025-03-14 14:21:55",
    "orderAmount": "25",
    "orderCurrency": "USD",
    "shippingInformation": {
        "address": "7744 Kunde Groves",
        "city": "Ornborough",
        "country": "US",
        "email": "Kennith.Satterfield82@hotmail.com",
        "firstName": "Reanna",
        "identityNumber": "78637908886",
        "lastName": "Adams",
        "phone": "19563550083",
        "postalCode": "94714-2298",
        "province": "CO"
    },
    "sign": null,
    "txnOrderMsg": {
        "accept": "*/*",
        "appId": "{{APPID}}",
        "colorDepth": "16",
        "contentLength": "65536",
        "javaEnabled": true,
        "language": "en-US",
        "products": [
            {
                "currency": "USD",
                "name": "dragonfruit",
                "num": "79",
                "price": "347.79",
                "type": "est in"
            },
            {
                "currency": "USD",
                "name": "passionfruit",
                "num": "73",
                "price": "125.40",
                "type": "veniam laborum aute"
            }
        ],
        "returnUrl": "{{RETURN-URL}}",
        "notifyUrl": "{{WEBHOOK-ENDPOINT}}",
        "screenHeight": "2160",
        "screenWidth": "375",
        "timeZoneOffset": "0",
        "transactionIp": "96.24.201.1",
        "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36"
    },
    "productType": "LPMS",
    "subProductType": "DIRECT",
    "txnType": "SALE",
    "lpmsInfo": {
        "lpmsType": "{{APM-NAME}}",
        "bankName": null,
        "iBan": null,
        "walletAccountId": null,
        "walletAccountName": null,
        "prepaidNumber": null
    }
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://sandbox-acq.onerway.com/v1/txn/doTransaction' \
--header 'Content-Type: application/json' \
--data-raw '{
    "billingInformation": {
        "address": "893 Michale Spring",
        "city": "North Eliseburgh",
        "country": "US",
        "email": "Noelia_Smitham@yahoo.com",
        "firstName": "Margot",
        "identityNumber": "35303494100",
        "lastName": "Kovacek",
        "phone": "17827663195",
        "postalCode": "17383-6411",
        "province": "CO"
    },
    "merchantCustId": "CustId-Z405-FH8H",
    "merchantNo": "YOUR-MERCHANT-NO",
    "merchantTxnId": "2b29ef9f-f3de-48c1-ae8a-2f360461c851",
    "merchantTxnTime": "2025-03-14 14:21:55",
    "orderAmount": "25",
    "orderCurrency": "USD",
    "shippingInformation": {
        "address": "7744 Kunde Groves",
        "city": "Ornborough",
        "country": "US",
        "email": "Kennith.Satterfield82@hotmail.com",
        "firstName": "Reanna",
        "identityNumber": "78637908886",
        "lastName": "Adams",
        "phone": "19563550083",
        "postalCode": "94714-2298",
        "province": "CO"
    },
    "sign": null,
    "txnOrderMsg": {
        "accept": "*/*",
        "appId": "YOUR-APPLICATION-ID",
        "colorDepth": "16",
        "contentLength": "65536",
        "javaEnabled": true,
        "language": "en-US",
        "products": [
            {
                "currency": "USD",
                "name": "dragonfruit",
                "num": "79",
                "price": "347.79",
                "type": "est in"
            },
            {
                "currency": "USD",
                "name": "passionfruit",
                "num": "73",
                "price": "125.40",
                "type": "veniam laborum aute"
            }
        ],
        "returnUrl": "YOUR-RETURN-URL",
        "notifyUrl": "YOUR-WEBHOOK-ENDPOINT",
        "screenHeight": "2160",
        "screenWidth": "375",
        "timeZoneOffset": "0",
        "transactionIp": "96.24.201.1",
        "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36"
    },
    "productType": "LPMS",
    "subProductType": "DIRECT",
    "txnType": "SALE",
    "lpmsInfo": {
        "lpmsType": "{{APM-NAME}}",
        "bankName": null,
        "iBan": null,
        "walletAccountId": null,
        "walletAccountName": null,
        "prepaidNumber": null
    }
}'

Responses

🟢200OK
application/json
Body
object {0}
Example
{"respCode":"20000","respMsg":"Success","data":{"transactionId":"1704031498271133696","responseTime":"2023-09-19 15:15:52","txnTime":"2023-09-19 15:15:43","txnTimeZone":"+08:00","orderAmount":"20.00","orderCurrency":"USD","txnAmount":null,"txnCurrency":null,"status":"R","redirectUrl":"https://open-sea-global.alipayplus.com/api/open/v1/ac/cashier/self/codevalue/checkout.htm?codeValue=281666040092qSof8XXwp5AH3z0cQz8v4IxD&loadMode=2","contractId":null,"tokenId":null,"eci":null,"periodValue":null,"codeForm":null,"presentContext":null,"redirectType":null,"sign":"ea85ec4db2aabf5edf6e2b96ae10514bf0c968bce2f22c5e6886e532e2143bc5"}}
Modified at 2025-03-14 06:21:57
Previous
Indonesia-CIMB
Next
Indonesia-DANA(Subscribe)
Built with