#jon-waldstein-givewp_card-statement-descriptor

1 messages ยท Page 1 of 1 (latest)

silver swiftBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1327043407264223322

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

subtle tusk
#

Hi ๐Ÿ‘‹

is it still safe to use when using automatic_payment_methods?

Can you describe more in detail what you are referring to?

honest crown
#

Hello! When creating a payment intent (from payment element) we are using the automated_payment_methods attribute https://docs.stripe.com/api/payment_intents/create#create_payment_intent-automatic_payment_methods. However, we are also adding the statement_descriptor attribute https://docs.stripe.com/api/payment_intents/object#payment_intent_object-statement_descriptor.

With the api changes here https://support.stripe.com/questions/use-of-the-statement-descriptor-parameter-on-paymentintents-for-card-charges is says the statement_descriptor will not work when payment_method_types is set to "card" - however we are using automated_payment_methods in our implementation. So want to confirm if we are safe to continue using the statement_descriptor with automated_payment_methods

subtle tusk
#

This will potentially throw a 400 error if the payment method selected by the user is a card type

honest crown
#

That's what I thought too, however it's not throwing a 400 when using a card. So i'm wondering if automated_payment_methods is bypassing this limitation?

subtle tusk
#

Can you share a request where you confirm a payment intent with this value?

honest crown
subtle tusk
#

Just the ID please. I cannot view a dashboard link (because it's not my dashboard)

honest crown
#

oh okay, the payment intent ID is pi_3QfU01C6z5rd6X031fT4EqoL

subtle tusk
#

Thank you!

#

Got it, yes it looks like automatic_payment_methods is avoiding this currently.

HOWEVER, that does appear to run counter to the intent of the deprecation of the statement_descriptor so I would absolutely not count on that succeeding in the future.

#

I am not saying we (Stripe) are going to break this flow. I have no insight into that. I am just saying what I, as an individual who likes building websites and applications, would do.

honest crown
#

okay good to know, thanks!

silver swiftBOT