Unzer

Accept Post Finance eFinance with server-side-only integration

Build your own payment form to add PostFinance efinance payment to the checkout page

Overview

PostFinance efinance payment method doesn’t require any input from the customer on the merchant website. The customer specifies the required payment information on the PostFinance platform.

Before you begin

Step 1: Create a Payment Type resource
server side

When creating the payment type Post Finance efinance, you need to send a request to the Unzer API. The response will contain an id, later referred to as typeId. You will need this typeId to perform the transaction.

POST https://api.unzer.com/v1/types/post-finance-efinance
{}
This payment type is not supported by the PHP SDK.
Unzer unzer = new Unzer("s-priv-xxxxxxxxxx");
PostFinanceEFinance postFinanceEFinance = new PostFinanceEFinance();
unzer.createPaymentType(postFinanceEFinance );

The response looks similar to the following example:

{
  "id": "s-pfe-9rxdhskuhnea",
  "method": "post-finance-efinance",
  "recurring": false,
  "geoLocation": {
    "clientIp": "127.0.0.143",
    "countryCode": "CH"
  },
}

For more details on Post Finance efinance payment type creation, see API reference.

Next steps

The next steps are the same as for the UI components integration, check Accept Post Finance efinance with UI Components from Step 2 onwards.