By Billmate AB - https://billmate.se
Documentation regarding the API used in this class file can be found here.
This is the Billmate PHP Class file that is intended to used in PHP projects that use the Billmate Payment Gateway. Billmate handles invoice payments, part payments, Card transactions (Mastercard & Visa) and Direct Payments. To be able to use Billmate you need an id & secret. You get this by creating an account here.
In the folder Example an example implementation can be found. It serves the purpose of being an example implementation of the Billmate.php class file. It's your own resposibility to make sure your application works according to the Billmate API specification, see http://billmate.se/api-integration.
- Language is added as an optional paramater in credentials, version_compare is added for Curl setup
- Will make a utf8_decode before it returns the result
- verify_hash is improved. The serverdata is added instead of useragent
- verify_hash function is added.
- If response can not be json_decoded, will return actual response
- Unnecessary variables are removed
- Returns array and verifies the data is safe
- Url is updated. Some variables are updated
- Second Version