When a customer completes a payment on Novac’s checkout, they are redirected to the callbackURL you provided during checkout initialization.
Novac automatically appends query parameters such as the transaction reference and status to this URL. You can then use this reference to verify the transaction directly from your server before confirming payment or giving value to the customer.This approach ensures you are validating each transaction against Novac’s API response, not relying solely on the status parameter in the callback.
You can also define a server-side route, for example /payment/callback that reads these query parameters, extracts the transaction reference, and calls Novac’s Verify Transaction API to confirm the actual payment status.Below are examples in multiple languages showing how to handle and verify the callback.