I am attempting to test a webform that renews membership. I have set Stripe dashboard to 'Test mode' but when I submit a test credit card (4242 etc) I get tbe message from Stripe 'Your card was declined. Your request was in live mode, but used a known test card.'. So how do I make a request in test mode? I guess something on the Civi side?
On the manage contribution pages dont use the bottom right hand links > test-drive as this actually uses the live keys - so any test cards will fail.
Instead go to manage contribution pages > title and settings page then use the contribution links button top left and choose online contribution (test-drive). Just soent 1 1/2 hours trying to debug and online with stripe support