#zlutykral
1 messages · Page 1 of 1 (latest)
Unfortunately not, the Customer Portal is the closest API equivalent at the moment. https://stripe.com/docs/api/customer_portal
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
But I can put in feedback to request that specific link type through the API
That would be great to have this feature in the future. Thanks for response I will look at the customer portal api
From looking around it seems that the Customer portal can be used to change the payment method of the customer.
But is there some portal solution I can use if I want to change the default payment method of the customer's subscription?
Good question, not sure if the customer portal works for specific subscription payment methods. Checking in to that and will get back to you
Another question that may solve my previous one.
I'm using stripe checkout session to pay for the subscription. When user completes the checkout session the card is then saved as a default payment method of the Subscription.
Is it possible to save the card after completing checkout session as Customer's payment method (and not Subscriptions)?
That way I could use the customer portal to change the payment method of the customer and also the subscription since the subscription will use customer's default payment method.
Good question, looking in to this and will get back to you. Apologies for the delays, the server is very busy so I missed your followup for a bit
Unfortunately I'm not finding a Customer Portal way to set the default payment method on specific subscriptions. Also not finding a Checkout setting to set default on the customer rather than the subscription
So I think what you may have to do is listen to the webhooks for your subscription being created, then set the user's invoice_settings.default_payment_method to the PM on the subscription, then unset the default payment method on the subscription