Payment-method icon

PaySafeCard Component

Add PaySafeCard to an existing Components integration.

This page explains how to add PaySafeCard to your existing Web Components integration.

Requirements

Select the server-side flow that your integration uses:

Requirement Description
Integration type Make sure that you have built a Sessions flow Web Components integration.
Setup steps Before you begin, contact our Support Team to add PaySafeCard in your Customer Area.

API reference

Select which endpoint you are using:

This is the default with Components v5.0.0 or later.

Parameter name Required Description
shopperReference -white_check_mark- Your reference to uniquely identify this shopper, for example user ID or account ID.

For a full list of optional fields that you can send for all payment methods, see /sessions.

Expand view
Copy link to code block
Copy code
Copy code
curl https://checkout-test.adyen.com/v69/sessions \
-H 'x-api-key: ADYEN_API_KEY' \
-H 'content-type: application/json' \
-d '{
"merchantAccount": "ADYEN_MERCHANT_ACCOUNT",
"reference": "YOUR_ORDER_NUMBER",
"paymentMethod": {
"type": "paysafecard"
},
"amount": {
"currency": "EUR",
"value": "1000"
},
"shopperLocale": "de_DE",
"countryCode": "DE",
"shopperReference": "YOUR_UNIQUE_SHOPPER_ID",
"returnUrl": "https://your-company.com/checkout?shopperOrder=12xy.."
}'

Component configuration

Step 1: Create a DOM element

Create a DOM element on your checkout page, placing it where you want the payment method form to be rendered:

Copy code
 <div id="paysafecard-container"></div>

Step 2: Create an instance of the Component

v6.0.0 or later

Create an instance of the Component, passing:

  • Your instance of AdyenCheckout.
Copy code
const paySafeCard = new Redirect(checkout, { type: 'paysafecard' }).mount('#paysafecard-container');

Use the create method of your AdyenCheckout instance, in this case checkout, to create the Component:

Copy code
const paySafeCardComponent = checkout.create('paysafecard').mount('#paysafecard-container');

Test and go live

Before you go live, test your integration using the following credentials:

  • 16-digit code: 0000 0000 0990 3417

Check the status of test payments in your Customer Area > Transactions > Payments.

Before you can accept live payments, contact our Support Team to add PaySafeCard in your live Customer Area.