You were so helpful last time, maybe you can help me with this one. I received this debug log this morning:
Code:
[29-Jun-2016 18:08:17 America/New_York] PHP Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /usr/www/users/xxx/catalog/includes/modules/payment/gps.php:298
Stack trace:
#0 /usr/www/users/xxx/catalog/includes/modules/payment/gps.php(298): SimpleXMLElement->__construct('')
#1 /usr/www/users/xxx/catalog/includes/modules/payment/gps.php(150): gps->get_post_url()
#2 /usr/www/users/xxx/catalog//includes/classes/payment.php(146): gps->javascript_validation()
#3 /usr/www/users/xxx/catalog/includes/templates/exodus/templates/tpl_checkout_payment_default.php(15): payment->javascript_validation()
#4 /usr/www/users/xxx/catalog/includes/templates/exodus/common/tpl_main_page.php(151): require(/usr/www/users/...')
#5 /usr/www/users/xxx/catalog/index.php(97): require('/usr/www/users/...')
#6 {main}
thrown in /usr/www/users/xxx/catalog/includes/modules/payment/gps.php on line 298
Line 298 is
Code:
$gwResponse = @new SimpleXMLElement($response);
within this section
Code:
$xmlRequest->appendChild($xmlSale);
unset($response);
$response = $this->_makeRequest($xmlRequest);
$gwResponse = @new SimpleXMLElement($response);
if((string)$gwResponse->result == 1) {
$formURL = $gwResponse->{'form-url'};
$_SESSION['trans_id'] = (string)$gwResponse->{'transaction-id'};
} else {
print('<h2 style="color:red;">' . htmlentities((string)$gwResponse->{'result-text'}, ENT_COMPAT, "UTF-8") . ': </h2>');
print('<h3 style="color:red;"> Please fix account information.</h3>');
}
return $formURL;
}
I've gone back and forth with Bridgeway pay and basically they tell me, this is the module they have and when they will get around to updating it is unknown. In the meantime, the bank we use insists that Bridgeway is their new payment provider so I have no choice but to try to make this work.
I've attached the full gps.php file for you in case I didn't provide enough code above. Any and all assistance is GREATLY appreciated!
Attachment 16462
Bookmarks