Naira or Kobo? Check Amount Units Before Connecting a VTU API
Do not assume that every API interprets an amount of 1000 as the same sum. One service may expect naira while another expects kobo. Record the unit for each endpoint before connecting a payment collection system to a VTU purchase system.
Read the documentation for both sides
Paystack's API describes NGN amounts in the currency subunit, kobo. VTU.ng's developer documentation describes its numeric amount fields in major currency units. These are examples of different contracts, not evidence about YHOMMYDATA's integration format.
Check request fields, response fields and wallet balances separately. A formatted display string is not automatically suitable for arithmetic or a purchase request.
Work through one amount on paper
For a hypothetical ₦250 payment, the equivalent is 25,000 kobo. If the receiving endpoint expects naira, forwarding 25,000 without conversion would represent a very different requested amount.
Write down: customer-facing amount, collection request value and unit, verified collection value, supplier purchase amount and unit, and displayed receipt value. Agree exactly where any conversion occurs.
Keep conversion in one place
Ask the developer to use an explicit amount-handling function and an appropriate exact representation. Avoid scattered multiplication or division by 100 across screens, callbacks and reports. Repeated conversions can undo a correct value.
Set checks against the intended customer order before a supplier purchase is submitted. A validly formatted number can still be the wrong business amount.
Test without risking customer funds
Use the providers' supported test facilities. Include an amount with a fractional naira component where permitted, an ordinary whole-naira value, and a boundary value. Compare stored records with what the customer sees. Do not deliberately create oversized live purchases to test a theory.
A reseller's acceptance check
Ask to see one complete test trail, with credentials redacted, rather than accepting a screenshot of a successful HTTP response as proof.
For manual YHOMMYDATA sales, read the payable amount on https://yhommydata.com/ before confirming. Developers should obtain current authorised documentation before assuming any YHOMMYDATA amount convention.
Related cost distinction: https://yhommydata.com/blog/airtime-face-value-wallet-debit/
References: https://paystack.com/docs/api/ and https://developer.vtu.ng/docs