Verify Payments
Last updated
Last updated
Verify transactions after payments using Lahza's verify API
You do this by making a GET
request to the Verify from your server using your transaction reference. This is dependent on the method you used to initialize the transaction.
You'll have to send the reference to your server, then from your server you call the verify endpoint.
You initiate this request from your callback URL. The transaction reference is returned as a query parameter to your callback URL.
Here's a code sample for verifying transactions:
The verify response also provides information about the payment instrument used by the user in the data.authorization
object. If the channel indicates a card payment, you can store the authorization_code
associated with that card for the respective user. This stored authorization code can then be used for future transactions to charge the user conveniently without requiring them to re-enter their payment details. This allows for a seamless payment experience for subsequent transactions. Learn more about .