ptmigmag
Hi,
Currently, there isn't an official guide for creating a payment plugin for Guru. However, you can examine the code of any existing Guru payment plugin to understand how it works. Let's take the example of the GURU Payment Plugin - Stripe SCA
.
In the stripesca.php file:
- The
onSendPayment
method is used to display the submit form for payment.
- The
onReceivePayment
method sends payment information to the payment gateway and validates its success.
Additionally, you can see how the two methods mentioned above are called in the components/com_guru/controllers/guruBuy.php
file, specifically within the checkout
and payment
methods.
Regards,