Compatibility with newer API
replace __ toJSON() with toJSON()
This commit is contained in:
@@ -208,7 +208,7 @@ function booking_stripe_validate_form_payment($form, &$form_state) {
|
|||||||
"first_name" => $first_name,
|
"first_name" => $first_name,
|
||||||
),
|
),
|
||||||
));
|
));
|
||||||
watchdog('booking_debug', "<pre>Stripe payment charge results:\n@info</pre>", array('@info' => print_r( $charge->__toJSON(), true)));
|
watchdog('booking_debug', "<pre>Stripe payment charge results:\n@info</pre>", array('@info' => print_r( $charge->toJSON(), true)));
|
||||||
if ($charge && $charge->paid) {
|
if ($charge && $charge->paid) {
|
||||||
//watchdog('booking_debug', 'Charge created successfully');
|
//watchdog('booking_debug', 'Charge created successfully');
|
||||||
_booking_process_stripe_payment($charge, $token);
|
_booking_process_stripe_payment($charge, $token);
|
||||||
|
Reference in New Issue
Block a user