Payment GatewaysWestpac PayWay

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:

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.

Westpac PayWay Settings page with REST API Keys highlighted under Access to PayWay
Westpac PayWay Settings page with REST API Keys highlighted under Access to PayWay

Generate your Publishable API Key

Click + Add to create a new API key.

REST API Keys page showing the + Add button
REST API Keys page showing the + Add button

Select Publishable and click Save.

Add REST API Key form with Publishable option selected and Save button highlighted
Add REST API Key form with Publishable option selected and Save button highlighted

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

View REST API Key page showing Publishable API Key with copy button
View REST API Key page showing Publishable API Key with copy button

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.

Add REST API Key form with Secret option selected and Save button highlighted
Add REST API Key form with Secret option selected and Save button highlighted

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

View REST API Key page showing Secret API Key with copy button
View REST API Key page showing Secret API Key with copy button

Your Secret API Key expires annually and must be renewed. Save it securely before continuing.

Find your Merchant ID

Navigate to Settings - Banking - Merchants.

Westpac PayWay Settings page with Merchants highlighted under Banking
Westpac PayWay Settings page with Merchants highlighted under Banking

Your Merchant ID is listed in the Merchant ID column.

Merchants page showing Merchant ID and Merchant Name columns
Merchants page showing Merchant ID and Merchant Name columns

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.

PayLexer Payment Gateways page with Westpac PayWay card highlighted
PayLexer Payment Gateways page with Westpac PayWay card highlighted

Enter your credentials

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

PayLexer Configure Westpac PayWay form showing Live/Production and Test/Sandbox credential fields
PayLexer Configure Westpac PayWay form showing Live/Production and Test/Sandbox credential fields

Understanding Live/Production and Sandbox Settings:

EnvironmentPurpose
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.

PayLexer Websites page showing the edit icon in the Actions column
PayLexer Websites page showing the edit icon in the Actions column

Enable Westpac PayWay

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

Edit Website modal with Westpac PayWay checkbox enabled and Save Settings button
Edit Website modal with Westpac PayWay checkbox enabled and Save Settings button

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?

Was this page helpful?