Addons for programming languages
PHP
Requirements
PHP 7.2.5 or later.
Installation
- Via Composer (Recomended)
- Download as ZIP We do not recommend this option. But be careful to download the updated versions every a while Download
Quick start
- create config file epay_config.php This is where store your api credentials
- create payment redirection file redirect.php
- create payment processing file process.php
- Guide for testing your webhook (process) url Click Here
Configurations
- Available Configurations
key | description | redirect url | process url |
---|---|---|---|
api_key | must be string given by organization | required | required |
api_secret | must be string given by organization | required | required |
urls | must be array | required | not required |
urls[back_url] | must be string and valid url | required | not required |
urls[process_url] | must be string and valid url | required | not required |
mode | must be in CIB,EDAHABIA | required | not required |
payment[number] | must be string or int | required | not required |
payment[client_name] | must be string | required | not required |
payment[client_email] | must be string and valid email This is where client receive payment receipt after confirmation | required | not required |
payment[amount] | must be numeric and greather or equal than 75 | required | not required |
payment[discount] | must be numeric and between 0 and 99.99 (discount percentage) | required | not required |
payment[description] | must be string | required | not required |
options | must be array | required | not required |
options[headers] | must be array | required | not required |
options[timeout] | must be numeric | required | not required |