After the gateway API changed, every new response started carrying an error key. Declines contain an object there, while the other new responses contain JSON null; older non-decline responses have no error key at all. Find the cases where the gateway explicitly sent no error.
What to return:
- payment_id — the gateway response ID
- order_id — the order ID
- status — the status from response
Keep in mind:
- the error key must be present
- its value must be JSON null
Sort by payment_id ascending.
payment_idorder_idstatusShowing the first 3 rows of the sample — the full sample comes with Premium
Sign in to see submission history
Sign inSign in to use AI Mentor
Sign in