verify_invoice: Verify Invoice

Description Usage Arguments Details

Description

Verify Invoice

Usage

1
verify_invoice(authorization, invoice_id)

Arguments

authorization

set_keys("", "SECRET_KEY")$secret, equivalent of "-H Authorization: Bearer SECRET_kEY"

invoice_id

or code. string. REQUIRED Path params

Details

Note that a key is added called pending_amount when you fetch an invoice. This is because when paying for an invoice, you can choose to pay part but not all. Whenever a successful transaction is made, the key updates to reveal what’s left of the invoice to pay. As a rule, the UI (frontend, or POS) should not allow payment of an amount greater than the pending amount.


ebinabo/paystack documentation built on May 16, 2019, 8:16 p.m.