I am creating Stripe subscription with laravel cashier. I have successfully created subscription in Stripe with metadata. How to retrieve all subscriptions (with metadata) of a customer.?
Below is the code that creates subscription
$request->user()->newSubscription('main', $plan->stripe_plan)->withMetadata(['wcda_reference' => $reference])->create($request->stripeToken);
Tried below code to retrieve but its listing from my database - not from Stripe API
$request->user()->subscriptions();
from Newest questions tagged laravel-5 - Stack Overflow http://bit.ly/2W5HGHB
via IFTTT
Aucun commentaire:
Enregistrer un commentaire