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 American Express Payment Gateway,
- you must be registered with your browser payments service provider
- your merchant profile on the American Express 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
Hosted Checkout integration allows you to collect payment details from your payer through an interaction that the American Express 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.
Web-Services API integration allows you to offer the paysafecard payment method on your own checkout page.
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-
PAYSAFECARDbrowserPayment.operation-
PAYcustomer.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.
{ "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 American Express 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 American Express 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 American Express 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 American Express 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.
Testing your integration
The American Express Payment Gateway provides a browser payments emulator that allows you to test your paysafecard integration.