|
|
@@ -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' => [
|