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 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 Secret Key 1 and the Secret Key 2 that Viindoo asks for.
Who can do this, and where?¶
Task |
Role needed |
Application |
|---|---|---|
Set up the provider ZaloPay |
Administration: Settings |
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 application at ZaloPay;
Secret Key 1: the key that signs the orders Viindoo sends to ZaloPay;
Secret Key 2: the key that checks the data 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:
ZaloPay Merchant Code: the name shown to the payer. The preview under it reads <merchant code> - Pay for Order #…;
Zalo Payment Method: tick at least one of Allow payments with Wallet, Allow payments with ATM Card and Allow payments with Internaltional Card. Viindoo refuses to save the provider with none ticked.
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 an international card, whichever you allowed.
ZaloPay returns the customer to Viindoo. When the payment succeeds, the transaction is Done and the payment is recorded on the order or the invoice.
If the confirmation of ZaloPay does not reach Viindoo, Viindoo asks ZaloPay for the result of the pending transactions on a schedule.
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 You need to enable at least one payment method for the Zalopay Payment Provider! appears. |
None of the three payment methods is ticked. |
Tick at least one payment method 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. |