#bpcreech_code

1 messages · Page 1 of 1 (latest)

naive raftBOT
#

👋 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/1272565818391265301

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

elder finch
#

Hello, no we don't really support anything like that. The recommendation is to mock the necessary responses for your tests.

coral quarry
#

hmm, the nature of the tests I'm working is to use the actual Stripe API (in test mode) so I think I can't mock this—I need a SetupIntent in the succeeded state so I can use the payment method

elder finch
#

That might get you what you are looking for.

#

Otherwise, like I noted, you shouldn't hit the API for your tests and instead you should just mock the response of a successful SetupIntent

coral quarry
#

are there any test PaymentMethods for PayPal (or SEPA or Bancontact?)

elder finch
#

I'll say it again though, the best and easiest thing to do here is to mock responses.

#

We don't have an API designed for programmatic testing.

coral quarry
#

I see, thanks!