alt
Unzer
UnzerAI

UnzerAI

The responses generated by AI may include errors.

UnzerAI

Welcome to UnzerAI!

I'm here to help you with questions about Unzer's payment integration, APIs, and documentation.

UnzerAI

UnzerAI is currently unavailable

The service is currently under construction. We will bring it back shortly. We apologize for the inconvenience.

Ask questions about Unzer and get help with your integration.

Manage Post Finance Card payment

Manage Post Finance Card transactions.

After the successful charge or authorize transaction, you can perform additional operations on the payment resource. Some of the important ones are described in the following section.

For a full reference of managing payments, go to relevant server-side integration documentation page: Manage API resources (direct API calls), Manage API resources (PHP SDK), or Manage API resources (Java SDK).

icon info
v3: authorize and charge
On /v3/payments, this method returns a separate authorize and charge transaction instead of a single charge transaction. The authorize transaction is read-only. See Migrating to v3 for v1 vs v3 response examples.

Cancel after payment (refund)

You can refund up to the amount of the received payment. To do this, you have to make a cancel transaction for an existing charge transaction.

POST https://api.unzer.com/v3/payments/s-pay-1/charges/s-chg-0193a2b4-8f42-7a61-b0c4-2d9e5f7a1b3c/cancels

{
  "amount" : "20.00",
  "paymentReference": "Test cancel transaction"
}
$unzer = new Unzer('s-priv-xxxxxxxxxx');
$charge = $unzer->fetchChargeById('s-pay-1', 's-chg-1');
$cancel = $charge->cancel();
Unzer unzer = new Unzer("s-priv-xxxxxxxxxx");
Cancel cancel = unzer.cancelCharge("s-pay-1", "s-chg-1");