countrywesterndj Posted December 22, 2012 Share Posted December 22, 2012 I'm trying to write a Payment Gateway module and the only thing I have not working is the billing cycle. Here is part of the code: echo "amount= ".$params['amount']; echo "invoice ID= ".$params['invoiceid']; echo "currency= ".$params['currency']; echo "billing cycle= ".$params['billingcycle']; Everything prints out OK except the billing just prints out as BLANK. What am I doing wrong? 0 Quote Link to comment Share on other sites More sharing options...
countrywesterndj Posted December 27, 2012 Author Share Posted December 27, 2012 I thought this was an easy question. Nobody has an answer ? 0 Quote Link to comment Share on other sites More sharing options...
WHMCS JamesX Posted December 27, 2012 Share Posted December 27, 2012 print_r($params); The above will give you the params passed into whatever function that you happen to be in at the time. If you want to save the output to a file or do something else with it so you can reference it later: $x = print_r($params, true); 0 Quote Link to comment Share on other sites More sharing options...
countrywesterndj Posted December 27, 2012 Author Share Posted December 27, 2012 James, thank you. When I print out the $params, I still don't get the billing cycle. Here is what prints out: [paymentmethod] [convertto] [mid] [name] [templatetype] [testmode] [type] [visible] [companyname] [systemurl] [returnurl] [langpaynow] [description] [invoiceid] [clientdetails] - [userid] - [firstname] - [lastname] - [companyname] - - [address1] - [address2] - [city] - [state] - [postcode] - [countrycode] - [country] - [countryname] - [phonecc] - [phonenumber] - [notes] - [password] - [currency] - [defaultgateway] - [cctype] - [cclastfour] - [securityqid] - [securityqans] - [groupid] - [status] - [credit] - [taxexempt] - [latefeeoveride] - [overideduenotices] - [separateinvoices] - [disableautocc] - [language] - [lastlogin] - [billingcid] - [fullstate] - [amount] - [currency] 0 Quote Link to comment Share on other sites More sharing options...
countrywesterndj Posted January 7, 2013 Author Share Posted January 7, 2013 Can anybody help me out on this ? 0 Quote Link to comment Share on other sites More sharing options...
othellotech Posted January 7, 2013 Share Posted January 7, 2013 There is no billing cycle on an *Invoice* There might be on each of the items on an invoice - you'll need to find those yourself 0 Quote Link to comment Share on other sites More sharing options...
countrywesterndj Posted January 8, 2013 Author Share Posted January 8, 2013 But when an order is placed and sent to PayPal, for example, the information is sent whether the order should be charged monthly, quarterly, semi-annual, annually, etc. That information is sent to PayPal and must be stored somewhere. Has to be. My problem is my gateway works fine for Cybersource. However when a customer selects to pay annually, I need to tell Cybersource not to re-bill until 1 year. The way I have it programmed, it will bill every month, unless I can identify that the order is annually, and sent that to Cybersource. This is my issue. 0 Quote Link to comment Share on other sites More sharing options...
WHMCS JamesX Posted January 8, 2013 Share Posted January 8, 2013 (edited) All of the information you seek is available within the database, as Rob had said. I already showed you how to get the variables that are available to the function itself. From there, you need to get any other information that you want from the database using the information given to you by the function. Edited January 8, 2013 by WHMCS JamesX 0 Quote Link to comment Share on other sites More sharing options...
countrywesterndj Posted January 10, 2013 Author Share Posted January 10, 2013 Can you or Rob at least tell me what Data Set ? Thank you. 0 Quote Link to comment Share on other sites More sharing options...
anthonyfox63 Posted February 8, 2013 Share Posted February 8, 2013 The billingcycle data is stored in the product table. If it is hosting then the data is in table tblhosting. As for accessing it you can use the userid. 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.