Jump to content

nwcasebolt

Frequent Contributor
  • Content count

    8
  • Joined

  • Last visited

Community Reputation

1 Neutral

About nwcasebolt

  • Rank
    Junior Member

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. nwcasebolt

    Deactivating 2CheckOut

    This is WHMCS Support's response. Not sure I like the idea of running raw sql against the db to fix something that must be a code problem, but there you have it:
  2. nwcasebolt

    Deactivating 2CheckOut

    I've submitted a bug report to WHMCS and will post any updates here.
  3. nwcasebolt

    Deactivating 2CheckOut

    Is it possible to deactivate the 2CheckOut gateway module, or is it so baked into the WHMCS core that I'd be chipping at the platform's foundations? I want to limit the number of unused modules we're running, to minimize both our latency and our attack surface; but I haven't found a way to deactivate 2CheckOut through admin.
  4. nwcasebolt

    Can't Find an Autoloaded Helper Class

    Thanks, Josh. Oddly enough, I got this working by both (1) using the namespace and (2) requiring my class file. If I omitted either of those two steps, then I couldn't use my class. But, to answer your question directly, I built the class in our custom gateway module, within the module's lib folder; and I instantiate the instance from the gateway module file (not the callback ). That's what I found odd, because I think WHMCS should be initialized and running just fine by the time I hit the gateway.
  5. nwcasebolt

    Can't Find an Autoloaded Helper Class

    Addendum: Part of the problem is certainly that the WHMCS constant itself is not defined. Is this a Composer issue?
  6. According to the Module Class Autoloading docs, I should be able to create a helper class in my Gateway module and inject it as needed, where needed. I have: created {install}/modules/gateways/coolmodule/lib/CoolClass.php, with namespace: WHMCS\Module\Gateway\Coolmodule; made sure the file is 644 and directories are 755 injected my class with: use WHMCS\Module\Gateway\Coolmodule\CoolClass; instantiated my object with: $cool = new CoolClass(); PHPStorm likes everything I've done, and I expect to get a CoolClass object with which I can do cool stuff. What I get instead is a 500 server error: PHP Fatal error: Uncaught Error: Class 'WHMCS\Module\Gateway\Coolmodule\CoolClass' not found I would appreciate any leads from anyone who's successfully created and autoloaded and injected a helper class, because nothing I've tried so far has worked.
  7. nwcasebolt

    Cancel a Pending Order

    Thank you. This logic seems odd to me from a customer service perspective. For example, with prominent registrars such as GoDaddy, I believe I can order and cancel in an entirely automated fashion. However, I'm new to this space, so perhaps it's a lot more manual behind the scenes than I understand. All I know is that, looking at this from a client perspective, I wouldn't be pleased if I had to submit an order cancellation request and then wait for someone to review and approve my cancellation. That's not the expectation these days, at least I don't think it is.
  8. nwcasebolt

    Cancel a Pending Order

    It appears that if a client has purchased but not yet paid for a product or service, then the client does not have the option to cancel that product or service. First, is this correct? Second, is there a way to change this behavior?
  9. Welcome to WHMCS.Community nwcasebolt! We're glad you're here please take some time to familiarise yourself with the Community Rules & Guidelines and take a moment to introduce yourself to other WHMCS.Community members in the Introduce Yourself Board.

×

Important Information

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