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

Fix examples #47

Merged
merged 1 commit into from
Apr 20, 2020
Merged

Fix examples #47

merged 1 commit into from
Apr 20, 2020

Conversation

christopher-stripe
Copy link
Contributor

The examples have not been able to compile since we migrated the repo to TypeScript. They also used the pre-1.0 API for calling loadStripe (no arguments, instantiate stripe object as a separate step).

This commit updates all the examples so that they will compile and run successfully.

I opted to use the published version of @stripe/stripe-js in each example. I think it's more realistic than importing from ../../dist, and doesn't require that ../.. be built beforehand.

@christopher-stripe christopher-stripe merged commit 80f3800 into master Apr 20, 2020
@christopher-stripe christopher-stripe deleted the christopher/fix-examples branch April 20, 2020 20:05
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

Successfully merging this pull request may close these issues.

2 participants