Closed Manager-Singh closed 8 months ago
Use v1 package for this.
why use Srmklive\PayPal\Services\ExpressCheckout;
doesn't exist in v3? what is the alternative facade?
v3 uses the latest PayPal Rest API. Express Checkout is no longer actively supported by PayPal.
Class "Srmklive\PayPal\Services\ExpressCheckout" not found
I use code like that
and use at top of my controller
use Srmklive\PayPal\Services\ExpressCheckout;
$data['items'] = array_map(function ($item) use($cart) { $name=Item::where('id',$item['product_id'])->pluck('name'); return [ 'name' =>$name , 'price' => $item['price'], 'desc' => 'Thank you for using paypal', 'qty' => $item['quantity'] ]; }, $cart);