跳至主要內容

Pay-in collection

大约 1 分钟

Bangladesh region pay-in API (BDT). See Payment methods.

Amount range

bKash pay-in supports 50-30,000 BDT per transaction where enabled for your merchant account.

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

Header Parameters

FieldRequiredTypeDescription
Content-TypeMStringapplication/json request body.
X-TIMESTAMPMStringFormat: yyyy-MM-ddTHH:mm:ss±HH:mm (Bangladesh +06:00).
X-SIGNATUREMStringSignature of JSON body (see product Signature doc).
X-PARTNER-IDMStringYour merchantID.

Body Parameters

FieldRequiredTypeDescription
orderNoMString(32)Merchant-unique id.
purposeMString(64)Transaction memo.
merchant.merchantIdMStringSmilepayz merchantId.
money.currencyMStringFixed to BDT.
money.amountMNumberAmount in BDT.
paymentMethodMStringBKASH.
payer.nameOStringPayer name.
payer.phoneOStringPayer mobile number.
redirectUrlOString(256)Post-pay return URL.
callbackUrlOString(256)Async status URL.

Example Body

{
    "orderNo": "BDT_PAYIN_10001",
    "purpose": "Bangladesh bKash pay-in",
    "merchant": {
        "merchantId": "20001"
    },
    "money": {
        "currency": "BDT",
        "amount": 1000
    },
    "paymentMethod": "BKASH",
    "payer": {
        "name": "Rahim Uddin",
        "phone": "01712345678"
    },
    "redirectUrl": "https://www.example.com/success",
    "callbackUrl": "https://www.example.com/callback"
}

Response

FieldRequiredTypeDescription
codeMString00 success, other values error.
messageMStringResult message.
orderNoMStringMerchant order number.
tradeNoOStringSmilepayz trade number.
money.currencyMStringBDT.
money.amountMNumberOrder amount.
channel.paymentUrlOStringHosted payment URL when returned.
statusOStringINIT, PROCESSING, SUCCESS, FAILED, or EXPIRED.

Notification/Callback

Respond with the string SUCCESS only after the callback is accepted.