Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 529 Bytes

test_connection.md

File metadata and controls

18 lines (14 loc) · 529 Bytes

< Altapay - PHP Api - Test connection

For testing if your server can reach Altapay's gateway you can use this call

$baseurl = 'https://<YourShopName>.altapaysecure.com';
// Or leave $baseurl to null, to test up against the test gateway
$response = (new \Altapay\Api\Test\TestConnection($baseurl))->call();

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

This call is the only call you can do without authentication