#njp9773
1 messages · Page 1 of 1 (latest)
automatic_payment_methods is only a parameter when creating payment intents, there is no property named automatic_payment_methods on the final payment intent object
If you check the payment_method_types property on the intent are you seeing it properly populated with what you set in the dashboard?
there is no property named automatic_payment_methods on the final payment intent object
Does that mean https://stripe.com/docs/api/payment_intents/object#payment_intent_object-automatic_payment_methods will always be null?
If you check the payment_method_types property on the intent are you seeing it properly populated with what you set in the dashboard?
Yes, but it is the same (cardandlink) as on the API version we were using before (2022-11-15), so I can't tell.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
My apologies, I was mistaken. I think that hash may be for intents that you create directly. It looks like that intent came from a subscription, so that intent's payment methods were set by something similar according to your invoice settings
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Gotcha, thanks for clarifying. Does the API version requirement here apply to PIs that come from subscriptions? Or will the payment methods configured in /settings/billing/invoice always apply to those PIs, regardless of API version, unless we override with payment_method_types?
Apologies meant to clarify that as well. These both actually can apply regardless of API version. You can actually pass automatic_payment_methods: {enabled: true} in API versions that came out before we released this functionality. We consider additive changes like this to be non-breaking, so we enable new paramters in previous API versions
And yes, regardless of API version, the settings from that doc will apply to non-Subscription/Invoice payments and the invoice settings that I linked to will apply to subscriptions and invoices
I don't see automatic_payment_methods as a parameter on Subscription Create or Update. So, confirming, if I create or update a subscription using an API version earlier than 2023-08-16 and don't pass payment_settings.payment_method_types, it will use the payment methods enabled in https://dashboard.stripe.com/settings/billing/invoice ? And same thing for PaymentElement in subscription mode?
Correct. Those settings will effect which payment method types show up on the intent and in the payment element for subscription related intents
automatic_payment_methods is for a separate set of settings that is relevant when creating individual payment intents not related to an invoice or subscription, which is why it does not exist on subscription or invoice endpoints
Excellent, thank you very much!