Skip to content
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

Merged
merged 5 commits into from
Jun 7, 2024

Conversation

ChristiaanScheermeijer
Copy link
Collaborator

@ChristiaanScheermeijer ChristiaanScheermeijer commented Jun 4, 2024

Description

This PR fixes issue #518. I've updated the formatted offerId in the JWP integration. The offerId 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 the initialiseOffers 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.

Copy link

github-actions bot commented Jun 4, 2024

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

@ChristiaanScheermeijer ChristiaanScheermeijer added the JWP Audit This PR needs a review from an JWP employee label Jun 4, 2024
Copy link
Collaborator

@langemike langemike left a 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.

Copy link
Collaborator

@royschut royschut left a comment

Choose a reason for hiding this comment

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

Really great work!

packages/hooks-react/src/useCheckAccess.ts Outdated Show resolved Hide resolved
@ChristiaanScheermeijer ChristiaanScheermeijer merged commit 8d92adc into develop Jun 7, 2024
10 checks passed
@ChristiaanScheermeijer ChristiaanScheermeijer deleted the fix/waiting-for-payment-ppv-offers branch June 7, 2024 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
JWP Audit This PR needs a review from an JWP employee
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants