Skip to main content

OneClickCheckoutResponse

Response returned to a payment request that also enables the account for future One-Click checouts.

objectstringrequired

Object type identifier

Example: PAYMENT
idstringrequired

Unique identifier of the payment

Example: pay_9000001500_jLN9657f9uLNxSbXdhMmndw54N66W8Ea_EUR
createdinteger<int64>required

Unix timestamp in milliseconds when the payment was created

Example: 1781006255231
updatedinteger<int64>required

Unix timestamp in milliseconds of the last update

Example: 1781006255231
currencystringrequired

ISO 4217 (3 letter ISO currency code)

Example: EUR
statusstringrequired

Represents the current status of the payment.

Example: INITIATED
typestringrequired

Payment method type

Example: PAYSAFECARD
amountnumber<float>required

Payment amount

Example: 1
notification_urlstring<uri>required

URL where payment notifications are sent

Example: https://paymentnotification.site/example
customer objectrequired

Customer associated with the payment

idstringrequired

Merchant customer identifier

Example: TestUser123
redirect objectrequired

Redirect URLs and authorization URL for the payment flow

success_urlstring<uri>required

URL where the customer is redirected after successful authorization

Example: https://www.guinbox.com/notes/uC5lKyzh74x
failure_urlstring<uri>required

URL where the customer is redirected if the customer cancels the payment

Example: https://www.guinbox.com/notes/FP8gU99Wj7u
auth_urlstring<uri>required

URL where the customer must be redirected to give consent and authorize the payment.

Example: https://customer.test.at.paysafecard.com/psccustomer/GetCustomerPanelServlet?mid=9000001500&mtid=pay_9000001500_jLN9657f9uLNxSbXdhMmndw54N66W8Ea_EUR&amount=1.00&currency=EUR
submerchant_idstring

Identifier of the submerchant

Example: SUBM1234
automatic_payment_consentstringrequired

Enables the PaysafeCard account for One-Click checkouts.

Example: ONE_CLICK_OPTIONAL
association_idstringrequired

Association ID used afterwards to retrieve the payment token

Example: spi_gp2ksSLbpPoZ4WmyxpxsQLWpSI
OneClickCheckoutResponse
{
"object": "PAYMENT",
"id": "pay_9000001500_jLN9657f9uLNxSbXdhMmndw54N66W8Ea_EUR",
"created": 1781006255231,
"updated": 1781006255231,
"currency": "EUR",
"status": "INITIATED",
"type": "PAYSAFECARD",
"amount": 1,
"notification_url": "https://paymentnotification.site/example",
"customer": {
"id": "TestUser123"
},
"redirect": {
"success_url": "https://www.guinbox.com/notes/uC5lKyzh74x",
"failure_url": "https://www.guinbox.com/notes/FP8gU99Wj7u",
"auth_url": "https://customer.test.at.paysafecard.com/psccustomer/GetCustomerPanelServlet?mid=9000001500&mtid=pay_9000001500_jLN9657f9uLNxSbXdhMmndw54N66W8Ea_EUR&amount=1.00&currency=EUR"
},
"submerchant_id": "SUBM1234",
"automatic_payment_consent": "ONE_CLICK_OPTIONAL",
"association_id": "spi_gp2ksSLbpPoZ4WmyxpxsQLWpSI"
}