Feb 24, 2021
0
Level 2
Retrieve Stripe subscription expiration
Hi, I was studying Cashier / Stripe a bit directly from the Laravel documentation, I apologize in advance, but it becomes more difficult when it is not your native language.
How can I find out when a user's subscription expires? Should it be set by retrieving it from the plan?
try {
$request->user()->newSubscription('default', $plan)->create($request->token);
} catch (\Exception $e) {
return back()->withErrors(['message' => 'Error creating subscription. ' . $e->getMessage()]);
}
Please or to participate in this conversation.