Browse Source

修改支付方式

llp 1 week ago
parent
commit
0792d0ae6a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      packages/Longyi/Pay/Applepay/src/Payment/Applepay.php

+ 2 - 2
packages/Longyi/Pay/Applepay/src/Payment/Applepay.php

@@ -17,7 +17,7 @@ class Applepay extends Payment
      */
     protected $code  = 'applepay';
     protected $clientId;
-    protected $secret;
+    protected $apikey;
     protected $webhookId;
     protected $currentOrder;
     protected $prefix = 'QQS';
@@ -120,7 +120,7 @@ class Applepay extends Payment
             'headers' => [
                 'Accept' => 'application/json',
                 'Content-Type' => 'application/json',
-                'Authorization' =>  'Basic '.base64_encode("{$this->apikey}:{$this->secret}")
+                'Authorization' =>  'Basic '.base64_encode("{$this->clientId}:{$this->apikey}")
             ],
             'json' => $data,
             'timeout' => 30,