From 212451239f13071590ca7666bfb3b5381c063ad1 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Tue, 4 Sep 2018 20:50:08 +0300 Subject: [PATCH] API changes for mobile app --- app/Http/Controllers/PaymentApiController.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/Http/Controllers/PaymentApiController.php b/app/Http/Controllers/PaymentApiController.php index 164f34f3416e..74091a61bcb5 100644 --- a/app/Http/Controllers/PaymentApiController.php +++ b/app/Http/Controllers/PaymentApiController.php @@ -160,6 +160,10 @@ class PaymentApiController extends BaseAPIController $data['public_id'] = $publicId; $payment = $this->paymentRepo->save($data, $request->entity()); + if (Input::get('email_receipt')) { + $this->contactMailer->sendPaymentConfirmation($payment); + } + return $this->itemResponse($payment); }