How to make a payment with ZaloPay¶
ZaloPay is an online payment gateway. Once you connect it to Viindoo, your customers can pay a sales order or an invoice with the ZaloPay wallet, an ATM card or a bank account, or an international card, and Viindoo records the transaction and the payment by itself.
This guide is for administrators who set ZaloPay up and for accountants who follow the payments. ZaloPay accepts Vietnamese dong (VND) only.
Requirements
This tutorial requires the installation of the following applications/modules:
You also need a merchant account with ZaloPay: it gives you the App ID, the Key 1 and the Key 2 that Viindoo asks for.
Who can do this, and where?¶
Task |
Role needed |
Application |
|---|---|---|
Set up the provider ZaloPay |
Role: Administrator, with the Accounting role Administrator |
Accounting |
Pay an order or an invoice |
Customer |
Customer portal or website |
How do I set up ZaloPay?¶
Go to Apps, remove the filter Apps and search for ZaloPay. The module ZaloPay Payment Provider must be installed. Install the module if it is not.
Go to Accounting ‣ Configuration ‣ Online Payments ‣ Payment Providers. The provider ZaloPay is on the list, Disabled until you set it up. Click its card.
In the tab Credentials, enter the information ZaloPay gave you:
ZaloPay App ID: the identifier of your merchant application at ZaloPay;
ZaloPay Key 1: the key that signs the requests Viindoo sends to ZaloPay;
ZaloPay Key 2: the key that checks the callbacks and redirections ZaloPay sends back.
Then choose the State: Test Mode to try the payment with the test environment of ZaloPay, where only your internal users see ZaloPay at the checkout and no real money moves, or Enabled for real payments. With Enabled, ZaloPay is published, so your customers see it.
The values in the picture are samples. The link How to configure your ZaloPay account? opens the guide of ZaloPay.
Open the tab Configuration:
Payment Journal: the journal that receives the payments;
ZaloPay Payment Options: tick at least one of Allow payments with ZaloPay Wallet (ticked by default), Allow payments with ATM Cards and Bank Accounts and Allow payments with International Cards. Viindoo refuses to save the provider with none ticked;
ZaloPay Merchant Code: the name shown to the customer in the order description on ZaloPay, the company name when you leave it empty. The field ZaloPay Description Preview shows the description, for example <merchant code> - Payment for <reference>.
Click Save.
How does a customer pay with ZaloPay?¶
Note
This part needs a live ZaloPay merchant account, so it has no screenshot: the payment pages belong to ZaloPay, and no credential or real payment is used for this article.
The customer opens the sales order or the invoice from the link in your email, the customer portal or your website, and clicks Pay Now.
The customer chooses ZaloPay. Viindoo sends the customer to the payment page of ZaloPay.
On that page, the customer pays with the wallet, an ATM card or bank account, or an international card, whichever you allowed.
ZaloPay returns the customer to Viindoo. Viindoo asks ZaloPay for the result of the order, and ZaloPay also sends its own callback. When the payment succeeds, the transaction is Confirmed and the payment is recorded on the order or the invoice.
What should I see afterwards?¶
The chatter of the sales order and of the invoice shows the payment transaction.
In developer mode, Accounting ‣ Configuration ‣ Online Payments ‣ Payment Transactions lists every transaction with its reference and its state.
Common problems¶
Problem |
Cause |
What to do |
|---|---|---|
The message Enable at least one way of paying with the ZaloPay payment provider appears. |
None of the three payment options is ticked. |
Tick at least one payment option in the tab Configuration. |
Customers do not see ZaloPay at the checkout. |
The provider is Disabled, or it is in Test Mode and not published. |
Set the state to Enabled, or click the button Unpublished at the top of the provider to publish it. |
ZaloPay is not offered for an order. |
ZaloPay works in VND only. |
Issue the order in VND, or offer another provider. |
Next steps¶
See also
Related article
Optional module