Skip to content

Create Collection

WARNING

Important: name + phone + email + amount are used to identify distinct customers. Follow these notes to avoid incorrect risk-control decisions.

  1. Do not hard-code name, phone, and email together
  2. Use the same name + phone + email for the same customer

Endpoint

POST /cashin/php/order/create

Request Headers

NameRequiredExampleDescription
Content-TypeYesapplication/json

Request Parameters

FieldTypeRequiredDescription
bankCodestring enumYesBank code — See the bankCode section — MAYA, GCASH
amountnumberYesOrder amount — Up to 2 decimal places (rounded). Trailing zeros after the decimal are omitted in the pre-sign string for float amounts
notifyUrlstringYesNotification callback URL — Sandbox supports automatic callbacks: odd last digit of phone → success; even → failure
namestringYesCustomer name — More realistic values improve success rate and reduce risk-control flags
phonestringYesCustomer phone — Philippine format starting with 0, 11 digits. More realistic numbers improve success rate and reduce risk flags
emailstringYesCustomer email — More realistic values improve success rate and reduce risk-control flags
signstringYesSignature
appIdstringYesMerchant appId — appId assigned by the platform
mchOrderNostringYesMerchant order number
mchIdintegerYesMerchant ID
timestampintegerYesSubmission time — Unix timestamp in seconds
txChannelstringYesTransaction channel — Fixed value
returnUrlstringNoCheckout redirect URL
productInfostringYesProduct information

Request Example

json
{
 "mchId": 399204155797661,
 "txChannel": "TX_PHP_001",
 "appId": "DFN19SJXfxFCexeLIi",
 "timestamp": 16624500121,
 "mchOrderNo": "order_1672451031",
 "bankCode": "MAYA",
 "amount": 5000,
 "name": "Timothy Gonzalez",
 "phone": "18688984423",
 "email": "w.gssdyohqr@chvro.cy",
 "productInfo": "xxx-Rechange",
 "notifyUrl": "http://wxyiwtonif.sj/vpuu",
 "returnUrl": "https://www.baidu.com/",
 "sign": "xxxxxxxx"
}

Response Parameters

FieldTypeRequiredDescription
statusintegerYesStatus
msgstringYesMessage
dataobjectYesData
data.applyTimeintegerYesApplication time — Timestamp format
data.amountnumberYesActual paid amount
data.linkstringYesPayment link
data.expireTimeintegerYesExpiration time — Timestamp format
data.mchOrderNostringYesMerchant order number
data.platOrderNostringYesPlatform order number
data.referencestringYesReference code

Response Example

json
{
 "status": 200,
 "msg": null,
 "data": {
 "mchOrderNo": "order_1662112944",
 "platOrderNo": "P5nosqyWAQsQZNtYa5OW",
 "applyTime": 1662112986,
 "amount": 1200,
 "reference": "706180279572315993",
 "link": "http://47.88.18.111:8032/?param=RjUzRUVBMTNBMTUwNUQwMURFMkQwNDc4RkI3OTM1Q0Q4OEJEQzhFN0VBMkNEMTQ0NzJEOTlBRjU2NDFFMDBGOQ==",
 "expireTime": 1662199387
 }
}

Transafe Developer Documentation