updated apis

This commit is contained in:
Frank John Begornia
2021-02-04 19:45:27 +08:00
parent c144810352
commit acf9c2e931
6 changed files with 69 additions and 11 deletions

View File

@@ -71,6 +71,13 @@ class PaypalController extends Controller
return Redirect::back();
}
// $request->session()->forget('cartkey');
if(!$request->session()->has('cartkey')){
$message = 'Your cart is empty';
Session::flash('cartkeyError', $message);
return Redirect::back();
}
$payer = PayPal::Payer();
$payer->setPaymentMethod('paypal');