From 4a80fba781e1aad51f2c6329bad0ffd527bb1080 Mon Sep 17 00:00:00 2001 From: Frank Lam Date: Tue, 6 Dec 2022 11:54:11 +0900 Subject: [PATCH] Use expected parameter format --- class-wc-gateway-komoju.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/class-wc-gateway-komoju.php b/class-wc-gateway-komoju.php index 2e0c7ea..73801cf 100755 --- a/class-wc-gateway-komoju.php +++ b/class-wc-gateway-komoju.php @@ -197,7 +197,7 @@ public function process_payment($order_id, $payment_type = null) ], 'line_items' => $line_items, 'metadata' => [ - 'woocommerce_order_id' => $order->get_id(), + 'woocommerce_order_id' => strval($order->get_id()), ], ]; $remove_nulls = function ($v) { return !is_null($v); };