Skip to content

[Bug]: Breaking change introduced in PATCH update #905

Description

@JohnnyWalkerDigital

Description

There was undocumented breaking change between v23.2.0 and v23.2.1 due to the removal of the public method setRegion().

Steps to reproduce

Instantiate the Adyen\Client class and attempt to call the setRegion() method in order to use the correct Terminal endpoint for your region.

Actual behavior

Method not found.

Expected behavior

Expected that the Terminal endpoint is updated to match the customer's region.

Code snippet or screenshots (if applicable)

use Adyen\Client as AdyenClient;

$region = 'us';

$client = app()->make(AdyenClient::class);

$client->setRegion($region);

Adyen PHP API Library version

23.2.1 onwards

PHP version

8.3

Operating System

macOS

Additional context

Looking at the library it's unclear how this is supposed to happen now and there doesn't appear to be any indication in the documentation.

        // Retrieve and set the Terminal API Cloud Endpoint
        $endpoint = $this->retrieveCloudEndpoint($this->config->get('terminalApiRegion'), $environment);
        $this->config->set('terminalApiCloudEndpoint', $endpoint);

Thanks for any help

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions