How to make a payment with NganLuong¶
NganLuong is an online payment gateway. Once you connect it to Viindoo, your customers can pay an invoice or a sales order through NganLuong and Viindoo records the transaction and the payment by itself.
This guide is for administrators who set NganLuong up and for accountants who follow the payments. NganLuong accepts Vietnamese dong (VND) and US dollar (USD).
Requirements
This tutorial requires the installation of the following applications/modules:
You also need a merchant account with NganLuong: it gives you the Merchant ID, the Merchant Password and the Receiver Email that Viindoo asks for.
Who can do this, and where?¶
Task |
Role needed |
Application |
|---|---|---|
Set up the provider NganLuong |
Administration: Settings |
Accounting |
Pay an order or an invoice |
Customer |
Customer portal |
How do I set up NganLuong?¶
Go to Apps, remove the filter Apps and search for nganluong. The module Ngan Luong Payment Provider must be installed. Install the module if it is not.
Go to Accounting ‣ Configuration ‣ Online Payments ‣ Payment Providers. The provider NganLuong is on the list, Disabled until you set it up. Click Activate on its card.
In the tab Credentials, enter the information NganLuong gave you:
NganLuong Merchant ID: the site code of your merchant account;
NganLuong Merchant Password: the password NganLuong gave you;
NganLuong Receiver Email: the email registered at NganLuong to receive the money.
Then choose the State: Test Mode uses the test environment of NganLuong and no real money moves, Enabled is for real payments and publishes the provider.
The values in the picture are samples.
Open the tab Configuration, choose the Payment Journal that receives the payments, then click Save. See How to set up payment providers in Viindoo for the other fields.
How do I treat detained payments?¶
A detained payment is a payment that NganLuong holds for a while before it releases the money to you. In the tab Configuration, the option Accept Detained Payments decides what Viindoo does with it.
Ticked: the transaction is Done as soon as NganLuong reports the payment, even if the money is still detained. The invoice is then paid.
Not ticked (default): the transaction stays Pending while the money is detained. Viindoo asks NganLuong about every pending transaction once an hour, and the transaction becomes Done when NganLuong has released the money.
How does a customer pay with NganLuong?¶
Note
This part needs a live NganLuong merchant account, so it has no screenshot: the payment pages belong to NganLuong, and no credential or real payment is used for this article.
The customer opens the invoice or the sales order from the link in your email or the customer portal and clicks Pay Now.
The customer chooses NganLuong. Viindoo sends the customer to the payment page of NganLuong, in the test environment of NganLuong when the state is Test Mode.
On that page, the customer chooses a payment method and confirms the payment.
NganLuong returns the customer to Viindoo. The transaction is Done, or Pending when the payment is detained and the option above is not ticked.
What should I see afterwards?¶
In developer mode, Accounting ‣ Configuration ‣ Online Payments ‣ Payment Transactions lists every transaction with its reference and its state.
A detained payment shows as Pending with the message that NganLuong detains it.
Common problems¶
Problem |
Cause |
What to do |
|---|---|---|
Customers do not see NganLuong 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. |
NganLuong is not offered for an order. |
NganLuong accepts VND and USD only. |
Issue the order in VND or USD, or offer another provider. |
The form asks for the merchant ID, the password and the receiver email. |
The three are required as soon as the state is not Disabled. |
Enter the values of your NganLuong merchant account. |
A paid order stays Pending. |
The payment is detained by NganLuong and Accept Detained Payments is not ticked. |
Wait for NganLuong to release the money, or tick the option if you accept detained payments. |