mirror of
https://github.com/jcreek/SvelteKitSaasBoilerplate.git
synced 2026-07-13 19:13:48 +00:00
docs(*): Update documentation
This commit is contained in:
@@ -39,6 +39,5 @@ In its current configuration, the application can be easily linked to Netlify vi
|
|||||||
|
|
||||||
## To Do
|
## To Do
|
||||||
|
|
||||||
- Style product page
|
|
||||||
- Enable proper pagination for the products page
|
- Enable proper pagination for the products page
|
||||||
- Get a proper checkout page with data from Stripe rather than re-using the old basket object
|
- Get a proper checkout page with data from Stripe rather than re-using the old basket object
|
||||||
|
|||||||
@@ -26,5 +26,8 @@ export const POST: RequestHandler = async ({ request }) => {
|
|||||||
cancel_url: `${request.headers.get('origin')}/checkout/cancelled`
|
cancel_url: `${request.headers.get('origin')}/checkout/cancelled`
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// TODO - Store the checkout session.id for access from the frontend
|
||||||
|
// https://docs.stripe.com/api/checkout/sessions/retrieve
|
||||||
|
|
||||||
return redirect(303, session.url as string);
|
return redirect(303, session.url as string);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user