การรับชำระเงิน (Pay-In · อินเดีย)รับชำระเงินในอินเดีย (INR ) ผ่าน CASHIER_IN (แคชเชียร์กลาง UPI / ธนาคารตามการตั้งค่า) ฟิลด์ paymentMethod ในคำขอเป็นแบบเลือกได้ หากส่งให้ใช้ CASHIER_IN .
Request POST /v2.0/transaction/pay-in
Request Path: sandbox: https://sandbox-gateway.smilepayz.com/v2.0/transaction/pay-in production: https://gateway.smilepayz.com/v2.0/transaction/pay-in
Field Required Type Description Content-TypeM String application/json X-TIMESTAMPM String Format: yyyy-MM-ddTHH:mm:ss±HH:mm (e.g. IST +05:30). X-SIGNATUREM String Request signature; Signature Generation . X-PARTNER-IDM String merchantID (alphanumeric).
Body Parameters Field Required Type Description orderNoM String(32) 6–32 alphanumeric; unique per merchant. purposeM String(64) UTF-8; length 1–64. merchantM Object Merchant routing and settlement. merchantId M String Platform merchant ID. merchantName O String UTF-8 display name (cashier / records). subMerchantId O String Sub-merchant ID (multi-level). subMerchantName O String Sub-merchant name (UTF-8). moneyM Object Amount and currency. currency M String INR only. amount M Number Integer minor units (e.g. 200 = INR 200). paymentMethodO String เลือกได้ แนะนำ CASHIER_IN สำหรับแคชเชียร์อินเดียเมื่อระบุ ดู Payment methods . expiryPeriodO Number Session TTL (seconds); fixed 420 (7 min) for India — do not change. redirectUrlO String(256) Post-pay redirect URL; HTTP(S); max 256. callbackUrlO String(256) Status webhook URL; HTTP(S); max 256.
Example Body – Transaction Request: Header Min Body
Content-type: application/json
X-TIMESTAMP: 2020-12-17T10:55:00+05:30
X-SIGNATURE: 7MHd9v5/m9JeqmDZVwWBZUZ5J5...7120QnFEny7Qm7uQR1G0TWCh10fsU6nVxiRoeoQ==
X-PARTNER-ID: 20001
{
"merchant" : {
"merchantId" : "20001"
} ,
"money" : {
"amount" : 200 ,
"currency" : "INR"
} ,
"orderNo" : "20001b0f6c612283d48d0" ,
"paymentMethod" : "CASHIER_IN" ,
"purpose" : "Purpose For Transaction from Java SDK"
}
Responses HTTP Request Field Required Type Description Content-TypeM String application/json X-TIMESTAMPM String Format: yyyy-MM-ddTHH:mm:ss±HH:mm
Body Parameters Field Required Type Description codeM String 00 = success; other codes = error.messageM String Result text (UTF-8). orderNoM String Echo of orderNo . tradeNoO String Platform trade ID. merchantM Object Merchant Model . merchantId M String Merchant ID. merchantName O String Display name. subMerchantId O String Sub-merchant ID. subMerchantName O String Sub-merchant name. moneyM Object Money Model . currency M String INR . amount M Number Integer minors. transactionTimeM String yyyy-MM-ddTHH:mm:ss±HH:mmchannelM Object Channel Model . paymentMethod O String e.g. CASHIER_IN . paymentUrl M String Cashier URL. statusO String Status Model .
Header HTTP Body
Content-type: application/json
X-TIMESTAMP: 2020-12-17T10:55:00+05:30
{
"channel" : {
"paymentMethod" : "CASHIER_IN" ,
"paymentUrl" : "https://gateway.smilepayz.com/cashier/#/loading?tradeNo=121200012412131607559245"
} ,
"code" : "00" ,
"merchant" : {
"accountNo" : "11220001202402271029" ,
"merchantId" : "20001" ,
"merchantName" : "20001"
} ,
"message" : "Successful" ,
"money" : {
"amount" : 200 ,
"currency" : "INR"
} ,
"orderNo" : "20001b0f6c612-283d-48d0-b807-a51" ,
"status" : "PROCESSING" ,
"tradeNo" : "121200012412131607559245" ,
"transactionTime" : "2024-12-13T14:37:56+05:30"
}
Notification/Callback HTTP Request Field Required Type Description Content-TypeM String application/json X-TIMESTAMPM String Format: yyyy-MM-ddTHH:mm:ss±HH:mm X-SIGNATUREM String Callback signature; verify .
Body Parameters Field Required Type Description orderNoM String Same orderNo as pay-in. tradeNoM String Platform tradeNo . utrC String India UTR when present (bank-dependent). merchantIdM String Merchant ID. merchantNameM String Display name. subMerchantIdO String Sub-merchant ID. subMerchantNameO String Sub-merchant name. paymentMethodM String Settled channel (e.g. CASHIER_IN / bank code). transactionTimeM String Completion time (yyyy-MM-ddTHH:mm:ss or with offset). statusM String Status Model .moneyM Object Final amount; Money Model . currency M String INR . amount M Number Integer minors.
Return Important
Respond with the string SUCCESS only.
Request Response
{
"orderNo" : "2000102900000000000001" ,
"tradeNo" : "101200012410241325417215" ,
"merchantId" : "20001" ,
"merchantName" : "test" ,
"subMerchantId" : "" ,
"subMerchantName" : "" ,
"paymentMethod" : "YES" ,
"transactionTime" : "2024-12-17T10:55:00" ,
"status" : "SUCCESS" ,
"money" : {
"currency" : "INR" ,
"amount" : 1000
} ,
"utr" : "09787676778"
}
ถัดไป
การโอนจ่าย (Pay-out · อินเดีย)