Payment online with Payway Api (Westpac)

Hi , i wrote this tutorial in order to help you when you want to develop an app which is support payment with credit card online by using Payway Api (Westpac Bank). If you want to have more information about this , please visit its website Payway

First we need this function to initialize the API .

The second function will be used to capture the payment from customer .

Next , if we want to register the customer with Payway , we can use this function below .

Finally , If we want to do the recurring payment with registered customer without credit card detail, we can use this function :