detectAndAuth method combines card detection and pre-authorization into a single command. It is the primary method used for Pay-at-the-Pump transactions, streamlining the workflow by activating the reader and requesting a financial hold in one step.
Use this method to:
- Simultaneously activate the reader and prepare the authorization request to reduce total transaction time.
- Reserve funds immediately upon card tap, dip, or swipe to allow for instant pump activation.
- Minimize the logic required between card detection and authorization by handling both through a unified command.
Requests
All requests must include thecommand, requestId, and the amount to be held. The terminal will remain in a “Waiting for Card” state until a payment method is presented or a timeout occurs.
The following example shows a typical request:
Parameter Definitions
The table below describes the parameters available for this request:Responses
The terminal returns a response only after the card has been successfully read and the authorization has been processed by the payment gateway. The following example shows a typical credit card response:Note: If a QR code is used, the client system is responsible for any external authorization and settlement logic.
Response Parameters
Below are the parameters returned in thedata object upon a successful transaction: