#shanaver_api

1 messages ยท Page 1 of 1 (latest)

paper gobletBOT
#

๐Ÿ‘‹ 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/1283045934594523196

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

ornate iris
#

hi there!

#

are you trying to automatically test the Payment Element?

fallen cedar
#

Hi, yes

ornate iris
#

then I recommend reading this guide: https://docs.stripe.com/automated-testing

Frontend interfaces, like Stripe Checkout or the Payment Element, have security measures in place that prevent automated testing, and Stripe APIs are rate limited. However, you can simulate the output of our interfaces and API requests using mock data to test your application behavior and its ability to handle errors.

fallen cedar
#

instead of making that client-side API request - is there a way to do that step another way?

ornate iris
#

what do you mean by "another way"? like mentioned in the page I shared, we have security measures in place to prevent automated testing of Stripe.js.

fallen cedar
#

in the guide that you reference, it says how you can create a PaymentIntent with payment_method=pm_card_authenticationRequired - to get the status=requires_confirmation.

I'm assuming there is a way to get the status=processed as well...?

ornate iris
fallen cedar
#

sorry, I mean status=succeeded

#

that way, I can make an API call to get the completed transaction in my test

ornate iris
#

it depends exactly what you want. but if you create a PaymentIntent with pm_card_visa and confirm: true, you should get status: succeeded

fallen cedar
#

ok thanks that will help for CC transactions - do you know if that's also possible for us_bank_account types?

#

ah - I think I found in... pm_usBankAccount_success ?

fallen cedar
ornate iris
#

that works too ๐Ÿ™‚

fallen cedar
#

great, I'll try that out, thanks for your help!