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

PreAuth

Available only in Australia

eWAY's Pre-authorisation solution allows merchants to reserve funds on a customer's credit card without charging it. They can then confirm the transaction at their convenience via MYeWAY or eWAY's API. This service is perfect for merchants whose prices are dependent on variable costs.

PreAuth is supported by all of eWAY's payment APIs simply by setting the "Method" to "Authorise".

API Reference:

Pre Authorisation

Simple Direct Connection JSON REST PreAuth Example

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

	{
	"Customer": {
	   "CardDetails": {
		"Name": "Card Holder Name",
		"Number": "4444333322221111",
		"ExpiryMonth": "12",
		"ExpiryYear": "18",
		"CVN": "123"
	   }
	},
	"Payment": {
	   "TotalAmount": 100
	},
	"TransactionType": "Purchase",
	"Method": "Authorise"
	}
		
Simple Capture JSON REST Example

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

	{
	  "Payment": {
		"TotalAmount": 10000
	  },
	  "TransactionId": 11111111
	}
		

For more details, check out the Rapid PreAuth documentation