1. System flow #
1.1. Login to API to get a bearer token
1.2. Perform transaction API accordingly
2. API #
2.1. Login Token
This is to generate the bearer token that going to use for the rest of the API
URL: api/login
Content-Type | application/json | ||
Field | Field Length | Required | Descriptions |
mid | string(50) | Y | merchant id |
secret key | string(50) | Y | secret key provided |
2.2. Create order
Once user requests to create oder, an unique orderID is required. , The API will send through
the method of POST (ContentType=”application/json”), parameters as below;
URL: api/pay/order
Content-Type | application/json | ||
Field | Field Length | Required | Descriptions |
order_id | string(50) | Y | Unique self-generated id for the order |
amount | string(12) | Y | The format will be 00.00,two decimal places。 Ex:$10,the amount submitted should be 10.00 |
product_name | string(100) | Y | |
currency | string(3) | Y | “THB” OR “PHP” |
notify_url | string(255) | Y | After successful payment, the server will push the result page , merchants can process accordingly to update the database |
payment_type | string(255) | Y | “Qr” |
After the deposit request completed, the result will response via POST method to, parameters as below:
ContentType | application/json | |||
Field | Field Name | Field Length | Required | Descriptions |
status_code | Deposit request status code | string(2) | V | 00:Successful |
order_id | Order ID | string(50) | Unique id for the order | |
amount | string | The format will be 00.00,two decimal places. Ex:$10,the amount submitted should be 10.00 | ||
product_name | product | string(100) | ||
currency | currency | string(3) | “THB” OR “PHP” | |
url | Redirect url | If you get field url, please redirect this to webpage |
Annex: #
Payment Currency & Payment Type List
Currency | paytype | Method Name |
THB | QR | QR |
PHP | paymaya | E-wallet – Maya |
PHP | brankas_bdo | BDO Online via Brankas |
PHP | brankas_landbank | Landbank Online via Brankas |
PHP | metrobank | Metrobank Online via Brankas |
PHP | dob | BPI Online |
PHP | dob_ubp | UnionBank Online |
PHP | grab_pay | E-Wallet – GrabPay |
PHP | gcash | Gcash |
MXN | spei | Spei Bank Transfer |
BRL | pix | PIX Payment |
VND | p2p | P2P Solution |