Search code examples
paypalpaypal-sandboxpaypal-rest-sdk

Paypal Smart Buttons - Expires Field (yy vs yyyy)


I just installed Paypal Smart Buttons on my website and to my surprise the Expires field does not get auto filled since it's MM/YY rather than MM/YYYY. I looked through the documentation and found nothing in regards how to change this. Has anyone managed to get around this issue?

Before: enter image description here

After: enter image description here


Solution

  • I did some research on this and found that if the attribute autocomplete="cc-exp-year" were set on the form field per Chrome's spec, it might make this field auto-complete automatically. I sent this tip PayPal's way for them to investigate as a potential bug/improvement since it'll be best to make this work for everyone.

    (There might be a way to make just your browser recognize the field, but that won't help customers)