Last active
June 20, 2018 19:29
-
-
Save danielVargas/b2785bf1ab2f4e334fe801facdb2b4e1 to your computer and use it in GitHub Desktop.
Función getTransactionResult del archivo webpaynormal.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def getTransactionResult(token) | |
### Otras líneas de la funcionalidad | |
### ... | |
### | |
#Realizar el acknowledge | |
puts 'Se inicia acknowledgeTransaction...' | |
result = acknowledgeTransaction(token) | |
if(result['error_desc'] == 'TRX_OK') | |
puts 'response normal:...' | |
return response_array | |
else | |
response_array ={ | |
"error_desc" => 'La trasacción no se ha completado por exceder el tiempo de comunicación' | |
} | |
## Más adelante explicamos como realizar estos logs | |
WebpayInit.log('get_transaction_result', 'token: ' + token.to_s , 'response', response_array.to_s, token.to_s) | |
return response_array | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment