Skip to Content
BangladeshPayinCreate Pay-in (Bangladesh)

Create Pay-in (Bangladesh)

POST/v1/payinspayin:create

Create a pay-in transaction. You may send an optional Idempotency-Key header to safely retry the same request.

Request fields

FieldTypeRequiredDescription
amountstring (numeric)YesTransaction amount
paymentMethodCodestringYesExample: BKASH
returnUrlstring (HTTPS URL)YesYour page where the customer returns after completing payment in the hosted checkout. Transacty forwards this to the payment provider; you do not configure the provider directly.
customerobjectYesCustomer info object
customer.namestringYesCustomer name
customer.emailstringYesCustomer email
customer.phonestringYesCustomer phone
customer.deviceIdstringYesDevice id
goodsInfoobjectYesProduct info object
goodsInfo.namestringYesProduct name
goodsInfo.idstringYesProduct/order id
goodsInfo.pricestring (numeric)YesProduct price

Example

{ "amount": "500.00", "paymentMethodCode": "BKASH", "returnUrl": "https://merchant.example.com/checkout/success", "customer": { "name": "Rahim", "email": "rahim@example.com", "phone": "01712345678", "deviceId": "device-123" }, "goodsInfo": { "name": "Order #1001", "id": "1001", "price": "500.00" } }

Response fields

FieldTypeDescription
transactionIdstringTransaction identifier — use for status polling and support
statusstringUsually pending until the customer pays
amountstringRequested pay-in amount
currencystringPay-in currency — BDT for Bangladesh
platformOrderIdstringProvider-side order reference (support / escalation)
paymentInfoobjectHosted checkout details for the customer
paymentInfo.contentstringCheckout URL — send the customer here to pay and complete the transaction
paymentInfo.typestringe.g. url
paymentInfo.expiredTimestringProvider-side link expiry (often YYYYMMDDHHmmss)
expiresAtstring (ISO datetime)When this pay-in session expires
feesobjectTransacty service fee for this pay-in
fees.platformFeestringFee amount charged for the service
fees.feeTypestringe.g. payin
fees.feeStatusstringe.g. estimated at create; may update on completion
netAmountstringAmount credited to your wallet after fees (amount minus platformFee when estimated)
totalWalletDebitstring | nullReserved; null on pay-in create

Customer checkout: open or redirect the customer to paymentInfo.content. That is the hosted page where they complete payment (e-wallet checkout). platformOrderId is only a provider reference — it is not the payment link.

Fees: fees.platformFee is what Transacty charges for the service. netAmount is what you can expect to receive in your BDT wallet after that fee.

Next steps

Last updated on