Skip to main content

PaysafeCash Payment Details Response

typestringrequired

Possible values: [PAYSAFECARD]

Example: PAYSAFECARD
idstringrequired

Unique payment identifier.

Example: pay_1090001806_7k9XywR0fAbd9FADzAFBsVCabjUAPh96_EUR
createdinteger<int64>required

Payment creation timestamp in milliseconds.

Example: 1548677808372
updatedinteger<int64>required

Payment update timestamp in milliseconds.

Example: 1548677808372
amountnumber<double>required

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: SUCCESS
status_before_expirationstring

Holds the status of the payment before it transitioned to EXPIRED. This is useful to distinguish cases where a successfully authorized payment has not been captured from cases where a customer did not authorize the payment at all.

Only returned when the payment is in status EXPIRED.

Example: AUTHORIZED
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
webhook_urlstring<uri>required

URL to be used by PaysafeCash to notify upon authorization has been successfully completed.

Example: https://notification.com/
customer objectrequired
idstringnullable

Merchant client identifier.

account_idstringnullable

PaysafeCard account identifier.

ipstring

IPv4 address of the customer.

Returned after the customer has been redirected to the barcode application.

Example: 127.0.0.1
first_namestring

Customer first name.

Example: xApuEWppcYCptzoRnykkNuKznx
last_namestring

Customer last name.

Example: DbHILeEKPCRTCFuGbHKByYtbCm
emailstring<email>

Customer email address.

Example: psc.mypins+TEST_MOXSMYkqkkwWDH@gmail.com
agestringnullable

Customer age.

kyc_levelstringnullable

Customer KYC level.

currencystringnullable

Customer currency.

card_details object[]

Details of cards used for the transaction.

  • Array [
  • serialstringrequired

    Serial number identifying the card.

    Example: 1453591278
    currencystringrequired

    Three-letter ISO 4217 card currency.

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

    Example: EUR
    amountnumber<double>required

    Amount used from the card.

    Example: 0.01
    typestringrequired

    Five-character code identifying the card type.

    Example: 00002
    countrystringrequired

    Two-letter ISO 3166-1 card country code.

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

    Example: AT
  • ]
  • PaysafeCash Payment Details Response
    {
    "type": "PAYSAFECARD",
    "id": "pay_1090001806_7k9XywR0fAbd9FADzAFBsVCabjUAPh96_EUR",
    "created": 1548677808372,
    "updated": 1548677808372,
    "amount": 9.99,
    "currency": "EUR",
    "status": "SUCCESS",
    "status_before_expiration": "AUTHORIZED",
    "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"
    },
    "webhook_url": "https://notification.com/",
    "customer": {
    "id": "string",
    "account_id": "string",
    "ip": "127.0.0.1",
    "first_name": "xApuEWppcYCptzoRnykkNuKznx",
    "last_name": "DbHILeEKPCRTCFuGbHKByYtbCm",
    "email": "psc.mypins+TEST_MOXSMYkqkkwWDH@gmail.com",
    "age": "string",
    "kyc_level": "string",
    "currency": "string"
    },
    "card_details": [
    {
    "serial": "1453591278",
    "currency": "EUR",
    "amount": 0.01,
    "type": "00002",
    "country": "AT"
    }
    ]
    }