ATM & Bank Transfer in Indonesia (Virtual Accounts)
Overview
ATM & Bank Transfer in Indonesia (Virtual Accounts) is the most popular Indonesian alternative payment method in which customer transfers funds to virtual bank account by using a banking mobile application, internet banking, or a physical ATM. Each customer receives a Virtual Account (VA) with a 16-digit number and is an account created and assigned to each of your customers automatically in response to the payment request so that you would be able to differentiate each payment from the payment source. Monetix creates a virtual bank account on an interbank network that is unique to the payment and is used only once. The payments made to the different Virtual Accounts will be automatically aggregated into the merchant's master account. The customer uses provided information to do a bank transfer into the virtual account before the account expires. A client can perform the bank transfer in the following ways:
Most (80 %) of transactions in Indonesia occur via virtual accounts. Monetix offers payment processing with major banks in Indonesia—Mandiri, Permata, CIMB and others. Purchases can be processed by using Payment Page and Gate. Download the logo in vector format here. |
![]() |
Payment method type | bank transfers |
---|---|
Countries and regions | Indonesia |
Payment currencies | IDR |
Currency conversion | on the Monetix side; refer to your Monetix key account manager to enable currency conversion |
Purchases | |
Payouts | |
COF payments | |
Full refunds | contact Monetix technical support |
Partial refunds | contact Monetix technical support |
Chargebacks | |
Notes | Payment amount in the IDR currency must be strictly integer. Therefore, you must specify in your payment request the amount rounded to integer numbers in minor currency units. If another currency is specified in the request, the payment amount is converted on the Monetix side to an equivalent amount in IDR and rounded upward, for example 215 500.04 IDR is rounded to 215 501,00 IDR |
Onboarding and access fee | Refer to your Monetix key account manager |
Interaction diagram
Payment processing by using the ATM & Bank Transfer in Indonesia (Virtual Accounts) payment method requires merchant's web service, one of the interfaces and the payment platform of Monetix, as well the provider service.
Operations support
Interfaces | Amounts, IDR | ||||
---|---|---|---|---|---|
Payment Page | Gate | Dashboard | minimum | maximum | |
Purchases | * | * |
* For the most recent amount limits, refer to your Monetix Key Account Manager.
You can check the payment amount limits in your project by using Dashboard. To check your payment amount limits, go to Dashboard, select the Projects section and click the Payment methods tab.
Processing scenarios
In the ATM & Bank Transfer in Indonesia (Virtual Accounts) method, purchase can be performed either by redirecting customer to the provider service or by displaying the payment instructions to the customer. Refer to your Monetix key account manager for more information about workflow selection.
The sections that follow provide detailed information about what you need to perform payments and how you can analyze the information on payments and operations.
Supported banks
Payments with ATM & Bank Transfer in Indonesia (Virtual Accounts) are carried out through the banks that support this method. When using Payment Page, the customer generally selects a bank in the payment form, although in the payments that use Payment Page with the pre-selected payment method and bank or Gate, the customer must select the bank on the web service side and the request must contain the bank ID.
The tables below provide information about the supported banks. The list is provided for informational purposes only.
Bank | ID |
---|---|
Bank Artha Graha VA | 57022 |
BANK MAYBANK INDONESIA | 565 |
Bank Sahabat Sampoerna VA | 4391 |
Bank Syariah Indonesia (BSI) | 69041 |
BCA Virtual Account | 55731 |
BNI Virtual Account | 2931 |
BRI Virtual Account | 499 |
CIMB VA | 436 |
Danamon VA | 435 |
Mandiri VA | 434 |
MAYBANK INDONESIA SYARIAH | 559 |
Maybank VA | 2831 |
Permata VA | 433 |
Sinarmas Virtual Account | 562 |
Bank | ID |
---|---|
Bank Sahabat Sampoerna VA | 4391 |
BCA Virtual Account | 55731 |
BNI Virtual Account | 2931 |
BRI Virtual Account | 499 |
BSMVA | 55821 |
CIMB Niaga | 2201 |
CIMB VA | 436 |
Danamon VA | 435 |
DOKUVA | 55831 |
Mandiri VA | 434 |
Permata VA | 433 |
Note that the list of the supported banks may change without notice. To get the most recent list of the supported banks, use the Gate API to send a POST request to the /v2/info/banks/indonesia-va/sale/list
endpoint at Gate API. The endpoint is a part of the /v2/info/banks/{payment_method}/{operationType}/list group of endpoints.
The following objects and parameters must be specified in the request for the list of supported banks:
- general—object with general request information:
- project_id—the project ID obtained from Monetix
- payment_id—payment ID, unique within the project
- signature—signature created after all the parameters are collected. For more information about signature generation, see Signature generation and verification
- payment—object with payment information:
- amount—payment amount in minor currency units without any decimal point or comma except for cases where the currency does not have any minor currency units. If the currency have no minor units (that is, the number of digits for minor currency units is zero), then you must set this parameter to the amount in the major currency units. For the information on whether the currency has any minor units, see Currency codes.
- currency—payment currency code in ISO-4217 alpha-3 format
Here is an example of the data from a request for the list of supported banks. It is important to specify real payment data, but if the payment has not yet been generated, you can specify a random value for the payment ID in the request.
{ "general": { "project_id": 200, "payment_id": "ORDER_155860015", "signature": "K6jllym+PtObocZtr345st...==" }, "payment": { "amount": 1000, "currency": "IDR" } }
[ { "minAmount": 100, // Minimum payment amount allowed for the payment (in minor currency units) "maxAmount": 1000, // Maximum payment amount allowed for the payment (in minor currency units) "limitCurrency": "IDR", // Code of the currency used for the payment limits (minAmount and maxAmount) in the ISO-4217 alpha-3 format "id": 123, // Bank ID "abbr": "EXB", // Bank shortcut name (for internal use) "name": "Example Bank", // General bank name "nativeName": "Example Bank", // Native bank name "currencies": [ // Array with currencies supported by the bank { "id": 123, // Currency ID in the payment platform "alpha_3_4217": "IDR", // Alphabetic code of the payment currency in the ISO-4217 alpha-3 format "number_3_4217": "123", // Numeric code of the payment currency in the ISO-4217 alpha-3 format "currency_type": "fiat", // Type of the currency "exponent": 2 // Number of decimal places after decimal point } ] } ]
Purchase by using Payment Page. Channel 1: customer redirection
General information
In the ATM & Bank Transfer in Indonesia (Virtual Accounts) method, when processing a purchase by using Payment Page, the merchant web service sends a request with all the required parameters and signature to the Monetix URL and accepts the callback with the payment result from the payment platform.
When opening Payment Page, you can have Payment Page opened with the ATM & Bank Transfer in Indonesia (Virtual Accounts) method pre-selected. (For more information about pre-selecting payment methods, see Preselecting payment methods.)
The full sequence of the purchase workflow is provided below.
- A customer initiates a purchase on the merchant's web service.
- The web service sends the request for Payment Page opening to the specified Monetix URL.
- The request for opening is redirected to the payment platform.
- The payment platform performs the initial request processing that involves validation of the required parameters and signature.
- Requested Payment Page is generated into the Monetix payment platform as specified in the project settings and the request parameters.
- Payment Page is displayed to the customer.
- The customer selects one of the banks from ATM & Bank Transfer in Indonesia (Virtual Accounts) group.
- The payment platform receives the purchase request for payment processing.
- The payment platform performs the internal purchase request processing and sends it to the provider service.
- The purchase request is processed on the provider side.
- The provider service generates the data for redirecting the customer to its website form and sends it to the payment platform.
- The payment platform sends the customer redirection data to Payment Page.
- The customer is redirected to the provider website, where a 16 digit code and payment instructions are displayed to the customer.
- In accordance with the payment instructions the customer enters the code on either the bank website, bank mobile application or the ATM, and confirms the purchase.
- The payment is processed on the provider side.
- The provider service sends the result notification to the payment platform.
- The payment platform sends a callback with the payment result to the web service.
- The payment platform sends the result to Payment Page.
- A page with the payment result information is displayed to the customer on Payment Page.
The sections that follow discuss in more details the request format and the Payment Page parameters to use in the ATM & Bank Transfer in Indonesia (Virtual Accounts) payment method and provide the information about the format of callbacks with payment results. For the general information about how to use the Payment Page API, see Payment Page API Description.
Request format
There are several things you need to consider when dealing with purchase requests in the ATM & Bank Transfer in Indonesia (Virtual Accounts) method:
- You must provide values for the basic minimum of parameters. Listed below are the parameters that are required for any payment method:
- project_id—the project ID obtained from Monetix
- payment_id—payment ID unique within the project
- customer_id—unique ID of the customer within your project
- customer_first_name—customer first name
- customer_last_name—customer last name
- customer_email—customer email address
- payment_currency—payment currency in ISO-4217 alpha-3 format
- payment_amount—purchase amount in minor currency units. If the currency IDR is specified in the purchase request it is necessary to round the payment amount to an integer. If another currency is specified in the request, the payment amount is converted to an equivalent amount in the IDR currency on the Monetix side and rounded up to an integer. (For example, if the converted amount is 200,000.05 IDR, such an amount is rounded up to 200,001.00 IDR.)
If the currency have no minor units (that is, the number of digits for minor currency units is zero), then you must set this parameter to the amount in the major currency units. For the information on whether the currency has any minor units, see Currency codes.
- There are several options to customize the payment method selection page on Payment Page.
- Bank selection in two steps This option is used by default. The banks that support ATM & Bank Transfer in Indonesia (Virtual Accounts) payment method are grouped in one button on Payment Page, therefore the bank selection is carried out in two steps. On the first step, the ATM & Bank Transfer in Indonesia (Virtual Accounts) method is chosen among others, and then, on the second step, the particular bank is selected on the next page with the list of the group banks.
- Display each bank as a separate button along with other payment methods To show each bank of the ATM & Bank Transfer in Indonesia (Virtual Accounts) group as a separate button, set the split_banks parameter in the payment_methods_options string to
true
.payment_methods_options={"indonesia_va": {"split_banks": true}}
- Show the banks of only one payment method To show only the banks available in the ATM & Bank Transfer in Indonesia (Virtual Accounts) payment method on Payment Page for customers, pass the code
indonesia-va
in the force_payment_method parameter. The customer will see only the banks available in the ATM & Bank Transfer in Indonesia (Virtual Accounts) method. - Show only selected banks To display a button of specific banks (one or several) from ATM & Bank Transfer in Indonesia (Virtual Accounts) group on Payment Page in the list of payment methods, set force_payment_method to indonesia-va and add an array with IDs of the banks to show on Payment Page in the banks_id parameter. Here an example:
payment_methods_options={"indonesia_va": {"split_banks": true, "banks_id": [499, 436]}}
Here is an example of a request to open Payment Page with the specific pre-selected bank:
Figure 8. Example of a request to show only selected bank on Payment Page EPayWidget.run( { project_id: 1234, payment_id: 'payment_47', customer_id: 'customer_123', customer_first_name: 'John', customer_last_name: 'Doe', customer_email: 'johndoe@example.com', payment_currency: 'IDR', payment_amount: 20000000, force_payment_method: 'indonesia-va', payment_methods_options: {"indonesia_va": {"banks_id": [499]}}, signature: 'kUi2x9dKHAVNU0FY...vySO\/RLCvhtT4DqtVUkDJrOcZzUCwX6R\/ekpZhkIQg==' } )
- You can also add any other additional parameters Payment Page supports. For more information about parameters supported by Payment Page, see Payment Page invocation parameters.
- After you specify all the parameters you need, you must create the signature for the request. For instructions on how to sign payment requests, see Signature generation and verification.
Here is an example of the data from a request for the Payment Page opening:
EPayWidget.run( { project_id: 1234, payment_id: 'payment_47', customer_id: 'customer_123', customer_first_name: 'John', customer_last_name: 'Doe', customer_email: 'johndoe@email.com', payment_currency: 'IDR', payment_amount: 20000000, signature: 'kUi2x9dKHAVNU0FYldJrxh4yo+52Kt8KU+Y19vySO\/RLUkDJrOcZzUCwX6R\/ekpZhkIQg==' } )
Callback format
The ATM & Bank Transfer in Indonesia (Virtual Accounts) method uses the standard format for callbacks to deliver purchase results. For more information about callbacks, see Callbacks in Payment Page.
The following is an example of a callback with information about a successful 200,000.00 IDR
purchase.
{ "project_id": 1234, "payment": { "id": "payment_123", "type": "purchase", "status": "success", "date": "2020-02-22T22:44:46+0000", "method": "indonesia-va", "sum": { "amount": 20000000, "currency": "IDR" }, "description": "" }, "account": { "number": "8856113600001045" }, "customer": { "id": "customer_123" }, "operation": { "id": 52084000029401, "type": "sale", "status": "success", "date": "2020-02-22T22:44:46+0000", "created_date": "2020-02-22T17:30:42+0000", "request_id": "59b48b4c2d0a2b6a-00052085", "sum_initial": { "amount": 20000000, "currency": "IDR" }, "sum_converted": { "amount": 20000000, "currency": "IDR" }, "code": "0", "message": "Success", "provider": { "id": 12345, "payment_id": "123456", "auth_code": "", "date": "2020-02-22T22:44:45+0000" } }, "signature": "Hekd6+86S592dGuYCHNLADZ8LaBC5/JSKObUxTvkUuCZL4phAiFQA==" }
Here is the example of a callback for a declined purchase due to minimum amount limit exceeding.
{ "project_id": 1234, "payment": { "id": "payment_123", "type": "purchase", "status": "decline", "date": "2020-02-22T22:44:46+0000", "method": "indonesia-va", "sum": { "amount": 1000, "currency": "IDR" }, "description": "" }, "account": { "number": "8856113600001046" }, "customer": { "id": "customer_123" }, "operation": { "id": 52084000029401, "type": "sale", "status": "decline", "date": "2020-02-22T22:44:46+0000", "created_date": "2020-02-22T17:30:42+0000", "request_id": "59b48b4c2d0a2b6a-00052085", "sum_initial": { "amount": 1000, "currency": "IDR" }, "sum_converted": { "amount": 1000, "currency": "IDR" }, "code": "20101", "message": "Decline due to amount or frequency limit", }, "signature": "Hekd6+86S592dGuYCHNLADZ8LaBC5/JSKObUxTvkUuCZL4phAiFQA==" }
Related topics
The following topics might be useful when implementing payments through Payment Page:
Purchase by using Payment Page. Channel 2: no customer redirection
General information
In the ATM & Bank Transfer in Indonesia (Virtual Accounts) method, when processing a purchase by using Payment Page, the merchant web service sends a request with all the required parameters and signature to the Monetix URL and accepts the callback with the payment result from the payment platform.
When opening Payment Page, you can have Payment Page opened with the ATM & Bank Transfer in Indonesia (Virtual Accounts) method pre-selected. (For more information about pre-selecting payment methods, see Preselecting payment methods.)
The full sequence of the purchase workflow is provided below.
- Customer initiates a purchase on the merchant's web service.
- The web service sends the request for Payment Page opening to the specified Monetix URL.
- The payment enters the payment platform.
- The payment platform performs the initial request processing that involves validation of the required parameters and signature.
- The requested Payment Page is generated inside the Monetix payment platform as specified in the project settings and the request parameters.
- Payment Page is displayed to the customer.
- The customer selects one of the banks from ATM & Bank Transfer in Indonesia (Virtual Accounts) group.
- The payment platform receives the purchase request.
- The payment platform further performs the internal purchase request processing and sends it to the provider service.
- The purchase request is processed on the provider side.
- The provider service sends the data required to display the payment instruction to the payment platform.
- The payment platform sends the customer the data required to display the payment instruction.
- The payment instructions are displayed to the customer.
- The customer follows the payment instructions and confirms the purchase by entering the code—either on the bank website, in the bank mobile application, or at the ATM.
- The payment is processed on the provider side.
- The provider service sends the notification with purchase processing result to the payment platform.
- The payment platform sends a callback with the payment result to the web service.
- The payment platform sends the result to Payment Page.
- A page with the payment result information is displayed to the customer on Payment Page.
The sections that follow discuss in more details the request format and the Payment Page parameters to use in the ATM & Bank Transfer in Indonesia (Virtual Accounts) payment method and provide the information about the format of callbacks with payment results. For the general information about how to use the Payment Page API, see Payment Page API Description.
Request format
There are several things you need to consider when dealing with purchase requests in the ATM & Bank Transfer in Indonesia (Virtual Accounts) method:
- You must provide values for the basic minimum of parameters. Listed below are the parameters that are required for any payment method:
- project_id—project ID you obtained from Monetix
- payment_id—payment ID, unique within the project
- customer_id—unique ID of the customer within your project
- customer_first_name—customer first name
- customer_last_name—customer last name
- customer_email—customer email address
- payment_currency—payment currency in ISO-4217 alpha-3 format
- payment_amount—purchase amount in minor currency units. If the currency IDR is specified in the purchase request it is necessary to round the payment amount to an integer. If another currency is specified in the request, the payment amount is converted to an equivalent amount in the IDR currency on the Monetix side and rounded up to an integer. (For example, if the converted amount is 200,000.05 IDR, such an amount is rounded up to 200,001.00 IDR.)
If the currency have no minor units (that is, the number of digits for minor currency units is zero), then you must set this parameter to the amount in the major currency units. For the information on whether the currency has any minor units, see Currency codes.
- There are several options to customize the payment method selection page on Payment Page.
- Bank selection in two steps This option is used by default. The banks that support ATM & Bank Transfer in Indonesia (Virtual Accounts) payment method are grouped in one button on Payment Page, therefore the bank selection is carried out in two steps. On the first step, the ATM & Bank Transfer in Indonesia (Virtual Accounts) method is chosen among others, and then, on the second step, the particular bank is selected on the next page with the list of the group banks.
- Display each bank as a separate button along with other payment methods To show each bank of the ATM & Bank Transfer in Indonesia (Virtual Accounts) group as a separate button, set the split_banks parameter in the payment_methods_options string to
true
.payment_methods_options={"indonesia_va": {"split_banks": true}}
- Show the banks of only one payment method To show only the banks available in the ATM & Bank Transfer in Indonesia (Virtual Accounts) payment method on Payment Page for customers, pass the code
indonesia-va
in the force_payment_method parameter. The customer will see only the banks available in the ATM & Bank Transfer in Indonesia (Virtual Accounts) method. - Show only selected banks To display a button of specific banks (one or several) from ATM & Bank Transfer in Indonesia (Virtual Accounts) group on Payment Page in the list of payment methods, set force_payment_method to indonesia-va and add an array with IDs of the banks to show on Payment Page in the banks_id parameter. Here an example:
payment_methods_options={"indonesia_va": {"split_banks": true, "banks_id": [499, 436]}}
Here is an example of a request to open Payment Page with the specific pre-selected bank:
Figure 12. Example of a request to show only selected bank on Payment Page EPayWidget.run( { project_id: 1234, payment_id: 'payment_47', customer_id: 'customer_123', customer_first_name: 'John', customer_last_name: 'Doe', customer_email: 'johndoe@example.com', payment_currency: 'IDR', payment_amount: 20000000, force_payment_method: 'indonesia-va', payment_methods_options: {"indonesia_va": {"banks_id": [499]}}, signature: 'kUi2x9dKHAVNU0FY...vySO\/RLCvhtT4DqtVUkDJrOcZzUCwX6R\/ekpZhkIQg==' } )
- You can also add any other additional parameters Payment Page supports. For more information about parameters supported by Payment Page, see Payment Page invocation parameters.
- After you specify all the parameters you need, you must create the signature for the request. For instructions on how to sign payment requests, see Signature generation and verification.
Here is an example of the data from a request for the Payment Page opening:
EPayWidget.run( { project_id: 1234, payment_id: 'payment_47', customer_id: 'customer_123', customer_first_name: 'John', customer_last_name: 'Doe', customer_email: 'johndoe@email.com', payment_currency: 'IDR', payment_amount: 20000000, signature: 'kUi2x9dKHAVNU0FYldJrxh4yo+52Kt8KU+Y19vySO\/RLUkDJrOcZzUCwX6R\/ekpZhkIQg==' } )
Callback format
The ATM & Bank Transfer in Indonesia (Virtual Accounts) method uses the standard format for callbacks to deliver purchase results. For more information about callbacks, see Callbacks in Payment Page.
The following is an example of a callback with information about a successful 200,000.00 IDR
purchase.
{ "project_id": 1234, "payment": { "id": "payment_47", "type": "purchase", "status": "success", "date": "2020-02-22T22:44:46+0000", "method": "indonesia-va", "sum": { "amount": 20000000, "currency": "IDR" }, "description": "" }, "account": { "number": "8854321000001234" }, "customer": { "id": "customer_123" }, "operation": { "id": 54321000012345, "type": "sale", "status": "success", "date": "2020-02-22T22:44:46+0000", "created_date": "2020-02-22T17:30:42+0000", "request_id": "59b48b4c2d0a2b6a-00052085", "sum_initial": { "amount": 20000000, "currency": "IDR" }, "sum_converted": { "amount": 20000000, "currency": "IDR" }, "code": "0", "message": "Success", "provider": { "id": 1164, "payment_id": "644206", "auth_code": "", "date": "2020-02-22T22:44:45+0000" } }, "signature": "Hekd6+86S592dGuYCHNLADZ8LaBC5/JSKObUxTvkUuCZL4phAiFQA==" }
The following is the example of a callback for a declined purchase.
{ "project_id": 1234, "payment": { "id": "payment_47", "type": "purchase", "status": "decline", "date": "2020-02-22T22:44:46+0000", "method": "indonesia-va", "sum": { "amount": 20000000, "currency": "IDR" }, "description": "" }, "account": { "number": "8854321000001234" }, "customer": { "id": "customer_123" }, "operation": { "id": 54321000012345, "type": "sale", "status": "decline", "date": "2020-02-22T22:44:46+0000", "created_date": "2020-02-22T17:30:42+0000", "request_id": "59b48b4c2d0a2b6a-00052085", "sum_initial": { "amount": 20000000, "currency": "IDR" }, "sum_converted": { "amount": 20000000, "currency": "IDR" }, "code": "20000", "message": "General decline", }, "signature": "Hekd6+86S592dGuYCHNLADZ8LaBC5/JSKObUxTvkUuCZL4phAiFQA==" }
Related topics
The following topics might be useful when implementing payments through Payment Page:
Purchase by using Gate. Channel 1: customer redirection
General information
In the ATM & Bank Transfer in Indonesia (Virtual Accounts) method, the merchant web service is required to do the following when processing a purchase by using Gate:
- Send a request with all the required parameters and signature to the Monetix URL.
- Redirect the customer to the page with a payment instructions.
- Accept the callback with the payment result from the payment platform.
The following diagram provides the detailed picture of the payment processing procedure.
- A customer initiates a purchase through the ATM & Bank Transfer in Indonesia (Virtual Accounts) method on the merchant's web service side.
- The web service sends the request for processing the purchase by using Gate to the specified Monetix URL.
- The payment platform receives the request for processing the purchase from Gate.
- The payment platform performs the initial request processing that includes validation of the required parameters and signature.
- The payment platform sends the response with request receipt confirmation and correctness check result to the web service. For more information, see Response structure.
- The payment platform performs the internal payment request processing and redirects the request to the provider service.
- The request is processed on the provider side.
- The provider service sends the data for redirecting the customer to the provider website to the payment platform.
- The payment platform sends the callback with the redirection data to the web service.
- The customer is redirected to the provider website, where a 16 digit code and payment instructions are displayed to the customer.
- In accordance with the payment instructions the customer enters the code on either the bank website, bank mobile application or the ATM, and confirms the purchase.
- The payment is processed on the provider side.
- The provider service sends the payment result notification to the payment platform.
- The Monetix payment platform sends a callback to the web service.
- The customer receives the payment result information from the web service.
The sections that follow discuss in more details the request format and the Gate parameters to use in the ATM & Bank Transfer in Indonesia (Virtual Accounts) payment method and provide the information about the format of callbacks with purchase results. For the general information on how to use the Gate API, see API Description.
Request format
There are several things you need to consider when dealing with purchase requests in the ATM & Bank Transfer in Indonesia (Virtual Accounts) method:
- You initiate a purchase by submitting a purchase request to the
/v2/payment/banks/indonesia-va/sale
endpoint by using the HTTP method POST. This endpoint belongs to the following group of endpoints: /v2/payment/banks/{payment_method}/sale. - The following objects and parameters must be specified in any request:
- general—object with general purchase information:
- project_id—the project ID you obtained from Monetix
- payment_id—payment ID unique within the project
- signature—signature created after you specify all the required parameters. For more information about signature generation, see Signature generation and verification.
- customer—object with customer information:
- id—the unique ID of the customer within your project
- ip_address—IP address of the customer's device
- first_name—customer first name
- last_name—customer last name
- email—customer email address
- payment—object with payment details:
- amount—purchase amount in minor currency units. If the currency IDR is specified in the purchase request it is necessary to round the payment amount to an integer. If another currency is specified in the request, the payment amount is converted to an equivalent amount in the IDR currency on the Monetix side and rounded up to an integer (for example, if the converted amount is 200,000.05 IDR, such an amount is rounded up to 200,001.00 IDR).
If the currency have no minor units (that is, the number of digits for minor currency units is zero), then you must set this parameter to the amount in the major currency units. For the information on whether the currency has any minor units, see Currency codes.
- currency—code of the purchase currency in the ISO-4217 alpha-3 format
- amount—purchase amount in minor currency units. If the currency IDR is specified in the purchase request it is necessary to round the payment amount to an integer. If another currency is specified in the request, the payment amount is converted to an equivalent amount in the IDR currency on the Monetix side and rounded up to an integer (for example, if the converted amount is 200,000.05 IDR, such an amount is rounded up to 200,001.00 IDR).
- account—object with customer account information:
- bank_id—bank identifier
- general—object with general purchase information:
- The following parameters with the return URLs are optional, but we strongly advise you to specify them in the request to provide your customer a better user experience. If you don't specify any parameters of the return_url object in the request, by default Gate will redirect the customer to the URL specified in your project in Monetix.
- return_url—object with the information where to redirect the customer to when the payment is completed or prematurely terminated by the customer:
- success—the URL to redirect the customer to after the payment is successfully completed.
- decline—the URL to redirect the customer to after the payment is declined.
- return—the URL to redirect the customer to when they prematurely terminate the payment. This URL is also used if the success and decline parameters are not specified in the request.
- return_url—object with the information where to redirect the customer to when the payment is completed or prematurely terminated by the customer:
- If required, you can add any other additional (optional) parameters Gate supports.
Here is an example of the data from a purchase request in the ATM & Bank Transfer in Indonesia (Virtual Accounts) method.
{ "general": { "project_id": 1234, "payment_id": "payment_47", "signature": "PJkV8ej\/UG0Di8hTng6JvC7vQsaC6tajQVVfBaNIipTv+AWoXW\/9MTO8yJA==" }, "customer": { "id":"customer_123", "ip_address": "198.51.100.47", "first_name": "John", "last_name": "Doe", "email": "johndoe@example.com" }, "account":{ "bank_id": 499 }, "payment": { "amount": 20000000, "currency": "IDR" }, "return_url": { "success": "https://example.com/success/", "decline": "https://example.com/decline/", "return": "https://example.com/return/" } }
Format of customer redirection data
After receiving and processing your purchase request, the payment platform sends a callback to your web service containing the data to redirect the customer to the provider service.
To redirect the customer, use the values of the following parameters in the redirect_data object:
- url—the URL to redirect the customer to
- body—the data to be sent in the request body
- method—the HTTP method to get an HTML page of the website (for example, POST or GET)
- encrypted—this is the service parameter. Ignore the data it contains.
Here is an example of a piece of callback containing the data to redirect the customer.
"redirect_data": { "method": "POST", "body": { "example_parameter_1": "value_1", "example_parameter_2": "value_2" }, "encrypted": [], "url": "https://example.com/redirect" }
Callback format
The ATM & Bank Transfer in Indonesia (Virtual Accounts) method uses the standard format for callbacks to deliver purchase results. For more information about callbacks, see Callbacks in Gate.
The following is an example of a callback with information about a successful 200,000.00 IDR
purchase.
{ "project_id": 1234, "payment": { "id": "9770802", "type": "purchase", "status": "success", "date": "2020-02-22T22:44:46+0000", "method": "indonesia-va", "sum": { "amount": 20000000, "currency": "IDR" }, "description": "" }, "account": { "number": "8856113600001045" }, "customer": { "id": "1" }, "operation": { "id": 52084000029401, "type": "sale", "status": "success", "date": "2020-02-22T22:44:46+0000", "created_date": "2020-02-22T17:30:42+0000", "request_id": "59b48b4c2d0a2b6a-00052085", "sum_initial": { "amount": 20000000, "currency": "IDR" }, "sum_converted": { "amount": 20000000, "currency": "IDR" }, "code": "0", "message": "Success", "provider": { "id": 1164, "payment_id": "644206", "auth_code": "", "date": "2020-02-22T22:44:45+0000" } }, "signature": "Hekd6+86S592dGuYCHNLADZ8LaBC5/JSKObUxTvkUuCZL4phAiFQA==" }
The following is the example of a callback for a purchase declined due to the exceeded amount limit.
{ "project_id": 1234, "payment": { "id": "9770802", "type": "purchase", "status": "decline", "date": "2020-02-22T22:44:46+0000", "method": "indonesia-va", "sum": { "amount": 1000, "currency": "IDR" }, "description": "" }, "account": { "number": "8856113600001046" }, "customer": { "id": "1" }, "operation": { "id": 52084000029401, "type": "sale", "status": "decline", "date": "2020-02-22T22:44:46+0000", "created_date": "2020-02-22T17:30:42+0000", "request_id": "59b48b4c2d0a2b6a-00052085", "sum_initial": { "amount": 1000, "currency": "IDR" }, "sum_converted": { "amount": 1000, "currency": "IDR" }, "code": "20101", "message": "Decline due to amount or frequency limit", }, "signature": "Hekd6+86S592dGuYCHNLADZ8LaBC5/JSKObUxTvkUuCZL4phAiFQA==" }
Related topics
The following topics might be useful when implementing payments through Gate:
Purchase by using Gate. Channel 2: no customer redirection
General information
In the ATM & Bank Transfer in Indonesia (Virtual Accounts) method, the merchant web service is required to do the following when processing a purchase by using Gate:
- Send out a request with all the required parameters and signature to the Monetix URL.
- Display the page with payment instructions to the customer.
- Accept callback with payment result from the payment platform.
The following diagram provides the detailed picture of the payment processing procedure.
- A customer initiates a purchase through the ATM & Bank Transfer in Indonesia (Virtual Accounts) method on the merchant's web service side.
- The web service sends the request for processing the purchase by using Gate to the specified Monetix URL.
- The payment platform receives the request for processing the purchase from Gate.
- The payment platform performs the initial request processing that includes validation of the required parameters and signature.
- The payment platform sends the response with request receipt confirmation and correctness check result to the web service. For more information, see Response structure.
- The payment platform performs the internal payment request processing and redirects the request to the provider service.
- The request is processed on the provider side.
- The provider service sends the data for redirecting the customer to the provider website to the payment platform.
- The payment platform sends callback with the redirection data to the web service.
- The payment instructions are displayed to the customer.
- The customer completes purchase by following the payment instructions.
- The payment is processed on the provider side.
- The provider service sends the payment result notification to the payment platform.
- The Monetix payment platform sends callback to the web service.
- The customer receives the payment result information from the web service.
The sections that follow discuss in more details the request format and the Gate parameters to use in the ATM & Bank Transfer in Indonesia (Virtual Accounts) payment method and provide the information about the format of callbacks with purchase results. For the general information on how to use the Gate API, see API Description.
Request format
There are several things you need to consider when dealing with purchase requests in the ATM & Bank Transfer in Indonesia (Virtual Accounts) method:
- You initiate a purchase by submitting a purchase request to the
/v2/payment/banks/indonesia-va/sale
endpoint by using the HTTP method POST. This endpoint belongs to the following group of endpoints: /v2/payment/banks/{payment_method}/sale. - The following objects and parameters must be specified in any request:
- general—object with general purchase information:
- project_id—the project ID you obtained from Monetix
- payment_id—payment ID unique within the project
- signature—signature created after you specify all the required parameters. For more information about signature generation, see Signature generation and verification.
- customer—object with customer information:
- id—the unique ID of the customer within your project
- ip_address—IP address of the customer's device
- first_name—customer first name
- last_name—customer last name
- email—customer email
-
payment—object with purchase information:
- amount—purchase amount in minor currency units. If the currency IDR is specified in the purchase request it is necessary to round the payment amount to an integer. If another currency is specified in the request, the payment amount is converted to an equivalent amount in the IDR currency on the Monetix side and rounded up to an integer (for example, if the converted amount is 200,000.05 IDR, such an amount is rounded up to 200,001.00 IDR).
If the currency have no minor units (that is, the number of digits for minor currency units is zero), then you must set this parameter to the amount in the major currency units. For the information on whether the currency has any minor units, see Currency codes.
- currency—code of the purchase currency in the ISO-4217 alpha-3 format
- amount—purchase amount in minor currency units. If the currency IDR is specified in the purchase request it is necessary to round the payment amount to an integer. If another currency is specified in the request, the payment amount is converted to an equivalent amount in the IDR currency on the Monetix side and rounded up to an integer (for example, if the converted amount is 200,000.05 IDR, such an amount is rounded up to 200,001.00 IDR).
- account—object with customer account information:
- bank_id—bank identifier
- general—object with general purchase information:
- If required, you can add any other additional (optional) parameters Gate supports.
Here is an example of the data from a purchase request in the ATM & Bank Transfer in Indonesia (Virtual Accounts) method.
{ "general": { "project_id": 1234, "payment_id": "payment_47", "signature": "PJkV8ej\/UG0Di8hTng6JvC7vQsaC6tajQVVfBaNIipTv+AWoXW\/9MTO8yJA==" }, "customer": { "id":"customer_123", "ip_address": "198.51.100.47", "first_name": "John", "last_name": "Doe", "email": "johndoe@example.com" }, "account":{ "bank_id": 499 }, "payment": { "amount": 20000000, "currency": "IDR" } }
Format of payment instruction data
Before displaying the screen with payment instructions to the customer, you must accept a callback from the payment platform with the payment data in the display_data array—only after this you can display the screen with payment instructions to the customer.
Each element of the display_data array contains the following parameters:
- type—data type, the value is always
add_info
- title—name of the payment instruction components. Possible values:
- invoice_number—payment number
- virtual_account_number—virtual account number of payment recipient
- request_amount—payment amount
- request_currency—payment currency code
- expired_date—payment expiration deadline. Specified in Unix time.
- data—payment instruction details.
Examples of payment instructions by using different payment ways through some Indonesian banks are shown in the file you can download here. Before displaying these instructions to the customer, replace the data in the instructions with the actual data you received in the display_data array.
The following example of callback code contains the data for displaying to the customer.
"display_data": [ { "type": "add_info", "title": "invoice_number", "data": "12345678987654" }, { "type": "add_info", "title": "virtual_account_number", "data": "8889940000012345" }, { "type": "add_info", "title": "request_amount", "data": "200000" }, { "type": "add_info", "title": "request_currency", "data": "IDR" }, { "type": "add_info", "title": "expired_date", "data": "1648190569" } ]
Callback format
The ATM & Bank Transfer in Indonesia (Virtual Accounts) method uses the standard format for callbacks to deliver purchase results. For more information about callbacks, see Callbacks in Gate.
The following is an example of a callback with information about a successful 200,000.00 IDR
purchase.
{ "project_id": 1234, "payment": { "id": "9770802", "type": "purchase", "status": "success", "date": "2020-02-22T22:44:46+0000", "method": "indonesia-va", "sum": { "amount": 20000000, "currency": "IDR" }, "description": "" }, "account": { "number": "8854321000001234" }, "customer": { "id": "customer_123" }, "operation": { "id": 54321000012345, "type": "sale", "status": "success", "date": "2020-02-22T22:44:46+0000", "created_date": "2020-02-22T17:30:42+0000", "request_id": "59b48b4c2d0a2b6a-00052085", "sum_initial": { "amount": 20000000, "currency": "IDR" }, "sum_converted": { "amount": 20000000, "currency": "IDR" }, "code": "0", "message": "Success", "provider": { "id": 1164, "payment_id": "644206", "auth_code": "", "date": "2020-02-22T22:44:45+0000" } }, "signature": "Hekd6+86S592dGuYCHNLADZ8LaBC5/JSKObUxTvkUuCZL4phAiFQA==" }
The following is the example of a callback for a declined purchase.
{ "project_id": 1234, "payment": { "id": "9770802", "type": "purchase", "status": "decline", "date": "2020-02-22T22:44:46+0000", "method": "indonesia-va", "sum": { "amount": 20000000, "currency": "IDR" }, "description": "" }, "account": { "number": "8854321000001234" }, "customer": { "id": "customer_123" }, "operation": { "id": 54321000012345, "type": "sale", "status": "decline", "date": "2020-02-22T22:44:46+0000", "created_date": "2020-02-22T17:30:42+0000", "request_id": "59b48b4c2d0a2b6a-00052085", "sum_initial": { "amount": 20000000, "currency": "IDR" }, "sum_converted": { "amount": 20000000, "currency": "IDR" }, "code": "20000", "message": "General decline", }, "signature": "Hekd6+86S592dGuYCHNLADZ8LaBC5/JSKObUxTvkUuCZL4phAiFQA==" }
Related topics
The following topics might be useful when implementing payments through Gate:
Testing
General information
You can perform test purchases with the ATM & Bank Transfer in Indonesia (Virtual Accounts) payment method by using Payment Page and Gate.
To perform test purchases, you'll need the test project ID and the secret key to it. To get them, please contact the technical support team at support@monetix.pro and then contact your Monetix key account manager to set up a test environment to work with the ATM & Bank Transfer in Indonesia (Virtual Accounts) payment method.
When performing test payments, keep in mind that:
- your requests must contain the test project ID
- the payment currency that you send in requests can be only IDR
- random values may be used as the payment ID and in the parameters with customer information
- the interface of the test checkout page may be different from the production one.
Test payments statuses
To receive one of the following statuses in the callback with the test purchase result, use a particular value for the purchase amount in the request:
40000
and40400
—to receive a callback with the decline status- any other value—to receive a callback with the success status
Testing purchase by using Payment Page
To perform a test purchase by using Payment Page:
- Send a request for purchase through Payment Page to the payment platform.
- Choose a payment method on the test checkout page. If you've passed the force_payment_method parameter with the
indonesia-va
value in the request, you won't have to choose the payment method. - Specify a random first name and last name in the data entry fields. The payment instructions will be displayed to you after.
- Accept a callback with information about the test purchase result.
- Wait a few seconds until the result of the test purchase is displayed to you on the test checkout page.
See the detailed information about purchase processing through Payment Page in the ATM & Bank Transfer in Indonesia (Virtual Accounts) payment method in the Purchase by using Payment Page section.
Testing purchase by using Gate
To perform a test purchase by using Gate:
- Send a request for performing a test purchase to the payment platform.
- Accept a callback with the data for displaying payment instructions. Your system will display the payment instructions to you after.
- Accept a callback with information about the test payment result.
- Wait a few seconds until your system shows you the result of the test purchase.
See the detailed information about purchase processing through Gate in the ATM & Bank Transfer in Indonesia (Virtual Accounts) payment method in the Purchase by using Gate section.
Analysis of payments results
As with other payment methods Monetix offers, when using this method, you have several options to analyze the information about payments and operations.
You can load and analyze all the necessary information in Dashboard (dash-light.trxhost.com
), for instance you can use the analytic panels in the Analytics section for this purpose.
Also, you can export the information for further analysis by using third party analytical tools. The following options are available:
- Dashboard allows you to download reports in CSV format by using the tools in the Reports section. You can perform export as a one-time or regular download of data to your local computer.
- Data API allows you to have payment information exported in JSON format and delivered to a URL you specify. The payment information is exported by means of sending requests to the /operations/get endpoint.
If you have any further questions regarding payment data analysis, contact Monetix technical support.