#mattwoberts-luhn-check

1 messages · Page 1 of 1 (latest)

languid sable
#

Hi there!

#

Any of our test cards where you see a decline this should be the case

wheat lily
#

Sorry I'm not sure that helps... I'll try to explain

#

So I have a customer who enters a card number. The stripe JS API accepts it as valid, I get a PM. On the backend I then attach that PM to a customer - it's at this point (NOT when I attempt to take money), that stripe errors with an incorrect number error. I'm trying to recreate this scenario.

#

If it helps take a look at req_T8NI4txc3k2sc7

languid sable
#

Yep, that should work as well if you aren't confirming with a SetupIntent

#

If you just use stripe.createPaymentMethod I believe we should still tokenize the test card

#

And only decline on attachment

wheat lily
#

So if I use a test card, say 4000000000009995 (insuffient funds), it will pass the luhn check and it will successfully attach to the customer. I need it NOT to attach to the customer

#

(Sorry I didn't read your last message before I typed that)

#

So you think it will work?

languid sable
#

I believe it should work.

#

I don't have time to test it this sec, but should only take a couple mins to test it out

wheat lily
#

I'll play around with it - clocking off for the day now 🙂 Thanks