globalpayments / globalpayments-js

JavaScript library for web applications to connect to Heartland eCommerce & Global Payments eCommerce tokenization services
14 stars 23 forks source link

Does enableAutocomplete work? #51

Closed ajselvig closed 3 years ago

ajselvig commented 3 years ago

We have a Heartland integration that works fine except that I can't get browser autocomplete to work in the card number field. I'm configuring GlobalPayments with:

    GlobalPayments.configure(
        publicApiKey: '....'
        enableAutocomplete: true
    )

then constructing the form with GlobalPayments.ui.form.

We're current using globalpayments.js from here: https://api2.heartlandportico.com/SecureSubmit.v1/token/gp-1.3.0/globalpayments.js

No browser autocomplete happens when clicking/typing into the card number field. Is there something I'm missing on how to get this feature working?

Thanks!

slogsdon commented 3 years ago

@ajselvig v1.3.0 doesn't have the autocomplete feature as this was deployed after v1.3.0. You should be able to update your URL for globalpayment.js to https://js.globalpay.com/v1/globalpayments.js and see this work as expected.

ajselvig commented 3 years ago

Thanks, @slogsdon, that worked!