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