wip
This commit is contained in:
@@ -31,22 +31,20 @@ class OnlinePaymentController extends Controller
|
||||
/** @var \App\Models\Branch\Branch */
|
||||
$bank = $data['bank_branch'];
|
||||
|
||||
info([
|
||||
'type' => gettype($paymentHistory->api_response),
|
||||
'message' => isset($paymentHistory->api_response['errorMessage']) ? $paymentHistory->api_response['errorMessage'] : 'no'
|
||||
]);
|
||||
/** @var \App\Modules\VisaMasterPaymentOrder\Models\VisaMasterPaymentOrderItem */
|
||||
$resource = $data['resource'];
|
||||
|
||||
// if ($data['success'] && $paymentHistory) {
|
||||
// info(OnlinePaymentRepo::syncWithBilling(
|
||||
// uuid: $paymentHistory->orderId,
|
||||
// bank_code: $bank->unique_code,
|
||||
// terminal_id: $paymentHistory->api_response,
|
||||
// account_number:,
|
||||
// rrn,
|
||||
// amount,
|
||||
// pay_purpose:
|
||||
// ));
|
||||
// }
|
||||
if ($data['success'] && $paymentHistory && is_array($paymentHistory->api_response)) {
|
||||
info(OnlinePaymentRepo::syncWithBilling(
|
||||
uuid: $paymentHistory->orderId,
|
||||
bank_code: $bank->unique_code,
|
||||
terminal_id: $paymentHistory->api_response['terminalId'],
|
||||
account_number: $resource->parent->sender_datas[0]['deposit_account'],
|
||||
rrn: $paymentHistory->api_response['authRefNum'],
|
||||
amount: $paymentHistory->api_response['amount'],
|
||||
pay_purpose: $resource->created_at->translatedFormat('F').' '.$resource->created_at->format('Y'),
|
||||
));
|
||||
}
|
||||
|
||||
return view(OnlinePaymentRepo::statusView(), $data);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user