Retrieves the details of a specific payment transaction by its payment_id. This provides more granular information about individual payment attempts.
payment_id is returned in the session object after a successful payment:
completed.payment_id field is populated with the transaction ID.The Payment ID (e.g., pay_x1y2z3a4b5)
"pay_x1y2z3a4b5"
Payment transaction retrieved successfully
Unique payment transaction identifier
"pay_x1y2z3a4b5"
Associated session ID
"sess_a1b2c3d4e5f6"
Transaction status
"Success"
Payment amount in smallest currency unit
35000
3-letter ISO currency code
"MXN"
Type of payment method used
"card"
Transaction creation timestamp
"2025-10-20T14:30:00Z"