I have an application using the deprecated PHP iSDK found here: https://github.com/jakedewitt87/iSDK
Some of the API calls are still working but I get this error when trying to add a new card to contact:
ERROR: -1 - Failed to invoke method add in class com.infusionsoft.api.xmlrpc.XmlRpcDataService: java.lang.StringIndexOutOfBoundsException: String index out of range: 1
I’m wondering if there is some method of getting this to work even temporarily or if I’m out of luck and just need to update the application to the new PHP SDK.
Here’s a code snippet of the API call that fails. I’ve checked to make sure all the information is valid.
$card = array('ContactId' => $contactID,
'NameOnCard' => $_POST['contactCCName'],
'CardNumber' => $_POST['contactCCNumber'],
'CardType' => $_POST['contactCCType'],
'CVV2' => $_POST['contactCCCode'],
'ExpirationMonth' => $_POST['contactExpDateMonth'],
'ExpirationYear' => "20".$_POST['contactExpDateYear'],
'BillAddress1' => $_POST['contactStreetAddress'],
'BillCity' => $_POST['contactCity'],
'BillState' => $_POST['contactState'],
'BillZip' => $_POST['contactZip'],
'BillCountry' =>"United States",
'Email' => $_POST['contactEmail'],
);
$cardID = $app->dsAdd("CreditCard", $card);