Skip to content

Commit 1124c7a

Browse files
committed
Pass images to stripe during checkout
1 parent 8af70de commit 1124c7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Http/Controllers/CheckoutController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function checkout(Request $request)
5959
'currency' => 'usd',
6060
'product_data' => [
6161
'name' => $product->title,
62-
// 'images' => [$product->image]
62+
'images' => $product->image ? [$product->image] : []
6363
],
6464
'unit_amount' => $product->price * 100,
6565
],

0 commit comments

Comments
 (0)