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
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\Clientclass and attempt to call thesetRegion()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)
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.
Thanks for any help