Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I don't understand how Westpac Payway API and NET works

Been googling all day, reading numerous PDF's and still getting confused with the concepts of sending data to Payway system from Westpac (a bank in Australia). They offer access via API but also give access via what they call "NET."

The way I understand is that when client want to pay on my website, in case of NET, client gets to the page (hosted by a bank or hosted by me) where is provided with form to enter credit card info details. Then this form is submitted via normal POST call to Payway's specific https address. It is processed then and browser returns to the URL I specified as one of the parameters I sent in hidden field.

In case of API story is similar, so user receives form, fills in the data and then data is send to my backend (not Payway's). My backend then calls payway API with data provided and once answer received returns confirmation page to the client.

Is my understanding right? Please explain as I have a feeling I am missing something basic here.

like image 294
spirytus Avatar asked May 07 '10 00:05

spirytus


People also ask

What is PayWay API?

The PayWay solution allows customers to process credit cards using an Application Programming Interface (API). All communications between the customer's system and API takes place securely.

What is a PayWay transaction?

PayWay is a simple, secure, internet-based solution to collect and manage customer payments. PayWay can calculate and collect payment surcharges on your behalf. This allows you to pass the cost of payment acceptance on to your customers. The page describes the payment surcharge feature of PayWay.


2 Answers

There are a number of different ways to interact with PayWay Net, depending on how much control you want. The simpliest way is this:

  1. You create a HTML format containing fields with certain names. This form is served up by your website, but when submitted goes to the PayWay website. You can add to this your own hidden fields and information fields.
  2. Your user enters some details and clicks Submit.
  3. Your user's browser submits the form to PayWay. PayWay validates the values and displays a page asking for credit card information (over https)
  4. The user enters the credit card details then confirms the transaction.
  5. PayWay processes the credit card transaction
  6. Optionally, PayWay can conduct a post back to your server indicating the status of the transaction so you can complete the order (called server-to-server payment notification)
  7. Optionally, PayWay can redirect the browser back to your server (but do not use this to update yoru database)

There are also ways to fully customise the credit card input page and receipt page.

PayWay API is different. You install a piece of software on your server. When you want to conduct a credit card transaction, you invoke this piece of software. It talks over the internet to the PayWay server, conducts a transaction, and gives you a response. You could use this if you were writing a phone payments system, for example, as no browser is involved in the PayWay interface.

(Disclaimer: I work for Qvalent, developers of PayWay).

like image 143
WW. Avatar answered Oct 16 '22 16:10

WW.


Your understanding is correct.

I've done a couple of Payway integrations and have always opted for the API solution so that users get a consistent experience and are not jumping between websites.

like image 23
Joel Lignier Avatar answered Oct 16 '22 15:10

Joel Lignier