Finalizes a Stripe SetupIntent and sets the customer's default payment method.
POST/stripe/finalize-card-setup
Called by the marketplace immediately after stripe.confirmSetup succeeds. Looks up the SetupIntent server-side, verifies it belongs to the authenticated user's customer, and promotes its PaymentMethod to the customer's default. This guarantees the default is set even if the setup_intent.succeeded webhook is delayed or never reaches a local dev machine (no Stripe CLI forwarder running).
Request
Responses
- 200
- 400
- 401
- 403
- 500
OK
Bad Request
Unauthorized - missing or invalid credentials.
Forbidden - authenticated but missing required role or policy.
Internal Server Error