how to use this package for handling subscription lifecycle? #473
-
|
can somebody explain the workflow how will it gonna work?? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Hi @sameededitz Receipt ValidationWhen a user makes a purchase on your mobile app, the app should send the receipt to your backend. To validate the receipt, you can follow this guide: Laravel In-App Purchases Documentation - App Store. Subscription LifecycleFirst, you need to set up server notifications. Then, for each notification, you need to implement a handler to handle the event you want to support. I hope this helps! |
Beta Was this translation helpful? Give feedback.
Hi @sameededitz
Let’s break down how to handle two main cases: receipt validation and subscription lifecycle. I’ll use the App Store as an example, but the same applies to Google Play.
Receipt Validation
When a user makes a purchase on your mobile app, the app should send the receipt to your backend. To validate the receipt, you can follow this guide: Laravel In-App Purchases Documentation - App Store.
Subscription Lifecycle
First, you need to set up server notifications. Then, for each notification, you need to implement a handler to handle the event you want to support.
I hope this helps!