Created
November 7, 2016 02:19
-
-
Save andresprogra/5fabe101372f3d2abb9a1eba3007bb31 to your computer and use it in GitHub Desktop.
CREATE
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 create | |
### CODE | |
begin | |
conektaTokenId = params[:conektaTokenId] | |
customer = Conekta::Customer.find(current_user.idConekta) | |
card = customer.create_card({:token => conektaTokenId}) | |
rescue Conekta::ParameterValidationError => e | |
puts "\n\n\n\n\n #{e.message_to_purchaser} \n\n\n\n\n" | |
raise | |
#alguno de los parámetros fueron inválidos | |
end | |
### CODE | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ERROR SOLUCIONADO.