From 9a943643a5142211492fe15e9f47acc5c4675a39 Mon Sep 17 00:00:00 2001 From: Sebastian Pape Date: Fri, 9 Dec 2022 09:59:31 +0100 Subject: [PATCH] fix double quote usage --- includes/class-depay-wc-payments-rest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/class-depay-wc-payments-rest.php b/includes/class-depay-wc-payments-rest.php index 4ff5648..c22adc1 100644 --- a/includes/class-depay-wc-payments-rest.php +++ b/includes/class-depay-wc-payments-rest.php @@ -93,10 +93,10 @@ public function get_checkout_accept( $request ) { $order = wc_get_order( $order_id ); $response = rest_ensure_response( $accept ); $response->header( 'X-Checkout', json_encode( [ - "checkout_id" => $checkout_id, - "order_id" => $order_id, - "total" => $order->get_total(), - "currency" => $order->get_currency() + 'checkout_id' => $checkout_id, + 'order_id' => $order_id, + 'total' => $order->get_total(), + 'currency' => $order->get_currency() ] ) ); return $response; }