Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

PostFinance Pay

Via the Saferpay JSON API, payments can be handled through PostFinance Pay.

General requirements

Acceptance of PostFinance Pay requires:

  • A corresponding license and thus a valid identification with a username and password for the Saferpay system.

  • A valid contract with PostFinance.

Technical requirements

The general integration of PostFinance Pay can be done via the Payment Page and has the following requirements for integration:

Supported features

Feature

Support

✅ / ✅

3D Secure

❌

Dynamic Currency Conversion (DCC)

❌

Mail Phone Order

❌

Omni-Channel

❌

Storage in the Secure Card Data Store

If you intend on saving PostFinance Pay-data for later use, Saferpay provides the possibility of storing the payment data inside the Saferpay Secure Card store, for the Payment Page and the Standalone Alias Registration. For this, the following requirements must be met:

  • Activation of Saferpay Secure Card Data in the Saferpay merchant account.

  • The feature must also be activated on PostFinance side.

Standalone registration

If you intend to use the standalone registration, you need to specify the parameter Type with the value POSTFINANCEPAY, which signals that you want to save Postfinance Pay payment means.

Address collection from PostFinance

This function is currently not yet available and will be delivered at a later date.

Instant Payouts

Instant Payouts enables merchants to directly fund Swiss bank accounts. Use-cases may include the payout of winnings and other cases, that do not directly refund a previously made transaction.

Requirements

Instant Payouts requires the following things in order to work:

  • The merchant needs a dedicated Instant Payout contract and a bank account with PostFinance.

    • Activation of said contract on the desired Saferpay Terminal-ID

  • The recipient needs a bank account with a participating Swiss bank.

  • API SpecVersion 1.50+

Instant payouts are only possible in Swiss francs and up to a maximum amount of CHF 20'000. If the PostFinance recipient account is held in a foreign currency, PostFinance will convert the amount.

Technical Integration

From a technical standpoint, the merchant is performing a RefundDirect request, with which they are providing the IBAN of the destination bank account, inside the PaymentMeans.BankAccount container.

In addition, for legal reasons, you must also send the complete address of the recipient inside the OriginalCreditTransfer.Recipient container. Not submitting the address may lead to errors, or rejections.

Example

Pending refund capture

Under certain circumstances, Saferpay cannot retrieve the information about an Instant Payout refund capture in time to respond with either a success or a failure, due to processing limitations on the banking side. In this case, you will receive a Capture "Status": "PENDING".

In this state, the success or failure of the capture is still open and will change in the future.

Saferpay can notify you about a status change if you set an e-mail inside the Settings > Notification > Pending status section of the Backoffice.

Handling pending captures on API level

The whole PENDING procedure can be handled automatically via API, so that your system can automatically adjust the transaction status once the final Capture state has been confirmed.

First, you have to set the PendingNotification container with the Capture request. This container behaves basically the same as the normal Payment Page flow:

  • MerchantEmails: This array can store up to 10 different emails, to which Saferpay will send an email once the final Capture status has been confirmed, informing a person or team directly.

  • NotifyUrl: This URL is the important part for automatic processing. It behaves similarly to the NotificationUrls you know from the Payment Page itself. It will be called once Saferpay has been able to confirm the final Capture status.

Once the NotifyUrl has been called, you can query the final outcome of the Capture by using the Assert Capture request, allowing you to update the refund transaction on your system automatically.

What if the Capture returns a failure?

This is a possible scenario and should this happen, it is best to cancel the whole refund and execute a new one.

Testing

Please refer to this chapter, if you want to test PostFinance Pay.

Last updated

Was this helpful?