Vault
How to use Vault to submit a payin in Philippines.
Create Vault
POST
https://gateway-test.pagsmile.com/vault/create
This endpoint allows you to create a vault.
Headers
Name | Type | Description |
---|---|---|
Content-Type* | string | application/json; chartset=UTF-8 |
Authorization* | string | Basic Base($app_id:$security_key) |
Request Body
Name | Type | Description |
---|---|---|
app_id* | string | created app's id at dashboard - Max. 32 chars - |
timestamp* | string | yyyy-MM-dd HH:mm:ss - Max. 19 chars - |
version* | string | Fixed value: 2.0 |
type* | string | Fixed value: wallet_account |
wallet_account.region* | string | PHL for Philippines |
wallet_account.method* | string | Wallet |
wallet_account.channel* | string | GCash |
wallet_account.uid* | string | Unique ID in merchant system |
wallet_account.device_type* | string | WEB or WAP |
wallet_account.return_url* | string |
Example
Refresh Vault
POST
https://gateway-test.pagsmile.com/vault/refresh
This endpoint allows you to refresh a vault.
Headers
Name | Type | Description |
---|---|---|
Content-Type* | string | application/json; chartset=UTF-8 |
Authorization* | string | Basic Base($app_id:$security_key) |
Request Body
Name | Type | Description |
---|---|---|
app_id* | string | created app's id at dashboard - Max. 32 chars - |
timestamp* | string | yyyy-MM-dd HH:mm:ss - Max. 19 chars - |
version* | string | Fixed value: 2.0 |
type* | string | Fixed value: wallet_account |
vault_token* | string |
Void Vault
POST
https://gateway-test.pagsmile.com/vault/void
This endpoint allows you to void a vault.
Headers
Name | Type | Description |
---|---|---|
Content-Type* | string | application/json; chartset=UTF-8 |
Authorization* | string | Basic Base($app_id:$security_key) |
Request Body
Name | Type | Description |
---|---|---|
app_id* | string | created app's id at dashboard - Max. 32 chars - |
timestamp* | string | yyyy-MM-dd HH:mm:ss - Max. 19 chars - |
version* | string | Fixed value: 2.0 |
type* | string | Fixed value: wallet_account |
vault_token* | string |
Note: 162************38 is pagsmile's test app id for sandbox, and MTYyNTgyOTIxNDUzMTY2Mzg6UGFnc21pbGVfc2tfZDUwMWQ1ZGNkNTI5OGQ5N2MwNmUzYjI4YjA2OWZjZmY3NDU5ZjY2NzNiMjFjMTFlYTY3NDM5MDgzOTZkOTYxNQ== is authorization token associated with the test app id.
Please use your own app_id and generate your own authorization token when testing.
Last updated