Learn how to process Sofort transactions with BlueSnap's Payment API.

Sofort is a popular online, real-time banking method in Europe. This payment method enables shoppers to complete their purchases in their bank's portal, giving them greater comfort and security in the checkout process. Sofort is supported in these countries.

This guide covers the following topics:

Requirements

In your BlueSnap Merchant Portal, verify Real-Time Bank Transfer has been enabled and is set to Show.

Sofort transaction flow

  1. Create a page for your shopper to enter their personal information.

  2. Send a Create Sofort Transaction request to BlueSnap from your server. As part of the required parameters, provide a returnUrl where you would like BlueSnap to send your shopper after they complete their purchase.

  3. The API response will include sofortUrl where you'll need to direct your shopper so they can complete their purchase.

  4. Your shopper selects their bank and country. They then enter their bank details and select their account. After they complete their purchase, they get redirected back to your site (to the returnUrl address from step 2). You can parse the query string of your URL to get the transaction results.

Note: The transaction is in pending status until your shopper completes their purchase. At this point, the status changes to approved or failed.

Back to Top

Return URL query string parameters

Before redirecting your shopper to your return URL, BlueSnap appends the query string with the following parameters. You can parse the query string to get the transaction results and determine which page to display to the shopper. For example, if the transaction was successful, you can display a confirmation page.

Parameter NameTypeDescription
STATUSstringThe status of the transaction.

Possible values:

- SUCCESS
- FAIL
- PENDING
ORDER-IDintegerBlueSnap identifier for the order.
TRANSACTION-IDstringBlueSnap identifier for the approved transaction. Only returned if STATUS is SUCCESS
MTIstringThe Merchant Transaction ID. Only returned if the value was included in the Create Sofort Transaction request.

API integrations

Sofort transactions are supported in BlueSnap's Payment API. See:

Sandbox testing

You can use the following test cases to test various scenarios in Sandbox via the Create Sofort Transaction request.

Test CaseResult
Append your firstName value with _APPROVE.
For example: Jane_APPROVE
The transaction status is SUCCESS.
Append your firstName value with _REJECT.
For example: Jane_REJECT
The transaction status is FAIL.
Append your firstName value with _DELAYAP.

For example: Jane_DELAYAP
The initial transaction status is PENDING, then changes to SUCCESS within 15 minutes.
Append your firstName value with _DELAYRJ.

For example: Jane_DELAYRJ
The initial transaction status is PENDING, then changes to FAIL within 15 minutes.

Back to Top