Skip to main content

Payment

Object

NameTypeMandatoryDescription
classstringYThe type of object which is being returned. In this case it will be payment.
idintYThe SysPay reference of the returned payment.
referencestringYThe merchant payment identifier which was passed in the request.
amountintYThe amount in cents.
currencystringYThe currency (ISO-4217).
statusstringYThe payment status .See statuses.
preauth_expiration_dateunix timestampYThe preauth expiration date specifies until when a a preauth can be captured or voided or null. Please note that the transaction will be voided automatically once the preauth expires.
capture_dateunix timestampYThe date after which the preauth may be automatically captured or null.
action_urlstringYThe url where the customer should be redirected to in order to complete the operation or null if no redirection is requested.
flowstringYThe flow used to process the payment.
processing_timeunix timestampYWhen the payment has been processed, null if the transaction is still not complete.
sourceintYThe id of the website the payment has been made for.
contractstringYThe name of the payment processor. This will be null until the payment has been processed.
descriptorstringYThe payment description which will be shown on the card payment bank statement. This will be null until the payment has been processed.
extrastringNThe extra parameter which was sent on in the request call.
descriptionstringNThe merchant payment description.
account_idintYThe SysPay account reference that the API access is linked to.
merchant_idintYThe SysPay API access merchant reference.
merchant_loginstringYThe SysPay API merchant login which processed the payment.
settlement_dateunix timestampYA timestamp indicating when this payment will be settled. This will be null until the payment has been processed.
failure_categorystringYWhen an operation fails, this parameter will include extra information about the error. See Failure categories. This will be null until the payment has been processed and if the payment is successfuly processed.
failure_messagestringYWhen an operation fails, this parameter will include extra information about the error. This will be null until the payment has been processed and if the payment is successfully processed.
chip_and_pin_statusstringYThis field will be present on Chip&Pin transactions or null if it is not the case. When the payment has been made using Chip&Pin device, the actual payment status will be kept OPEN until the transaction is really captured. In order to let your web shop or native application know about the transaction results synchronously, this field will reflect the status seen on the device (SUCCESS / FAILED). This should be used for display purpose only.
tokenobjectYThe token details. See Token object or null if no token is linked to it.
customerobjectYThe customer details. See Customer object.
payment_methodobjectYThe payment method details. See Payment_method object.
processor_referencestringYThe reference of the transaction for the processor, in case of supergateway processing. This will be null until the payment has been processed.
qr_codestringYThis will be null if the payment method is not ANCV or if the ANCV account holder is unknown when the payment is initialized.
authentification_3dsobjectYThe 3ds authentication details. See authentication 3ds object. This will be null until the payment has been processed.

Payment statuses

StatusFinalDescription
OPENNThe user needs to be sent to the given redirect url to complete the payment.
SUCCESSYThe payment has been completed successfully
FAILEDYThe payment has been refused. The response will come with a failure_category property that will provide you with more details about the failure whenever this is possible
CANCELLEDYThe payment attempt has been canceled by the user
AUTHORIZEDNWhen doing a 2-step payment (pre-authorization followed by a confirmation), this is the status the payment will be in after the authorization has taken place. It can now be confirmed (which will pass the payment to SUCCESS) or voided
VOIDEDYCancellation of an AUTHORIZED payment. This will release the money to the card
WAITINGNThis means we are waiting for an external action in order to know about the payment status. Some payment methods are processed asynchronously or require the user to take some actions (like printing and sending a form) to complete the payment. You will know about the final status of the operation by receiving a payment notification
ERRORYAn error occurred while processing the payment
TIMED_OUTYThe token has been cancelled because no card details were provided before the accept_until parameter date.
EXPIREDYThe authorized payment has expired because it was not captured or voided.

Example

{
"class":"payment",
"id":16,
"reference":"Unqiue-111111",
"amount":5000,
"currency":"EUR",
"status":"SUCCESS",
"preauth_expiration_date":"1421426671",
"action_url": null,
"flow":"API",
"processing_time":1423501843,
"website":1,
"contract":"Contract",
"descriptor":"Contract",
"extra":null,
"description":"Shopping basket payment",
"account_id":123,
"merchant_id":123,
"merchant_login":"login",
"settlement_date":1424711442,
"failure_category":null,
"failure_message":null,
"chip_and_pin_status":null,
"token":{
"class":"token",
"id":7,
"status":"ACTIVE",
"action_url":null,
"booking_id":"test-ref",
"check_in_date":"2015-08-22",
"check_out_date":"2015-08-24",
"expiration_date":1421426671,
"customer":{
"class":"customer",
"email":"test@domain.com",
"language":"en"
},
"payment_method":{
"class":"payment_method",
"type":"CREDITCARD",
"display":"4111-11xx-xxxx-1111",
"validation_status": "VALID",
"validation_date":"1443607554",
"invalid_reason": null,
"details":{
"class":"payment_method_details",
"holder":"Card Holder Name",
"scheme": "VISA",
"exp_month":"01",
"exp_year":"2016"
}
}
},
"customer":{
"class":"customer",
"email":"test@domain.com",
"language":"en"
},
"payment_method":{
"class":"payment_method",
"type":"CREDITCARD",
"display":"4111-11xx-xxxx-1111",
"validation_status": "VALID",
"validation_date":"1443607554",
"invalid_reason": null,
"details":{
"class":"payment_method_details",
"holder":"Card Holder Name",
"scheme": "VISA",
"exp_month":"01",
"exp_year":"2016"
}
},
"processor_reference":"ref1234"
}