Jump to content

souzadavi

Members
  • Content count

    40
  • Joined

  • Last visited

Community Reputation

10 Good

About souzadavi

  • Rank
    Member

Recent Profile Visitors

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

  1. How to add new type (brand) of creditcard in creditcard.tpl??
  2. Hello Guys, i'm now trying to build a new order form with API, in this order form a need a login, in the doc: https://developers.whmcs.com/api-reference/validatelogin/ looks very easy, but the deal is how to do it with SOCIAL network logins. I got no ideia!!! if there is any direction will be great.... My guess is: How to login by WHMCS API with social credentials? Thanks 🙂
  3. souzadavi

    How many card WHMCS can hold? Credit card Manager

    WHMCS not allowed to register more than 1 credit cards numbers.... The template is litle bit confusing because for the user it looks like it can save more than 1 credit card number.... but I checked the dabatase and files and it not possible by default to register more than 1 credit card number for whmcs users...
  4. The WHMCS is able to register more than 1 credit card number? Or just one??? Thanks...
  5. After last WHMCS update the phone number lost the new configuration https://docs.whmcs.com/Phone_Numbers . any clue why is it happening?? IN admin of WHMCS is setted to use new interface Phone Numbers Tick to enable international phone number input interface and automatic formatting
  6. Thanks, it's working now again...
  7. souzadavi

    Subdomain register

    Thank you very much it works!!! I will leave here the code may for somebody else.... To create a WHOIS lookup for Subdomains to work like a domain, I did a small script (whoisSubdomain.php) and put on root folder of whmcs: <?php $domain = strtolower($_REQUEST['domain']); include ("configuration.php"); $conn = mysqli_connect($db_host, $db_username, $db_password, $db_name); // Check connection if (!$conn) { die("Connection failed: " . mysqli_connect_error()); } $sql = "SELECT * FROM tbldomains WHERE domain='$domain'"; $result = $conn->query($sql); if ($result->num_rows > 0) { while($row = $result->fetch_assoc()) { echo ("unavailable"); } } else { echo ("available"); } $conn->close(); ?> After that I add this lines to the file /resource/domains/whois.json file { "extensions": ".mysubdomain.com", "uri": "https://www.yourdomain.com/whmcs/whoisSubdomain.php?domain=", "available": "available" } Don't forget to added the subdomain in the .TLD list price in whmcs, like a new domain, see the docs in: https://docs.whmcs.com/Domain_Pricing
  8. souzadavi

    Subdomain register

    Hello Brian, thanks to writte back. it's linked to a product - and you can charge for that product... this would be the usual way to offer subdomains in WHMCS, rather than pretend they're like other TLDs. ---- the hosting is free the subdomain is paid... After a year my customer need upgrade a hosting account and pay subdomain renew. Did the script work in the previous version before the template update? ------ the solution with WHOIS I was trying now, before I changed it in base.js of my custom template and was working.... you can have a look at: https://cliente.linknacional.com.br/cart.php?a=add&amp;pid=60&amp;tld=.criarsite.online&amp;carttpl=criarsite3 thanks
  9. I update all of my templates to the latest WHMCS version, now i'm getting an error on free order, on complete page i'm getting the message: Unexpected payment method value. Exiting. This happening only in free orders... Any clue how to fix it?? thanks
  10. souzadavi

    Subdomain register

    Thank you to reply, but I would like to sell the subdomain like domain, from this way the subdomain is free... I was trying to create a I aswer like whois, iserting information in whois.json file like that: { "extensions": ".criarsite.online", "uri": "https://mydomain.com.br/whmcs/whois_subdomain.php?domain=", "available": "HTTPREQUEST-available" } I already did the file whois_subdomain.php searching in the whmcs data base to check if the subdomain is free, but didn't work.... any direction will be very appreciate... thanks
  11. souzadavi

    Subdomain register

    I'm selling subdomains, it was working before in my template, after template update all of my subdomain returned with registered (unavailable), so the user cannot register a subdomain from my WHMCS. I don't remember where I changed years ago to enable sell subdomains like domains... How can I make a search of subdomain and enable it to be register? See the imagem below... Thanks in advance
  12. souzadavi

    Callback confirm payment twice in MOIP

    The callback file give the log duplicated, look couple of log in moip_wmcs_boleto_direto.txt.......... Yesterday a talk to the gateway payment, and they said the callback file is calling twice or more... they will try to fix it.... thanks for your attention Kian ----------------------------------- Status: PAID Data: 26/06/2018 04:30:29Valor Adicionado na Invoice:10531 Adicionado o Pagamento ----------------------------------- NAME GATEWAYArray ( remove the parameters [] ) Data: 26/06/2018 04:30:29 PAID1 ----------------------------------- Status: PAID Data: 26/06/2018 04:30:29Valor Adicionado na Invoice:10531 Adicionado o Pagamento ----------------------------------- NAME GATEWAYArray ( remove the parameters [] ) Data: 26/06/2018 04:30:29 PAID1 ----------------------------------- Status: PAID Data: 28/06/2018 03:20:10Valor Adicionado na Invoice:10637 Adicionado o Pagamento ----------------------------------- NAME GATEWAYArray ( remove the parameters [] ) Data: 28/06/2018 03:20:10 PAID1 ----------------------------------- Status: PAID Data: 28/06/2018 03:20:10Valor Adicionado na Invoice:10637 Adicionado o Pagamento ----------------------------------- NAME GATEWAYArray ( remove the parameters [] ) Data: 28/06/2018 03:20:10 PAID1
  13. souzadavi

    Callback confirm payment twice in MOIP

    Didn't work, the gateway still confirmed twice or more by WHMCS system... very strange!!! the deal is there no answers from whmcs team. if ($success) { if($status == "PAID"){ try{ $statusInvoice = Capsule::table('tblinvoices')->select('status')->where('id', '=', $invoiceId)->first(); if($statusInvoice->status == "Unpaid" && $success == true){ addInvoicePayment($invoiceId,$transactionId,$paymentAmount,$paymentFee,$gatewayParams["name"]); $status = false; $success = false; } }catch (\Exception $e) { echo "I couldn't get invoice status. {$e->getMessage()}"; } } }
  14. souzadavi

    Callback confirm payment twice in MOIP

    Kian, thanks to write back, is much better how you said. I changed the code like you said. I will wait to seed if there is any change.. But is very strange because I call only once. addInvoicePayment() thanks
  15. Hello I did a small script to work with gateway MOIP (pagamento direto), but one thing very strange is happening, the payment it's confirmed twice or more by WHMCS system, the full script is at: https://bitbucket.org/linknacional/moip_boleto_direto/src/master/modules/gateways/moip_whmcs_boleto_direto/callback/moip_whmcs_boleto_direto.php The payment confirmation it's happening at same time, date, hour and seconds is the same. I tried supporting from WHMCS team, but without success. Any help here will be very nice. Below is the code wich getting payment duplication. I can't find why the payment is duplicating. if($status == "PAID"){ try{ foreach (Capsule::table('tblinvoices')->select('status')->where('id', '=', $invoiceId)->get() as $statusInvoice){ if($statusInvoice->status == "Unpaid" && $success == true){ addInvoicePayment($invoiceId,$transactionId,$paymentAmount,$paymentFee,$gatewayParams["name"]); $status = false; $success = false; } } }catch (\Exception $e) { echo "I couldn't get invoice status. {$e->getMessage()}"; } } PS: attached the invoice transaction log. THANKs in advance...
×

Important Information

By using this site, you agree to our Terms of Use & Guidelines