Answers.Body: <p>On the CiviCRM part of the webform, in the 'Contribution' section there is a field 'Payment Processor Mode' where you can set either 'Test Mode' or 'Live Transactions' (and save this, of course, not forgetting to reset both this and Stripe dashboard when going live).</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-09-30T15:54:21.913Z
Answers.LastActivityDate: 2021-09-30T15:54:21.913Z
Answers.UserDisplayName: Andy Clark
Answers.Body: <p>On the manage contribution pages dont use the bottom right hand links &gt; test-drive as this actually uses the live keys - so any test cards will fail.</p>
  <p>Instead go to manage contribution pages &gt; 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</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-03-30T00:52:55.430Z
Answers.Text: thx. you might have done better to ask and answer your own question here, since this one seems to be specifically about webform_civicrm where as yours sounds like it relates to pure civi contribution forms
Answers.UserDisplayName: petednz - fuzion
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-03-30T00:53:18.387Z
Answers.Text: hmm. actually you may not be able to do above without more points.
Answers.UserDisplayName: petednz - fuzion
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-03-31T08:03:42.190Z
Answers.Text: Thanks for the pointer - first time commenting on here. Wasnt really a question but more of a tip, I think still relevant to testing?
Answers.UserDisplayName: kevster
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-03-31T19:04:55.010Z
Answers.Text: Am curious about this advice. I pulled up both links on a site. one is /civicrm/contribute/transact?reset=1&action=preview&id=1 the other is /civicrm/contribute/transact?reset=1&id=1&action=preview, other than the order I don't believe these are substantially different. perhaps you can add examples to your 'hint' to make this clearer, or am i missing the point?
Answers.UserDisplayName: petednz - fuzion
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-03-29T22:02:53.303Z
Answers.LastActivityDate: 2022-03-29T22:02:53.303Z
Answers.UserDisplayName: kevster
Body: <p>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?</p>
  
Tags: <webform-civicrm><stripe><testing>
Title: How to set Stripe test mode on both Stripe & Webform-CiviCRM
ThreadText: # How to set Stripe test mode on both Stripe & Webform-CiviCRM
  
  (Asked by: username_0 on 2021-09-30)
  
  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?
  
  **Tags:** webform-civicrm, stripe, testing
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_0 on 2021-09-30. Score: 4
  
  On the CiviCRM part of the webform, in the 'Contribution' section there is a field 'Payment Processor Mode' where you can set either 'Test Mode' or 'Live Transactions' (and save this, of course, not forgetting to reset both this and Stripe dashboard when going live).
  
  
  ---
  
  ### Answer by username_1 on 2022-03-29. Score: 0
  
  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
  
  > **Comments:**
  > **username_2**: thx. you might have done better to ask and answer your own question here, since this one seems to be specifically about webform_civicrm where as yours sounds like it relates to pure civi contribution forms  
  > **username_2**: hmm. actually you may not be able to do above without more points.  
  > **username_1**: Thanks for the pointer - first time commenting on here. Wasnt really a question but more of a tip, I think still relevant to testing?  
  > **username_2**: Am curious about this advice. I pulled up both links on a site. one is /civicrm/contribute/transact?reset=1&action=preview&id=1 the other is /civicrm/contribute/transact?reset=1&id=1&action=preview, other than the order I don't believe these are substantially different. perhaps you can add examples to your 'hint' to make this clearer, or am i missing the point?  
  
  ---
  
  