Round tons to 2 decimal places in Stripe checkout display
All checks were successful
Build and Push Docker Images / docker (push) Successful in 50s
All checks were successful
Build and Push Docker Images / docker (push) Successful in 50s
This commit is contained in:
parent
e21756d7f0
commit
b725e7240a
@ -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
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user