|
|
|
@ -102,7 +102,7 @@ class PaymentService extends AbstractService
|
|
|
|
|
$order->applied_at = date('Y-m-d H:i:s');
|
|
|
|
|
$order->pay_url = $url;
|
|
|
|
|
$order->save();
|
|
|
|
|
return $url;
|
|
|
|
|
return ['url' => $url];
|
|
|
|
|
} catch (ApiException $e) {
|
|
|
|
|
$order->status = 'APPLY_FAILED';
|
|
|
|
|
$order->applied_at = date('Y-m-d H:i:s');
|
|
|
|
@ -167,9 +167,9 @@ class PaymentService extends AbstractService
|
|
|
|
|
], $token);
|
|
|
|
|
$order->status = 'APPLY_SUCCESS';
|
|
|
|
|
$order->applied_at = date('Y-m-d H:i:s');
|
|
|
|
|
$order->acs_no = $result['acsNo'];
|
|
|
|
|
$order->acs_no = $result['body'] ?? '';
|
|
|
|
|
$order->save();
|
|
|
|
|
return $result['acsNo'];
|
|
|
|
|
return $result;
|
|
|
|
|
} catch (ApiException $e) {
|
|
|
|
|
$order->status = 'APPLY_FAILED';
|
|
|
|
|
$order->applied_at = date('Y-m-d H:i:s');
|
|
|
|
|