Hi,
I need to implement recurring payments in my custom payment gateway.
Here is the docs from the payment gateway how should I register and process recurring payments:
1. Make a parent payment by calling Init with additional parameters Recurrent=Y and CustomerKey.
2. Redirect the Buyer to PaymentUrl.
3. After the Buyer pays for the order, the parameter RebillId will be sent in the notification for the AUTHORIZED status.
4. After some time, to make a recurring payment, you need to call the Init method with a standard set of parameters.
5. Receive the PaymentId parameter in response to Init.
6. Call the Charge method with the RebillId parameter obtained in step 3 and the PaymentId parameter, obtained in step 5.
So as you can see to make step 4 I need some action from the PayPlans. Is there any plugin event for that?
For example when the plan is expiring and it is recurrent then PayPlans trigger some event and as the result I can make step 4-6 to make a recurring payment and prolong the plan.
Best regards,
Artem