eWAY Rapid 3.1 API PHP Sample Code

Welcome to the eWAY Rapid 3.1 API PHP Sample code!



Have you got your eWAY Sandbox API Key & Password? If not, here are some instructions on how to get them



Examples


This sample code contains complete examples of the three methods you can process payments with eWAY:


Direct Connect

Lets you connect directly from your server to eWAY to process a payment.
Note: To use this with a live account, eWAY must be provided with proof of a PCI-DSS compliant environment.

For Sandbox testing, you can enable Direct Connect by logging into your Sandbox MYeWAY and navigating to Settings > Sandbox then read the disclaimer and tick the PCI Enabled box.


Responsive Shared Page

This method sends your customer to an eWAY hosted page to enter their payment details. No PCI compliance hassle!


Transparent Redirect

Using this method, the payment form is hosted on your system, but the payment data is sent directly to eWAY. Once processed, the customer is then seamlessly redirected back to your system. They don't see an eWAY page and your servers are not within scope of PCI compliance!



Questions?


We've got your back! If you need a hand you can


Email us: support@eway.com.au


Jump on our website and open a chat with our friendly team

Or give us a call:

    Australia: 1800 10 65 65
    New Zealand: 0800 392 947
    UK: 0800 080 3777