testing payment api

This commit is contained in:
David Bomba 2016-02-07 19:30:47 +11:00
parent 138749ce6f
commit 95e1baed29

View File

@ -101,7 +101,7 @@ class PaymentApiController extends BaseAPIController
return $this->response($data); return $this->response($data);
} }
/** /**
* @SWG\Post( * @SWG\Post(
* path="/payments", * path="/payments",
@ -155,6 +155,8 @@ class PaymentApiController extends BaseAPIController
$this->contactMailer->sendPaymentConfirmation($payment); $this->contactMailer->sendPaymentConfirmation($payment);
} }
Log::info($payment);
/* /*
$payment = Payment::scope($payment->public_id)->with('client', 'contact', 'user', 'invoice')->first(); $payment = Payment::scope($payment->public_id)->with('client', 'contact', 'user', 'invoice')->first();
$transformer = new PaymentTransformer(Auth::user()->account, Input::get('serializer')); $transformer = new PaymentTransformer(Auth::user()->account, Input::get('serializer'));