Last active
August 29, 2015 14:11
-
-
Save pasindud/a853e270943648c0d59b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$appid = "APP_000001"; | |
$apppassword = "password"; | |
try { | |
$receiver = new SMSReceiver(); | |
$address = $receiver->getAddress(); | |
$message = $receiver->getMessage(); | |
// Setting up CAAS | |
$cass = new DirectDebitSender("http://127.0.0.1:7000/caas/direct/debit",$appid,$apppassword); | |
$sender = new SmsSender("http://localhost:7000/sms/send", $appid,$apppassword); | |
try { | |
$cass->cass("123","tel:94771122336","40"); | |
$sender->sms("Donation has been made",$address); | |
} catch (CassException $e) { | |
$sender->sms("You do not have money",$address); | |
} | |
} catch (Exception $e) { | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment