From 792dc7612a673ed8453217c9a7f6d91779be94ad Mon Sep 17 00:00:00 2001 From: Steve <34465153+xxl4@users.noreply.github.com> Date: Tue, 13 Aug 2024 17:21:43 +0800 Subject: [PATCH] fix add payment method --- src/Http/Resources/Api/V1/Admin/Sales/OrderResource.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Http/Resources/Api/V1/Admin/Sales/OrderResource.php b/src/Http/Resources/Api/V1/Admin/Sales/OrderResource.php index 0fff6e2..14a6b74 100644 --- a/src/Http/Resources/Api/V1/Admin/Sales/OrderResource.php +++ b/src/Http/Resources/Api/V1/Admin/Sales/OrderResource.php @@ -28,7 +28,7 @@ public function toArray($request) 'customer_last_name' => $this->customer_last_name, 'shipping_method' => $this->shipping_method, 'shipping_title' => $this->shipping_title, - 'payment_method' => $this->payment_method, + 'payment_method' => $this->payment->method, 'payment_title' => core()->getConfigData('sales.paymentmethods.'.$this->payment->method.'.title'), 'shipping_description' => $this->shipping_description, 'coupon_code' => $this->coupon_code,