In my application, there is a payment option for user, so that they can purchase within the app. For payment I should use PayWay gateway from Westpac (one of the Australian Banks).
In PayWay, they are providing two options:
NET system
PayWay API.
I like to use the second one (PayWay API). I got the login for testing purpose. In their web site itself, they have provided some API for PHP, Java, dot net and some others. But I don't have any idea how this can be integrated in my iOS application and where the user details should be taken (Credit card no, Password,etc) and how this can be processed. Please suggest some solution.
The actual procedure for PayWay API is,
Application will call the API Code which is present in our server.
Then our server code will call the PayWay gateway, and the response will be sent back to server from the gateway.
Based on the response, we should notify the customer about the transaction.
Is my understanding correct? Please advise on this.
I have referred some Stack Overflow questions, but it doesn't help me much:
Any help will be appreciated.
PayWay API is a server side solution. You would need to capture credit card details in your app and send them to your backend server which would then call the PayWay API.
To use PayWay Net you would need to embed a browser control into your app. This would connect to the PayWay web page for collecting the credit card details. This way your server never handles credit card information.
I'm not sure what Apple's rules are but you should check those out too.
There is a now new functionality in PayWay which allows you to tokenise a credit card number from your iPhone App. You still require a call from your server to trigger the payment transaction.
See PayWay REST API Docs.