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

Provide confirmation callback #54

Closed
zedrdave opened this issue May 12, 2019 · 5 comments
Closed

Provide confirmation callback #54

zedrdave opened this issue May 12, 2019 · 5 comments

Comments

@zedrdave
Copy link

Since the $checkout mixin was removed, it doesn't seem possible to add any pre-confirmation code to the checkout button (e.g. displaying a confirm dialog warning about something).

Ideal solution would be to add a :confirm option that takes a callback function and cancels the checkout on false

@jofftiquez
Copy link
Member

Hi @zedrdave is this "confirmation" going to happen before opening the stripe checkout?

@zedrdave
Copy link
Author

@jofftiquez Yes. It could be a warning about what is being purchased, for example…

@jofftiquez
Copy link
Member

@zedrdave if so, why not just create a separate confirmation process before actually invoking this.$refs.checkoutRef.open();?

@jofftiquez
Copy link
Member

  1. Checkout button will call the confirmation dialog
  2. If clicked "Yes" open checkout
  3. Otherewise close confirmation dialog.

Something like this.

@zedrdave
Copy link
Author

Yes, that would probably work. I hadn't realised the checkout function could cancel the checkout… 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

2 participants