Revert AXO bearer

This commit is contained in:
Pedro Silva 2024-04-12 16:20:27 +01:00
parent 43b9452d54
commit 526364a8ad
No known key found for this signature in database
GPG key ID: E2EE20C0669D24B3

View file

@ -118,7 +118,7 @@ class PayPalBearer implements Bearer {
private function newBearer(): Token {
$key = $this->settings->has( 'client_id' ) && $this->settings->get( 'client_id' ) ? $this->settings->get( 'client_id' ) : $this->key;
$secret = $this->settings->has( 'client_secret' ) && $this->settings->get( 'client_secret' ) ? $this->settings->get( 'client_secret' ) : $this->secret;
$url = trailingslashit( $this->host ) . 'v1/oauth2/token?grant_type=client_credentials&intent=sdk_init';
$url = trailingslashit( $this->host ) . 'v1/oauth2/token?grant_type=client_credentials';
$args = array(
'method' => 'POST',