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