Documentation You are here: start » gateways » westpac
type:
gateway
name:
Westpac PayWay
countrie:
AU, NZ
support-added:
0.7.2
auth-net-emulation:
no
supports-3dsecure:
no
supports-multicurrency:
yes
gateway:
https://www.payway.com.au/

Westpac PayWay

Setting Up Westpac Payway for FoxyCart

You will need to add FoxyCart's IP's to Westpac's API Security Access List as shown on the screenshot below, from the “Security” page of the PayWay administration, within the “Setup API” section of the navigation:

  • IP: 54.152.220.165
  • IP: 199.204.138.214
  • IP: 204.13.109.11
  • IP: 199.79.51.69

You will also need to download the certificate for your PayWay account, found from the “Certificate” page, also within the “Setup API” section of the navigation. Select “PHP” from the “API Technology” dropdown and hit “Go”, and then click the “Download PHP Certificate” link within the text that appears below.

Once you have your certificate downloaded, you're ready to connect your PayWay account to your FoxyCart store:

  1. Login to your store's FoxyCart administration, and go to the “Payments” section
  2. From the “Let customers pay with a Credit or Debit Card” option, select “Westpac Payway”
  3. From the “Security” section of your PayWay administration (found within the Setup API section of the navigation), copy the “Customer Username” and “Customer Password” into the fields of the same name within the FoxyCart administration
  4. For the “merchant id” field, enter the value your Westpac PayWay representative provided to you when taking your account live
  5. Click on the “certificate” field, and then click on the upload button that appears. Select the certificate file you just downloaded
  6. Save the payment settings

At this point - your PayWay account should be connected to your FoxyCart store! We'd recommend placing a test transaction to ensure everything is working correctly, and void/refund the charge within your PayWay account.

Testing

Obtaining a Test Account

You can sign up for a test account from this page. When creating the account, ensure that you select the option “My system meets PCI-DSS compliance for storing credit card numbers” for the “PCI-DSS” question.

Once logged in, you can then follow the steps above to connect your test account to your FoxyCart store. You'll want to ensure your store's payment settings are set to “Test Servers”, and for the merchant ID value in your FoxyCart gateway settings, you will simply use TEST.

Test Card Numbers

When using the test merchant, only the card numbers in the table below are valid. All other card numbers will return a response of “42 No Universal Account”.

Each card number will return a specific response as detailed in the table, so if you want to test a card which has low funds, you would use card number 4564710000000020 with an amount higher than $10. Note that if you enter an incorrect expiry date for one of the test cards, you will get a response of 54. If you enter an incorrect CVN, you will get a response of 01 or 05 depending on the card type.

Card Number Expiry CVN Response Description
4564710000000004 02/19 847 08 Visa Approved
5163200000000008 08/20 070 08 MC Approved
4564710000000012 02/05 963 54 Visa Expired
4564710000000020 05/20 234 51 Visa Low Funds ($10 credit limit)
5163200000000016 12/19 728 04 MC Stolen
4564720000000037 09/19 030 05 Visa invalid CVV2
376000000000006 06/20 2349 08 Amex
343400000000016 01/19 9023 62 Amex Restricted
36430000000007 06/22 348 08 Diners
36430000000015 08/21 988 43 Diners Stolen

Troubleshooting & Interpreting Response Codes

Contact westpac for info. Know more? Feel free to edit this page with info.

Important Notes and Caveats

User Notes and Experiences

If you have tips, experience, or helpful notes related to this gateway that would benefit others, please add them below, including your name and the date. We reserve the right to edit or remove comments that don't add value to this page.

Site Tools