Laravel cart with paypal & stripe support Hello all,
I'm creating e-commerce site in laravel 5.2. I will require a cart functionality with payment integration [stripe & paypal]. Is there any package or library that you recommend?
@Reached : Adding 'Gloudemans\Shoppingcart\ShoppingcartServiceProvider' in providers, I'm getting error "Class 'App\Http\Controllers\ShoppingcartServiceProvider' not found"
Thanks @bix I'll check that out for payment gateway too
If you are using Laravel 5.* im pretty sure you have to do this when adding to your providers array:
Gloudemans\Shoppingcart\ShoppingcartServiceProvider::class,
Notice the missing '' here.
Tried that way too still getting : Class 'App\Http\Controllers\Cart' not found when I write following line in my controller
Cart::add('293ad', 'Product 1', 1, 9.99, array('size' => 'large'));
You have to add the class at the top of your Controller like so:
use Cart;
You have to import the Cart facade at the beginning of your Controller like so
use Cart;
Thanks. I was missing that.
Please sign in or create an account to participate in this conversation.