Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 408 Bytes

README.md

File metadata and controls

17 lines (13 loc) · 408 Bytes

Usage

require "php-sdk/src/fortumo.php";

$fortumo = new Fortumo(array(
    "serviceId" => "YOUR_SERVICE_ID",
    "secret" => "YOUR_SERVICE_SECRET"
));

// Validate payment request
$payment = $fortumo->validateRequest();

if($payment){
    echo "Successful payment from {$payment['sender']}";
}else{
    echo "Error: " . $fortumo->getError();
}