This commit is contained in:
2025-09-09 11:33:28 +05:00
parent 40565033b6
commit ed65172b07
3 changed files with 52 additions and 29 deletions

View File

@@ -44,9 +44,20 @@ class SyncWithSystem extends Action
/** @var \App\Models\Payment\OnlinePaymentHistory $onlinePaymentResource */
$onlinePaymentResource = $result['onlinePaymentResource'];
/** @var \App\Modules\SberPaymentOrder\Models\SberPaymentOrder $sberPaymentOrder */
$sberPaymentOrder = $result['relatedResource'];
$response = checkOnlinePayment($onlinePaymentResource->orderId, $result['username'], $result['password']);
// syncWithBankSystem();
info(syncWithBankSystem(
online_payment_order_uuid: $onlinePaymentResource->orderId,
bank_unique_code: $sberPaymentOrder->branch->unique_code,
online_payment_terminal_id: $response['terminalId'],
user_deposit_account: $sberPaymentOrder->sender_deposit_account,
online_payment_auth_ref_num: $response['authRefNum'],
online_payment_tmt_amount: $response['paymentAmountInfo']['depositedAmount'],
pay_purpose: $sberPaymentOrder->created_at->translatedFormat('F').' '.$sberPaymentOrder->created_at->format('Y')
));
return Action::modal('modal-response', [
'title' => 'HALKBANK API',