jondavidjohn/payform

Maestro card entry stops short of last 2 digits

Closed this issue · 6 comments

Can't input 6390 XXXX XXXX XXXX XX

😬 Plz don't publish actual card numbers

Verified the problem is that the input stops before the last 2 numbers.

Thanks for the report 👍

Hey @jondavidjohn First of all, great job... So I was wondering on the restrictCardNumber function you have the following code

if card and value.length > card.length[card.length.length - 1] e.preventDefault() else if value.length > 16 e.preventDefault()

Won't this restrict any card to a top of 16 digits?

@markolofsen @Stephs15 any known workaround on this?

this patch should fix the problem ☝️

Hi @markolofsen, is this no longer an issue with the published release?