This commit is contained in:
nurmuhammet committed 2025-09-09 11:37:08 +05:00
1 parent ed65172b07
commit 3e04b17edf
2 files changed
+10 -5

No files matched your search

+4 -4
View File
@@ -32,10 +32,10 @@ public function name(): string
*/
public function handle(ActionFields $fields, Collection $models)
{
/** @var \App\Modules\SberPaymentOrder\Models\SberPaymentOrderItem $item */
$item = $models->first();
/** @var \App\Modules\SberPaymentOrder\Models\SberPaymentOrderItem $orderItem */
$orderItem = $models->first();
$result = getSberCredentials($item);
$result = getSberCredentials($orderItem);
if (isset($result['error'])) {
$this->handleError($result);
@@ -55,7 +55,7 @@ public function handle(ActionFields $fields, Collection $models)
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'],
online_payment_tmt_amount: $orderItem->tmt_payment_amount,
pay_purpose: $sberPaymentOrder->created_at->translatedFormat('F').' '.$sberPaymentOrder->created_at->format('Y')
));