Hi
I'm very new to this so please excuse my ignorance. I am using the test script like below
require_once "./lib/ChargifyConnector.php";
$test_mode = true;
$connector = new ChargifyConnector($test_mode);
$products = $connector->getAllProducts();
var_dump($products);
However, I get the following error returned :
Fatal error: Uncaught Exception: String could not be parsed as XML in C:\websites\invoicing\chargify\lib\ChargifyConnector.php:171 Stack trace: #0 C:\websites\invoicing\chargify\lib\ChargifyConnector.php(171): SimpleXMLElement->__construct('') #1 C:\websites\invoicing\chargify\chargify.php(7): ChargifyConnector->getAllProducts() #2 {main} thrown in C:\websites\invoicing\chargify\lib\ChargifyConnector.php on line 171
I have changed the API key and URL to mine and I do have 1 product in my Chargify account.
Any suggestions ?
Hi
I'm very new to this so please excuse my ignorance. I am using the test script like below
require_once "./lib/ChargifyConnector.php";
$test_mode = true;
$connector = new ChargifyConnector($test_mode);
$products = $connector->getAllProducts();
var_dump($products);
However, I get the following error returned :
Fatal error: Uncaught Exception: String could not be parsed as XML in C:\websites\invoicing\chargify\lib\ChargifyConnector.php:171 Stack trace: #0 C:\websites\invoicing\chargify\lib\ChargifyConnector.php(171): SimpleXMLElement->__construct('') #1 C:\websites\invoicing\chargify\chargify.php(7): ChargifyConnector->getAllProducts() #2 {main} thrown in C:\websites\invoicing\chargify\lib\ChargifyConnector.php on line 171
I have changed the API key and URL to mine and I do have 1 product in my Chargify account.
Any suggestions ?