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
tax_idandtax_id_typefields will pre-fill the CFP field for transactions in Brazil. -
Adding the
account_registration_date,account_KYC_levelandaccount_registration_countryis mandatory in order to be able to perform SafetyPay payouts!
Below, you can find an example with both fields for REST:
{
"type": "PAYSAFECARD",
"amount": 2000.00,
"currency": "BRL",
"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": "safetypay",
"payment_instrument_subtype": "online",
"bank_ids": ["8439","8382"]
},
"customer_takeover_data": {
"email": "test@test.com",
"tax_id": "0123059433817717",
"tax_id_type": "BRA_CPF",
"account_registration_date": "1997-05-15",
"account_KYC_level":"FULL",
"account_registration_country":"MX"
}
}
More on the parameters you can find here: Initiating a SafetyPay Payment - REST
Initiating a SafetyPay Payment - SOPG