Payment-method icon

Sofort for API only

Add Sofort to an existing API-only integration.

Accept Sofort payments using our APIs, and build your own payment form to have full control over the look and feel of your checkout page.

Requirements

Requirement Description
Integration type Make sure that you have built an API-only integration.
Setup steps Before you begin, add Sofort in your test Customer Area.

Build your payment form for Sofort

Include Sofort in the list of available payment methods. You do not need to collect any information from the shopper in your payment form.

We provide logos for Sofort which you can use on your payment form. For more information, refer to Downloading logos.

If you are using the /paymentMethods request to show available payment methods to the shopper, specify in your request one of the following combinations of countryCode and amount.currency:

Country/region countryCode amount.currency
Austria AT EUR
Belgium BE EUR
Germany DE EUR
Spain ES EUR
Switzerland CH CHF
The Netherlands NL EUR

The /paymentMethods response contains paymentMethod.type: directEbanking.

We provide logos for Sofort which you can use on your payment form. For more information, refer to Downloading logos.

Make a payment

In your /payments request, specify:

Parameter Required Description
paymentMethod.type -white_check_mark- Set this to directEbanking.
returnUrl -white_check_mark- URL to where the shopper should be redirected back to after they complete the payment.
countryCode The shopper's country/region.
Format: the two-letter ISO-3166-1 alpha-2 country code. Exception: QZ (Kosovo). Include this in the request for a better shopper experience. When the shopper is redirected to Sofort's website, the country/region will be automatically selected from the dropdown list.
shopperLocale The language that the Sofort page should be rendered in. The page can be the local language (for example, nl-NL for the Netherlands) or in en-US.

The following example shows how to make a payment request for 10 EUR for a shopper in the Netherlands, with the Sofort page rendered in US English.