1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 20:22:42 +01:00

API changes for mobile app

This commit is contained in:
Hillel Coren 2018-09-04 20:50:08 +03:00
parent 2a621cfbb9
commit 212451239f

View File

@ -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);
}