ソースを参照

修改支付方式

llp 3 ヶ月 前
親
コミット
7b200e3770
1 ファイル変更、0 行追加、6 行削除
  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
     public function fetchConfiguration(string $code = 'afterpay', ?string $countryCode = null): ?array
     {
     {
         try {
         try {
-            // 如果未指定国家,尝试从当前订单/购物车获取
-            if ($countryCode === null) {
-                $countryCode = $this->getCurrentCountryCode();
-            }
-            $this->resolveCredentials($countryCode);
-
             $client = new Client();
             $client = new Client();
             $response = $client->request('GET', $this->configurationUlr, [
             $response = $client->request('GET', $this->configurationUlr, [
                 'headers' => [
                 'headers' => [