Paysafecard

Learn how to accept Paysafecard payments.

Paysafecard is a global market leader in online prepaid payment methods. Paysafecard allows customers to pay online as simply and safely as using cash.

Payment typePrepaid voucher
MarketsAT, AU, BE, BG, CA, CH, CY, CZ, DE, DK, ES, FI, FR, GB, GE, GI, GR, HR, HU, IE, IT, LI, LT, LU, MT, MX, NL, NO, NZ, PE, PL, PT, RO, SE, SI, SK, UY
Customer currenciesAT, AU, BE, BG, CA, CH, CY, CZ, DE, DK, ES, FI, FR, GB, GE, GI, GR, HR, HU, IE, IT, LI, LT, LU, MT, MX, NL, NO, NZ, PE, PL, PT, RO, SE, SI, SK, UY
Processing currenciesAUD, CAD, CHF, EUR, GBP, NOK, PLN, RON, SEK, USD
RefundsYes

General flow:

POST Request -> to /payment_preauthorize
<- Response (direct, synchronous) with status=0&errormessage=pending and redirect_url
Customer is redirected to redirect_url to complete payment
<- HTML response with status=0 (or decline) to return_url
<- Callback (asynchronous) with errorcode=0 to notification_url

Step 1. Make a transaction request

From your server, make a POST /payment_preauthorize request.

POST https://sandbox.payabl.com/pay/backoffice/payment_preauthorize

Include in request:

ParameterFormatDescription
merchantid40 charactersMerchant identification number assigned during account creation
orderidmax. 40 charactersThe field orderid is optional and exclusively for the merchants' convenience
amountdigits only, either no decimals or two decimal places (e.g. 8 or 8.50)Transaction’s total amount that will be deducted from the customer
currency3 characters. ISO 4217The currency field contains the alpha-3 currency code for the transaction. Links to ISO
payment_method5payabl. Payment methods IDs
signature40 charactersSignature Calculation
bankcountry2 characters. ISO 3166-1 alpha-2Customer bank country
custom2paysafecardThe name of payment method
accountname3-100 charactersCustomer account name
emailmax. 50 charactersCustomer email. An RFC 822 compliant email address
firstnamemax. 50 charactersFirst name of the customer
lastnamemax. 50 charactersLast name of the customer
`url_successmax. 255 characters starting with http or httpsURL for customer redirection to success page
url_failedmax. 255 characters starting with http or httpsURL for customer redirection to failed page

You can see a full list of parameters in Pre-Authorization.

🚧

There is no real test environment for this following payment method. For this method, you need to use the tag “dumbdummy” to reach the simulator.

Request example:

merchantid=gateway_test&orderid=Payabl-Test&amount=19.99&currency=EUR&payment_method=5&language=en&customerip=2.22.75.244&[email protected]&
firstname=John&lastname=Doe&zip=8043 DR&street=Zwaardvegerstraat&house=98&city=Zwolle&country=NLD&accountname=John Doe&bankcountry=NL&custom2=paysafecard&
url_return=https://yourshop.example/thank_you&notification_url=https://yourshop.example/notification&signature=cf8044738d36d91f1119d3d9c0edf5cc936070aa

🚧

Public Sandbox information

Do not use your personal email address, Order ID with sensitive information, real customer details and credit card data in the public Sandbox. For email field you may use [email protected].

📘

Redirection to url_return does not confirm that the transaction is successful. Always check the transaction via notification_url or use the diagnose interface to get the final status of the transaction.

Step 2. Handle the redirect

To complete the payment, you need to redirect the customer to the URL provided in the response.

Response example:

transactionid=104582055&transid=104582055&status=0&errormessage=pending&errmsg=pending&amount=19.99&price=19.99&currency=EUR&
orderid=Payabl-Test&payment_method=5&ppro_id=2001347164&payment_guarantee=&redirect_secret=3AxApjN1dZGRIHyT8a3kohdfndJnx24a&
redirect_url=https%3A%2F%2Fr3.girogate.de%2Fti%2Fsimpaysafecard%3Ftx%3D2001347164%26rs%3DREP481tlJXenBPcrBy193jEQdNn54p7Z%26
cs%3De4a5ba402d709cca926cea99b5fc570a83dcdb30748da01468f117649bd33068&fail_reason=&user_id=506801

Response fields reference:

ParameterDescription
transactionidpayabl. internal transaction id. Please use this transaction id when referring to the transaction in communications with the payabl. team
transidThe same as transactionid
statusTransaction error code
errormessageBrief explanation of transaction decline reason (empty on success)
errmsgThe same as errormessage
amountTransaction amount
priceThe same as amount
currencyTransaction currency
orderidOptional transaction identifier given by the merchant
ppro_idPayment system's transaction id
fail_reasonPayment system's explanation of fail reason
redirect_secretSignature for redirection to the payment system's iframe (no actions needed)
payment_guaranteePayment system technical field
user_idPayment system user identifier
redirect_urlURL for customer redirection to finalize the payment (URL encoded)

Step 3. Receive the final status

Once the customer completes the payment, we will send a notification with the transaction's final status to the notification_url specified by you.

🚧

Payment methods that are accessible under ID 5 have a callback structure different from other payment methods. Please note that payabl. transaction ID is not passed in them, so you will need to identify the transaction in question by the Order ID (which is passed in the TXID field).

Also, the notification signature for these payment methods is calculated differently from other payment methods. Please see the calculation steps below:

  1. Sort all notification parameters values by parameter name in alphabetical order.
  2. Append your secret to the end of the concatenated string.
  3. Calculate a SHA-1 hex value of the string.

Notification example:

TAG=paysafecard&TXID=Payabl-Test&PAYMENTGUARANTEE=NONE&REQUESTSTATUS=SUCCEEDED&HASH=7afc9522c1e6bf4468435aa1097d9006faf1594f&
STATUS=SUCCEEDED&ERRMSG=

Notification fields reference:

ParameterDescription
TAGPayment method identifier
PAYMENTGUARANTEEPayment system technical field
REQUESTSTATUSRequest status (technical field)
STATUSTransaction status (SUCCEEDED for success)
ERRMSGBrief explanation of transaction decline reason (empty on success)
TXIDpayabl. order ID - optional transaction identifier given by the merchant
HASHSignature to verify the authenticity of the notification. You can find more information here

📘

url_return and notification_url should be passed by you in the Pre-authorization request.

Alternatively, you can communicate a notification_url to be used by default to payabl. technical team. By doing so, you won't need to send it in every request.

Refunds

Paysafecard supports refunds which can be initiated only on a successful captured transaction.
The request will send a credit note to the authorization system after the customer has already been charged. The refund amount will be credited to the customer and the merchant’s account will be charged.

The refund can be done in two ways:

  • Through API integration
  • Through payabl. dashboard

If you have API integration, you can check more in our documentation Refund.


Our Technical Support team is there to help you:
Email: [email protected]
Available Monday – Friday between 09:00 and 17:00 CET/CEST