Transaction Flow
This document explains how transactions flow between your app and the Paynt Payment App.
Overview
- Your app creates a request object and converts it to JSON
- Launches Paynt app with the appropriate intent action and JSON payload
- Paynt app processes the transaction/admin operation
- Paynt app returns result with RESULT_OK/RESULT_CANCELED and response JSON
- Your app processes the response and updates the UI accordingly
Critical Requirements
- Amount Format: Always pass amounts in cents/minor currency units (e.g., 1250 = €12.50)
- Reversal UTI: For reversals, use the original transaction's UTI
- Activity Launch Mode: The Paynt app uses singleTask launch mode
- JSON Serialization: All request/response data is JSON serialized, using Gson is highly recommended
- Completion Amount: Amount must be lower or equal to pre-authorization amount