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

How to interrupt purchase process and open parental control modal #11

Open
hasanfd opened this issue Apr 12, 2024 · 0 comments
Open

How to interrupt purchase process and open parental control modal #11

hasanfd opened this issue Apr 12, 2024 · 0 comments

Comments

@hasanfd
Copy link

hasanfd commented Apr 12, 2024

Hello Adapty,
For kids category, Apple requires a parental control modal for paywalls, like entering your birth year before starting purchase process. How can I achieve this by using registerEventHandlers?

Right after user pressed the buy button in the paywall, I wanna open my modal, and if the birth year check is okay, I wanna continue with purchase process.

I tried onPurchaseStarted, however, even if I show my modal, purchase process continues. It doesn't matter what I return from the function. I think you need to pass users the nextStep as a callableFunction, and users should able to decide if the purchase process should continue or not

Looking forward for your answers, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant