fix: missing recipient while doing ilink world transaction v2

This commit is contained in:
Djery-Tom 2023-10-04 13:45:32 +01:00
parent 2463b3037a
commit d3cf07cb6c
1 changed files with 2 additions and 2 deletions

View File

@ -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,