|
|
|
|
@ -16,13 +16,12 @@ class AlipayF2F
|
|
|
|
|
$config = $this->getOptions();
|
|
|
|
|
Log::info($config->toMap());
|
|
|
|
|
$alipay = Factory::setOptions($config);
|
|
|
|
|
Log::info($alipay);
|
|
|
|
|
dd("hi");
|
|
|
|
|
Log::info((array)$alipay);
|
|
|
|
|
$result = Factory::setOptions($this->getOptions())::payment()->faceToFace("这是一个测试商品", time(), "0.1", $auth_code);
|
|
|
|
|
$responseChecker = new ResponseChecker();
|
|
|
|
|
//处理响应或异常
|
|
|
|
|
if ($responseChecker->success($result)) {
|
|
|
|
|
Log::info(serialize($result));
|
|
|
|
|
Log::info((array)$result);
|
|
|
|
|
return [
|
|
|
|
|
"status" => true
|
|
|
|
|
];
|
|
|
|
|
|