I'm trying to sort out how, when creating a subscription, stripe generates invoices with no payment method attached to them and yet able generate a client_secret through a payment intent. Does the payment_behavior: 'default_incomplete' field in subscription creation affects the invoice in any way ?
I am asking this because I want to understand how one can get a client secret (for payment elements) to pay one-off payments. Would it work to finalize an invoice without a payment method and then retrieves a client secret from the expanded invoice payment intent? Or does the 'default_incomplete' option somehow affects the subscription's first invoice to make it possible to retrieve a client secret?