瀏覽代碼

调整支付方式

llp 2 小時之前
父節點
當前提交
27e5ac219d
共有 1 個文件被更改,包括 9 次插入9 次删除
  1. 9 9
      packages/Longyi/Pay/AwxAfterpay/src/Payment/AwxAfterpay.php

+ 9 - 9
packages/Longyi/Pay/AwxAfterpay/src/Payment/AwxAfterpay.php

@@ -137,17 +137,17 @@ class AwxAfterpay extends Payment
             'payment_method' => [
                 'type' => 'afterpay',
                 'afterpay' => [
-                    'shopper_email' => $order->email,
+                    'shopper_email' => $bill->email,
                     'billing' => [
-                        'first_name' => $order->first_name,
-                        'last_name' => $order->last_name,
-                        'phone_number' => $order->phone,
+                        'first_name' => $bill->first_name,
+                        'last_name' => $bill->last_name,
+                        'phone_number' => $bill->phone,
                         'address' => [
-                            'country_code' => $order->country,
-                            'city' => $order->city,
-                            'street' => $order->address,
-                            'postcode' => $order->postcode,
-                            'state' => $order->state
+                            'country_code' => $bill->country,
+                            'city' => $bill->city,
+                            'street' => $bill->address,
+                            'postcode' => $bill->postcode,
+                            'state' => $bill->state
                         ],
                     ],
                 ]