* @copyright 2018 Webkul Software Pvt Ltd (http://www.webkul.com) */ class CheckoutController extends Controller { /** * Contains route related configuration * * @var array */ protected $_config; /** * Create a new controller instance. * * @return void */ public function __construct() { $this->_config = request('_config'); } /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { return view($this->_config['view']); } /** * Saves customer address. * * @return \Illuminate\Http\Response */ public function saveAddress() { return response()->json(Shipping::collectRates()); } /** * Saves shipping method. * * @return \Illuminate\Http\Response */ public function saveShipping() { return response()->json(Payment::getSupportedPaymentMethods()); } /** * Saves payment method. * * @return \Illuminate\Http\Response */ public function saveAPayment() { } }