@Override
    protected void doPost(HttpServletRequest request,
            HttpServletResponse response) throws ServletException, IOException {
        //"Handles post request.
        String jwt = request.getParameter("jwt");
        String orderID;
        String jwt_response = new JWT_Handler(ISSUER, SIGNING_KEY).deserialize(jwt);
        JsonParser parser = new JsonParser();
        Gson gson = new GsonBuilder().create();
        JsonArray payload = parser.parse("[" + jwt_response + "]").getAsJsonArray();
        Payload payload_1 = gson.fromJson(payload.get(0), Payload.class);
        // validate the payment request and respond back to Google
        if (payload_1.iss_getter().equals("Google")
                && payload_1.aud_getter().equals(ISSUER)) {
            if (payload_1.response_getter() != null
                    && payload_1.response_getter().orderId_getter() != null) {
                orderID = payload_1.response_getter().orderId_getter();
                if (payload_1.request_getter().currencyCode_getter() != null
                        && payload_1.request_getter().sellerData_getter() != null
                        && payload_1.request_getter().name_getter() != null
                        && payload_1.request_getter().price_getter() != null) {
                    // optional - update local database
                    // respond back to complete payment
                    response.setStatus(200);
                    PrintWriter writer = response.getWriter();
                    writer.write(orderID);
                }
            }

        }



    }