🥈Verify Payments
Verify transactions after payments using Lazerpay's verify api
Transactions are being verified using the Verify Payments endpoint from your server using your transaction reference or with the address property whose value is the payment address returned from the initialise payment function.
Verify Payment API
To verify transactions using the Lazerpay endpoint, you will make a get
request to the verify transaction endpoint from your server using your transaction reference or with the address property.
Here's a code sample for verifying transactions:
GET
https://api.lazerpay.engineering/api/v1/transaction/verify/:address_or_reference
Path Parameters
Headers
Important Note from the verification response
The
actualAmount
key is the amount that you intended to charge the customer in crypto.The
amountPaid
key is the crypto amount that is being paid to the merchant. It is usually in the coins that we supportThe
amountPaidFiat
is the fiat value of the crypto amount being paid to the merchantThe
fiatAmount
is the fiat value of the amount that you intended to charge the customer. This is usually in the merchant's local currency.
The amountReceivedFiat
and amountReceived
values is the amountPaidFiat plus Lazerpay fees and the AmountPaid plus Lazerpay fees respectively.
From Official JS SDK
With the JS SDK, you have access to the confirmPayment object which is used to verify any payment in the Lazerpay platform.
If you offer digital value like airtime, wallet top-up, digital credit, etc, always confirm that you have not already processed the value for that transaction to avoid double fulfillments, especially, if you also use webhooks.
Last updated