首页 > 解决方案 > Authorize.Net API 没有响应

问题描述

突然间,我过去几年使用的代码现在开始抛出错误。我正在使用 codeigniter php 框架。

无法弄清楚发生了什么。

A PHP Error was encountered
Severity: Notice

Message: Undefined property: AuthorizeNetTD_Response::$xpath_xml

Filename: shared/AuthorizeNetXMLResponse.php

Line Number: 54

Backtrace:

File: /home/directpr/public_html/reports/new/application/lib/shared/AuthorizeNetXMLResponse.php
Line: 54
Function: _error_handler

File: /home/directpr/public_html/reports/new/application/controllers/Collectionupdate.php
Line: 258
Function: xpath

File: /home/directpr/public_html/reports/new/index.php
Line: 292
Function: require_once


Fatal error: Uncaught TypeError: Argument 1 passed to CI_Exceptions::show_exception() must be an instance of Exception, instance of Error given, called in /home/directpr/public_html/reports/new/system/core/Common.php on line 658 and defined in /home/directpr/public_html/reports/new/system/core/Exceptions.php:190 Stack trace: #0 /home/directpr/public_html/reports/new/system/core/Common.php(658): CI_Exceptions->show_exception(Object(Error)) #1 [internal function]: _exception_handler(Object(Error)) #2 {main} thrown in /home/directpr/public_html/reports/new/system/core/Exceptions.php on line 190
A PHP Error was encountered
Severity: Error

Message: Uncaught TypeError: Argument 1 passed to CI_Exceptions::show_exception() must be an instance of Exception, instance of Error given, called in /home/directpr/public_html/reports/new/system/core/Common.php on line 658 and defined in /home/directpr/public_html/reports/new/system/core/Exceptions.php:190 Stack trace: #0 /home/directpr/public_html/reports/new/system/core/Common.php(658): CI_Exceptions->show_exception(Object(Error)) #1 [internal function]: _exception_handler(Object(Error)) #2 {main} thrown

Filename: core/Exceptions.php

Line Number: 190

Backtrace:

标签: codeigniter-3authorize.net

解决方案


解决了这个问题。这是 Authorize 的问题,作为解决方案,我们已将 Live URL 更改为https://api2.authorize.net/xml/v1/request.api


推荐阅读