1
2
3
4
5
6
7
8
9
10
11
12
13
// Retrieve a payment link
// http://api.alltobill.com/v1.0/Invoice/id/
$instanceName = 'INSTANCE_NAME';
$secret = 'INSTANCE_API_SECRET';
$alltobill = new \Alltobill\Alltobill($instanceName, $secret);
$invoice = new \Alltobill\Models\Request\Invoice();
$invoice->setId(1);
try {
$response = $alltobill->getOne($invoice);
var_dump($response);
}
catch (\Alltobill\AlltobillException $e) {
print $e->getMessage();
}
1
2
3
4
5
6
7
8
9
10
11
12
13
//Check your signature
//http://api.alltobill.com/v1.0/SignatureCheck/
$instanceName = 'INSTANCE_NAME';
$secret = 'INSTANCE_API_SECRET';
$alltobill = new \Alltobill\Alltobill ($instanceName), $secret);
$signatureCheck= new \Alltobill\Models\Request\SignatureCheck();
try { $response=$alltobill ->getOne ($signatureCheck);
die ('Signature correct');
} catch (\AlltoBill\AlltobillException $e) {
print $e->getMessage();
die('Signature wrong');
}
AlltoBill - Online Payments Designed for Developers
A payment gateway that offers flexible integration options, ready-to-use code and a powerful API – designed to make developers’ lives easier.
Discover, integrate and innovate with our wide range of payment APIs.
Use AlltoBill as ultimate modern checkout solution via our plugins.
Performance overview of our alltobill platforms. Incidents, maintenance and uptime history.
Get in touch with one of our developer to achieve your goals.