Search code examples
javascriptsquare-connect

SquareUp SqPaymentForm() - how to allow 4 digit cvv for Amex?


I have a payment form using SquareUp's SqPaymentForm(). It embeds iFrames into the checkout page. The problem is the CVV field only allows three digits. This is a problem for American Express card holders.

Being an iFrame hosted by squp, I cannot control that cvv field directly. I've searched squp's docs and cannot find how to enable 4 digits. Does anyone know how to make squp allow 4 digits here?

enter image description here


Solution

  • If an AMEX credit card number is detected, the form automatically switches to allowing a 4 digit CVV. Otherwise it will restricts to 3 digits.