From 7a5f6e2d3c8e021a5d1feaeaa8f49e884d7a02e6 Mon Sep 17 00:00:00 2001 From: nathan Date: Tue, 11 Jul 2023 10:13:05 +1000 Subject: [PATCH] Compatibility with newer API replace __ toJSON() with toJSON() --- booking.stripe.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/booking.stripe.inc b/booking.stripe.inc index 93505d0..31f5663 100644 --- a/booking.stripe.inc +++ b/booking.stripe.inc @@ -208,7 +208,7 @@ function booking_stripe_validate_form_payment($form, &$form_state) { "first_name" => $first_name, ), )); - watchdog('booking_debug', "
Stripe payment charge results:\n@info
", array('@info' => print_r( $charge->__toJSON(), true))); + watchdog('booking_debug', "
Stripe payment charge results:\n@info
", array('@info' => print_r( $charge->toJSON(), true))); if ($charge && $charge->paid) { //watchdog('booking_debug', 'Charge created successfully'); _booking_process_stripe_payment($charge, $token);