API changes for mobile app
This commit is contained in:
parent
2a621cfbb9
commit
212451239f
1 changed files with 4 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue