Skip to content
This repository has been archived by the owner on Mar 15, 2018. It is now read-only.

Fix serverless inapp JWT: public_id (bug 1016685) #2101

Merged
merged 1 commit into from May 28, 2014

Conversation

kumar303
Copy link
Contributor

@JaredKerim-Mozilla r?

@kumar303 kumar303 changed the title Fix serverless inapp JWT: public_id (bug 016685) Fix serverless inapp JWT: public_id (bug 1016685) May 28, 2014
@@ -139,4 +141,5 @@ def product_data(self, contribution):
'inapp_id': self.inapp.pk,
'application_size': self.application_size(),
'contrib_uuid': contribution.uuid,
'public_id': self.addon().solitude_public_id,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does the inapp product use the parent products public_id or does it need its own?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm pretty sure it needs the parent product because it's used in webpay to get payment setup info. So far I've been able to start a Boku purchase with this patch but I have not completed it (that requires a hosted server).

@@ -20,6 +20,11 @@ def get_product_jwt(product, contribution):
"""Prepare a JWT for paid products to pass into navigator.pay()"""

issued_at = calendar.timegm(time.gmtime())
product_data = product.product_data(contribution)
if not product_data.get('public_id'):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@jaredlockhart
Copy link
Contributor

r+

kumar303 added a commit that referenced this pull request May 28, 2014
Fix serverless inapp JWT: public_id (bug 1016685)
@kumar303 kumar303 merged commit b737405 into mozilla:master May 28, 2014
@kumar303 kumar303 deleted the inapp-pub-id branch May 28, 2014 22:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants