store the json response from stripe in the db
This commit is contained in:
@@ -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;
|
global $event;
|
||||||
$balance_payment = false;
|
$balance_payment = false;
|
||||||
$amount_owing = 0;
|
$amount_owing = 0;
|
||||||
@@ -291,7 +291,7 @@ function _booking_process_stripe_payment($charge, $token) {
|
|||||||
'booking_buyer_email' => $charge->receipt_email,
|
'booking_buyer_email' => $charge->receipt_email,
|
||||||
'booking_item_name' => $charge->description,
|
'booking_item_name' => $charge->description,
|
||||||
'booking_ipn_track_id' => $charge->id,
|
'booking_ipn_track_id' => $charge->id,
|
||||||
'booking_stripe_token' => $token,
|
'booking_stripe_token' => $charge->__toJSON(),
|
||||||
))
|
))
|
||||||
->execute();
|
->execute();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user