I am Implementing a case in which i need to cancel customer subscription and refund amount for the same.
I am able to cancel Subscription using

```
$sub = \Stripe\Subscription::retrieve({SUBSCRIPTION_ID});
$sub->cancel();

```

now i have to refund charged amount 

```
 $refund = \Stripe\Refund::create(array(
  "charge" => "{CHARGE_ID}"
));

```

here `CHARGE_ID` is compulsory. no option like `SUBSCRIPTION_ID`.

As it charged customer automatically i am not able to store `CHARGE_ID`. so how can i refund that subscription amount??

Please Help

Thanks