If your programming language does not have an easy-to-use implementation of the HMAC function, as PHP does, then you can POST your Data string, Secret Key and Merchant Vendor ID to the following URL, using the cURL library or its equivalent:
https://ipayafrica.com/hashid/POST parameter names and data examples Please note that the data string MUST be in the same order as shown in Section 2.1 above.
vendor = demo data = 11111Demo [email protected] key = yoursecuritykey
The HTTP Stream returned is the hashid that you should pick and use. If the HTTP Stream returns the string “invalid”, then one or more of your parameters is not correct. This hashid is then supplied as one of the parameters to be sent to the iPay payment system for verification as shown on section 1.1.
If your Vendor ID ($vendor_ref) is not yet registered with iPay, then you will get an error stating this and showing you how to go about how to remedy this.