# Paysafecard

> Accept one-time Paysafecard payments for virtual goods through the Direct API or Checkout using the provider’s hosted payment flow.

## Basic information

On the provider’s hosted page, customers enter a prepaid PIN or log in to their personal account, as required, to complete payment.

- Integration paths: [Direct API](/payments/versions/v2/online-payments/api), [Checkout](/payments/versions/v2/online-payments/checkout)
- Transaction type: One-time payment
- `lpmsInfo.lpmsType`: `PaySafeCard`

| Customer country/region | Order currency |
| --- | --- |
| 🇦🇹 AT, 🇧🇪 BE, 🇩🇪 DE, 🇪🇸 ES, 🇫🇮 FI, 🇫🇷 FR, 🇮🇹 IT | EUR |

The customer country/region is the `billingInformation.country` value in the payment request.

This guide covers payments for virtual goods using an enabled Paysafecard hosted payment flow; your merchant account and application must be enabled for the relevant market and business. Some markets and businesses require a personal account, as described in [Before you begin](#before-you-begin). Confirm that the relevant country and order currency are enabled for your merchant account and application, then check the current order with [List available payment methods](/payments/versions/v2/api-reference/endpoints/list-available-payment-methods) before using the Direct API or selecting Paysafecard in Checkout.

## Before you begin

Complete [Setup](/payments/versions/v2/get-started/setup) and confirm that Paysafecard is enabled. Also confirm transaction limits, the applicable payment validity period, settlement arrangements, and the test procedure. For amount formatting, see [Currency and amount validation](/payments/versions/v2/get-started/currency-and-amount).

Confirm that your enabled configuration supports the hosted payment flow for your virtual goods and the required PIN or personal-account payment steps. Prepare the billing and shipping information required by the API for your chosen integration path, including email and the actual country for each address. Configure your notification and return URLs, and store the mapping between your order and the Onerway identifiers. Your application does not collect or store prepaid PINs or account login credentials.

In Italy, Paysafecard payments require a personal account. In France, an account is required except on online gaming, iGaming, and sports betting platforms. Sports betting and iGaming payments in AT, BE, DE, ES, and FI also require a personal account. The applicable business must be included in your merchant’s enabled scope.

## Start the payment

### Direct API

For this Direct API flow, collect the customer details before creating the payment and supply `firstName`, `lastName`, `email`, and `country` in [`billingInformation`](/payments/versions/v2/api-reference/endpoints/direct-create-transaction#request-billingInformation). Use the customer’s actual billing country and follow the API conditions for shipping information and any other fields.

1. Check [List available payment methods](/payments/versions/v2/api-reference/endpoints/list-available-payment-methods) for the current order. After the customer selects Paysafecard, call [Create direct transaction](/payments/versions/v2/api-reference/endpoints/direct-create-transaction) from your server with `productType=LPMS`, `subProductType=DIRECT`, `txnType=SALE`, and `paymentMode=WEB`. Set `lpmsType=PaySafeCard` in [`lpmsInfo`](/payments/versions/v2/api-reference/endpoints/direct-create-transaction#request-lpmsInfo), encoded as a JSON string.
2. Supply the customer details listed above in `billingInformation`, and follow the API requirements for `shippingInformation`. Encode both as JSON strings. Include products, notification and return URLs, and merchant-collected end-user IP, browser, and device information in [`txnOrderMsg`](/payments/versions/v2/api-reference/endpoints/direct-create-transaction#request-txnOrderMsg). Keep product and order currencies consistent, with product amounts, discounts, and shipping fees adding up to `orderAmount`.<br />Select the request example “Redirect local payment request (illustrative)”. It uses Bancontact / BE / EUR to show the shared structure. Replace the method with `PaySafeCard`, use EUR for this flow, and supply the actual order and the customer details required by this Direct flow. The example amount does not establish a transaction limit.
3. Store the returned `paymentId` and `transactionId`. When `status=R` and `actionType=RedirectURL`, direct the customer to the returned `redirectUrl`. The response example “Redirect local payment response (illustrative)” shows this shape. For other actions or states, follow [Local payment integration](/payments/versions/v2/online-payments/payment-methods/local-payment-methods#handle-the-customer-action). Do not repeatedly create the same order while waiting.
4. On the payment provider’s page, the customer enters a prepaid PIN or logs in to their personal account, as required, and completes the steps shown. When the customer returns to your site, display the result retrieved from your server. See [Request authentication](/payments/versions/v2/get-started/authentication) for authentication.

### Checkout

When locking Checkout to this method, first call [List available payment methods](/payments/versions/v2/api-reference/endpoints/list-available-payment-methods) for the current order and confirm that the method is returned. When Checkout displays all available methods, Onerway performs this filtering.

Supply the required `email` and `country` in both [`billingInformation`](/payments/versions/v2/api-reference/endpoints/create-checkout-payment#request-billingInformation) and `shippingInformation`, together with the other fields required by the API conditions. Customers enter PINs or account login credentials only on the payment provider’s page; do not send them in `lpmsInfo` or another merchant request field.

1. On your server, call [Create checkout payment](/payments/versions/v2/api-reference/endpoints/create-checkout-payment) with `productType=ALL`, `subProductType=DIRECT`, and `txnType=SALE`. To show only Paysafecard, set [`lpmsInfo.lpmsType`](/payments/versions/v2/api-reference/endpoints/create-checkout-payment#request-lpmsInfo) to `PaySafeCard`, sending `lpmsInfo` as a JSON string. If you omit `lpmsInfo`, the customer chooses from the methods available for the order.
2. Supply the required billing, shipping, product, return URL, and notification URL fields. Encode [`billingInformation`](/payments/versions/v2/api-reference/endpoints/create-checkout-payment#request-billingInformation) and `shippingInformation` as JSON strings. Keep product and order currencies consistent, and ensure that product amounts, discount entries, and shipping fees add up to `orderAmount`.<br />Select the request example “Unified Checkout with all available payment methods”. Replace the order and customer details, use EUR for this flow, and add this method’s `lpmsInfo` if you want to select only Paysafecard. Remove `cardInfo` from the example for this flow. The example shows the shared Checkout request structure.
3. Select the response example “Unified Checkout session created”. Store the returned `paymentId` and `transactionId` against your order, then redirect the customer’s browser to `redirectUrl`. The initial `status=U` means that payment has not been completed.
4. Checkout handles the payment page and subsequent customer interaction. When the customer reaches `returnUrl`, display the result retrieved from your server. For request authentication, redirects, and return handling, see [Checkout integration](/payments/versions/v2/online-payments/checkout).

## Customer actions and final result

Customers follow the hosted instructions to Paysafecard, enter a prepaid PIN or log in to their personal account as required, review the amount, and complete the payment steps shown. Account and verification steps are handled by the provider. Your application does not display its own PIN-entry or account-login form or handle the prepaid balance.

Opening the payment page, entering a PIN, logging in to an account, or returning to your site does not by itself confirm payment. Customers may leave before completing the process; keep the order awaiting confirmation until your server retrieves the Onerway result.

Process the order using a signature-verified [payment result webhook](/payments/versions/v2/api-reference/webhooks/payment-result). If no notification has arrived or you need to check the result, call [Query payments](/payments/versions/v2/api-reference/endpoints/query-payments) with the stored `paymentId`. Fulfill the order only after your server confirms a successful payment. For verification, acknowledgement, idempotency, and query fallback, see [Webhooks](/payments/versions/v2/get-started/webhooks).

## Refunds and disputes

Confirm the refund capabilities, restrictions, and dispute process applicable to your merchant with Onerway. If refunds are enabled, follow [Refunds](/payments/versions/v2/online-payments/scenarios/refunds).

## Testing and go-live

Confirm the test environment and available Paysafecard test procedure with Onerway, then follow [Sandbox testing](/payments/versions/v2/get-started/testing):

1. Test each enabled country and integration path you use with EUR and the customer details required for that path. For the Direct API, confirm that the returned redirect opens the configured Paysafecard payment flow. For Checkout, confirm that the first `redirectUrl` opens Checkout and that Paysafecard is available.
2. Verify that the hosted page offers the PIN or account payment steps appropriate to the selected market and business. Complete the agreed payment test and confirm the result on your server. Opening the page, entering a PIN, or logging in alone does not pass the successful-payment check.
3. Test a customer leaving before payment, a payment that is not completed, and a return before a final result. Verify query fallback when no notification has arrived and idempotent handling of duplicate notifications.
4. For go-live acceptance, retain the notification and acknowledgement for the same order. Query the payment status and check that it matches the notification. Check production enablement, notification and return URLs, limits, and validity periods. Test refunds separately if they are enabled.
