Setup Customer Portal
import { CustomerPortal } from "@billing-js/react-billing-js"
export default () => {
return (
<div>
{/* full Customer Portal component */}
<CustomerPortal />
</div>
)
}import { CustomerPortal, CustomerProfile, Subscriptions, PaymentMethods, InvoicesHistory } from "@billing-js/react-billing-js"
export default () => {
return (
<div>
{/* /!\ Always wrap your customer portal with the <CustomerPortal/> component */}
<CustomerPortal>
<CustomerProfile />
<Subscriptions />
<div>Custom component to display additional information to the user</div>
<PaymentMethods />
<InvoicesHistory />
</CustomerPortal>
</div>
)
}Last updated