alt

Important information

Please be advised that there will be a scheduled downtime across our API network on November 05 and November 07, 2024. For more information, visit our platform status portal.:
- Scheduled maintenance on November 5, 2024
- Scheduled maintenance on November 7, 2024

Unzer

Check payment details

Check the status, amounts, resources, and transactions related to a payment.

Overview

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 resource:

  • payment state
  • payment amounts and currency
  • details of all transactions linked to the payment
  • additional resources linked to the payment: customers, baskets, metadata
icon info
Unzer Insights
You can also check a payment’s details through the Unzer Insights platform.

Check payment details

To check payment details, call the Unzer::fetchPayment method, that makes a GET call to the dedicated /payments endpoint. As parameter, add either the payment ID (paymentId) or the order ID (orderId):

$unzer    = new UnzerSDK\Unzer('s-priv-xxxxxxxxxx');
$payment  = $unzer->fetchPayment('s-pay-1');

// or:

$unzer    = new UnzerSDK\Unzer('s-priv-xxxxxxxxxx');
$payment  = $unzer->fetchPayment('yourOrderId-1');
icon info
Using your order ID to fetch a payment is only possible if you added it in your charge/authorize call when doing the payment.

On success a payment object is returned containing the response data from the Unzer API.

For more details on the response example, see the payment response.

See also