Skip to content

Improvements for API  #25

@present-g

Description

@present-g

Could we discuss some improvements for hosted-fields-sdk?

  1. CVV input has type="tel" instead it should be type="password" to hide the entered value CRITICAL
  2. It would be nice to get scrollHeight in onLoadCallback for the auto height of iframe, or other ways for auto height
  3. It would be nice to add .caption under inputs with the ability to fill with text in the object setup({fields: [ { caption: "Some content" } ]})
  4. All elements in the DOM must have classes. Now .input-container is wrapped in div without classes CRITICAL
  5. It would be nice to add Typescript typing for hosted-fields-sdk.
  6. It would be good if get and reset methods return a Promise
  7. It would be good if the get method returned data. Promise<data>
  8. It is necessary to add a callback to the event of user interaction with the fields to clear errors CRITICAL
  9. It is necessary to add a callback in case of problems loading content for iframe CRITICAL

Metadata

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