Jump to content
  • 0

how to know billingCycle in payment gateway development


shivsingh7150

Question

1 answer to this question

Recommended Posts

  • 0

In a payment gateway module for WHMCS, you can access the billing cycle for an order using the $params variable, which is passed to the payment gateway's capture function as an argument. The $params variable is an array that contains various information about the order, including the billing cycle.

To access the billing cycle for an order in a payment gateway module, you can use the following code:

$billingCycle = $params['billingcycle'];

The $billingCycle variable will contain a string value representing the billing cycle for the order, such as "Monthly", "Quarterly", "Semi-Annually", or "Annually".

You can then use the $billingCycle variable to make any necessary changes to the payment gateway request or response based on the billing cycle.

Link to comment
Share on other sites

Join the conversation

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

Guest
Answer this question...

×   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