abraham / chargify

Example code for integrating a PHP application with the Chargify billing service
https://chargify.com/
MIT License
15 stars 10 forks source link

"String could not be parsed as XML" when in use with CakePHP #2

Open dagumak opened 12 years ago

dagumak commented 12 years ago

I had a few oddities here and there when using with Cake, but I couldn't figure out this one when just using the library.

"String could not be parsed as XML"

I wish I could be more helpful, but at least I've taken the first step to open a discussion.

dagumak commented 12 years ago

Exactly on this line: $customer_xml_node = new SimpleXMLElement($xml);

mazraara commented 11 years ago

Hi, I am getting the same error with my application too. [Exception : String could not be parsed as XML ]

public function createSubscription($chargify_subscription) { $xml = $this->requestCreateSubscription($chargify_subscription->getXML()); 424 ---> $subscription = new SimpleXMLElement($xml); return new ChargifySubscription($subscription, $this->test_mode); }

can somebody help me.

arungpisyadi commented 10 years ago

I know it's been a while, but apparently the wrapper can't work if you set $test = TRUE, you should use $test to FALSE and set test environment in your chargify account.

abkiran commented 6 years ago

Even after changing $test = FALSE, same error