⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.142
Server IP:
217.76.53.76
Server:
Linux vmi1397931.contaboserver.net 5.4.0-105-generic #119-Ubuntu SMP Mon Mar 7 18:49:24 UTC 2022 x86_64
Server Software:
Apache
PHP Version:
8.2.27
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
www
/
wwwroot
/
mydetails.com.ng
/
app
/
Repositories
/
View File Name :
AppointmentRepository.php
['card'], 'customer_email' => $input['email'], 'line_items' => [ [ 'price_data' => [ 'product_data' => [ 'name' => $vcard->name, ], 'unit_amount' => $input['amount'] * 100, 'currency' => $input['currency_code'], ], 'quantity' => 1, ], ], 'client_reference_id' => $vcard->id, 'mode' => 'payment', 'success_url' => url($successUrl).'?session_id={CHECKOUT_SESSION_ID}&vcard_id='.$vcard->id, 'cancel_url' => url($cancelUrl.'?error=payment_cancelled&vcard_id='.$vcard->id), ]); session()->put([ 'appointment_details' => $input, 'vcard_id' => $vcard->id, ]); $result = [ 'sessionId' => $session['id'], ]; return $result; } catch (\Exception $e) { throw new UnprocessableEntityHttpException($e->getMessage()); } } /** * @return mixed */ public function appointmentStoreOrEmail($input, $vcardUserEmail) { $appointment = ScheduleAppointment::create($input); Mail::to($input['email']) ->send(new AppointmentMail('emails.appointment_mail', __('messages.mail.book_appointment'), $input)); Mail::to($vcardUserEmail) ->send(new UserAppointmentMail('emails.user_appointment_mail', __('messages.mail.book_appointment'), $input)); return $appointment; } }