public ConfirmPaymentResponse confirmPayment(ConfirmPaymentRequest request)
    throws GongmingConnectionException, GongmingApplicationException {

    URL path = _getPath(CONFIRM_PAYMENT);
    ConfirmPaymentResponse response = _POST(path, request, ConfirmPaymentResponse.class);

    if (response.code != GMResponseCode.COMMON_SUCCESS) {
      throw new GongmingApplicationException(response.code.toString(), response.errorMessage);
    }
    return response;
  }