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

Support onCancel listener #131

Open
omarryhan opened this issue Nov 27, 2022 · 2 comments
Open

Support onCancel listener #131

omarryhan opened this issue Nov 27, 2022 · 2 comments

Comments

@omarryhan
Copy link

Hey, the original JS PayPal button supports an onCancel event handler, however the one in this lib doesn't, would be great if this lib can support this. Thanks! 🙏

onCancel docs: https://developer.paypal.com/sdk/js/reference/#oncancel

@omarryhan
Copy link
Author

omarryhan commented Nov 27, 2022

Oh, my bad I see it was added a 2 years ago, but the package hasn't been updated on npm for a while.
https://github.com/Luehang/react-paypal-button-v2/blame/40f2c152e07ba099081e5990219874bbbbee3ff8/src/index.tsx

I'm open to helping you maintain this lib, lmk @Luehang :)

@oihamza
Copy link

oihamza commented Dec 1, 2022

+1 on this @Luehang!

Would be super helpful to have this feature to know when the payment drawer is closed/cancelled.

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

2 participants