Skip to content
This repository was archived by the owner on Feb 21, 2020. It is now read-only.

Conversation

@ChristopheBougere
Copy link
Contributor

Thanks for this package, the hook syntax is much nicer!
In my case, I needed to use the elements prop provided by injectStripe to retrieve the card form inputs (see this tutorial).

I achieved this by providing an object containing both stripe and elements objects in the hook, instead of directly the stripe object content.
This is a breaking change: need to replace const stripe = useStripe() by const { stripe } = useStripe().
But I thought this was better than adding a second hook.

@janoist1
Copy link

+1

is it going to get merged any soon ?

@benvilliere
Copy link
Member

Hi @ChristopheBougere, and thank you for your contribution! Also, thanks for taking the time to update the readme ;)

@benvilliere benvilliere merged commit 9f54438 into anglesoft:master Jan 15, 2020
@benvilliere
Copy link
Member

Merged and released! Thanks again!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants