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

Manually trigger PayPal pop up #25

Closed
robrichard opened this issue Feb 26, 2015 · 3 comments
Closed

Manually trigger PayPal pop up #25

robrichard opened this issue Feb 26, 2015 · 3 comments

Comments

@robrichard
Copy link

I'd rather build my own UI instead of using the included paypal button. Is there a way I can manually trigger the paypal pop up in my own event listener callback?

@jeffcarp
Copy link

Hey @robrichard, I know there's a way to do this on iOS and Android. Let me dig in and see if it's possible on web. Worst case scenario, could you keep the button somewhere hidden in the DOM and manually trigger a click event on it when your custom button is pressed?

@robrichard
Copy link
Author

I was considering that but wanted to make sure there isn't a cleaner solution.

@jeffcarp
Copy link

Ok so I have some bad news, due to the way popup blockers work (click events can't be fabricated), the hacky approach won't work. It looks like there's no easy way to use the PayPal pop-up without using the PayPal button 😕

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

3 participants