Skip to main content

Payment States


A PaysafeCard 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 been redirected to the PaysafeCard payment panel to authorize the payment.
AUTHORIZEDThe payment has been successfully authorized by the customer.
SUCCESSThe payment has been completed successfully.
CANCELED_MERCHANTThe payment has been canceled by you, the business partner.
CANCELED_CUSTOMERThe payment has been canceled by the customer on the payment panel.
EXPIREDThe payment has expired because the customer did not authorize it within the disposition time window, or because the authorized amount was not captured by the business partner within that time window.


HTTP Status Codes


CodeShort DescriptionDescription
200OKEverything is OK.
201CreatedNew object was successfully created.
400Bad RequestMissing parameter.
401UnauthorizedInvalid or expired API key.
404Not FoundNot found. This is also returned when you try to retrieve a payment that does not exist.
500Internal Server ErrorThis indicates a general technical error on PaysafeCard's end.
501Not ImplementedVersion feature not implemented.
502Bad GatewayInvalid response from upstream system.
503Service UnavailableServer overloaded.
504Gateway TimeoutTimeout from upstream system.

Error Codes


CodeNumber (optional)HTTP StatusDescription
general_technical_error10007500General technical error.
invalid_api_key10008401Authentication failed due to missing or invalid API key. Your key needs to be set to the HTTP auth username.
invalid_request_parameter10028400One of the request parameters failed validation. The message and param fields contain more detailed information.
duplicate_transaction_id2001400Transaction already exists.
payment_invalid_state2017400The payment is in an invalid state, e.g. you tried to capture a payment that is in state INITIATED instead of AUTHORIZED.
Merchant with Id XXXXXXXXXX is not active.3001400Merchant is not active.
Merchant with Id XXXXXXXXXX is not allowed to perform this debit any more3007400Debit attempt after expiry of dispo time window.
submerchant_not_found3014400The submerchant_id specified has not been configured.
general_error3017400It is mandatory to send an MCID.
general_error3019400MCID contains invalid values.

Other errors can be communicated to the customer as “general technical error”. In general when one of these errors occur the business partner should contact PaysafeCard immediately via integration@paysafecard.com if the account is not live. For live accounts, techsupport@paysafecard.com should be contacted.

Below is an example of an error response:

400 Bad Request

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


## PaysafeCard error messages
---

Translated PaysafeCard error messages for customers in EN, DE, ES, FR, IT, NL, SV, CZ and PL can be found [*here*](https://www.paysafecard.com/fileadmin/Website/Dokumente/B2B/paysafecard_error_messages.pdf).