public function setApiCredentials($credentials)
    {
        // Setting Default PayPal Mode If not set
        $this->setApiEnvironment($credentials);

        // Set API configuration for the PayPal provider
        $this->setApiProviderConfiguration($credentials);

        // Set default currency.
        $this->setCurrency($credentials['currency']);

        // Set default billing type
        $this->setBillingType($credentials['billing_type']);

        // Set Http Client configuration.
        $this->setHttpClientConfiguration();
    }
public function setApiCredentials($credentials)
    {
        // Setting Default PayPal Mode If not set
        $this->setApiEnvironment($credentials);

        // Set API configuration for the PayPal provider
        $this->setApiProviderConfiguration($credentials);

        // Set default currency.
        $this->setCurrency($credentials['currency']);

        // Set default billing type
        $this->setBillingType($credentials['billing_type']);

        // Set Http Client configuration.
        $this->setHttpClientConfiguration();
    }
public function setApiCredentials ( $ credentials ) { // Setting Default PayPal Mode If not set $ this -> setApiEnvironment ( $ credentials ) ; // Set API configuration for the PayPal provider $ this -> setApiProviderConfiguration ( $ credentials ) ; // Set default currency. $ this -> setCurrency ( $ credentials [ 'currency' ] ) ; // Set default billing type $ this -> setBillingType ( $ credentials [ 'billing_type' ] ) ; // Set Http Client configuration. $ this -> setHttpClientConfiguration ( ) ; }
Set PayPal API Credentials.

@param array $credentials

@throws \Exception

@return void
Set PayPal API Credentials .