diff --git a/app/Http/Controllers/iLinkTransactionController.php b/app/Http/Controllers/iLinkTransactionController.php index 2dabcd8..7be2b58 100755 --- a/app/Http/Controllers/iLinkTransactionController.php +++ b/app/Http/Controllers/iLinkTransactionController.php @@ -1919,8 +1919,8 @@ class iLinkTransactionController extends Controller 'payment_method' => 'CARD', 'customer_id' => $user->id, 'customer_email' => $user->email, - 'customer_name' => $withLinkedCard ? $identification->firstname : $request->input('customer_name', $destinataire?->firstname ?? ''), - 'customer_surname' => $withLinkedCard ? $identification->lastname : $request->input('customer_surname', $destinataire?->lastname ?? ''), + 'customer_name' => $withLinkedCard ? $identification->firstname : $request->input('customer_name', $destinataire?->firstname ?? $identification?->firstname), + 'customer_surname' => $withLinkedCard ? $identification->lastname : $request->input('customer_surname', $destinataire?->lastname ?? $identification?->lastname ), 'customer_address' => $withLinkedCard ? $identification->town : $request->input('customer_address'), 'customer_city' => $withLinkedCard ? $identification->town : $request->input('customer_city'), 'customer_country' => $country->code_country,