store the json response from stripe in the db

This commit is contained in:
Nathan Coad
2016-07-23 11:13:03 +10:00
parent 35731c3835
commit 51bdc6da2f

View File

@@ -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();