globalpayments / php-sdk

GNU General Public License v2.0
49 stars 66 forks source link

Getters broken in HostedPaymentConfig #49

Closed JeremySkinner closed 2 years ago

JeremySkinner commented 4 years ago

The GlobalPayments\Api\HostedPaymentConfig class defines several getter methods which are incorrect because they're missing the $this->. For example:

public function isCardStorageEnabled()
{
    return $cardStorageEnabled;
}

This method doesn't work, as it's returning a nonexistent variable (and generates a PHP undefined variable notice). It should be calling return $this->cardStorageEnabled instead.

This is the same for all the other getter methods in the class.