Websites, online payments & WhatsApp Order Form — 0% sales commission
05 · Payments & Tax
3 min read

05 Payments & Tax

Connecting Payment Gateways

Connect Billplz, Stripe, PayPal, or approved third-party gateways directly to your store.

On this page
  1. How payments work on Toocak
  2. Connecting a payment gateway
  3. Billplz (FPX, E-wallet, Card — MYR)
  4. Stripe (Cards, Apple Pay, FPX)
  5. PayPal (PayPal Balance & Guest Cards)
  6. Third-party / Partner Gateways
  7. Switching from Test mode to Live mode
  8. Troubleshooting

Accept FPX, cards, e-wallets, and PayPal directly into your own merchant account with 0% sales commission from Toocak.

How payments work on Toocak

  • Direct settlement: Funds settle straight into your own gateway account (Billplz, Stripe, PayPal, or approved partner gateway). Toocak never holds your revenue or charges a percentage per sale.
  • Multi-select gateways: You can enable multiple payment gateways at the same time so shoppers choose their preferred method on /checkout and on WhatsApp Order Form Pay Now pages.
  • Encrypted storage: All API keys and webhook secrets are encrypted at rest.

Connecting a payment gateway

  1. Go to Website → Settings → Payment Gateways.
  2. Click + Connect beside the gateway you want to configure.
  3. Enter the required credentials in the slide-over drawer (details for each provider below) and click Verify and connect.
  4. Once status shows Connected, switch Available at checkout on and click Save changes.

Billplz (FPX, E-wallet, Card — MYR)

Supported currency: MYR.

Field Where to find it
Secret Key Billplz Dashboard → Account Settings → API Keys
X Signature Key Billplz Dashboard → Account Settings → API Keys (verifies every payment callback)
Collection ID Billplz Dashboard → Billing → open or create a Collection (e.g., inbmmepb)
Use the Billplz Sandbox while testing Check this while testing with Billplz sandbox credentials; uncheck when switching to live keys

Toocak automatically sends your store's signed callback URL with every bill created.


Stripe (Cards, Apple Pay, FPX)

Supports multiple store currencies depending on your Stripe account configuration.

Field Where to find it
Secret Key Stripe Dashboard → Developers → API keys (sk_live_... for live or sk_test_... for test mode)
Webhook Signing Secret (optional) Leave blank on a live HTTPS site — Toocak automatically registers the Stripe webhook and stores its signing secret for you
Publishable Key (optional) Stored for reference only; checkout runs server-side so this is not required

Important

Use your account secret key rather than a restricted key so Toocak can automatically register and verify the required Stripe Checkout and PaymentIntent webhook events. Using a sk_test_ key automatically flags the gateway as Test mode.


PayPal (PayPal Balance & Guest Cards)

Supported currencies: AUD, BND, EUR, GBP, MYR, PHP, SGD, THB, USD.

  1. Create a REST app in PayPal Developer Dashboard → Apps & Credentials.
  2. In Toocak, open the PayPal drawer and paste your Client ID and Client Secret, choose Sandbox or Live, and click Verify and connect.
  3. Copy the Webhook URL shown in the drawer and add it inside your PayPal REST app webhook settings.
  4. Paste the resulting PayPal Webhook ID back into Toocak and click Update credentials.

Third-party / Partner Gateways

Any platform-approved payment integration published through the Toocak Developer Console appears directly in Website → Settings → Payment Gateways alongside built-in gateways. Follow the credential prompts shown in that gateway's drawer and toggle Available at checkout once verified.

Switching from Test mode to Live mode

Gateways connected with sandbox or sk_test_ keys display an amber Test mode badge. Before taking real customer orders:

  1. Open the gateway drawer via Configure.
  2. Replace the sandbox credentials with your production/live credentials (and uncheck Sandbox mode for Billplz/PayPal).
  3. Click Update credentials and verify the Test mode badge disappears.
  4. Run one small real test transaction to confirm webhook settlement marks the order Paid.

Troubleshooting

  • Gateway shows "Setup incomplete"? Open Configure and complete the Webhook step (most commonly PayPal's Webhook ID).
  • Checkout says "Gateway required"? Make sure at least one verified gateway has Available at checkout toggled on and click Save changes at the bottom of the Payment Gateways card.
  • Currency mismatch? Confirm your store currency under Website → Settings → Commerce & Checkout is supported by the gateway (for example, Billplz requires MYR).