-
Notifications
You must be signed in to change notification settings - Fork 47
Closed
Milestone
Description
Let's add a button on org settings page to save payment method. In the old app, the flow looks something like this:
- get or create
customerlinked to org - create stripe checkout session
-
mode: "setup" -
billing_address_collection: "required" -
payment_method_types: ["card"] -
metadata: %{org_id: org.id}
-
- redirect to
session.url - listen to
checkout.session.completed - run something like
Stripe.PaymentMethod.attach(session.setup_intent.payment_method, customer) - persist
payment_method - show autopay enabled
Metadata
Metadata
Assignees
Labels
No labels