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();
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire