add rounding to amount charged
This commit is contained in:
@@ -71,8 +71,8 @@ function booking_stripe_form($node, &$form_state, $person, $invoiceid, $net_amou
|
||||
'description' => $event->booking_eventname . ' ' . $person->booking_price_descrip,
|
||||
'invoice' => $invoiceid,
|
||||
'amount' => $net_amount_owing,
|
||||
'gross_amount' => _booking_add_stripe_fees($net_amount_owing, $person->booking_country),
|
||||
'foreign_gross_amount' => _booking_add_stripe_fees($net_amount_owing, 'FakeCountry'),
|
||||
'gross_amount' => number_format(_booking_add_stripe_fees($net_amount_owing, $person->booking_country), 2, '.', ''),
|
||||
'foreign_gross_amount' => number_format(_booking_add_stripe_fees($net_amount_owing, 'FakeCountry'), 2, '.', ''),
|
||||
'last_name' => $person->booking_lastname,
|
||||
'first_name' => $person->booking_firstname,
|
||||
'uuid' => $person->booking_tempid,
|
||||
|
Reference in New Issue
Block a user