#vilesa
1 messages · Page 1 of 1 (latest)
Yeah you just need to update the subscription with the pm id once you have it
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
that's one way to do so. But it will create a 1€ payment by stripe (directly canceled after). Which can be confusing to the customer
is that the only way? thanks!
It shouldn't
But also how are you accepting payment method?
If you're just using the underlying payment intent on the subscription object to collect payment details then there shouldn't be any additional auths charged
it definitely does:
I tested in prod:
x=stripe.Subscription.modify(
"sub_1O9rNQGTsLVnzqGE1G10qcuq",
default_payment_method="pm_1O9rNiGTsLVnzqGEWqNRDWZH"
)
and I directly on my Revolut this 1eur payment which was directly canceled
and that PM ID, I retrieved it looking at the underlying pi_ of the subscription I paid with my wallet
Oh idk then
That's how you set default payment method
So you're integrating correctly
so there's no way to create the sub and have the wallet pm ID directly attached to it ?
No you need to make an additional call to set the payment method as default
I've never heard of a $1 auth being charged for that though
Let me ask a colleague if that's normal
Ok so apparently this is normal with the current state of things... Had no idea. So, another thing you can do is set default payment method at the customer level (under invoice_settings.default_payment_method: https://stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method). This shouldn't trigger a validation from what my colleague understands. The only thing to note is if default payment method is ever also set at the subscription level, then that payment method set on the subscription will override the one set at customer level. This is explained here: 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.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.