How RTDN pull messages feature work? #19
-
After reading official document about RTDN and offical gcloud pub/sub php library. As far as I know, I must set up subscription of gcloud pub/sub then I can pull messages. But in this package I can't find configuration about gcloud subscription. So I curious how this package work for pull. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Hi, @ciao-chung! The process is much simpler. Your code shouldn't depend on the pull mechanism due to:
Otherwise, depending on the push mechanism is much easier and efficient. The push mechanism delegates handling events to Google, just wait and Google will notify your server about all the subscription updates. All that you need is to follow the following steps:
$subscriptionReceipt = Subscription::googlePlay()->id($itemId)->token($token)->get(); check this section for more information.
I hope this illustrates the full process. |
Beta Was this translation helpful? Give feedback.
-
Hi @ciao-chung @imdhemy .... is there a way where we could test the RTDN locally? I just want to see the details inside this each events https://github.com/imdhemy/laravel-in-app-purchases#purchase-events. I just want to make sure and validate if my Pub/Sub really works |
Beta Was this translation helpful? Give feedback.
Hi, @ciao-chung!
The process is much simpler. Your code shouldn't depend on the pull mechanism due to:
Otherwise, depending on the push mechanism is much easier and efficient. The push mechanism delegates handling events to Google, just wait and Google will notify your server about all the subscription updates.
All that you need is to follow the following steps: