sorry for this, if im wrong, im not expert in IS API, i found this public function in isdk.php
public function placeOrder($contactId, $creditCardId, $payPlanId, $productIds, $subscriptionIds, $processSpecials, $promoCodes, $leadAff = 0, $saleAff = 0)
{
$carray = array(
php_xmlrpc_encode((int)$contactId),
php_xmlrpc_encode((int)$creditCardId),
php_xmlrpc_encode((int)$payPlanId),
php_xmlrpc_encode($productIds),
php_xmlrpc_encode($subscriptionIds),
php_xmlrpc_encode($processSpecials),
php_xmlrpc_encode($promoCodes),
php_xmlrpc_encode((int)$leadAff),
php_xmlrpc_encode((int)$saleAff));
return $this->methodCaller("OrderService.placeOrder", $carray);
}
and im using the example code to call this function explained here https://developer.infusionsoft.com/docs/xml-rpc/#order-create-an-order :
$app = new iSDK();
// perform authorization tasks
$carray = array(
$app->key,
$contactId,
$creditCardId,
$payPlanId,
array($productId1, $productId2),
array($subscriptionPlanId1, $subscriptionPlanId2),
$processSpecials,
array($promoCode1, $promoCode2)) // array of strings
);
$app->placeOrder($carray);
i always get this error:
ERROR: -1 - No method matching arguments: java.lang.String, java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.Integer, java.lang.Integer
also can you guide me how to add new CC to IS contact and return ID of that card?
thanks for your replies and great help i appreciate alot.