Skip to content

Instantly share code, notes, and snippets.

@AlfredoCasado
Created January 22, 2011 19:43
Show Gist options
  • Save AlfredoCasado/791387 to your computer and use it in GitHub Desktop.
Save AlfredoCasado/791387 to your computer and use it in GitHub Desktop.
boolean confirmar() {
int elPrecioDeLaCompra = precio();
boolean tieneElUsuarioFondos = pasarelaDePago.tieneElUsuarioFondosPorValorDe(elPrecioDeLaCompra);
if (tieneElUsuarioFondos){
pasarelaDePago.cobrar(elPrecioDeLaCompra);
}
return tieneElUsuarioFondos;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment