#shanaver_api
1 messages ยท Page 1 of 1 (latest)
๐ 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.
Hi, yes
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.
instead of making that client-side API request - is there a way to do that step another way?
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.
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...?
did you mean a PaymentIntent with status: processing? https://docs.stripe.com/api/payment_intents/object?lang=java#payment_intent_object-status
sorry, I mean status=succeeded
that way, I can make an API call to get the completed transaction in my test
it depends exactly what you want. but if you create a PaymentIntent with pm_card_visa and confirm: true, you should get status: succeeded
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 ?
Ok great thanks - I actually found it here:
https://docs.stripe.com/testing?lang=ruby&testing-method=payment-methods
that works too ๐
great, I'll try that out, thanks for your help!