Skip to content

Regarding stripe_id in users table #41

Open
@jorioux

Description

Hi @l4nos , I'm planning on using your package extensively for my SaaS platform:

https://pickletime.app

I'm already using tenancyforlaravel v3, fully working. I want to use laravel/cashier and your package to allow tenants (pickleball clubs), to bill their members.

What's working so far:

  • The tenants can create their account (connected account), and do the onboarding:

    tenant()->createOrGetStripeAccount();
    $this->redirect(tenant()->accountDashboardUrl());
  • Once the tenant has onboarded with Stripe, the members of the tenant can create their Stripe account:

    $user->createStripeCustomer(tenant());

Now I want to allow the member to add payment methods by using:

$this->redirect($user->billingPortalUrl($returnUrl));

But it looks like the stripe_id in the users table is not set after, and billingPortalUrl() requires it.

I'm I missing something? Thanks!

Activity

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions