mirror of
https://github.com/jcreek/SvelteKitSaasBoilerplate.git
synced 2026-07-15 03:53:48 +00:00
feat(#11): Add the description and fetching the images from Stripe on checkout success page
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
localBasket = value;
|
||||
});
|
||||
|
||||
let { checkoutSession, lineItems, paymentStatus } = data;
|
||||
let { checkoutSession, lineItems } = data;
|
||||
|
||||
onDestroy(unsubscribe);
|
||||
|
||||
@@ -64,13 +64,15 @@
|
||||
>
|
||||
</div> -->
|
||||
<div class="w-full px-3 min-[400px]:px-6">
|
||||
{#if lineItems.length == 0}
|
||||
{#if lineItems !== undefined && lineItems.length == 0}
|
||||
<p class="font-semibold text-lg leading-7 text-black text-center">
|
||||
No items in the basket
|
||||
</p>
|
||||
{:else}
|
||||
{:else if lineItems !== undefined}
|
||||
{#each lineItems as item (item.id)}
|
||||
<OrderConfirmationItem
|
||||
imgSrc={item.imgSrc}
|
||||
itemCategoryDescription={item.productDescription}
|
||||
itemName={item.description}
|
||||
price={item.price.unit_amount / 100}
|
||||
quantity={item.quantity}
|
||||
|
||||
Reference in New Issue
Block a user