wip
This commit is contained in:
@@ -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,
|
||||
]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user