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,
|
||||
|
@@ -49,7 +49,7 @@ jQuery(document).ready(function($) {
|
||||
currency: "aud",
|
||||
description: $(':input[name="description"]', $stripeForm).val(),
|
||||
email: $(':input[name="email"]', $stripeForm).val(),
|
||||
amount: $amount,
|
||||
amount: Math.round($amount),
|
||||
zipCode: true,
|
||||
closed: function() {
|
||||
//document.getElementById("booking_stripe_form").submit();
|
||||
|
Reference in New Issue
Block a user