Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem Credit Card Field on Safari Browser #31

Open
yahyafakhroji opened this issue Oct 5, 2016 · 0 comments
Open

Problem Credit Card Field on Safari Browser #31

yahyafakhroji opened this issue Oct 5, 2016 · 0 comments

Comments

@yahyafakhroji
Copy link

Hey guys, I have a problem Credit Card field on gravity form..
we can't input data to gravity form because we got an error message when we use Safari browser (it working on Chrome and Firefox)..
My team did some check on the code and found different format on 'expiration_date' field..

This is the 'expiration_date' format data on Chrome and Firefox (1st format)

array (size=2)
0 => string '2' (length=1)
1 => string '2016' (length=4)

and this is the 'expiration_date' format data on Safari (2nd format)

array (size=4)
0 => string '' (length=0)
1 => string '2' (length=1)
2 => string '' (length=0)
3 => string '2017' (length=4)

By default Gravity Form and Gravity Form Braintree Add-Ons will use first format data, so when data is processed on Safari, the value of Expiration Date will be 'null'..

My team tried to fix the code, and it working on safari now..
This is the code, I hope this code can help..
http://pastebin.com/yt74df5M
http://pastebin.com/0MLCeTTD

Thank you..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant