So I am new to both ruby on rails and stripe and am working on integrating a payment service on my website made with ruby on rails. I am using a guide to help me with this.
After I filled in the information in my form and click submit I receive this message:
Blockquote undefined local variable or method `stripe_card_token' for # Did you mean? stripe_customer_token
Looking in my stripe log I find the error message:
{
error:
{
message: "Your card number is incorrect."
type: "card_error"
param: "number"
code: "incorrect_number"
}
}
So at this point it is pretty clear that stripe has problem with my card number. But I find this very odd as I am working in test mode (stripe receives my publishable test key) and am using the card number for visa and American Express that stripe suggested themselves. See their suggestions here:https://stripe.com/docs/testing.
So I am really at a loss where the problem could possibly lie. This brings me to my question: What possible mistake could I have made that leads to this error message aside from the things I have already mentioned.
