fixed checkout data

This commit is contained in:
Edward Yang 2022-07-01 16:52:47 +08:00
parent 7e9a99c85a
commit b982adf47b
2 changed files with 7 additions and 1 deletions

View File

@ -19,7 +19,7 @@ class CheckoutController extends Controller
public function index(Request $request)
{
$data = CheckoutService::checkoutData();
// dd($data);
dd($data);
return view('checkout', $data);
}
}

View File

@ -32,6 +32,12 @@ class CheckoutService
$carts = CartService::reloadData($cartList);
$data = [
'current' => [
'shipping_address_id' => 2,
'payment_address_id' => 3,
'shipping_method' => 'flat_shipping',
'payment_method' => 'bk_stripe',
],
'country_id' => (int)setting('country_id'),
'customer_id' => $customer->id ?? null,
'countries' => CountryRepo::all(),