# Connect Billplz

Accept FPX online banking, cards and e-wallets in Malaysia: create a Billplz collection, copy your keys and turn on X Signature.

Source: https://support.rework.com/article/commerce-connect-billplz

> **In plain words:** **Billplz** is a Malaysian payment provider. Customers pay through FPX online banking, cards or e-wallets. In Billplz you create a **collection** (a folder for your bills), and copy an **API secret key** and an **X Signature key**. The X Signature key proves that payment messages really come from Billplz. New to the payment words used here? See [Payment accounts](https://support.rework.com/article/commerce-payment-accounts) and [Commerce basics](https://support.rework.com/article/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 Billplz account.
  
- A payment service in Commerce. See [Services](https://support.rework.com/article/commerce-services).
  
- Records priced in MYR. Billplz only takes MYR.
  

## Set up Billplz

1. Sign in to Billplz and open **Billing**. Create a collection and copy its **ID** from the collection's web address.
   
2. Open **Settings** > **Account Settings** and copy the **API secret key** and the **X Signature key**.
   
3. Under **Settings**, make sure **X Signature Callback** and **X Signature Redirect** are on. They are on by default for accounts opened since September 2018. Without them, payments are refused by Commerce and never marked paid.
   

Billplz describes its API and X Signature in [Billplz API](https://www.billplz.com/api).

There is no webhook to register: Commerce gives Billplz the address to report to with every bill.

## 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 **Billplz**. The form **New Billplz account** opens.
   
4. Type a **Name** your team will recognise, for example "Billplz main".
   
5. Fill in the fields from the steps above. For Billplz these are **Collection ID**, **API secret key** and **X Signature key**, all 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 Billplz account form](https://storage.googleapis.com/reworkv3-public/success/261011/hQlmv8UtyVVufm8xim8Y0BdXHOE7kFX19PWljcgww9XtVL0WHTJVJv3m9VWszAhp/img.8jtAycHAxGsViGZA2Twg3aaPXEnU90NUs09DhmJL2F2l7JZ4RlTItxmkuo55JoFX.png)

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](https://support.rework.com/article/commerce-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 **Billplz** 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 Billplz** and a **Pay** button with the amount. A note explains that they are taken to Billplz'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**. Billplz 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](https://support.rework.com/article/commerce-checkouts).

## Limits to know

- MYR only.
  
- Sandbox keys come from the Billplz sandbox site and only work in a sandbox workspace.
  

## Troubleshooting

| 
Problem

 | 

Why it happens

 | 

What to do

 |
| --- | --- | --- |
| 

Payments never show as paid

 | 

X Signature is off in Billplz, or the key is wrong

 | 

Turn on **X Signature Callback** and **X Signature Redirect**, then paste the current **X Signature key**

 |
| 

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

 |
