-
Notifications
You must be signed in to change notification settings - Fork 54
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
Fix / waiting for payment PPV/TVOD offers #541
Fix / waiting for payment PPV/TVOD offers #541
Conversation
Visit the preview URL for this PR (updated for commit 4cfbde8): https://ottwebapp--pr541-fix-waiting-for-paym-3vrp1mm6.web.app (expires Sat, 06 Jul 2024 10:03:21 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: c198f8a3a199ba8747819f7f1e45cf602b777529 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These look like good fixes to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really great work!
Description
This PR fixes issue #518. I've updated the formatted
offerId
in the JWP integration. TheofferId
is now composed of the offer prefix, asset ID, and access fee ID. The composed offer ID is added to the URL when the user is sent to the waiting for payments modal. The integration is responsible for retrieving the asset ID when needed.I also encountered a problem because the
getSubscriptionSwitches
method threw an error in theinitialiseOffers
method. This caused the query to retry a few times before resolving, making the Choose offers modal really slow.The third change is that the welcome modal isn't shown to users buying PPV access since the welcome modal shows a message stating "You now have access to all content", which isn't true when buying access to a single item.