Support the ongoing development of Laravel.io →
Laravel Packages
Last updated 2 years ago.
0

Hi Ehsan,

Have you solved the problem ? because I work with angular in client and I have a token like you.

Thanks

0

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.

Last updated 4 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.