-
Notifications
You must be signed in to change notification settings - Fork 289
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to handle google play notification pubsub data? #207
Comments
So the stringified JSON object that you have above must be given to the library's
|
@liuzhen2008 you can see here, how I made it work. Essentially you are passing a placeholder for |
@superandrew213 uh, where do I check? Did you have an example somewhere? |
@voltrue2 Thats the problem! There are no signatures coming from google pubsub! |
I ended up using a different library https://www.npmjs.com/package/iap for google pubsub notifications. It would be helpful to know what I need to do so I only need to use 1 library. |
Yeah I understand. I’ll try to improve the library so very soon. This update is specifically for google.
I’ll let you know when it’s ready!
Cheers
…
On Aug 30, 2018 at 01:26, <Liu Zhen ***@***.***)> wrote:
I ended up using a different library https://www.npmjs.com/package/iap for google pubsub notifications.
It would be helpful to know what I need to do so I only need to use 1 library.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub (#207 (comment)), or mute the thread (https://github.com/notifications/unsubscribe-auth/ACKY4VuhMzRatkcFi64f5hrP6WSO35k4ks5uVsDLgaJpZM4WQzOi).
|
@liuzhen2008 looks like I forgot the link. Here it is: #141 Replace only
|
I finally got to work on this. Now you can validate your receipts using Google Service Account. |
Awesome, i will test this out some time. |
Great! Thank you for the support. Cheers! |
I am trying to setup google play pubsub notifications.
By running a subscriber on the server, whenever a user makes an auto renewal subscription, my server currently is able to receive a notification via pubsub.
The message object received looks something like this:
And after I call toString() of the buffer, the string looks like this:
{"version":"1.0","packageName":"<my-app-bundle-id>","eventTimeMillis":"1535516522925","subscriptionNotification":{"version":"1.0","notificationType":4,"purchaseToken":"hjlbomjlhaminbjangoemekb.AO-J1OwzsRLC3a6xEy8G_NcsEMjtmt8yrjw97hp4xfRbGz14OaWL339CwHpstJzHuYtNdRaAx21IFynF-KwPlwBn2rsNB62GlfTymM6DqEkTG_CyaHdOiYWByMhk11IpwDsxYyH5D4iyj7UkkDAgZmnK-wnlukXEcw","subscriptionId":"<product-purchased>"}}
My question is, what do I do with this purchaseToken? How do I obtain the signature and other data so I can pass it to iap library?
The text was updated successfully, but these errors were encountered: