By Ahmad Arshad on Friday, 18 December 2020
Posted in General Issues
Replies 3
Likes 0
Views 611
Votes 0
Dear Stackideas,

While developing an app, how do we take into consideration "Renewal" that a customer does before expiration... In this case, the subscription is already active, there is no expiration yet and only the expiration date has moved up.

Is there an event that we can check for in our code, that whenever a person "renews" before expiration, we do x y or z

Thanks
Hey,

Do you mean by recurring payment or renewal for fixed payment plan ?
·
Friday, 18 December 2020 16:01
·
0 Likes
·
0 Votes
·
0 Comments
·
Renewal by fixed payment plan
·
Friday, 18 December 2020 18:47
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey ahmad,

For Fixed payment renewal, you can use event onPayplansSubscriptionRenewalComplete.

public function onPayplansSubscriptionRenewalComplete($subscription, $newInvoice)
{
// add your code here
}


Let me know if you have any queries.
·
Friday, 18 December 2020 18:59
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post