docs(*): Update documentation

This commit is contained in:
Josh Creek
2024-05-05 18:35:08 +01:00
parent cfb4ad77f7
commit cb6246bce0
2 changed files with 3 additions and 1 deletions
-1
View File
@@ -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
+3
View File
@@ -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);
}; };