Compatibility with newer API

replace __ toJSON() with toJSON()
This commit is contained in:
2023-07-11 10:13:05 +10:00
parent 2631bd7858
commit 7a5f6e2d3c

View File

@@ -208,7 +208,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->__toJSON(), 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_debug', 'Charge created successfully');
_booking_process_stripe_payment($charge, $token);