Round tons to 2 decimal places in Stripe checkout display
All checks were successful
Build and Push Docker Images / docker (push) Successful in 50s

This commit is contained in:
Matt 2025-10-30 16:23:34 +01:00
parent e21756d7f0
commit b725e7240a

View File

@ -69,7 +69,7 @@ router.post('/create-session', async (req, res) => {
price_data: {
currency: 'usd',
product_data: {
name: `Carbon Offset - ${tons} tons`,
name: `Carbon Offset - ${tons.toFixed(2)} tons`,
description: `Puffin Portfolio at $${Math.ceil(pricePerTon)}/ton`,
// images: ['https://puffinoffset.com/images/carbon-offset.png'], // Optional: Add your logo when available
},