Simple Direct Connection JSON REST example with Beagle Lite
fields
Endpoint: https://api.sandbox.ewaypayments.com/Transaction
Headers:
Authorization: Basic (see Authentication in the API reference)
Content-Type: application/json
{
"Customer": {
"Title": "Mr.",
"FirstName": "John",
"LastName": "Smith",
"Street1": "Post Office Malaysia",
"Street2": "23-10, Pusat Bandar",
"City": "Pahang",
"PostalCode": "012345",
"Country": "my",
"CardDetails": {
"Name": "Card Holder Name",
"Number": "4444333322221111",
"ExpiryMonth": "12",
"ExpiryYear": "16",
"CVN": "123"
}
},
"CustomerIP": "93.184.216.34",
"Payment": {
"TotalAmount": 100
},
"TransactionType": "Purchase",
"Method": "ProcessPayment"
}
If a transaction is flagged as potentially fraudulent, the
"ResponseMessage" will contain the a fraud response message code in
addition to the transaction response. This provides the details so
that an order can be flagged as potentially fraudulent to the
merchant.
Example response message excerpt:
"ResponseMessage": "D4405, F7002",