Skip to content

Save payment method #37

@zcesur

Description

@zcesur

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 customer linked 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions