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; }