我正在使用 php paysafe SDK ( https://github.com/paysafegroup/paysafe_sdk_php )实现支付系统
class_implements():类退款不存在,无法加载
我能够像这样创建类 Refund$r = new Refund()
但不能使用class_implements()
.
paysafe SDK 的开发人员在 windows 下,我在 ubuntu 上,这会有所不同class_implements()
吗?
$refunds = $this->client->cardPaymentService()->getRefunds(new Refund(array('id' => $p->refund_num)));// class exist
$r = new Refund(); // class exist
class_implements("Refund"); // class_implements(): Class Refund does not exist and could not be loaded
$test = new Pagerator($this->client, $refunds , "Refund"); // class_implements(): Class Refund does not exist and could not be loaded
public function __construct(\Paysafe\PaysafeApiClient $client, $data, $className)
{
if (!in_array('Paysafe\Pageable', class_implements($className))) {
throw new PaysafeException("$className does not implement \Paysafe\Pageable");
}
$this->client = $client;
$this->className = $className;
$this->arrayKey = call_user_func($className . '::getPageableArrayKey');
$this->position = 0;
$this->parseResponse($data);
}