clean up settings of event and general ones

This commit is contained in:
2023-08-10 20:54:53 +02:00
parent 5c87a5a282
commit d2c0257b8f
8 changed files with 100 additions and 82 deletions

View File

@@ -49,7 +49,7 @@ module.exports = ( app, settings ) => {
'product_data': {
'name': data[ event ][ item ].name,
},
'currency': events[ event ].currency,
'currency': settings.currency,
'unit_amount': Math.round( parseFloat( events[ event ][ 'categories' ][ data[ event ][ item ].category ].price[ data[ event ][ item ][ 'ticketOption' ] ] ) * 100 ),
},
'quantity': data[ event ][ item ].count ?? 1,