Testing & Go Live (1.0)
Last updated
Was this helpful?
Last updated
Was this helpful?
Complete end-to-end testing in your sandbox to make sure the entire integration functioning well as expected.
During the development, kindly use the sandbox API base URL as follows: https://sandbox.idrt-gateway.rupiahtoken.com /v1
, thus you can safely test all the REST API requests without affecting the production environment.
Log into the sandbox dashboard site, to see the result of the REST API call.
When a purchase request is created, our systems will send a callback to the URL configured in the dashboard. For further instructions about callbacks, kindly refer to the following guideline:
Here is an example of body parameter that are sent from IDRT Fiat Gateway API to your purchase created callback URL.
Parameter
Description
purchase_id
An Purchase ID generated by IDRT Fiat Gateway API
user_id
Your User ID
amount
Nominal amount for the purchase
due_date
ISO timestamp Due date of payment
bank_name
Bank Code. Value: MANDIRI, PERMATA, MANDIRI
bank_account_number
Virtual Account Number
Here is an example of body parameter that are sent from IDRT Fiat Gateway API to your purchase status callback URL.
Parameter
Description
purchase_id
An Purchase ID generated by IDRT Fiat Gateway APIs
user_id
Your User ID
amount
Nominal amount for the purchase
status
Status of Payment. Value : success, failed, canceled
payment_date
ISO timestamp of payment date
Deploying your code to the live environment takes only the following few steps:
Change the base URL for all your REST API calls from https://sandbox.idrt-gateway.rupiahtoken.com/v1
to https://.api-dashboard.rupiahtoken.com/v1
.
Change the references to your sandbox API key to the live API Key.
If you created or updated pages on a website, move that code from the test environment to the live environment.