Connect Foxpay
Take payments with Foxpay cards and e-wallets in Vietnam: register with Foxpay, give them your IPN URL, then add the merchant ID, terminal ID and secret key in Commerce.
In plain words: Foxpay (formerly FPTPay) is a Vietnamese payment gateway from FPT for cards and e-wallets. Foxpay gives you a merchant ID (your business), a terminal ID (your branch) and a secret key that signs every message. You give Foxpay an IPN URL, where Foxpay tells Commerce that a payment succeeded. New to the payment words used here? See Payment accounts and Commerce basics.
Where to find it: Commerce > left icon rail > Settings > Accounts & integrations > Payment accounts. Who can use it: workspace admins.
Before you start
A merchant account with Foxpay. Register at doitac.foxpay.vn and complete their contract and checks.
A payment service in Commerce. See Services.
Records priced in VND. This provider only takes VND.
Give Foxpay your IPN URL
In Commerce, open New account > Foxpay and click View guideline.
Copy the IPN URL with the copy button.
Send it to Foxpay during registration and make sure they register it exactly as copied.
Get your credentials
When Foxpay approves your account, they send you a merchant ID, a terminal ID for your branch and a secret key. Keep the secret key private.
Add the account in Commerce
In Commerce, click Settings at the bottom of the left icon rail. Under Accounts & integrations, click Payment accounts.
Click New account. The New payment account dialog opens.
Under Payment gateways, click Foxpay. The form New Foxpay account opens.
Type a Name your team will recognise, for example "Foxpay main".
Fill in the fields from the steps above. For Foxpay these are Merchant ID, Terminal ID (branch) and Secret key, all required.
Optionally add Owners: people who are not admins but may manage this account.
Click Create account. The account appears in the table with the status Enabled.

Secret fields are hidden after saving. The table shows only their last four characters. To change one later, open the account with Edit and type the new value. Leave a secret blank to keep the stored one.
Note: The subtitle at the top of Payment accounts says Live environment or Sandbox environment. Use the provider's live keys in a live workspace and its test keys in a sandbox workspace.
Let customers pay with it
An account does nothing until a Payment service uses it. A payment service is the folder of payments that your quotes, orders and invoices collect through. See Payment accounts for how the pieces fit.
Click Payment in the left icon rail, then the payment service in the sidebar.
Click Service settings at the bottom of the sidebar.
Under Operations, click Payment accounts.
Turn on Online gateways if it is off, then tick your Foxpay account.
Click Save payment accounts.
What your customer sees
When a customer clicks Pay on a quote, invoice or payment link, they see Pay with Foxpay and a Pay button with the amount. A note explains that they are taken to Foxpay's own secure page, so their card or wallet details never reach your workspace.
After paying they return to a page that says "Waiting for the payment result" and then Payment received. Foxpay confirms the payment to Commerce in the background, and the invoice or quote shows as paid. Each attempt is listed under Payment > Checkouts. See Online checkouts.
Limits to know
VND only. Foxpay accepts amounts from 2,000 to 200,000,000 VND per payment.
Test credentials and live credentials are different. To move from testing to live, Foxpay sends go-live details after approval; ask your Rework administrator to switch the workspace to live with them.
Troubleshooting
Problem | Why it happens | What to do |
|---|---|---|
The customer pays but the record stays unpaid | Foxpay does not have your IPN URL, or it was registered with a typo | Copy the IPN URL again from View guideline and ask Foxpay to check their registration |
The payment is refused for a small or large amount | Foxpay accepts 2,000 to 200,000,000 VND per payment | Collect the amount another way, or split it with a payment plan |
The provider is not offered at checkout | The account is not attached to the payment service, or it is Disabled | Tick it under Online gateways in the service's Payment accounts settings, and check its status is Enabled |
A field shows "Stored ••1234, leave blank to keep." | The secret is saved and hidden on purpose | Leave it blank to keep it, or type a new value to replace it |