#geimsdin
1 messages · Page 1 of 1 (latest)
hello! the default_payment_method expects a payment method id that starts with pm_
i'm not entirely certain what you mean by setting the setup_intent_id
@round river lets continue the discussion in your own thread
I wrote there by mistake, sorry
When I confirm the first payment stripe->confirm_payment_intent(...) everything is good because I pass the payment_method_id, on the next charge (in the next phase) the payment fails because there is no default payment method
When I create the subscription_schedule I still don't have the payment method to set as default, can I set it after?
sure, you can set it after. Alternatively, you can also update the customer's invoice_settings.default_payment_method [0]
[0] https://stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method
like what the parameter mentions : https://stripe.com/docs/api/subscription_schedules/object#subscription_schedule_object-default_settings-default_payment_method
ID of the default payment method for the subscription schedule. If not set, invoices will use the default payment method in the customer’s invoice settings.
Ok, seems good, thank as usual Alex