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

Responsive Shared Page

For a simple, good looking integration, eWAY's Responsive Shared Page API provides a hosted form for entering payment information. The form is hosted on eWAY's PCI DSS compliant, industry leading infrastructure for your and your customer's peace of mind. There are a number of themes to customise the look of the form, plus it responds to screen size to be suitable for devices from mobiles to PCs.

The Responsive Shared Page also comes with built in integration with 3D Secure, PayPal, MasterPass and Visa Checkout - no further development required!

API Reference:

Responsive Shared Page

Implementing the Responsive Shared Page API is a three step process:

  1. Pass the customer and transaction details to eWAY to generate an Responsive Shared Page URL.
  2. Redirect the customer to the provided URL to enter their payment information. After processing the transaction, the customer is directed 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 and Responsive Shared Page URL

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

    	{
    		"Payment": {
    			"TotalAmount": 1000
    		},
    		"RedirectUrl": "http://www.example.org/Success.html",
    		"CancelUrl": "http://www.example.org/Cancel.html",
    		"Method": "ProcessPayment",
    		"TransactionType": "Purchase"
    	}
    				
  2. The response will contain a SharedPaymentUrl to redirect the customer to
  3. Once the transaction has been completed, the customer is redirect to your website and you can request the result

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

For more details, check out the Responsive Shared Page API reference