# Create a client-side subscription without Checkout session

This can be done using the Stripe API:
1. [Create](https://stripe.com/docs/api/payment_methods/create) a payment method.
1. [Attach](https://stripe.com/docs/api/payment_methods/attach) the payment method to the customer.
1. Create the subscription using [default_payment_method](https://stripe.com/docs/api/subscriptions/create#create_subscription-default_payment_method).
1. Alternatively, update the customer object with [invoice_settings[default_payment_method]](https://stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method) to set the payment method to the default for all invoices and subscriptions, then [create the subscription](https://stripe.com/docs/api/subscriptions/create).