07-26-2023, 05:32 PM
I have an issue to insert multiple product custom fields to whmcs using laravel. In this below code pass the $cp value alone. But need to pass the $os,$db and $cp value.
$order_details = Whmcs::AddOrder([
'clientid' => $value,
'paymentmethod' => 'razorpay',
'pid' => $pid,
'domain' => $domain,
'billingcycle' => $billingcycle,
'domaintype' => $domain_reg,
'regperiod' => $domain_regperiod,
'customfields'=>array(base64_encode(serialize($os))),
'customfields'=>array(base64_encode(serialize($db))),
'customfields'=>array(base64_encode(serialize($cp)))
]);
$order_details = Whmcs::AddOrder([
'clientid' => $value,
'paymentmethod' => 'razorpay',
'pid' => $pid,
'domain' => $domain,
'billingcycle' => $billingcycle,
'domaintype' => $domain_reg,
'regperiod' => $domain_regperiod,
'customfields'=>array(base64_encode(serialize($os))),
'customfields'=>array(base64_encode(serialize($db))),
'customfields'=>array(base64_encode(serialize($cp)))
]);