Skip to main content

Payment status

A PaysafeCash payment can progress through the following states during its lifecycle:

ValueDescription
INITIATEDThe initial state of a payment after it has been successfully created.
REDIRECTEDThe customer has reached the barcode panel.
AUTHORIZEDThe customer has paid the transaction amount at a payment point.
SUCCESSThe payment has been completed successfully.
CANCELED_CUSTOMERThe customer has cancelled the payment.
CANCELED_MERCHANTThe business partner has cancelled the payment.
EXPIREDThe customer has not paid the transaction within the predefined time frame, which is 72 hours by default.

HTTP status codes

CodeShort DescriptionDescription
200OKEverything is OK.
201CreatedA new object was successfully created.
400Bad RequestA required parameter is missing or invalid.
401UnauthorizedThe API key is invalid or expired.
404Not FoundThe requested resource was not found. This response is also returned when retrieving a payment that does not exist.
500Internal Server ErrorA general technical error occurred on the PaysafeCash side.
501Not ImplementedThe requested version or feature is not implemented.
502Bad GatewayAn invalid response was received from an upstream system.
503Service UnavailableThe server is temporarily unavailable or overloaded.
504Gateway TimeoutA timeout occurred while waiting for an upstream system.

Below is an example of an error response:

{
"code": "invalid_request_parameter",
"message": "must contain 1-10 digits, followed by a decimal separator '.' followed by 2 digits",
"number": 10028,
"param": "amount"
}

Customer ID

Also known as the Merchant Client ID, the customer ID is an important parameter for the PaysafeCash integration.

The customer ID identifies the customer in the business partner's system.

The recommended customer ID is a completely random value that uniquely identifies the customer and is not connected to any personal information.

The same value should be used for all transactions associated with the customer.

Valid values

ValueType
2c3be0b50c7a5f1964a63d78f38a6ffc41c027e9SHA-1 hash of test@123.com
742f2b1a55cd5d606ea44b4fcb54646aMD5 hash of test@123.com
3a5b0d0777dead9df93d502df85c8180e53804ebSHA-1 hash of UsernameValue1
3192481752123Random customer identifier
CustomerID1Customer identifier without personal information

Invalid values

  • test@123.com
  • Username_1
  • FirstName123
  • LastName123
  • Timestamp
  • IP Address

Sending any of these invalid values will not be accepted.

If payments are processed across multiple brands, contact PaysafeCard to discuss options for separating multiple entities within the account.

Variable Transaction Timeout

When the barcode is created, the customer is given a specific period in which to visit a payment point and pay for the transaction.

This period begins when the transaction is created and ends when the transaction expires if no payment is completed.

The default period is 72 hours. The barcode application displays the remaining time available to complete the payment.

The timeout can be configured for each transaction in the initiate payment request by using the expiration_time_minutes parameter.

The accepted value for this parameter is between 5 and 20160 minutes. If no value is specified, the default timeout is used.