I've looked at the DataService.php and InvoiceService.php and it seems like something like this SHOULD be allowed but I am getting errors saying it's not:
$order = array(
'contactID' => $contactIDNumber,
'name' => $ORDER_DESC,
'orderDate' => $datetime,
'leadAffiliateID' => '0',
'saleAffiliateID' => '0',
);
$invoiceIDNumber = $infusionsoft->data()->add('Invoice', $order);
$update = $infusionsoft->invoices->addManualPayment($invoiceIDNumber, $order_total, $datetime, $payment_type, $payment_desc, 0);
Any suggestions on how to do this?
Just need to add a blank invoice and then a manual payment to it, as all payments are done outside of InfusionSoft, just need a record of them in there.
Please help!
I've looked at the DataService.php and InvoiceService.php and it seems like something like this SHOULD be allowed but I am getting errors saying it's not:
$order = array(
'contactID' => $contactIDNumber,
'name' => $ORDER_DESC,
'orderDate' => $datetime,
'leadAffiliateID' => '0',
'saleAffiliateID' => '0',
);
$invoiceIDNumber = $infusionsoft->data()->add('Invoice', $order);
$update = $infusionsoft->invoices->addManualPayment($invoiceIDNumber, $order_total, $datetime, $payment_type, $payment_desc, 0);
Any suggestions on how to do this?
Just need to add a blank invoice and then a manual payment to it, as all payments are done outside of InfusionSoft, just need a record of them in there.
Please help!