Skip to content

Problem Credit Card Field on Safari Browser #31

Open
@yahyafakhroji

Description

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..

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions