func (p *politeiawww) handleVerifyUserPayment(w http.ResponseWriter, r *http.Request) {
	log.Tracef("handleVerifyUserPayment")

	// Get the verify user payment tx command.
	var vupt v1.VerifyUserPayment
	err := util.ParseGetParams(r, &vupt)
	if err != nil {
		RespondWithError(w, r, 0, "handleVerifyUserPayment: ParseGetParams",
			v1.UserError{
				ErrorCode: v1.ErrorStatusInvalidInput,
			})
		return
	}

	user, err := p.getSessionUser(r)
	if err != nil {
		RespondWithError(w, r, 0,
			"handleVerifyUserPayment: getSessionUser %v", err)
		return
	}

	vuptr, err := p.backend.ProcessVerifyUserPayment(user, vupt)
	if err != nil {
		RespondWithError(w, r, 0,
			"handleVerifyUserPayment: ProcessVerifyUserPayment %v", err)
		return
	}

	util.RespondWithJSON(w, http.StatusOK, vuptr)
}
// handleVerifyUserPayment checks whether the provided transaction
// is on the blockchain and meets the requirements to consider the user
// registration fee as paid.
handleVerifyUserPayment checks whether the provided transaction
is on the blockchain and meets the requirements to consider the user
registration fee as paid.
// handleVerifyUserPayment checks whether the provided transaction // is on the blockchain and meets the requirements to consider the user // registration fee as paid .
func (p *politeiawww) handleVerifyUserPayment(w http.ResponseWriter, r *http.Request) {
	log.Tracef("handleVerifyUserPayment")
	var vupt v1.VerifyUserPayment
	err := util.ParseGetParams(r, &vupt)
	if err != nil {
		RespondWithError(w, r, 0, "handleVerifyUserPayment: ParseGetParams",
			v1.UserError{
				ErrorCode: v1.ErrorStatusInvalidInput,
			})
		return
	}
	user, err := p.getSessionUser(r)
	if err != nil {
		RespondWithError(w, r, 0,
			"handleVerifyUserPayment: getSessionUser %v", err)
		return
	}
	vuptr, err := p.backend.ProcessVerifyUserPayment(user, vupt)
	if err != nil {
		RespondWithError(w, r, 0,
			"handleVerifyUserPayment: ProcessVerifyUserPayment %v", err)
		return
	}
	util.RespondWithJSON(w, http.StatusOK, vuptr)
}
func ( p * politeiawww ) handleVerifyUserPayment ( w http . ResponseWriter , r * http . Request ) { log . Tracef ( " " ) var vupt v1 . VerifyUserPayment err := util . ParseGetParams ( r , & vupt ) if err != nil { RespondWithError ( w , r , 0 , " " , v1 . UserError { ErrorCode : v1 . ErrorStatusInvalidInput , } ) return } user , err := p . getSessionUser ( r ) if err != nil { RespondWithError ( w , r , 0 , " " , err ) return } vuptr , err := p . backend . ProcessVerifyUserPayment ( user , vupt ) if err != nil { RespondWithError ( w , r , 0 , " " , err ) return } util . RespondWithJSON ( w , http . StatusOK , vuptr ) }
handleVerifyUserPayment checks whether the provided transaction
is on the blockchain and meets the requirements to consider the user
registration fee as paid.
handleVerifyUserPayment checks whether the provided transaction is on the blockchain and meets the requirements to consider the user registration fee as paid .
// Get the verify user payment tx command.