Here you can access fully functional code on how to integrate with Easypay using luismarto/easypay package
- Execute the
sample-database.sql
code in schema/ - Rename
config-example.php
toconfig.php
- Update the settings in
config.php
with your Easypay and DB information - Prepare your webserver to allow requests
-
mb-create-reference.php
calls Easypay to create a MB reference. It will store the information on theorders
andeasypay_references
tables and will display the payment information on your browser -
mb-real-time-notification.php
should be called with the parametersep_cin
,ep_user
andep_doc
(see the source code for the example link). This file replicates the request Easypay performs for real time notifications.The point is to retrieve the full details of the payment and update
easypay_references
and create a new row oneasypay_payments
-
mb-async-notification.php
allows you to fetch payments details and mark the payments as completed. -
dd-create-reference.php
calls 01BG API to create a reference / Direct debit authorization code and then redirects the user to Easypay's gateway, where the user needs to fill the bank account IBAN -
dd-gateway-callback.php
is called by Easypay when the user submits the information on their gateway. At this point you can request a payment.