{"id":8993979,"date":"2017-04-05T03:32:16","date_gmt":"2017-04-05T03:32:16","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/failed-to-parse-integer-value\/"},"modified":"2017-04-05T03:32:16","modified_gmt":"2017-04-05T03:32:16","slug":"failed-to-parse-integer-value","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/failed-to-parse-integer-value\/","title":{"rendered":"Failed to parse integer value"},"content":{"rendered":"<p>I&#8217;m trying to use this plugin with some custom code and receiving the error<br \/>\n<code>&quot;Uncaught Failed to parse XML-RPC request: Failed to parse integer value: 1234567890123456&quot;<\/code><br \/>\n while trying to create a credit card. Has anyone else experienced this? I&#8217;m using the example code from the SDK github<\/p>\n<pre><code>$creditCard = new Infusionsoft_CreditCard();\n$creditCard-&gt;ContactId = $contact-&gt;Id;\n$creditCard-&gt;BillName = $contact-&gt;FirstName . &#039; &#039; . $contact-&gt;LastName;\n$creditCard-&gt;FirstName = $contact-&gt;FirstName;\n$creditCard-&gt;LastName = $contact-&gt;LastName;\n$creditCard-&gt;CardNumber = 1234567890123456;\n$creditCard-&gt;CVV2 = 197;\n$creditCard-&gt;CardType = &#039;Visa&#039;;\n$creditCard-&gt;Status = 3; \/\/0: Unknown, 1: Invalid, 2: Deleted, 3: Valid\/Good, 4: Inactive\n$creditCard-&gt;save();<\/code><\/pre>\n","protected":false},"template":"","class_list":["post-8993979","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/8993979","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/8993979\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=8993979"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}