I am using Stripe
as a payment gateway. Now there\'s a big problem bothers me.
I used code below to create a subscription:
I was stuck over the same problem after spending some time it turns out to be pretty simple.
Step 1: Call retrieve all invoice API with subscription id as a parameter.
Example in PHP:
$invoice = \Stripe\Invoice::all(array("subscription" => your_subscription_id));
In $invoice
you will get Charge ID and hence, you can get everything after that.