Skip to main content

Prefill Customer Information

Using the customer_data_takeover parameters in the payment creation, the merchant can pre-fill some data to improve the customer flow.

  • Adding the email field will skip the intermediate page where customer is asked to type the email.

Below, you can find an example with both fields for REST:

{
"type": "PAYSAFECARD",
"amount": 10.00,
"currency": "USD",
"redirect": {
"success_url": "https://www.paysafecard.com/okURL",
"failure_url": "https://www.paysafecard.com/nokURL"
},
"notification_url": "https://www.paysafecard.com/pnUrl",
"customer": {
"id": "customer_id2"
},
"shop_id":"test123",
"restrictions": {
"payment_instrument": "pagoefectivo"
},
"customer_data_takeover": {
"email": "test@test.com"
}
}