Jump to content

UgurBurak

Retired Forum Member
  • Posts

    3
  • Joined

  • Last visited

  • Days Won

    1

UgurBurak last won the day on August 10 2022

UgurBurak had the most liked content!

About UgurBurak

Recent Profile Visitors

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

UgurBurak's Achievements

Junior Member

Junior Member (1/3)

1

Reputation

  1. $orderId = Capsule::table('tblorders') ->where('invoiceid', $invoiceId) ->value('id'); just use this. It will return directly value.
  2. Hi, I 'am developing a provisioning module in WHMCS 8.2.0. Create Account function is sending parameters to cron. And cron executing a function in xxxx.php. No problem so far. But when i want to update service details with localapi, i'm getting this error. Error: {"result":"error","message":"Your license key is invalid"} Our license is valid owned license. Finally, my service updating code is here. $vmid = g_proxmox_explode_field($params['configoption2']); $pveusername = g_proxmox_explode_field($params['configoption13']); $pvepassword = g_proxmox_explode_field($params['configoption14']); $node_name = g_proxmox_explode_field($params['configoption17']); $command = 'UpdateClientProduct'; $postData = array( 'serviceid' => $params['serviceid'], 'serviceusername' => $os_username->username, 'servicepassword' => $selected_password, 'dedicatedip' => $selected_ip->ip_address, 'assignedips' => implode(PHP_EOL, $selected_ip_extras), 'customfields' => base64_encode( serialize( array( $vmid[0] => $generated_vmid, $pveusername[0] => $pve_username, $pvepassword[0] => $pve_password, $node_name[0] => $node ) ) ) ); $adminUsername = Capsule::table("tbladmins")->where("id", "1")->value('username'); $results = localAPI($command, $postData, $adminUsername); if($results['result'] != 'success'){ return 'Ürün bilgileri güncellenirken hata oluştu Hata: '.json_encode($results); }
×
×
  • 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