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

Callback to execute additional logic before opening the Payment Request UI #92

Closed
socsieng opened this issue Jul 9, 2021 Discussed in #91 · 0 comments
Closed

Callback to execute additional logic before opening the Payment Request UI #92

socsieng opened this issue Jul 9, 2021 Discussed in #91 · 0 comments

Comments

@socsieng
Copy link
Collaborator

socsieng commented Jul 9, 2021

Discussed in #91

Originally posted by nielsengoncalves July 7, 2021
Hello,

We're using the React component and we have a requirement that we need to do some additional logic when user clicks the Google Pay button before opening the popup.

It would be nice if there was a possibility to use some of components callback to achieve that, something such as onSelect or any other naming that fits better.

<GooglePayButton
  environment="TEST"
  paymentRequest={{...}}
  onSelect={() => {
    // Additional logic that should happen before popup is open
  }}
/>
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