Jump to content

mdwebhosting

Retired Forum Member
  • Posts

    13
  • Joined

  • Last visited

Everything posted by mdwebhosting

  1. Hi Guys, Any helps will be much appreciated. Thanks in advanced.
  2. Hi Guys, When a client submit a transfer request that contains a special character, e.g. "pe$tucor7ous" via WHMCS, when I get the password value into my transfer function, it already has had the $ replaced with a -, i.e. "6pe-tucor7ous". It seems like a bug in WHMCS. Please advise.
  3. Hi Guys, We're unable to download invoice to pdf. Is there any particular php configuration that needs to be enabled to make it work? Please advise. Thanks.
  4. Hi Guys, I tried to register a domain name via Planet Domain module. However, I got this error message. "Error Code: 410 - Required field missing | owner.id " Please advise. Thanks.
  5. Does anyone have the modified version? As I've tried to send a pm to Matt but his mailbox is full.
  6. Hi Guys, I've tried to do this using actionhooks without any success. Below is my simple code. Please advise. function actionhook_ClientSignup($vars) { #This function runs when a new client is added $uid = $vars['ClientID']; mysql_query("INSERT INTO tblcustomfieldsvalues (fieldid, relid, value) VALUES ('3', '".$uid."', '".$uid."')"); } It doesn't even update the BPay reference field with the user ID. Thanks.
  7. Hi Guys, I currently have a custom field in the client area named "BPAY Reference". The value of this field should be automatically calculated once the account is created based on the client id. Please advise how to do this. Thanks.
  8. Hi Melanie, I've encountered the same issue, except I don't have php.ini in my gateways folder. However, whenever I remove my customgateway.php file, the page works fine. It happens only if my customgateway.php exist in that folder. Please advise. Thanks.
  9. Hi Shaun, Thank you for your reply. However, if I change the type to invoice, can I still make use of the function anzegate_capture($params)? Thanks.
  10. Hi Guys, I'd like to create a "Pay Now" button in the invoice so when the client logins to their client area to view the invoice, they can manually click on the "Pay Now" button to make payment. These are the codes. function anzegate_link($params) { // Gateway URL $vpcURL = "https://migs.mastercard.com.au/vpcdps"; // Varibales to pass to gateway $vpc_Version = "1"; $vpc_Command = "pay"; $vpc_Merchant = $params['vpc_Merchant']; $vpc_AccessCode = $params['vpc_AccessCode']; $vpc_MerchTxnRef = $params['invoiceid']."/".date('ymdHis'); $vpc_OrderInfo = $params['invoiceid']; $vpc_Amount = intval($params['amount']*100); $vpc_CardNum = "5123456789012346"; $vpc_CardExp = "1305"; # Enter your code submit to the gateway... $code = ' <form action="../VPC_PHP_2P_CSC.php" method="post"> <input type="hidden" name="virtualPaymentClientURL" value="'.$vpcURL.'"> <input type="hidden" name="vpc_Version" value="'.$vpc_Version.'"> <input type="hidden" name="vpc_Command" value="'.$vpc_Command.'"> <input type="hidden" name="vpc_AccessCode" value="'.$vpc_AccessCode.'"> <input type="hidden" name="vpc_MerchTxnRef" value="'.$vpc_MerchTxnRef.'"> <input type="hidden" name="vpc_Merchant" value="'.$vpc_Merchant.'"> <input type="hidden" name="vpc_OrderInfo" value="'.$vpc_OrderInfo.'"> <input type="hidden" name="vpc_Amount" value="'.$vpc_Amount.'"> <input type="hidden" name="vpc_CardNum" value="'.$vpc_CardNum.'"> <input type="hidden" name="vpc_CardExp" value="'.$vpc_CardExp.'"> <input type="submit" name="SubButL" value="Pay Now"> </form> '; return $code; } As you can see that I've to hardcoded the credit card details for the time being as the function anzegate_link($params) doesn't automatically pick up the details as function anzegate_capture($params) does. Please advise. Thanks.
  11. Hi Guys, Anyone knows any Australian SMS Providers which have an API to be integrated with WHMSC ? Please advise. Thanks.
  12. Hi Shaun, I've tried to do this in the actionhooks.php without any success. Please advise. Below is the code that I used. function actionhook_ClientSignup($vars) { # This function runs when a new client is added # $vars["ClientID"] # $vars["FirstName"] # $vars["LastName"] # $vars["CompanyName"] # $vars["Email"] # $vars["Address1"] # $vars["Address2"] # $vars["City"] # $vars["State"] # $vars["Postcode"] # $vars["Country"] # $vars["PhoneNumber"] # $vars["Password"] $uid = $vars['ClientID']; $total = 0; $even = 1; while ($uid > 0) { $val = ($uid % 10) * (++$even%2? 1 : 2); if ($val > 10) $val = ((int)($val / 10)) + $val % 10; if ($val == 10) $val = 1; $total += $val; $uid /= 10; } $ret = 10 - ($total % 10); if ($ret >= 10) $ret = 0; $bpayid = $uid . $ret; $sql = new mysqli('localhost', 'mdwh_scripte', 'nfX4wsT6j', 'mdwh_myacc'); $sql->query('INSERT INTO tblcustomfieldsvalues VALUES (3, $uid, $bpayid)'); }
  13. Hi Guys, I have a custom field for BPay reference and I need to set the value of this custom field automatically when an account is created. I've tried to find any helps in the forum without any success. Please advise. Thanks.
×
×
  • 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