Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create history data for testing on stripe.com

I am working on integrating stripe.com for payment in my application and writing some analytics also on top of that data.

I am not able to figure out how to create history data for testing on stripe.com . Is there some way to do that?

like image 636
vntstudy Avatar asked Jan 21 '15 16:01

vntstudy


People also ask

Can I use Stripe for testing?

Testing paymentsYou can issue cards and simulate purchases using your own Stripe integration in test mode. This allows you to test your integration before you go live without having to make real purchases. You can only use these cards for testing within your Stripe account and not for external purchases.

How do you test past due Stripe?

To test the effects of payment failure on an active subscription, attach the 4000 0000 0000 0341 card as the customer's default payment method, but use a trial period to defer the attempt (a trial of a few seconds or minutes is sufficient).


1 Answers

As of now it's not possible to create a stripe account with past transactional data or to add data with past dates. You can create a script to populate an account with some test data or you can also use stripe dashboard to create test data at https://dashboard.stripe.com/test/dashboard. For more information on testing and test card numbers to create various events in your Stripe account check - https://stripe.com/docs/testing

Check my blog on this topic - https://www.stripetics.com/blog/past-data-stripe-testing/

like image 130
saurabh Avatar answered Nov 08 '22 01:11

saurabh