imgproductsuk_rapidapi3-1

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.

API SNIPPETS

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

    Endpoint: https://api.sandbox.ewaypayments.com/AccessCodes
    Headers:
    Authorization: Basic (see Authentication in the API reference)
    Content-Type: application/json

    	{
    	"Payment": {
    	   "TotalAmount": 100
    	},
    		"RedirectUrl": "http://www.example.org",
    		"Method": "ProcessPayment",
    		"TransactionType": "Purchase"
    	}
    				
    				
  2. Display the payment form on your site
    			
    	<form method="POST" action="https://secure.sandbox.ewaypayments.com/AccessCode/nvt0mwZXN9aU43rsIRPl...">
    	  <input type="hidden" name="EWAY_ACCESSCODE" value="nvt0mwZXN9aU43rsIRPl..." />
    	  <input type="hidden" name="EWAY_PAYMENTTYPE" value="Credit Card" />
    	  Card Name: <input type="text" name="EWAY_CARDNAME" />
    	  Card Number: <input type="text" name="EWAY_CARDNUMBER" />
    	  Card Expiry: <input type="text" name="EWAY_CARDEXPIRYMONTH" /> / <input type="text" name="EWAY_CARDEXPIRYYEAR"/>
    	  Card CVN: <input type="text" name="EWAY_CARDCVN" />
    	  <input type="submit" value="Process" text="Process" />
    	</form>
    				
  3. Request the result

    Endpoint: https://api.sandbox.ewaypayments.com/AccessCode/nvt0mwZXN9aU43rsIRPl...
    Headers:
    Authorization: Basic (see Authentication in the API reference)
    Content-Type: application/json