Skip to main content
The DeclineCallback API call is used to notify you of a failure in the Spark transaction process. It is typically triggered after a successful /TriggerTransaction response with a verdict of Approved, but when the flow subsequently fails for any reason before payment authorization. This callback is essential for integrators to detect and gracefully handle cases where a session cannot proceed, such as when:
  • The consumer did not present a payment card, and the terminal timed out.
  • The consumer canceled the transaction on the Nayax Device.
  • A failure occurred on the device during the card presentation.
  • Other terminal-side errors that disrupt the flow.
In such cases, no payment authorization is granted, and the transaction flow is terminated. If appropriate, the integrator may choose to re-attempt the /TriggerTransaction method.

Request

Spark sends a POST request to the /spark/DeclineCallback endpoint:

Request parameters

The table below describes the parameters of the request:

Response

This is a callback from Nayax, so no response body is required. Return 200 OK to acknowledge it.