From 703ae1bb0bdcf1333acf8c5d61c0aed6c7d50b08 Mon Sep 17 00:00:00 2001 From: Nurmuhammet Allanov Date: Sat, 6 Sep 2025 12:04:56 +0500 Subject: [PATCH] wip --- .../SberPaymentOrderFieldsForDetail.php | 3 +-- .../Nova/Resources/NovaSberPaymentOrder.php | 3 +-- .../Payment/Billing/HandlesBillingSyncing.php | 20 +++++++++---------- 3 files changed, 12 insertions(+), 14 deletions(-) diff --git a/app/Modules/SberPaymentOrder/Nova/Resources/Concerns/SberPaymentOrderFieldsForDetail.php b/app/Modules/SberPaymentOrder/Nova/Resources/Concerns/SberPaymentOrderFieldsForDetail.php index 68f3e11..9c8df9e 100644 --- a/app/Modules/SberPaymentOrder/Nova/Resources/Concerns/SberPaymentOrderFieldsForDetail.php +++ b/app/Modules/SberPaymentOrder/Nova/Resources/Concerns/SberPaymentOrderFieldsForDetail.php @@ -89,8 +89,7 @@ class SberPaymentOrderFieldsForDetail Text::make( name: __('Goýum hasaby'), attribute: 'deposit_account' - ) - ->rules('required', 'max:255'), + )->displayUsing(fn ($value) => $value ? $value : '-'), ])->minRows(1)->rules('required'), SimpleRepeatable::make(__('Payee information'), 'payment_reciever', [ diff --git a/app/Modules/SberPaymentOrder/Nova/Resources/NovaSberPaymentOrder.php b/app/Modules/SberPaymentOrder/Nova/Resources/NovaSberPaymentOrder.php index 5a1c319..340b912 100644 --- a/app/Modules/SberPaymentOrder/Nova/Resources/NovaSberPaymentOrder.php +++ b/app/Modules/SberPaymentOrder/Nova/Resources/NovaSberPaymentOrder.php @@ -274,8 +274,7 @@ class NovaSberPaymentOrder extends Resource Text::make( name: __('Goýum hasaby'), attribute: 'deposit_account' - ) - ->rules('required', 'max:255'), + ), ])->minRows(1)->rules('required'), SimpleRepeatable::make(__('Payee information'), 'payment_reciever', [ diff --git a/app/Repos/Payment/Billing/HandlesBillingSyncing.php b/app/Repos/Payment/Billing/HandlesBillingSyncing.php index 43847f6..73bcb37 100644 --- a/app/Repos/Payment/Billing/HandlesBillingSyncing.php +++ b/app/Repos/Payment/Billing/HandlesBillingSyncing.php @@ -39,7 +39,7 @@ trait HandlesBillingSyncing $request = new Request( method: 'POST', - uri: 'http://10.3.158.102:8888/api/paytrn/new', + uri: 'http://10.3.158.102:9999/api/paytrn/new', headers: [ 'Content-Type' => 'application/json', 'Authorization' => 'Basic YWRtaW46UUFad3N4MTIz', @@ -50,16 +50,16 @@ trait HandlesBillingSyncing $client = new Client; $response = $client->sendAsync($request)->wait(); - // curl --location --request POST 'http://10.3.158.102:8888/api/paytrn/new' \ - // --header 'Authorization: Basic YWRtaW46UUFad3N4MTIz' \ + // curl --location 'http://10.3.158.102:9999/api/paytrn/new' \ // --header 'Content-Type: application/json' \ - // --data-raw '{ - // "ecomId" : "0c406ee2-097d-42f7-86c8-18127bd87e10", - // "agentId" : "1307", - // "eposId" : "30400225", - // "account" : "4324234234", - // "rnn" : "002959773584", - // "amount" : 0.1, + // --header 'Authorization: Basic YWRtaW46UUFad3N4MTIz' \ + // --data '{ + // "ecomId" : "12345-12345-12345-12345", + // "agentId" : "1304", + // "eposId" : "30401238", + // "account" : "130420912769753", + // "rnn" : "110784016238", + // "amount" : 895.46, // "payPurpose" : "Mart 2025" // }'