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.


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

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
  • 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": ""
    "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...
Redirect the payer using the URL provided in the response.
Retrieve Transaction/Retrieve Order Response What This Means...
The payment is successful.
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.
The payer has canceled the interaction for this payment. Offer the payer the option to try another payment method.
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.
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.


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 © 2023 Mastercard