Skip to content

Determine if auto-renew status or not #32

Answered by imdhemy
lahivee asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @lahivee ,

Firstly,
The event names are named after the notification types named by each provider.
Google does not send a DID_CHANGE_RENEWAL_STATUS notification, but Apple does, as shown in the configuration section.

Kindly, check the following links to find the correct event to handle:

To handle the subscription auto-renewal:

For Google, I suggest using SUBSCRIPTION_RENEWED:

'eventListeners' => [
    SubscriptionRenewed::class => [YourAwesomeListener::class],
],

For Apple, I suggest using DID_RENEW and INTERACTIVE_RENEWAL. Check the provided links for more information.

'eventListeners' => [
    InteractiveRenewal::class => [YourAwesomeListener::class],
    DidR…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@lahivee
Comment options

Answer selected by lahivee
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants