Integration of Payment Method
The programming language PHP 7.4+ is used for integrating the payment method.
This integration is used when we receive a successful response from the merchant during the redirection of the user back to the panel. To implement this integration, you need to use the following methods from the Merchant.php
template:
checkout()
– a method for sending the request/client to the payment system.processing()
– processes a successful request from the payment method with payment validity verification.This integration is used when we receive a successful response from the payment system via the webhook URL. The integration method is similar to the Success Redirect.
This integration is used when the payment system does not return data about the transaction but provides a method for checking the payment status. For this integration, we need to prepare the following methods:
checkout()
– a method for sending the request/client to the payment system.checkStatus()
– a method triggered by the cron process that sends a request to the payment system to retrieve the payment status.To verify the payment, we use the following checks: