05 Payments & Tax
Connecting Payment Gateways
Connect Billplz, Stripe, PayPal, or approved third-party gateways directly to your store.
On this page
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
/checkoutand on WhatsApp Order Form Pay Now pages. - Encrypted storage: All API keys and webhook secrets are encrypted at rest.
Connecting a payment gateway
- Go to Website → Settings → Payment Gateways.
- Click + Connect beside the gateway you want to configure.
- Enter the required credentials in the slide-over drawer (details for each provider below) and click Verify and connect.
- 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.
- Create a REST app in PayPal Developer Dashboard → Apps & Credentials.
- In Toocak, open the PayPal drawer and paste your Client ID and Client Secret, choose Sandbox or Live, and click Verify and connect.
- Copy the Webhook URL shown in the drawer and add it inside your PayPal REST app webhook settings.
- 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:
- Open the gateway drawer via Configure.
- Replace the sandbox credentials with your production/live credentials (and uncheck Sandbox mode for Billplz/PayPal).
- Click Update credentials and verify the Test mode badge disappears.
- 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).