title: How to test stripe subscriptions in localhost?
body: <p>My code sets up stripe subscriptions (recurring charges) using the code given below</p>
  
  <pre><code>            $strtok = \Stripe\Token::create([
                       'card' =&gt; [
                       'number' =&gt; $ccNum,
                       'exp_month' =&gt; $expMonth,
                       'exp_year' =&gt; $expYear,
                       'cvc' =&gt; $cvc
                       ],
                     ]
               );
              $stripetoken = $strtok-&gt;id;
              $customer = \Stripe\Customer::create([
                     'source' =&gt; $stripetoken,
                     'email' =&gt; $email
               ]);
              $subscription = \Stripe\Subscription::create([
                'customer' =&gt; $customer-&gt;id,
                'plan' =&gt; $planId,
              ]);
  </code></pre>
  
  <p>If I understand correctly stripe first attempts to charge the card immediately after the subscription call. Is it absolutely necessary to set up a stripe web hook url to get the charge details like chargeId and so on? I mean I am working in the test mode and I am not in a position to set up a stripe web hook url pointing to a server. I want to get the stripe chargeId and other charge details when stripe first charges the card and also when stripe subsequently charges the card in periodic intervals for testing purposes. I want to do this in my local system which is in a local network connected to the web. </p>