chrisvdm / redwoodjs-stripe

A Redwood/Stripe integration made easy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Improvement: Include subscriptions on provider

chrisvdm opened this issue · comments

commented

Add subscriptions to <StripeProvider/> accessible from useStripeCustomer React hook. subscriptions would list subscriptions active to customer.

import { useStripeCustomer } from '@redwoodjs-stripe/web'

...

const { subscriptions } = useStripeCustomer()