Workflow of how to implement Credit Card payments using easypay's services.
1 - Request a Reference
to request a payment identifier.
Redirect the client for the URL received on parameter ep_link
Client will arrive on a page like this
2 - Client side
Now your client is on easypay's credit card gateway.
Now you need to implement Order detail
so that the client can see what is paying for.
3 - Client credit card details
Now your client will fill their credit card details and click next
Review all the infos and finalize the authorization
For test purposes you can test a credit card payment
4 - Redirect to your page
Now your client will be redirected to your page.
You need to implement this steps
5 - Client process ends here
The client process ends here and there is no more things for him to do.
6 - Request payment
When you ship the order or provide the service the client authorized payment you have to request the payment using the api_easypay_05AG.php
7 - Wait for it...
Now the payment is being processed by the card issuer
8 - Payment notification
After you request payment and easypay receives a response from the card issuer that the payment was successful you will receive a payment notification
( real time ).
If you don't need real time notification you can fetch all payments
once a day to fetch all the payments received
9 - Notifications check
If you use real time notification you should call once a day api_easypay_040BG1.php
to fetch all payments received and match with the ones you have on record to check if all of them where notificated.
If not, add them to the easypay_notifications table and continue the process like it was a real time notification.