Westpac PayWay
Connect Westpac PayWay to PayLexer, configure API credentials, and start processing AUD payments for Australian businesses.
Westpac PayWay is an Australia-based payment gateway by Westpac Banking Corporation, providing secure online payment infrastructure for Australian businesses. It supports card payments, direct debit, BPAY, digital wallets, and PayTo for businesses operating in Australia.
-
Supported Regions (Merchant Accounts): Australia
-
Supported Currencies: AUD
This gateway appears in checkout only when the selected currency is AUD.
Supported Features
-
One-time payments
-
Refunds
-
Real-time payment status updates
Before You Start
Make sure you have:
-
Westpac PayWay Merchant Account – Don't have one? Sign up for Westpac PayWay →
-
PayLexer Account – Required to configure the integration. Create your account →
-
A website where you want to integrate
Looking for a different payment processor? View all supported gateways →
Configuring Westpac PayWay
You need a Publishable API Key, Secret API Key, and Merchant ID from Westpac PayWay for this integration.
Getting API Credentials
Log in and open REST API Keys
Log in to your Westpac PayWay Merchant Portal and navigate to Settings - REST API Keys.

Generate your Publishable API Key
Click + Add to create a new API key.

Select Publishable and click Save.

After saving, click on the copy button to copy your Publishable API Key.

Generate your Secret API Key
Click Back to return to REST API Keys. You will see your Publishable key listed. Click + Add again.

Select Secret and click Save.

After saving, click on the copy button to copy your Secret API Key.

Your Secret API Key expires annually and must be renewed. Save it securely before continuing.
Find your Merchant ID
Navigate to Settings - Banking - Merchants.

Your Merchant ID is listed in the Merchant ID column.

Westpac PayWay provides separate credentials for Test and Live environments. Test credentials begin with T (e.g. T20385_PUB_...) and Live credentials begin with L (e.g. L20385_PUB_...). Configure credentials in both environments to enable full testing.
Adding Credentials to PayLexer
Open PayLexer Dashboard
Log in to your PayLexer dashboard and navigate to Payment Gateways - Westpac PayWay.

Enter your credentials
Paste the Publishable API Key, Secret API Key, and Merchant ID you copied from Westpac PayWay.

Understanding Live/Production and Sandbox Settings:
| Environment | Purpose |
|---|---|
| Live / Production (Mandatory) | Used for real transactions. Cannot be empty, even when testing. |
| Test / Sandbox (Optional) | Used for testing only. No real money is processed. |
How PayLexer selects credentials:
-
Debug/Test mode ON → Test credentials are used
-
Debug/Test mode OFF → Live credentials are used
Test and save
Click Test Connection to verify your credentials, then click Save Configuration.
Webhooks (Not Supported)
Westpac PayWay does not currently support webhook integration.
-
Payment updates are handled directly within Westpac PayWay's processing flow
-
Real-time event notifications are not available
-
Payment status updates occur through standard API polling
This means payment confirmations may take slightly longer to appear compared to gateways that support webhooks.
Integrate Westpac PayWay to Your Website
If you have already added and configured your site, you can enable Westpac PayWay in your existing setup.
Go to Websites
Navigate to Websites in your PayLexer dashboard.
Edit your website
Click the Edit Icon of your added website.

Enable Westpac PayWay
Click the checkbox to enable Westpac PayWay for the website, then click Save Settings.

If you haven't added a website yet, Continue to Add Your Website →
Troubleshooting
Best Practices
-
Test in Test mode before enabling Live mode
-
Validate the first live transaction after switching to Live mode
-
Renew your Secret API Key before its annual expiry to avoid payment disruptions
-
Use separate Test and Live credentials - Westpac PayWay Test keys are prefixed with
T -
Monitor the gateway dashboard for failed payments
-
Keep Secret API Key credentials secure
-
Ensure Debug/Test mode is enabled during testing, save Test credentials in PayLexer alongside Live credentials
FAQs
Still Have Questions?
-
Westpac PayWay Support: Westpac PayWay Help Center
-
PayLexer Support: Contact Support