Skip to main content

Payment Response

objectstring

Type of returned object.

Possible values: [PAYMENT]

Example: PAYMENT
idstring

Unique ID of this payment.

Example: pay_1100000000_v2Pa0tDn0tr1CppVkSQ0yjY77eVOO5Pl_USD
createdinteger<int64>

Unix timestamp in milliseconds when the payment was created.

Example: 1607074107062
updatedinteger<int64>

Unix timestamp in milliseconds of the last update.

Example: 1607074107062
currencystring

ISO 4217 - 3 letter ISO currency code.

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

Example: USD
statusstring

Current status of the payment.

Example: INITIATED
typestring

Type of the product.

Possible values: [PAYSAFECARD]

Example: PAYSAFECARD
redirect object
success_urlstringrequired

URL to redirect to after successful authorization.

The placeholder {payment_id} in the URL is replaced with the actual ID of this payment.

Example: https://notification.com/{payment_id}
failure_urlstringrequired

URL to redirect to after the customer clicked on cancel.

The placeholder {payment_id} in the URL is replaced with the actual ID of this payment.

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

URL the customer must be redirected to in order to authorize the payment. Returned in the payment response.

Example: https://customer.test.at.paysafecard.com/psccustomer/GetCustomerPanelServlet?mid=1100000000&mtid=pay_1100000000_v2Pa0tDn0tr1CppVkSQ0yjY77eVOO5Pl_USD&amount=1.00&currency=USD
customer object
idstring

Unique customer identifier provided by the merchant.

Example: test_dev
amountnumber<double>

Payment amount.

Example: 1
notification_urlstring

Notification URL of this payment.

Example: https://9fc7622ff6a8995a8919be9c134d39a5.m.pipedream.net
Payment Response
{
"object": "PAYMENT",
"id": "pay_1100000000_v2Pa0tDn0tr1CppVkSQ0yjY77eVOO5Pl_USD",
"created": 1607074107062,
"updated": 1607074107062,
"currency": "USD",
"status": "INITIATED",
"type": "PAYSAFECARD",
"redirect": {
"success_url": "https://notification.com/{payment_id}",
"failure_url": "https://notification.com/{payment_id}",
"auth_url": "https://customer.test.at.paysafecard.com/psccustomer/GetCustomerPanelServlet?mid=1100000000&mtid=pay_1100000000_v2Pa0tDn0tr1CppVkSQ0yjY77eVOO5Pl_USD&amount=1.00&currency=USD"
},
"customer": {
"id": "test_dev"
},
"amount": 1,
"notification_url": "https://9fc7622ff6a8995a8919be9c134d39a5.m.pipedream.net"
}