Discussions
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
setting transactionbilladdress for SalesOrders in PHP
would anyone happen to know how to add a SalesOrder with the transactionShipAddress and transactionBillAddress fields set to what I specify ?
I can't seem to get this to work, this is my code :
$orderData = array();
$orderData['billAddressee'] = 'Some Guy';
$orderData['billPhone'] = '6665554321';
$orderData['billAddr1'] = '101 Some Sreet';
$orderData['billAddr2'] = 'Suite 101';
$orderData['billCity'] = 'Nowheresville';
$orderData['billState'] = 'OR';
$orderData['billZip'] = '97214';
$orderData['billCountry'] = '_unitedStates';
// A bunch more data set here ...
...
// set up addresses (transaction bill address and shipping bill address will be set to the same for now)
$shipAddress = new nsComplexObject("ShipAddress");
$shipAddress->setFields(array('shipAddressee' => $orderData['billAddressee'],