Connect HitPay

Accept cards, PayNow, GrabPay and local wallets across Southeast Asia: copy your API key and salt from HitPay and add the account in Commerce.

In plain words: HitPay is a payment provider for Southeast Asia (Singapore, Malaysia, the Philippines, Indonesia and Thailand). Customers pay by card, PayNow, GrabPay or a local wallet. From HitPay you need an API key and a salt: the salt lets Commerce check that HitPay's payment messages are genuine. 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 HitPay business account.

  • A payment service in Commerce. See Services.

Get your keys from HitPay

  1. Sign in to your HitPay dashboard.

  2. Open Settings > Payment Gateway > API Keys. In newer dashboards this is Developers > API and Salt Keys.

  3. Copy the API key and the Salt.

HitPay's developer guide is at HitPay Docs.

The webhook

Commerce sends its Webhook URL with every payment, so there is nothing to register for payments to be marked paid. If you prefer, add the same URL under Developers > Webhook Endpoints in HitPay. Find it under View guideline in the account form.

Add the account in Commerce

  1. In Commerce, click Settings at the bottom of the left icon rail. Under Accounts & integrations, click Payment accounts.

  2. Click New account. The New payment account dialog opens.

  3. Under Payment gateways, click HitPay. The form New HitPay account opens.

  4. Type a Name your team will recognise, for example "HitPay main".

  5. Fill in the fields from the steps above. For HitPay these are API key and Webhook salt, both required.

  6. Optionally add Owners: people who are not admins but may manage this account.

  7. Click Create account. The account appears in the table with the status Enabled.

The New HitPay account form

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.

  1. Click Payment in the left icon rail, then the payment service in the sidebar.

  2. Click Service settings at the bottom of the sidebar.

  3. Under Operations, click Payment accounts.

  4. Turn on Online gateways if it is off, then tick your HitPay account.

  5. Click Save payment accounts.

What your customer sees

When a customer clicks Pay on a quote, invoice or payment link, they see Pay with HitPay and a Pay button with the amount. A note explains that they are taken to HitPay'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. HitPay 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

  • HitPay decides which currencies and methods each account can take. If HitPay refuses a currency, the customer sees the error and can pay another way.

  • Sandbox keys come from the HitPay sandbox dashboard and only work in a sandbox workspace.

Troubleshooting

Problem

Why it happens

What to do

The customer pays but the record stays unpaid

The Webhook salt is wrong, so Commerce cannot trust HitPay's message

Copy the Salt again from HitPay into Webhook salt

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