transaction_id. This endpoint provides information about the payment status, method, amount, currency, and any messages relevant to the payment process.curl --location -g --request GET 'https://dev.your-api-server.com/v1/payment-details/{{transaction_id}}' \
--header 'Customer-Key;' \
--header 'Secret-Key;' \
--header 'Accept-Language: '{
"success": true, // Indicates that the request was processed successfully.
"message": "success", // Provides a message confirming the successful retrieval of payment details.
"data": {
"payment_details": {
"transaction_id": "d0790914-97d3-47p6-80c9-edd2da74961d", // Unique booking identifier.
"status": "failed", // Status of the payment; in this case, "failed" indicates the payment did not go through.
"message": "The payment was rejected.", // Additional message providing details on why the payment failed.
"payment_method": "Tabby", // Specifies the payment method used for this transaction (e.g., Tabby).
"amount": "750", // Amount of the payment in the specified currency.
"currency": "SAR", // Currency in which the payment was processed (e.g., Saudi Riyal).
"payment_date": "2024-10-30T11:26:35+00:00" // The date and time of the payment attempt in ISO 8601 format.
}
}
}