Card Present Payment Workflows
In a Card Present (CP) environment, the payment workflow is a synchronized interaction between the customer’s physical card, the hardware terminal, and the Getnet Regional API. The integration distinguishes between Authorization (logic) and Capture (financial settlement) to ensure a robust transaction lifecycle.
Based on the validated payloads and API specifications, there are two primary architectural workflows: Single-Step and Two-Step.
Single-Step Workflow (Direct Sale)
The Single-Step workflow is the standard implementation for retail point of sale environments. It authorizes and captures the transaction in one synchronous operation.
The Technical Process
- Card Interaction: The terminal captures the chip (EMV) or magnetic stripe data.
- API Request: The system submits a
POST /v2/paymentswith thepayment_methodset toDIRECT_CREDITorDIRECT_DEBIT. - Real-time Validation: The gateway validates the hardware secured payloads, including the
emvstring ortrack_2data and, if applicable, thepin_blockandksn. - Instant Settlement: Upon approval from the card issuer, the funds are immediately marked for settlement.
Two-Step Workflow (Pre-Authorization & Capture)
The Two-Step workflow separates the authorization (hold) from the final financial capture.
Step A: Pre-Authorization
- Method: Submit
POST /v2/paymentswithpayment_methodset toDIRECT_CREDIT_AUTHORIZATION. - Result: The issuer places a temporary “hold” on the customer’s funds. You receive a
payment_idwith a status ofAUTHORIZED. - Requirement: This step requires the physical presence of the card to generate the
emvortrack_2payload.
Step B: Capture (Settlement)
- Method: Submit
POST /v2/payments/captureusing the previously generatedpayment_id. - Logic: This step can be executed via the API without the physical card being present.
- Amount: You may capture the full authorized amount or a partial amount.
- Idempotency: Ensure you use a new, unique
idempotency_keyfor the capture request.
Technical Validation for Workflows
All Card Present workflows must adhere to these technical constraints to ensure successful processing:
- Idempotency Control: Every authorization request must include a unique
idempotency_keyto prevent duplicate charges during network disruptions. - Channel Identification: The header
x-transaction-channel-entry: XXis mandatory to signal the gateway that the request originates from a hardware device. - Encrypted Verification: If the terminal determines the card requires a PIN, the
online_pinverification method must be used, providing thepin_blockandksnduring the initial authorization request.
Read More
- Single-Step Payments Guide: Implementation for immediate sales.
- Pre-authorized Payments Guide: Managing holds and captures.
- PIN Validation: Security requirements for PIN based workflows.