diff --git a/booking.stripe.inc b/booking.stripe.inc index 0c729ef..bb78b51 100644 --- a/booking.stripe.inc +++ b/booking.stripe.inc @@ -227,7 +227,7 @@ function booking_stripe_validate_form_payment($form, &$form_state) { } } -function _booking_process_stripe_payment($charge, $token) { +function _booking_process_stripe_payment(&$charge, $token) { global $event; $balance_payment = false; $amount_owing = 0; @@ -291,7 +291,7 @@ function _booking_process_stripe_payment($charge, $token) { 'booking_buyer_email' => $charge->receipt_email, 'booking_item_name' => $charge->description, 'booking_ipn_track_id' => $charge->id, - 'booking_stripe_token' => $token, + 'booking_stripe_token' => $charge->__toJSON(), )) ->execute();