Connect receipt validation user with server notifications #24
-
Hello @imdhemy! I am experimenting with this package and i like the way it is build - very professional! I am wondering why not more people are using it because this seems to be the best on the market. Altough I have one question: Which property on the receipt should I associate with the user, so that I can fetch the user again in the server notification listeners. In the readme i see the use of getUniqueIdentifier(), but how to I first store this value when validating the receipt? $notification = $event->getServerNotification();
$subscription = $notification->getSubscription();
$uniqueIdentifier = $subscription->getUniqueIdentifier();
$user = $this->findUserBySubscriptionId($uniqueIdentifier); I hope I could describe it clearly. Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 16 replies
-
Hello, @Iamscaredofcode I faced the same problem during the development of one of our apps. Google Play allows the developer to attach a As a workaround, I implemented an endpoint that allows the mobile application to inform the backend about the purchased subscriptions.
It's something like, hey backend, I just purchased this subscription from the IAP! 😅 |
Beta Was this translation helpful? Give feedback.
Hello, @Iamscaredofcode
I'm really happy to read your nice words. Thank you! ❤
I faced the same problem during the development of one of our apps. Google Play allows the developer to attach a
developer payload
, but the App Store does not.As a workaround, I implemented an endpoint that allows the mobile application to inform the backend about the purchased subscriptions.
I…