#Adaman

1 messages · Page 1 of 1 (latest)

graceful shoalBOT
floral swift
#

We have limited knowledge of using selenium to simulate Stripe Checkout, so we might be limited in what we can assist with.

#

What's your question?

stray flower
#

Hi @floral swift , in the docs it says to keep the test card numbers out of the code but naturally if I need to enter them I need to put them in somewhere is it safe to include it? It'll just be the public 4242 number

#

Or is there a better way you can suggest of simulating it?

#

And is there a simple way of telling stripe to enter test mode from the code? I'm guessing using the test API keys will do?

floral swift
#

You can safely use 4242 if you're just testing. And yeah, the test API keys will always result in test mode requests

stray flower
#

Perfect, so just run the test suite with the test API keys and put in the 4242 and it should successfully pass as expected?

floral swift
#

Correct

stray flower
#

Amazing, thanks a lot mate, I'll give that a try

#

have a good day