Skip to main content

Payment Intent (PI)

A Payment Intent represents a customer’s intention to make a payment. It serves as the primary container for payment-related information and maintains the overall payment state throughout the transaction lifecycle. It represents a complete collection intent, regardless of whether the collection ultimately succeeds or fails.

Key characteristics

  • Unique identifier: each PI has a unique ID with the prefix PI (e.g., PI1234567890123456789)
  • Order information: contains essential order details such as amount, currency, and merchant reference
  • Expiration: automatically expires after 30 minutes if not completed
  • Persistence: once created, it continues to exist and can be used for multiple payment attempts
  • Idempotency: ensures each transaction is only charged once
  • State tracking: maintains a complete record of state changes throughout the entire payment process

Payment Intent status reference

Payment Attempt (PA)

A Payment Attempt represents a specific attempt to process a payment within a Payment Intent. Each PA contains the payment method details and processing results for that specific attempt.

Key characteristics

  • Unique identifier: each PA has a unique ID with the prefix PA (e.g., PA1234567890123456789)
  • Temporary nature: represents a single specific payment attempt
  • Retry capability: failed attempt can be retried by creating a new payment attempt for the same Payment Intent
  • Detailed information: contains specific payment details such as payment method used, error information, etc.

Payment Attempt status reference

Payment flow

The payment flow supports two modes to accommodate different merchant integration scenarios:
  • Direct payment — suitable for scenarios where payment method information is available at order creation time
  • Delayed confirmation — ideal for scenarios where payment method selection happens after order creation, allowing for order modifications before payment confirmation