Check payment details
Check the status, amounts, resources, and transactions related to a payment.
When you make a charge, authorize or payout call, the Unzer system creates a unique
payment resource. This resource contains all the information about the payment, giving you a good overview of its state.
Information included in the
- payment state
- payment amounts and currency
- details of all transactions linked to the payment
- additional resources linked to the payment:
You can also check a payment’s details through the Unzer Insights platform.
To check payment details, call the
Unzer.fetchPayment method, that makes a GET call to the dedicated
/payments endpoint. As parameter, add the payment ID (
Unzer unzer = new Unzer("s-priv-xxxxxxxxxx"); Payment payment = unzer.fetchPayment("s-pay-1");
On success a
Payment object is returned containing the response data from the PAPI.
For a reference of the
Payment resource please refer to API reference guide.
To learn about possible payment states and payment state flow please check Payment states page.