All-in-One API Integration

Combining all the most popular payment solutions in a single package, eWAY’s Rapid 3.1 API also includes fraud prevention, transparent redirect, and direct connection to help developers create secure, perfectly rendered payment pages on all devices.

Transparent Redirect

If you want the superior user experience of keeping customers on your website as well as the security of keeping card data off your own systems, eWAY’s Transparent Redirect is the way to go.

Transparent Redirect also provides simple and fast integration with 3D Secure, PayPal, MasterPass and Visa Checkout – providing more options for customers and less headaches for development.

Since the payment form is displayed on the site, it is important that an SSL is used to secure the page and provide reassurance to customers, inevitably increasing your basket conversion.

API Reference:

Transparent Redirect

Implementing Transparent Redirect is a three step process:

  1. Pass the customer and transaction details to eWAY to generate an Access Code.
  2. Display a payment form on your site using the Access Code and URL provided by eWAY – this form submits directly to eWAY secure servers. After processing the transaction, the customer is directed (transparently!) straight back to the nominated Redirect URL.
  3. Once the transaction has been processed, request the results from eWAY using the Access Code.

Simple JSON REST example
  1. Request an Access Code

    Authorization: Basic (see Authentication in the API reference)
    Content-Type: application/json

    1. {
    2. "Payment": {
    3.    "TotalAmount": 100
    4. },
    5.     "RedirectUrl": "",
    6.     "Method": "ProcessPayment",
    7.     "TransactionType": "Purchase"
    8. }
  2. Display the payment form on your site
    1. <form method="POST" action="">
    2.   <input type="hidden" name="EWAY_ACCESSCODE" value="nvt0mwZXN9aU43rsIRPl..." />
    3.   <input type="hidden" name="EWAY_PAYMENTTYPE" value="Credit Card" />
    4.   Card Name: <input type="text" name="EWAY_CARDNAME" />
    5.   Card Number: <input type="text" name="EWAY_CARDNUMBER" />
    6.   Card Expiry: <input type="text" name="EWAY_CARDEXPIRYMONTH" /> / <input type="text" name="EWAY_CARDEXPIRYYEAR"/>
    7.   Card CVN: <input type="text" name="EWAY_CARDCVN" />
    8.   <input type="submit" value="Process" text="Process" />
    9. </form>
  3. Request the result

    Authorization: Basic (see Authentication in the API reference)
    Content-Type: application/json