lainard Posted August 15, 2007 Author Share Posted August 15, 2007 Hi guys,seems like I need some help I did all as described but when clients comes to the final step in the order (step=checkout) he sees a blank page. The order emails comes and the order is placed only that the customer see blank checkout page. Also SMS don't come. In which format you put the phone number next to the $mysms->send ? Thanks a lot, Strats In my hands i put a code on checkoutscript <META HTTP-EQUIV="Refresh" CONTENT="5; URL=http://yourdomain.com/thepageyouwantusertobe redirected.html"> 0 Quote Link to comment Share on other sites More sharing options...
urljet Posted August 29, 2007 Share Posted August 29, 2007 Sounds pretty cool I got my clickatell credits but the ZIP file is gone. 0 Quote Link to comment Share on other sites More sharing options...
brianoz Posted August 30, 2007 Share Posted August 30, 2007 Just use the code from bendodson's post above, it's pretty easy to setup. I think you'll need to get sms_api.php from Clickatell. 0 Quote Link to comment Share on other sites More sharing options...
lainard Posted August 30, 2007 Author Share Posted August 30, 2007 Just use the code from bendodson's post above, it's pretty easy to setup. I think you'll need to get sms_api.php from Clickatell. he means the sms_api not the send script! Sounds pretty cool I got my clickatell credits but the ZIP file is gone. I have reupload it in rapidshare take it here http://forums.whmcs.com/viewtopic.php?t=5873 0 Quote Link to comment Share on other sites More sharing options...
urljet Posted August 30, 2007 Share Posted August 30, 2007 Thank you for the update. I think I got it installed but I get this message on a blank page when going through the checkout process and the sms never shows up. success message ID: ff8da49c909ab46e280440b78c96c786 0 Quote Link to comment Share on other sites More sharing options...
urljet Posted August 30, 2007 Share Posted August 30, 2007 I'm guessing on this line you replace the phone number and company name with your "real" info? $mysms->send ("YOUR PHONE NUMBER", "Your Company", "Order: $domains Invoice ID: $invoiceid Product ID: $productid"); If so, do you leave out the hypens and spaces in the phoner number? 0 Quote Link to comment Share on other sites More sharing options...
lainard Posted August 30, 2007 Author Share Posted August 30, 2007 Thank you for the update. I think I got it installed but I get this message on a blank page when going through the checkout process and the sms never shows up. success message ID: ff8da49c909ab46e280440b78c96c786 change your checkoutscripts <?php require_once ("sms_api.php"); $mysms = new sms(); $mysms->send ("mobilenumberhere", "Your Company", "Order: $domains Invoice ID: $invoiceid Product ID: $productid"); ?> <html> <head> <META HTTP-EQUIV="Refresh" CONTENT="1; URL=http://yourwhmcs.com/clientarea.php"> </head> </html> 0 Quote Link to comment Share on other sites More sharing options...
urljet Posted August 30, 2007 Share Posted August 30, 2007 This is what I have in my checkoutscript.php and it still hangs on the blank success page. <?php /* ************************************************** ************** WHMCS CheckOut Script ************* ************************************************** You may enter code here which will be run when a user checks out if you have enabled it in Configuration > General Configuration > Other of your WHMCS Admin Area. The following variables are available to you: ************************************************** Order ID: $orderid Order Number: $ordernumber Invoice ID: $invoiceid Product ID: $productid Domains Array: $domains Addons Array: $addons ************************************************** */ require_once ("sms_api.php"); $mysms = new sms(); echo $mysms->session; echo $mysms->getbalance(); // $mysms->token_pay("1234567890123456"); //spend voucher with SMS credits $mysms->send ("XXXXXXXXXX", "My Company", "Order: $domains Invoice ID: $invoiceid Product ID: $productid"); ?> <html> <head> <META HTTP-EQUIV="Refresh" CONTENT="1; URL=http://XXXXX.com/clients"> </head> </html> 0 Quote Link to comment Share on other sites More sharing options...
lainard Posted August 31, 2007 Author Share Posted August 31, 2007 change to this One!! <?php /* ************************************************** ************** WHMCS CheckOut Script ************* ************************************************** You may enter code here which will be run when a user checks out if you have enabled it in Configuration > General Configuration > Other of your WHMCS Admin Area. The following variables are available to you: ************************************************** Order ID: $orderid Order Number: $ordernumber Invoice ID: $invoiceid Product ID: $productid Domains Array: $domains Addons Array: $addons ************************************************** */ require_once ("sms_api.php"); $mysms = new sms(); $mysms->send ("XXXXXXXXXX", "My Company", "Order: $domains Invoice ID: $invoiceid Product ID: $productid"); ?> <html> <head> <META HTTP-EQUIV="Refresh" CONTENT="1; URL=http://XXXXX.com/clients"> </head> </html> 0 Quote Link to comment Share on other sites More sharing options...
urljet Posted August 31, 2007 Share Posted August 31, 2007 Weird...same result. I get the success message but no meta refresh or sms. <?php /* ************************************************** ************** WHMCS CheckOut Script ************* ************************************************** You may enter code here which will be run when a user checks out if you have enabled it in Configuration > General Configuration > Other of your WHMCS Admin Area. The following variables are available to you: ************************************************** Order ID: $orderid Order Number: $ordernumber Invoice ID: $invoiceid Product ID: $productid Domains Array: $domains Addons Array: $addons ************************************************** */ require_once ("sms_api.php"); $mysms = new sms(); $mysms->send ("XXXXXXXXXX", "XXXX", "Order: $domains Invoice ID: $invoiceid Product ID: $productid"); ?> <html> <head> <META HTTP-EQUIV="Refresh" CONTENT="1; URL=XXXXX.com/clients"> </head> </html> 0 Quote Link to comment Share on other sites More sharing options...
Giannis Posted August 31, 2007 Share Posted August 31, 2007 I have the same problem??? Any sugestions? Thank you 0 Quote Link to comment Share on other sites More sharing options...
lainard Posted August 31, 2007 Author Share Posted August 31, 2007 Weird...same result. I get the success message but no meta refresh or sms. <?php /* ************************************************** ************** WHMCS CheckOut Script ************* ************************************************** You may enter code here which will be run when a user checks out if you have enabled it in Configuration > General Configuration > Other of your WHMCS Admin Area. The following variables are available to you: ************************************************** Order ID: $orderid Order Number: $ordernumber Invoice ID: $invoiceid Product ID: $productid Domains Array: $domains Addons Array: $addons ************************************************** */ require_once ("sms_api.php"); $mysms = new sms(); $mysms->send ("XXXXXXXXXX", "XXXX", "Order: $domains Invoice ID: $invoiceid Product ID: $productid"); ?> <html> <head> <META HTTP-EQUIV="Refresh" CONTENT="1; URL=XXXXX.com/clients"> </head> </html> metascript may fail if your browser did not support it another solution use javascripts redirect or any other redirect script! are you sure <META HTTP-EQUIV="Refresh" CONTENT="1; URL=XXXXX.com/clients"> it should be with http like this <META HTTP-EQUIV="Refresh" CONTENT="1; URL=http://www.yourdomain.com/clients"> 0 Quote Link to comment Share on other sites More sharing options...
urljet Posted August 31, 2007 Share Posted August 31, 2007 I'm using IE 7 so I don't think that's the issue. I can't use the h t t p or w w w in my posts until I reach the magic post count. Weird...same result. I get the success message but no meta refresh or sms. <?php /* ************************************************** ************** WHMCS CheckOut Script ************* ************************************************** You may enter code here which will be run when a user checks out if you have enabled it in Configuration > General Configuration > Other of your WHMCS Admin Area. The following variables are available to you: ************************************************** Order ID: $orderid Order Number: $ordernumber Invoice ID: $invoiceid Product ID: $productid Domains Array: $domains Addons Array: $addons ************************************************** */ require_once ("sms_api.php"); $mysms = new sms(); $mysms->send ("XXXXXXXXXX", "XXXX", "Order: $domains Invoice ID: $invoiceid Product ID: $productid"); ?> <html> <head> <META HTTP-EQUIV="Refresh" CONTENT="1; URL=XXXXX.com/clients"> </head> </html> metascript may fail if your browser did not support it another solution use javascripts redirect or any other redirect script! are you sure <META HTTP-EQUIV="Refresh" CONTENT="1; URL=XXXXX.com/clients"> it should be with http like this <META HTTP-EQUIV="Refresh" CONTENT="1; URL=http://yourdomain.com/clients"> 0 Quote Link to comment Share on other sites More sharing options...
lainard Posted September 1, 2007 Author Share Posted September 1, 2007 can i test your order form? 0 Quote Link to comment Share on other sites More sharing options...
Si Posted September 4, 2007 Share Posted September 4, 2007 Hi Lainard, Have you another link to the API you mention in your first post in this thread? The link appears broken. Thanks Si Added: Duh...always find things after I post. Got it from your rapidshare link. Si. 0 Quote Link to comment Share on other sites More sharing options...
lainard Posted September 4, 2007 Author Share Posted September 4, 2007 No problem dude! 0 Quote Link to comment Share on other sites More sharing options...
sisgroup Posted September 23, 2007 Share Posted September 23, 2007 the API zip has garn any ideas, Does anyone still have that ZIP file with teh API files in? 0 Quote Link to comment Share on other sites More sharing options...
lainard Posted September 24, 2007 Author Share Posted September 24, 2007 sms_api is an opensource you can download in sourceforge here is the address [url]http://www.phpclasses.org/browse/download/1/file/5564/name/sms_api.php[/url] 0 Quote Link to comment Share on other sites More sharing options...
sisgroup Posted September 24, 2007 Share Posted September 24, 2007 Thats anyway, But i found teh same bit of code a few hours ago on hotscripts.com 0 Quote Link to comment Share on other sites More sharing options...
djaxel Posted March 14, 2008 Share Posted March 14, 2008 Hello, Can the api be setup to send sms to client when the cron creates an invoice? I am willing to pay for this. Thank you. 0 Quote Link to comment Share on other sites More sharing options...
seachen Posted August 30, 2008 Share Posted August 30, 2008 http://www.simsonlai.org/sms_api.zip unable to download. where can i get it? 0 Quote Link to comment Share on other sites More sharing options...
lainard Posted September 15, 2008 Author Share Posted September 15, 2008 Go to Downloads menu I have added the files in Download section PHP if you need any help just PM me. 0 Quote Link to comment Share on other sites More sharing options...
jmanuel Posted September 17, 2008 Share Posted September 17, 2008 i Cant find this file includes/checkoutscript.php its on includes folder? i dont have this file. 0 Quote Link to comment Share on other sites More sharing options...
vT16 Posted September 20, 2008 Share Posted September 20, 2008 How do you use this with the new action hooks? 0 Quote Link to comment Share on other sites More sharing options...
lainard Posted September 23, 2008 Author Share Posted September 23, 2008 what version of WHMCS are you using? 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.