Jump to content

Prometheus

Member
  • Posts

    11
  • Joined

  • Last visited

About Prometheus

Prometheus's Achievements

Junior Member

Junior Member (1/3)

0

Reputation

  1. Working Update! Answer from WHMCS support: Visit Configuration > System Settings > Payment Gateways Check that Stripe has "Show on Order Form" enabled Visit Configuration > System Settings > Products/Services Edit a product group Check that all groups have either default values or explicitly select Stripe for the "Available Payment Gateways": https://docs.whmcs.com/products/product-groups/
  2. Hello, We have the exact same problem. Are there any solution for this as of today?
  3. Hello I have a custom email header in my whmcs, and I have to set indent to padding-left: 20px; padding-right: 15px; for everything to look ok. This works very well in every email except in support tickets email. I am hoping anyone of you skilled developers can lead me in the right direction to get this to work. Thanks in advance.
  4. Yeah, very strange it works for some and other not. GitHub doesn't seem to much activity about this now. Think I will just leave it like this now, anyway, thanks for helping out and giving me more insight.
  5. I am using the latest WHMCS and PHP 7.2
  6. Ah ok, I understand. Still though, what other reasons can there be that make this not working? Is there any other way I can check errors etc?
  7. Is there a module called "Order Accepted"? When I look I have nothing called that, maybe I am missing something?
  8. Regarding the admin user, yes, it is actually they way I choose to spell the root user, should have mentioned that, sorry for confusing you. =D Then there have to be something else in my setup that is not right, just can't figure out what...
  9. Yes, it is still pending in admin area. I have also checked that the hook loads, which is does. This is exactly how the hook looks at my side. function AutoAcceptOrders_settings() { return array( 'apiuser' => 'whmscroot', // one of the admins username 'autosetup' => true, // determines whether product provisioning is performed 'sendregistrar' => true, // determines whether domain automation is performed 'sendemail' => true, // sets if welcome emails for products and registration confirmation emails for domains should be sent 'ispaid' => true, // set to true if you want to accept only paid orders ); } function AutoAcceptOrders_accept($vars) { $settings = AutoAcceptOrders_settings(); $ispaid = true; if($vars['InvoiceID']) { $result = localAPI('GetInvoice', array( 'invoiceid' => $vars['invoiceId'], ), $settings['apiuser']); $ispaid = ($result['result'] == 'success' && $result['balance'] <= 0) ? true : false; } logActivity("Order isPaid: ".$ispaid,0); if(( $settings['ispaid'] && $ispaid)) { $result = localAPI('AcceptOrder', array( 'orderid' => $vars['orderId'], 'autosetup' => $settings['autosetup'], 'sendemail' => $settings['sendemail'], ), $settings['apiuser']); logActivity("Order Accept", 0); if(is_array($result)){ foreach($result as $index=>$value){ logActivity("$index:$value",0); } } } } add_hook('OrderPaid', 1, 'AutoAcceptOrders_accept');
  10. Thanks a lot for taking your time to help. Though I have done exactly as described it seems still not working for me. I am trying with a test account and with credits loaded on that account, I think that should not make any difference, should it?
  11. Hello Do you mind how you did to get this working? Did you set the 'apiuser' to anything, or did you leave it as is? Cause I can't get this code to work with 7.7.1
  12. Welcome to WHMCS.Community V1King! 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.

×
×
  • 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