test library settings
This commit is contained in:
@@ -54,11 +54,13 @@ function booking_stripeform_form($form, &$form_state) {
|
||||
$form['#attached'] = array(
|
||||
'js' => array(
|
||||
array('data' => $setting, 'type' => 'setting'),
|
||||
//drupal_get_path('module', 'booking') . '/booking.stripe.js',
|
||||
drupal_get_path('module', 'booking') . '/booking.stripe.js',
|
||||
),
|
||||
/*
|
||||
'library' => array(
|
||||
array('booking', 'stripe'),
|
||||
),
|
||||
*/
|
||||
);
|
||||
|
||||
$form['stripeToken'] = array(
|
||||
@@ -188,8 +190,9 @@ function booking_stripeform_validate_form_payment($form, &$form_state) {
|
||||
));
|
||||
if ($charge && $charge->paid) {
|
||||
watchdog('booking', 'Charge created successfully');
|
||||
$form_state['stripeform_charge'] = $charge;
|
||||
//drupal_goto('bookingfinal');
|
||||
$form_state['stripeform_charge'] = $charge;
|
||||
watchdog('booking_debug', "<pre>Stripe payment charge results:\n@info</pre>", array('@info' => print_r( $charge, true)));
|
||||
drupal_goto('bookingfinal');
|
||||
}
|
||||
else {
|
||||
drupal_set_message('Card does not seem to have been charged successfully. Please try again', 'error');
|
||||
|
Reference in New Issue
Block a user