Onerway Payment API
Onerway APIs
  1. Utils
  • 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
        • Indonesia-OVO
        • Indonesia-DANA
        • Indonesia-QRIS
        • Indonesia-BNI
        • Indonesia-MANDIRI
        • Indonesia-Maybank
        • Indonesia-PERMATA
        • Indonesia-BRI
        • Indonesia-CIMB
        • Indonesia-AKULAKU
        • Indonesia-DANA(Subscribe)
      • 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
        POST
  1. Utils

Signature Validation Helper

Testing
Sandbox Env
https://sandbox-acq.onerway.com
Sandbox Env
https://sandbox-acq.onerway.com
POST
https://subscription.be.pkbsvc.com/webhook/onerway/callback

Request

Body Params application/json
object {0}
Example
// ---------------------- Instructions ----------------------
// 1. Configure your credentials in the environment variables:
//    - merchantNo: Your merchant account number
//    - secret: Your secret key
//    - appId: Your application identifier
//
// 2. Replace the template below with your actual request payload
//
// 3. Send the request and view the generated signature in the console
//    (The signature will be displayed in console)
// -----------------------------------------------------------

{
    "billingInformation": "{\"country\":\"CN\",\"email\":\"{{email}}\"}",
    "merchantCustId": "558361",
    "merchantNo": "{{merchantNo}}",
    "merchantTxnId": "VIP202403301711805804608609616",
    "orderAmount": "0.03",
    "orderCurrency": "USD",
    "paymentMode": "WEB",
    "productType": "CARD",
    "shippingInformation": "{\"country\":\"CN\",\"email\":\"{{email}}\"}",
    "sign": "62fc1e9d5c6d4e1b2b9a58a34b349d99bac6bde1505dd20b5949e80d97b417f0",
    "subProductType": "TOKEN",
    "txnOrderMsg": "{\"accept\":\"application/json, text/plain, */*\",\"appId\":\"{{appId}}\",\"colorDepth\":\"30\",\"contentLength\":\"300\",\"javaEnabled\":\"false\",\"language\":\"zh\",\"notifyUrl\":\"https://api-dev-www.shakker.ai/pay/callback\",\"products\":\"[{\\\"currency\\\":\\\"USD\\\",\\\"name\\\":\\\"基础版VIP 12个月\\\",\\\"num\\\":\\\"1\\\",\\\"price\\\":\\\"0.03\\\"}]\",\"returnUrl\":\"https://api-dev-www.shakker.ai/training\",\"screenHeight\":\"1117\",\"screenWidth\":\"1728\",\"timeZoneOffset\":\"-480\",\"transactionIp\":\"transactionIp\",\"userAgent\":\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36\"}",
    "txnType": "SALE"
}

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://subscription.be.pkbsvc.com/webhook/onerway/callback' \
--header 'Content-Type: application/json' \
--data-raw '// ---------------------- Instructions ----------------------
// 1. Configure your credentials in the environment variables:
//    - merchantNo: Your merchant account number
//    - secret: Your secret key
//    - appId: Your application identifier
//
// 2. Replace the template below with your actual request payload
//
// 3. Send the request and view the generated signature in the console
//    (The signature will be displayed in console)
// -----------------------------------------------------------

{
    "billingInformation": "{\"country\":\"CN\",\"email\":\"{{email}}\"}",
    "merchantCustId": "558361",
    "merchantNo": "{{merchantNo}}",
    "merchantTxnId": "VIP202403301711805804608609616",
    "orderAmount": "0.03",
    "orderCurrency": "USD",
    "paymentMode": "WEB",
    "productType": "CARD",
    "shippingInformation": "{\"country\":\"CN\",\"email\":\"{{email}}\"}",
    "sign": "62fc1e9d5c6d4e1b2b9a58a34b349d99bac6bde1505dd20b5949e80d97b417f0",
    "subProductType": "TOKEN",
    "txnOrderMsg": "{\"accept\":\"application/json, text/plain, */*\",\"appId\":\"{{appId}}\",\"colorDepth\":\"30\",\"contentLength\":\"300\",\"javaEnabled\":\"false\",\"language\":\"zh\",\"notifyUrl\":\"https://api-dev-www.shakker.ai/pay/callback\",\"products\":\"[{\\\"currency\\\":\\\"USD\\\",\\\"name\\\":\\\"基础版VIP 12个月\\\",\\\"num\\\":\\\"1\\\",\\\"price\\\":\\\"0.03\\\"}]\",\"returnUrl\":\"https://api-dev-www.shakker.ai/training\",\"screenHeight\":\"1117\",\"screenWidth\":\"1728\",\"timeZoneOffset\":\"-480\",\"transactionIp\":\"transactionIp\",\"userAgent\":\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36\"}",
    "txnType": "SALE"
}'

Responses

🟢200OK
application/json
Body
object {0}
Example
{}
Modified at 2025-03-10 02:14:36
Previous
Retrieve Card Tokenization Records
Built with