There was an error while loading. Please reload this page.
1 parent cc06b21 commit b887320Copy full SHA for b887320
app/Http/Controllers/CheckoutController.php
@@ -59,7 +59,7 @@ public function checkout(Request $request)
59
'currency' => 'usd',
60
'product_data' => [
61
'name' => $product->title,
62
-// 'images' => [$product->image]
+ 'images' => $product->image ? [$product->image] : []
63
],
64
'unit_amount' => $product->price * 100,
65
0 commit comments