public function checkPay($id) { $api = new Api(); $state = PaymentCloud::stateOrder($api->id(), $id, true); return Response::json(['data' => $state, 'message' => $state['message']]); }