paysafecard

paysafecard is a prepaid electronic payment method that is available in many countries and languages. Payers purchase the paysafecard voucher from sales outlets or from an authorized online PIN shop. The paysafecard voucher contains a 16-digit PIN. Alternatively, if the payers have the mypaysafecard account, when they are redirected to the paysafecard webpage, they can choose to log in to their mypaysafecard account and approve the payment.

It is recommended that you read the integration guidelines for browser payments before building the paysafecard integration.

Prerequisites

To offer the paysafecard payment method through the Mastercard Payment Gateway,

  • you must be registered with your browser payments service provider
  • your merchant profile on the Mastercard Payment Gateway must be configured using the details of your account with the browser payments service provider, and
  • you must have the paysafecard account or voucher in one of the supported currencies registered against your merchant account at your browser payment service provider.

paysafecard Transactions

The PPRO acquirers support the paysafecard transactions that originate from the countries and the corresponding currencies mentioned in the following table.

Country Alpha-3 code Currency
Austria AUT EUR, GBP, USD, CHF
Australia AUS EUR, GBP, USD, CHF
Belgium BEL EUR, GBP, USD, CHF
Bulgaria BGR EUR, GBP, USD, CHF
Canada CAN CAD, EUR, GBP, USD, CHF
Switzerland CHE EUR, GBP, USD, CHF
Cyprus CYP EUR, GBP, USD, CHF
Czech Republic CZE EUR, GBP, USD, CHF
Germany DEU EUR, GBP, USD, CHF
Denmark DNK EUR, GBP, USD, CHF
Spain ESP EUR, GBP, USD, CHF
Finland FIN EUR, GBP, USD, CHF
France FRA EUR, GBP, USD, CHF
United Kingdom GBR EUR, GBP, USD, CHF
Georgia GEO EUR, GBP, USD, CHF
Gibraltar GIB EUR, GBP, USD, CHF
Greece GRC EUR
Croatia HRV EUR, GBP, USD, CHF
Hungary HUN EUR, GBP, USD, CHF
Ireland IRL EUR, GBP, USD, CHF
Italy ITA EUR, GBP, USD, CHF
Liechtenstein LIE EUR, GBP, USD, CHF
Lithuania LTU EUR, GBP, USD, CHF
Luxembourg LUX EUR, GBP, USD, CHF
Malta MLT EUR, GBP, USD, CHF
Mexico MEX EUR, GBP, USD, CHF
Netherlands NOR EUR, GBP, USD, CHF
New Zealand NLD EUR, GBP, USD, CHF
Norway NZL NOK, EUR, GBP, USD, CHF
Peru PER EUR, GBP, USD, CHF
Poland POL PLN, EUR, GBP, USD, CHF
Portugal PRT EUR, GBP, USD, CHF
Romania ROU RON, EUR, GBP, USD, CHF
Sweden SWE SEK, EUR, GBP, USD, CHF
Slovenia SVN EUR, GBP, USD, CHF
Slovakia SVK EUR, GBP, USD, CHF
Uruguay URY EUR, GBP, USD, CHF

paysafecard integration

paysafecard through Hosted Checkout

Hosted Checkout integration allows you to collect payment details from your payer through an interaction that the Mastercard Payment Gateway hosts and displays.

From the API version 70 onward, paysafecard is automatically available as a payment method once your payment service provider enables and configures you for this payment method.

For details, see Browser Payments via Hosted Checkout Integration.

paysafecard through Direct Payment

Direct Payment integration allows you to offer the paysafecard payment method on your own checkout page.

paysafecard is supported from the API version 67 onward.

Common fields

In addition to the standard fields required in a browser payment request, provide the following common fields in the Initiate Browser Payment request:

  • sourceOfFunds.type-PAYSAFECARD
  • browserPayment.operation-PAY
  • customer.account.id-The ID, username, hash, or anything used to identify the consumer.
  • sourceOfFunds.provided.paysafecard.countryCode-Additional details related to a paysafecard browser payment.
  • sourceOfFunds.provided.paysafecard.accountEmail-The mypaysafecard account email identifies the mypaysafecard account that will be refunded.

Preferred language

You can set the language that you prefer paysafecard to use for the pages that are displayed to the payer by providing the browserPayment.preferredLanguage field in the Initiate Browser Payment request. However, the language will be used only if paysafecard supports it.

Sample code to initiate paysafecard Payment

{
    "apiOperation": "INITIATE_BROWSER_PAYMENT",
    "browserPayment": {
        "operation": "PAY",
        "returnUrl": "<your_merchant_URL>"
    },
    "customer": {
        "email": "john.smith@example.com"
    },
    "order": {
        "amount": "142.22",
        "currency": "PLN"
    },
    "sourceOfFunds": {
        "type": "PAYSAFECARD",
        "provided": {
            "paysafecard": {
                "countryCode": "POL"
            }
        }
    }
}

How to interpret the transaction result

The following table specifies the transaction response codes for the possible scenarios that you may encounter after initiating the paysafecard payment.

Initiate Browser Payment Response What This Means...
response.gatewayCode=SUBMITTED
result=SUCCESS
Redirect the payer using the URL provided in the response.
Retrieve Transaction/Retrieve Order Response What This Means...
response.gatewayCode=APPROVED
result=SUCCESS
The payment is successful.
response.gatewayCode=PENDING
result=PENDING
The Mastercard Payment Gateway is waiting for a notification from the acquirer about the payment result. Try RETRIEVE_TRANSACTION again later or listen to notifications from the Mastercard Payment Gateway.
response.gatewayCode=CANCELLED
result=FAILURE
The payer has canceled the interaction for this payment. Offer the payer the option to try another payment method.
response.gatewayCode=DECLINED or ACQUIRER_SYSTEM_ERROR
result=FAILURE
The payment was declined. Offer the payer the option to try another payment method. In case of an ACQUIRER_SYSTEM_ERROR, you may want to inquire with the acquirer about the reason for the payment failure, or you can try RETRIEVE_TRANSACTION again.
response.gatewayCode=TIMED_OUT
result=FAILURE
Treat this as a declined payment. The Mastercard Payment Gateway will make an attempt to ensure the transaction is not successful or will revert the transaction.

Refunds

You can refund paysafecard payments in installments or in full. Ensure that you are configured for refunds on the Mastercard Payment Gateway and on your merchant account at your browser payments service provider.

Refunds for paysafecard payments are only possible if payers have the mypaysafecard account. If payers do not have a paysafecard account or if they are from a country where the mypaysafecard account is not available and payments only through the paysafecard vouchers are supported, then you must provide a refund to the payers through a different payment method, for example, card.

You must provide the payer's mypaysafecard account email on all the subsequent refund requests.

Testing your integration

The Mastercard Payment Gateway provides a browser payments emulator that allows you to test your paysafecard integration.

Copyright © 2022 Mastercard