OneClickCheckout
Request to initiate a payment and also enable the PaysafeCard account for subsequent One-Click Checkout payments. Subsequent payments are executed same as other type of merchant initiated payment where the redirection to payment panel is not needed.
Payment type
PAYSAFECARDThe amount of the payment during which the consent is requested. In this case, automatic_payment_consent field is mandatory.
0.01ISO 4217 (3 letter ISO currency code)
EURredirect objectrequired
URLs to redirect after successful completion or cancellation of the transaction.
Customer redirected after successful completion of the transaction.
https://www.guinbox.com/notes/uC5lKyzh74xCustomer redirected after cancelling transaction on payment panel (Customer clicking on X).
https://www.guinbox.com/notes/FP8gU99Wj7uURL to be used by PaysafeCard to notify you once the customer has paid using PaysafeCard PIN or account.
https://paymentnotification.site/examplecustomer objectrequired
Details and/or restriction for the customer are provided in this object
Merchant customer identifier
TestUser123Valid for PaysafeCard account payments. Restricts payments to PaysafeCard account customers only, who are equal to or older than the specified age. Please note that this means that it is required that the customer has a registered PaysafeCard account to make the payment.
18Valid values SIMPLE or FULL. These values refer to the KYC level of the customer's PaySafecard account. Depending on the country, PaySafecard accounts are offered with SIMPLE and/or FULL customer identification.
FULLISO 3166-1 alpha-2 two-letter country code used to restrict payments to residents of a particular country.
ATSubmerchant identifier
SUBM1234Identification of the shop which is the originator of the request. This is most likely used by payment service providers who act as a proxy for other payment methods as well.
Shop_ABCActivates the consent option for this transaction. Only mandatory if the consent is requested during a payment. There are two possible values, MANDATORY and OPTIONAL.
ONE_CLICK_OPTIONAL{
"type": "PAYSAFECARD",
"amount": 0.01,
"currency": "EUR",
"redirect": {
"success_url": "https://www.guinbox.com/notes/uC5lKyzh74x",
"failure_url": "https://www.guinbox.com/notes/FP8gU99Wj7u"
},
"notification_url": "https://paymentnotification.site/example",
"customer": {
"id": "TestUser123",
"min_age": 18,
"kyc_level": "FULL",
"country_restriction": "AT"
},
"submerchant_id": "SUBM1234",
"shop_id": "Shop_ABC",
"automatic_payment_consent": "ONE_CLICK_OPTIONAL"
}