Advice and answers from the SupaDupa Team

  


 
 Step 2
 Copy your Live Secret API Key. These details were issued to you when you created your Stripe account:

You may need to click on the "Reveal test key secret" button or the "Reveal test key secret" button if using test credentials.

 Once revealed, it should As an example, the it may look like this: 'sk_live_r4wJgD9p1ipa3ro5r3rqVQYd'.



 Step 3
 Login to your SupaDupa admin.
 
 Step 4
 From here, click on the ‘Settings’ tab and choose 'Payment Methods'
 
 Step 5
 Click on the credit card gateway toggle so it becomes activated - notice the toggle will become green.
 
 Step 6
 Select 'Stripe' from the drop down list of payment gateways
 
 Step 7
 Paste your Live Secret API Key  into the correct field
 

 Step 8
 Select the credit / debit card brands you will be accepting.
 
 Step 9
 Click to SAVE CHANGES and you’re done!


How to test to make sure your Stripe gateway works correctly?

The instructions above have described how to set up your SupaDupa with your LIVE Stripe settings - which will have you ready to take real payments from customers. Before launching, we recommend you test this by placing a real card payment through yourself. You may choose to temporarily lower the price of one of your items for the duration of the test - to avoid making an unnecessarily large payment.
 
 Along with the live Stripe setup, Stripe also offers a test key which will allow you to run a test payment through the system. This will allow you to see receiving an order would work on SupaDupa - showing how an order would appear and be managed through the Orders section of your back office, along with being able to preview the notification emails that are sent. Using the test key will allow you to test all of this without actually making a real card payment - instead, you can use the test details shown below. To use test mode, simply follow the steps in this article - but use the test key from Stripe instead. Be sure to change from the test key to the live stripe key once you are ready to take real payments from customers.
 
 At the checkout use the following Test card numbers to place test orders using different card types.
 Test orders will and appear in your ‘Orders’ tab which you can also use to simulate a test dispatch.
 Test orders will not affect your stock quantity.
 
 Test cards:
 
Visa

4242424242424242
4012888888881881
 
 MasterCard
 5555555555554444
 5105105105105100
 
 American Express
 378282246310005
 371449635398431
 
 Discover
 6011111111111117
 6011000990139424
 
 Diner's Club
 30569309025904
 38520000023237
 
 JCB
 3530111333300000
 3566002020360505
 
 CVV: any 3 digits
 Expiry date: any date in the future
 

 How do I test specific error codes?
 Some suggestions:
 
 card_declined:
 Use this special card number - 4000000000000002.
 
 incorrect_number:
 Use a number that fails the Luhn check, e.g. 4242424242424241
 
 invalid_expiry_month:
 Use an invalid month e.g. 13
 
 invalid_expiry_year:
 Use a year in the past e.g. 1970
 
 invalid_cvc:
 Use a two digit number e.g. 99 

Did this answer your question?