payment-document.pages.dev
Open in
urlscan Pro
2606:4700:310c::ac42:2edc
Public Scan
URL:
https://payment-document.pages.dev/
Submission: On July 03 via api from US — Scanned from US
Submission: On July 03 via api from US — Scanned from US
Form analysis
0 forms found in the DOMText Content
* Version * API Interface Overview * Authentication * APIs * postGenerate QR Code * getTransactions * Merchant APIs * postGenerate QR Code * postWithdraw * getWithdraw Status * Appendix * Banks API docs by Redocly PAYMENT API DOCUMENTATION (1.0.0) VERSION Date Version Description 2023-07-01 1.0.0 Init document API INTERFACE OVERVIEW The Web Service API interface is for accessing the payment service Please send information to us: * Callback URL * JWT Secret Callback URL * AnyPay User Id * AnyPay Secret Key and ask us for the following information: * Payment Url * Agent Id * Secret Key AUTHENTICATION A JWT is a short lifetime token that can be assigned a specific expiration time. The example is as follows: * SecretKey: SAMPLEKEY * Agent Id: 1000 * User Id: 1 JWT BODY: { "userId": "1", "agentId": "1000", "iat": 1675224304, "exp": 1694754269 } JWT TOKEN: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiIxIiwiYWdlbnRJZCI6IjEwMDAiLCJpYXQiOjE2NzUyMjQzMDQsImV4cCI6MTY5NDc1NDI2OX0.S6KOc85AVwFsvFi7_c40IkDFKuWiVfrdytztWuTYHBM EXAMPLE REQUEST: curl --location --request GET '{{Payment Url}}/api/payment' \ --header 'Authorization: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiIxIiwiYWdlbnRJZCI6IjEwMDAiLCJpYXQiOjE2NzUyMjQzMDQsImV4cCI6MTY5NDc1NDI2OX0.S6KOc85AVwFsvFi7_c40IkDFKuWiVfrdytztWuTYHBM' \ --header 'Content-Type: application/json' APIS GENERATE QR CODE API to generate promptpay QR Code for making payment AUTHORIZATIONS: bearerAuth REQUEST BODY SCHEMA: APPLICATION/JSON amount required number <double> Amount RESPONSES 200 OK 400 Bad Request 401 Unauthorized 500 Server Error post/api/payment Test Environment https://payment-api-staging.chygaming.co/api/payment Production Environment https://payment-api.chygaming.co/api/payment REQUEST SAMPLES * Payload Content type application/json Copy { * "amount": 100.5 } RESPONSE SAMPLES * 200 * 400 * 401 * 500 Content type application/json Copy Expand all Collapse all { * "statusCode": 200, * "data": { * "userId": "u168163000", * "reference1": "202307031161030", * "reference2": "REF2DXQJ0J4E4M4", * "transaction_id": "cih6qs274a8c739a6vh0", * "imageBase64": "iVBORw0KGgoAAAANSUhEUgAAALQAAAC0CAYAAAA9zQYyAAAAAklEQVR4AewaftIAAAdZSURBVO3BQW4kRxDAQLKh/3+Z9jFPBTRmtPYWMsL+xVqXeFjrIg9rXeRhrYs8rHWRh7Uu8rDWRR7WusjDWhd5WOsiD2td5GGtizysdZGHtS7ysNZFHta6yA8fUvmTKiaV/1LFicpUcaLyTRWTylRxovInVXziYa2LPKx1kYe1LvLDl1V8k8obFScqU8WJylTxRsWk8k0Vk8qkMlV8ouKbVL7pYa2LPKx1kYe1LvLDL1N5o+KNiknlpGJS+ZMqJpWTik9UTConFW+ovFHxmx7WusjDWhd5WOsiP/zlVN5Q+YTKVPGGylQxqUwqU8WkMlVMKicVN3lY6yIPa13kYa2L/PCXq5hUvqniT6o4UZkqTiomlZs9rHWRh7Uu8rDWRX74ZRX/JxWfUDmp+JNUTiqmikllqnij4v/kYa2LPKx1kYe1LvLDl6n8SSpTxaRyojJVTCpTxaRyojJVTCpTxaQyVUwqU8WkMlV8QuX/7GGtizysdZGHtS7yw4cq/s8qJpVPqHxCZao4qXhD5Y2Kk4q/ycNaF3lY6yIPa13khw+pTBWTyknFpPJGxYnKVPGJijcqTlSmihOVk4o3VKaKSWWqOFGZKiaVk4pPPKx1kYe1LvKw1kV++FDFJ1ROKiaVSWWqeEPlDZWpYlJ5o2JSmSpOKn5TxTdV/KaHtS7ysNZFHta6iP2LL1KZKiaVk4pJZaqYVKaKP0llqvgmlaniDZWpYlI5qThR+UTFNz2sdZGHtS7ysNZFfviyik+oTBUnFZPKN1V8QmWqOFGZKia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mp+MTDWhd5WOsiD2td5IcPVZyonFRMKicVb1ScVJyoTBWTyknFpHJS8U0qU8Wk8k0Vk8pU8Zse1rrIw1oXeVjrIvYv/mIqb1RMKlPFb1I5qXhDZap4Q2WqeEPljYpJZar4xMNaF3lY6yIPa13khw+p/EkVJxWTyqTyJ6m8oTJVnFRMKlPFJ1SmipOKNyq+6WGtizysdZGHtS7yw5dVfJPKJyomlaliUpkqTlTeqDhReUPlDZU3Kr5J5aTiEw9rXeRhrYs8rHWRH36ZyhsVb1RMKicVk8qJyhsVJypTxYnKScU3qXxC5aRiUvmmh7Uu8rDWRR7WusgPfzmVk4qTihOVb6o4qZhUTlSmiknlpOJE5W/ysNZFHta6yMNaF/nhMhXfVDGpTBUnKm9UTBWTylQxqZxUvFFxojJVnKhMFd/0sNZFHta6yMNaF/nhl1X8pooTlanib6IyVZxUvKEyVUwqU8WJyn/pYa2LPKx1kYe1LvLDl6n8SSonFScqb1S8UfGGylTxCZWpYqqYVN6omFSmihOVqeITD2td5GGtizysdRH7F2td4mGtizysdZGHtS7ysNZFHta6yMNaF3lY6yIPa13kYa2LPKx1kYe1LvKw1kUe1rrIw1oXeVjrIv8Aj77AfOSQIrMAAAAASUVORK5CYII=", * "price": 100.5, * "payment_id": 500 } } TRANSACTIONS API to inquiry transactions by transaction id or all transactions AUTHORIZATIONS: bearerAuth QUERY PARAMETERS transactionId string Transaction Id RESPONSES 200 OK 400 Bad Request 401 Unauthorized 500 Server Error get/api/payment-transactions Test Environment https://payment-api-staging.chygaming.co/api/payment-transactions Production Environment https://payment-api.chygaming.co/api/payment-transactions RESPONSE SAMPLES * 200 * 400 * 401 * 500 Content type application/json Copy Expand all Collapse all { * "statusCode": 200, * "data": [ * { * "user_id": "1", * "transaction_id": "cgv2e6g33kic73cov2u0", * "merchant_transaction_id": "1445566788", * "reference1": 202304181157537, * "reference2": "REFHBFGDAEDDHIE", * "amount": 100.5, * "fee": 5, * "payer_name": "REFHBFGDAEDDHIE", * "payer_account_number": "REFHBFGDAEDDHIE", * "payer_bank_code": "REFHBFGDAEDDHIE", * "status": 1, * "payment_status": "paid", * "created_date": "2023-04-18T05:14:02.000Z", * "updated_date": "2023-04-18T05:14:02.000Z" } ] } MERCHANT APIS GENERATE QR CODE API to generate promptpay QR Code for making payment merchant AUTHORIZATIONS: bearerAuth REQUEST BODY SCHEMA: APPLICATION/JSON amount required number <double> Amount RESPONSES 200 OK 400 Bad Request 401 Unauthorized 500 Server Error post/api/merchant/qr-code Test Environment https://payment-api-staging.chygaming.co/api/merchant/qr-code Production Environment https://payment-api.chygaming.co/api/merchant/qr-code REQUEST SAMPLES * Payload Content type application/json Copy { * "amount": 100.5 } RESPONSE SAMPLES * 200 * 400 * 401 * 500 Content type application/json Copy Expand all Collapse all { * "statusCode": 200, * "data": { * "userId": "u168163000", * "reference1": "202307031161030", * "reference2": "REF2DXQJ0J4E4M4", * "imageBase64": "iVBORw0KGgoAAAANSUhEUgAAALQAAAC0CAYAAAA9zQYyAAAAAklEQVR4AewaftIAAAdZSURBVO3BQW4kRxDAQLKh/3+Z9jFPBTRmtPYWMsL+xVqXeFjrIg9rXeRhrYs8rHWRh7Uu8rDWRR7WusjDWhd5WOsiD2td5GGtizysdZGHtS7ysNZFHta6yA8fUvmTKiaV/1LFicpUcaLyTRWTylRxovInVXziYa2LPKx1kYe1LvLDl1V8k8obFScqU8WJylTxRsWk8k0Vk8qkMlV8ouKbVL7pYa2LPKx1kYe1LvLDL1N5o+KNiknlpGJS+ZMqJpWTik9UTConFW+ovFHxmx7WusjDWhd5WOsiP/zlVN5Q+YTKVPGGylQxqUwqU8WkMlVMKicVN3lY6yIPa13kYa2L/PCXq5hUvqniT6o4UZkqTiomlZs9rHWRh7Uu8rDWRX74ZRX/JxWfUDmp+JNUTiqmikllqnij4v/kYa2LPKx1kYe1LvLDl6n8SSpTxaRyojJVTCpTxaRyojJVTCpTxaQyVUwqU8WkMlV8QuX/7GGtizysdZGHtS7yw4cq/s8qJpVPqHxCZao4qXh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8lx7WusjDWhd5WOsiP3xIZao4UZkqTlTeqJhUTireUDmpOKl4Q2WqmFTeUJkqTlROKj6hMlV84mGtizysdZGHtS7yw4cqJpWp4g2VqWJSOVGZKk5UpoqTihOVqeJE5RMV31RxovJGxaQyVXzTw1oXeVjrIg9rXeSHX6ZyojJVTCpTxW9SmSp+U8WJyonKScVU8YbKGypTxVTxmx7WusjDWhd5WOsiP3xIZar4pooTlTcqTipOVKaKqWJSmSreqJhUTipOVKaKk4pvUjmp+MTDWhd5WOsiD2td5IcPVZyonFRMKicVb1ScVJyoTBWTyknFpHJS8U0qU8Wk8k0Vk8pU8Zse1rrIw1oXeVjrIvYv/mIqb1RMKlPFb1I5qXhDZap4Q2WqeEPljYpJZar4xMNaF3lY6yIPa13khw+p/EkVJxWTyqTyJ6m8oTJVnFRMKlPFJ1SmipOKNyq+6WGtizysdZGHtS7yw5dVfJPKJyomlaliUpkqTlTeqDhReUPlDZU3Kr5J5aTiEw9rXeRhrYs8rHWRH36ZyhsVb1RMKicVk8qJyhsVJypTxYnKScU3qXxC5aRiUvmmh7Uu8rDWRR7WusgPfzmVk4qTihOVb6o4qZhUTlSmiknlpOJE5W/ysNZFHta6yMNaF/nhMhXfVDGpTBUnKm9UTBWTylQxqZxUvFFxojJVnKhMFd/0sNZFHta6yMNaF/nhl1X8pooTlanib6IyVZxUvKEyVUwqU8WJyn/pYa2LPKx1kYe1LvLDl6n8SSonFScqb1S8UfGGylTxCZWpYqqYVN6omFSmihOVqeITD2td5GGtizysdRH7F2td4mGtizysdZGHtS7ysNZFHta6yMNaF3lY6yIPa13kYa2LPKx1kYe1LvKw1kUe1rrIw1oXeVjrIv8Aj77AfOSQIrMAAAAASUVORK5CYII=", * "price": 100.5 } } WITHDRAW Withdraw to bank account no AUTHORIZATIONS: bearerAuth REQUEST BODY SCHEMA: APPLICATION/JSON bankAccount required string Bank Account No. amount required number <double> Amount bankCode required string Bank Code reference Code bankName string Bank Name reference Name beneficiaryName string Beneficiary Name RESPONSES 200 OK 400 Bad Request 401 Unauthorized 500 Server Error post/api/merchant/withdraw Test Environment https://payment-api-staging.chygaming.co/api/merchant/withdraw Production Environment https://payment-api.chygaming.co/api/merchant/withdraw REQUEST SAMPLES * Payload Content type application/json Copy { * "bankAccount": "6295555555", * "amount": 5.5, * "bankCode": "004", * "bankName": "KBANK", * "beneficiaryName": "ทดสอบ ทดสอบ" } RESPONSE SAMPLES * 200 * 400 * 401 * 500 Content type application/json Copy Expand all Collapse all { * "statusCode": 200, * "data": { * "transactionID": "317809000275", * "responseCode": "00", * "description": "Success", * "clientTransactionNo": "TXN26a0mIXnDtD3aHdd", * "clientTransactionTimestamp": "20230627095626811" } } WITHDRAW STATUS API to inquiry withdraw status AUTHORIZATIONS: bearerAuth QUERY PARAMETERS transactionID required string Transaction Id clientTransactionNo required string Client Transaction No clientTransactionTimestamp required string Client Transaction Timestamp RESPONSES 200 OK 400 Bad Request 401 Unauthorized 500 Server Error get/api/merchant/status Test Environment https://payment-api-staging.chygaming.co/api/merchant/status Production Environment https://payment-api.chygaming.co/api/merchant/status RESPONSE SAMPLES * 200 * 400 * 401 * 500 Content type application/json Copy Expand all Collapse all { * "statusCode": 200, * "data": [ * { * "user_id": "1", * "transaction_id": "cgv2e6g33kic73cov2u0", * "merchant_transaction_id": "1445566788", * "reference1": 202304181157537, * "reference2": "REFHBFGDAEDDHIE", * "amount": 100.5, * "fee": 5, * "payer_name": "REFHBFGDAEDDHIE", * "payer_account_number": "REFHBFGDAEDDHIE", * "payer_bank_code": "REFHBFGDAEDDHIE", * "status": 1, * "payment_status": "paid", * "created_date": "2023-04-18T05:14:02.000Z", * "updated_date": "2023-04-18T05:14:02.000Z" } ] } APPENDIX BANKS Code Name Account No Digits 002 BBL 10 004 KBANK 10 006 KTB 10 011 TMB 10 014 SCB 10 017 CITI 10 018 SMBC 10 020 SCBT 10,11 022 CIMB 10 024 UOB 10 025 BAY 10 029 IOB 10 030 GSB 12 031 HSBC 12 032 DBBK 10 033 GHB 12 034 BAAC 10,12 039 MHCB 11 045 BNPP 11 052 BOC 15 066 IBANK 10 067 TISCO 14 069 KKB 10,14 070 ICBC 10,14,16 071 TCRB 10 073 LHB 10 098 SME 10