Jelajahi Sumber

修改支付方式

llp 3 bulan lalu
induk
melakukan
7b200e3770
1 mengubah file dengan 0 tambahan dan 6 penghapusan
  1. 0 6
      packages/Longyi/Pay/Afterpay/src/Payment/Afterpay.php

+ 0 - 6
packages/Longyi/Pay/Afterpay/src/Payment/Afterpay.php

@@ -257,12 +257,6 @@ class Afterpay extends Payment
     public function fetchConfiguration(string $code = 'afterpay', ?string $countryCode = null): ?array
     {
         try {
-            // 如果未指定国家,尝试从当前订单/购物车获取
-            if ($countryCode === null) {
-                $countryCode = $this->getCurrentCountryCode();
-            }
-            $this->resolveCredentials($countryCode);
-
             $client = new Client();
             $response = $client->request('GET', $this->configurationUlr, [
                 'headers' => [