Browse Source

修改支付方式

llp 3 ngày trước cách đây
mục cha
commit
d9533103fc
1 tập tin đã thay đổi với 1 bổ sung3 xóa
  1. 1 3
      packages/Longyi/Pay/Applepay/src/Payment/Applepay.php

+ 1 - 3
packages/Longyi/Pay/Applepay/src/Payment/Applepay.php

@@ -151,7 +151,7 @@ class Applepay extends Payment
         $additional = $order->payment->additional;
         $token = $additional['gateway_order_id'];
         if ($transactionId != $token) {
-            return new \Exception('order token is error');
+            return new \Exception('applepay order token is error');
         }
         return $this->capturePayment($token);
     }
@@ -165,13 +165,11 @@ class Applepay extends Payment
                 'Content-Type' => 'application/json',
                 'Authorization' =>  'Basic '.base64_encode("{$this->clientId}:{$this->apikey}")
             ],
-            'json' => $data,
             'timeout' => 30,
             'verify' => false
         ]);
         $responseBody = $response->getBody()->getContents();
         Log::channel('payment')->info('appleypay capturePayment response', [
-            'order_id'  => $order->increment_id ?? null,
             'status'    => $response->getStatusCode(),
             'body'      => json_decode($responseBody, true),
             'data'      => $data