Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 488 Bytes

File metadata and controls

17 lines (13 loc) · 488 Bytes

< Altapay - PHP Api - Test authentication

For testing if your authentication is working you can use this call

$auth = new \Altapay\Authentication('username', 'password', 'baseurl');
$response = (new \Altapay\Api\Test\TestAuthentication($auth))->call();

if ($response) {
    // Authentication successful
} else {
    // Authentication failed
}

Leave baseurl to null, to test up against the test gateway