The AdjeminPay PHP SDK provides convenient access to the AdjeminPay API from applications written in the PHP language. It includes a pre-defined set of classes for API resources that initialize themselves dynamically from API responses which makes it compatible with a wide range of versions of the AdjeminPay API
PHP 5.6.0 and later.
You can install the bindings via Composer. Run the following command:
Do you remember the parameter
notification_url YOUR NOTIFICATION URL ?
You must now implement it in your backend to be notified of the progress of the payment and update your database.
When you initiate a transaction you provide a notification URL to which we notify you of the outcome of the transaction to allow you to have the details of the transaction.
AdjeminPay makes an HTTP request to your NOTIFICATION URL with the POST method and the following parameters in BODY:
Content-Type of the request is
transaction_id: the transaction reference provided by the merchant (you)
status: the payment status
amount: the amount of the transaction
phone_number: the phone number provided by the user making the payment
buyer_name: user's name
buyer_reference:the phone number or reference provided by the user making the payment
cancelled_at: if the transaction is canceled, the date on which the transaction is canceled
approuved_at: if the transaction is approved, the date the transaction is approved
transaction_type: the payment method used ORANGE_CI or MTN_CI
Example of management of notifications from AdjeminPay