Jump to content

Can't Get Billing Cycle


Recommended Posts

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?

Link to comment
Share on other sites

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]

Link to comment
Share on other sites

  • 2 weeks later...

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.

Link to comment
Share on other sites

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 by WHMCS JamesX
Link to comment
Share on other sites

  • 5 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated