Hi Ehsan,
Have you solved the problem ? because I work with angular in client and I have a token like you.
Thanks
Hi Javier, Yeah, I solved it with following backend function:
\Stripe\Stripe::setApiKey('YOUR_API_KEY');
$user = Auth::user();
$user->addCardFromSource($request->token)
Let me know if there is any issue.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community