Skip to main content

PaysafeCash Payment Response

objectstringrequired

Type of returned object.

Possible values: [PAYMENT]

Example: PAYMENT
idstringrequired

Unique payment identifier.

Example: pay_1090001806_7k9XywR0fAbd9FADzAFBsVCabjUAPh96_EUR
createdinteger<int64>required

Payment creation timestamp in milliseconds.

Example: 1548677808372
updatedinteger<int64>

Payment update timestamp in milliseconds.

Example: 1548677808372
amountnumber<double>

Payment amount.

Example: 9.99
currencystringrequired

Payment currency.

Possible values: >= 3 characters and <= 3 characters, Value must match regular expression ^[A-Z]{3}$

Example: EUR
statusstringrequired

Current payment status.

Example: INITIATED
typestringrequired

Product type.

Possible values: [PAYSAFECARD]

Example: PAYSAFECARD
redirect objectrequired
success_urlstring<uri>required

URL used after successful payment completion.

Example: https://ok.com/{payment_id}
failure_urlstring<uri>required

URL used after failed or cancelled payment completion.

Example: https://nok.com/{payment_id}
auth_urlstring<uri>

URL to which the customer is redirected for authorization.

Example: https://customer.test.at.paysafecard.com/rest/payment/panel
customer objectrequired
idstringrequired

Unique customer identifier provided by the merchant.

Example: merchantclientid5HzDvoZSodKDJ7X7VQKrtestAutomation
submerchant_idstring

Sub-merchant identifier.

Example: 1
PaysafeCash Payment Response
{
"object": "PAYMENT",
"id": "pay_1090001806_7k9XywR0fAbd9FADzAFBsVCabjUAPh96_EUR",
"created": 1548677808372,
"updated": 1548677808372,
"amount": 9.99,
"currency": "EUR",
"status": "INITIATED",
"type": "PAYSAFECARD",
"redirect": {
"success_url": "https://ok.com/{payment_id}",
"failure_url": "https://nok.com/{payment_id}",
"auth_url": "https://customer.test.at.paysafecard.com/rest/payment/panel"
},
"customer": {
"id": "merchantclientid5HzDvoZSodKDJ7X7VQKrtestAutomation"
},
"submerchant_id": "1"
}