#marcowoldering
1 messages · Page 1 of 1 (latest)
Do you already have the new payment method ID? Or do you need to collect new details?
Gotcha
Then you can call: https://stripe.com/docs/api/subscriptions/update#update_subscription-default_payment_method
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
ah its just the default payment method
Yeah
cool, thanks
No problem
The payment method id i get from the checkout is different from the one added to the customer, the one added to the customer has however a set up for future use seti_xxxx
This setup intent has the Payment method i got back from the checkout
i get the error my pm is not attached to the customer, but shouldnt this be done automatically because i include the customer in the session create request?
It should. Can you send the pm_ id here?
And the request id where you get the above error?
in respone from checkout = pm_1OKi6ICI7ahsAhgW405Jy8NK
new pm i can find in the dashboard attached to the customer = pm_1OKi6MCI7ahsAhgWiWUAhfEk
req id = req_9cmihidkrOtDMp
Ah it's because you are setting up an ideal pm for future use
That creates 2 pm
You need to use the sepa pm id
Which would be the one you can see on the dashboard
ah okee, will try that. Thanks