def consultar(cls, transaction_id): request = GatewayRequest(LocawebGatewayConfig.base_endpoint(), action="/" + str(transaction_id)) response = GatewayResponse(response=request.get(cls.gateway_params())) return response.parse()
def cancelar(cls, transaction_id): request = GatewayRequest(LocawebGatewayConfig.base_endpoint(), action="/" + str(transaction_id) + "/estornar") response = GatewayResponse(response=request.post(cls.gateway_params())) return response.parse()
def criar(cls, params={}): request = GatewayRequest(LocawebGatewayConfig.base_endpoint(), action="/") response = GatewayResponse(response=request.post(cls.gateway_params(params))) return response.parse()