/home/techb158/immovalet.com/platform/plugins/payment/src/Supports
Edit: /home/techb158/immovalet.com/platform/plugins/payment/src/Supports/PaymentHelper.php (1750B)
Auth::check() ? Auth::id() : 0,
], $args);
$paymentChannel = Arr::get($data, 'payment_channel', PaymentMethodEnum::COD);
$orderIds = (array) $data['order_id'];
return app(PaymentInterface::class)->create([
'account_id' => Arr::get($data, 'account_id'),
'amount' => $data['amount'],
'currency' => $data['currency'],
'charge_id' => $data['charge_id'],
'order_id' => Arr::first($orderIds),
'customer_id' => Arr::get($data, 'customer_id'),
'customer_type' => Arr::get($data, 'customer_type'),
'payment_channel' => $paymentChannel,
'status' => Arr::get($data, 'status', PaymentStatusEnum::PENDING),
]);
}
}