mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
API changes for mobile app
This commit is contained in:
parent
2a621cfbb9
commit
212451239f
@ -160,6 +160,10 @@ class PaymentApiController extends BaseAPIController
|
|||||||
$data['public_id'] = $publicId;
|
$data['public_id'] = $publicId;
|
||||||
$payment = $this->paymentRepo->save($data, $request->entity());
|
$payment = $this->paymentRepo->save($data, $request->entity());
|
||||||
|
|
||||||
|
if (Input::get('email_receipt')) {
|
||||||
|
$this->contactMailer->sendPaymentConfirmation($payment);
|
||||||
|
}
|
||||||
|
|
||||||
return $this->itemResponse($payment);
|
return $this->itemResponse($payment);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user