ashpack-stripe
v0.0.263
Published
Functions like [onCreateAccountCreate](./functions/onCreateAccountCreate.ts) require `stripe.api_key` to be configured in the firebase environment:
Downloads
34
Readme
Setup Functions
Functions like onCreateAccountCreate require stripe.api_key to be configured in the firebase environment:
firebase functions:config:set stripe.api_key='{STRIPE_SECRET_KEY}'You can find the your STRIPE_SECRET_KEY here: https://dashboard.stripe.com/apikeys
Setup Context
Make sure the context is wrapped by the Soil context:
<SoilContextProviderComponent firebaseOptions={FIREBASE_OPTIONS}>
<StripeContextProviderComponent stripePublicKey={STRIPE_PUBLIC_KEY}>
<MainApp {...props} />
</StripeContextProviderComponent>
</SoilContextProviderComponent>You can find the your STRIPE_PUBLIC_KEY here: https://dashboard.stripe.com/apikeys
