Transaction Examples: Sale

Sale

A Sale transaction is used by merchants for the immediate purchase of goods or services. This transaction completes both the authorization and capture in a single transaction request. The Sale transaction is an Authorization and Capture transaction that, if approved, is automatically included in the open batch for settlement.

Request sample with all fields

XML

JSON

PHP (JSON)

https://github.com/Clearent-Gateway/API-Examples/tree/php

Python (JSON)

https://github.com/Clearent-Gateway/API-Examples/tree/python

Go (XML)

https://github.com/Clearent-Gateway/API-Examples/tree/go

C# (JSON)

https://github.com/Clearent-Gateway/API-Examples/tree/C#

Java (JSON)

https://github.com/Clearent-Gateway/API-Examples/tree/java

VB.net (JSON)

https://github.com/Clearent-Gateway/API-Examples/tree/vbnet

Response sample with all fields

XML

JSON

Sale Approved

Sale Request with minimal fields.

XML

JSON

PHP (JSON)

https://github.com/Clearent-Gateway/API-Examples/tree/php

Python (JSON)

https://github.com/Clearent-Gateway/API-Examples/tree/python

Go (XML)

https://github.com/Clearent-Gateway/API-Examples/tree/go

C# (JSON)

https://github.com/Clearent-Gateway/API-Examples/tree/C#

Java (JSON)

https://github.com/Clearent-Gateway/API-Examples/tree/java

VB.net (JSON)

https://github.com/Clearent-Gateway/API-Examples/tree/vbnet

Sale Response.

XML

JSON

Sale Declined

Sale Declined Request.

XML

JSON

PHP (JSON)

https://github.com/Clearent-Gateway/API-Examples/tree/php

Python (JSON)

https://github.com/Clearent-Gateway/API-Examples/tree/python

Go (XML)

https://github.com/Clearent-Gateway/API-Examples/tree/go

C# (JSON)

https://github.com/Clearent-Gateway/API-Examples/tree/C#

Java (JSON)

https://github.com/Clearent-Gateway/API-Examples/tree/java

VB.net (JSON)

https://github.com/Clearent-Gateway/API-Examples/tree/vbnet

Sale Declined Response.

XML

JSON

Sale Error

Sale Error Request.

XML

JSON

PHP (JSON)

https://github.com/Clearent-Gateway/API-Examples/tree/php