debug tweak
This commit is contained in:
@@ -198,7 +198,7 @@ function booking_stripe_validate_form_payment($form, &$form_state) {
|
||||
"first_name" => $first_name,
|
||||
),
|
||||
));
|
||||
watchdog('booking_debug', "<pre>Stripe payment charge results:\n@info</pre>", array('@info' => print_r( $charge, true)));
|
||||
watchdog('booking_debug', "<pre>Stripe payment charge results:\n@info</pre>", array('@info' => print_r( $charge->__toJSON(), true)));
|
||||
if ($charge && $charge->paid) {
|
||||
watchdog('booking', 'Charge created successfully');
|
||||
_booking_process_stripe_payment($charge, $token);
|
||||
@@ -227,24 +227,6 @@ function booking_stripe_validate_form_payment($form, &$form_state) {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Form submission handler.
|
||||
*/
|
||||
function booking_stripeform_form_submit($form, &$form_state) {
|
||||
drupal_set_message('Charge successful!');
|
||||
}
|
||||
|
||||
/**
|
||||
* FAPI #pre_render callback.
|
||||
*
|
||||
* Removes the name field form a form element.
|
||||
*/
|
||||
function booking_stripeform_remove_name($element) {
|
||||
unset($element['#name']);
|
||||
return $element;
|
||||
}
|
||||
|
||||
|
||||
function _booking_process_stripe_payment($charge, $token) {
|
||||
global $event;
|
||||
$balance_payment = false;
|
||||
@@ -307,7 +289,6 @@ function _booking_process_stripe_payment($charge, $token) {
|
||||
'booking_first_name' => $charge->metadata->first_name,
|
||||
'booking_last_name' => $charge->metadata->last_name,
|
||||
'booking_buyer_email' => $charge->receipt_email,
|
||||
//'booking_payer_status' => $data['payer_status'],
|
||||
'booking_item_name' => $charge->description,
|
||||
'booking_ipn_track_id' => $charge->id,
|
||||
'booking_stripe_token' => $token,
|
||||
|
Reference in New Issue
Block a user