How Virtual Account Payment Work

wahyu eko hadi saputro
4 min readDec 31, 2023

A virtual account is a bank account that exists only in the digital realm and doesn’t have a physical existence like traditional bank accounts. It’s primarily used for electronic transactions, especially in online banking, e-commerce, and payment processing systems

Creating Virtual Account for company :

Creating a virtual account with an Indonesian bank typically involves partnering or integrating with a payment gateway or financial service provider that offers virtual account solutions. Companies, especially in the e-commerce sector, often collaborate with these providers to enable their customers to make payments via virtual accounts. Here’s a general guide on how an e-commerce company might approach creating virtual accounts with Indonesian banks:

1. Identify Payment Service Providers: Research and identify payment gateway providers in Indonesia that offer virtual account solutions. Companies like Midtrans, Xendit, or other similar platforms often provide integration services with various Indonesian banks for virtual accounts.

2. Select a Provider: Evaluate different providers based on their features, fees, supported banks, security measures, API documentation, and ease of integration. Choose a provider that aligns with your business requirements and offers the necessary support for creating virtual accounts.

3. Register and Integrate: Once you’ve chosen a provider, register for an account and initiate the integration process. Most providers offer comprehensive documentation and support for developers to integrate their APIs or SDKs into your e-commerce platform or app.

4. Bank Partnerships: The payment service provider typically has partnerships or integrations with multiple Indonesian banks. Through this integration, they facilitate the creation and management of virtual accounts associated with these banks for your customers.

5. Testing and Compliance: After integration, thoroughly test the virtual account functionality to ensure seamless payment processing. Ensure compliance with local regulations and security standards to protect sensitive customer information and transactions.

6. Launch and Support: Once testing is successful and everything is in order, launch the virtual account payment option on your e-commerce platform. Provide customer support and guidance regarding the usage of virtual accounts for payments.

Remember, each provider might have its specific procedures and requirements, so it’s essential to follow their guidelines during the integration process. Additionally, understanding the specific needs of your customers and their preferred payment methods within Indonesia can help tailor the virtual account solution to enhance user experience and increase transactions on your platform.

Payment Process with virtual account :

During the payment process, the company application (ecommerce application) will send payment messaging data to the payment gateway asynchronously, and the transaction status will be in progress.

Example of VA (virtual account) :

How Company (ecommerce) get payment notification from the bank

Flow of webhook notification

Webhook Vs Polling

Webhooks:

Definition: Webhooks are user-defined HTTP callbacks or endpoints that are triggered by specific events or updates from a server.
Workflow: Instead of continuously checking for updates, the server sends a POST request to a specified URL (webhook) when a particular event occurs.
Efficiency: Efficient because the server sends data only when there’s something new or an event of interest, reducing unnecessary requests.
Use Cases: Ideal for real-time applications, notifications, and scenarios where immediate updates or event-driven triggers are necessary.

Polling:

Definition: Polling involves continuously or at regular intervals querying a server or an endpoint to check for updates or new data.
Workflow: An application makes requests at predefined intervals (e.g., every few seconds, minutes, etc.) to a server, asking if there are any updates.
Efficiency: Can lead to unnecessary requests if there are no updates, which might result in increased network traffic and resource consumption.
Use Cases: Commonly used in scenarios where real-time updates are not critical or when there’s no efficient way to receive notifications or callbacks.

Source:

Tokopedia.com

https://www.xendit.co/id/blog/membuat-website-ecommerce-dengan-sistem-pembayaran-xendit/

--

--