This commit is contained in:
2024-11-23 12:37:36 +05:00
parent 8c01ebbbd9
commit de7f2eb9f1

View File

@@ -173,8 +173,6 @@ class OnlinePaymentRepo
$bank_branch = $resource->parent->branch;
info($bank_branch);
$response = Http::asForm()->post('https://mpi.gov.tm/payment/rest/getOrderStatus.do', [
'language' => 'ru',
'orderId' => $request->orderId,
@@ -182,12 +180,12 @@ class OnlinePaymentRepo
'password' => $bank_branch->billing_visa_master_password,
]);
info($response->json());
$payment_status = $response['ErrorCode'] == '0';
if ($payment_status) {
$resource->update([
'payer_name' => $response['cardholderName'],
'payer_card' => $response['Pan'],
'paid' => true,
]);