example of iugu checkout for Rails does not work

Asked

Viewed 336 times

0

I’m trying to make this example of yugu work: https://iugu.com/referencias/exemplo-de-checkout

I have an account in iugu in test mode.

I followed the steps of this tutorial, made the necessary modifications like putting my id Account in the defined place and the key api in the controller. I am in test mode and using the test key api. I am using the test credit card 4111 1111 1111 1111. However the return of Charge.Success is always false and there is no error message.

  • Carlos, all right? (: You share, please, your source code with us to see what’s going on?

  • all good? Did you ever look at what’s in Charge.errors? This is the object where we store the errors that come back from the API. Abs, Marcelo

  • I was able to solve the problem from the error data in Charge.errors. My suggestion is personal from iugu to change the sample code so as to log the error data in case the transaction fails. When I was trying to solve this problem, I came in contact with iugu online support a few times to get this kind of information, but no one could answer me properly. A basic example of checkout with this type of information saves a good job of support from you and me too. Here’s the tip ;)

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.