Preauth

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”.

Simple Direct Connection JSON REST PreAuth Example

Endpoint: https://api.sandbox.ewaypayments.com/Transaction

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Data:
    {
    "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

1
2
3
4
5
6
7
Data:
    {
      "Payment": {
        "TotalAmount": 10000
      },
      "TransactionId": 11111111
    }

For more details, check out the Rapid PreAuth documentation

Become an eWAY merchant today.

With 24/7 support, over 250 integrations and 20+ years experience – the team at eWAY are here to provide you with the leading all-in-one payments solution.