verygoodsecurity / collect-js-react

MIT License
1 stars 15 forks source link

Issue with Using Serializers in CardExpirationDateField #33

Closed nurcinozer closed 1 year ago

nurcinozer commented 1 year ago

I am currently using your library in my React project and I have encountered an issue regarding the usage of serializers in the CardExpirationDateField component. I would like to seek some guidance on how to utilize serializers effectively in this particular field.

Here are the details of the issue:

Expected Behavior

I expect to be able to use serializers in the CardExpirationDateField component to customize the formatting or validation of the expiration date input.

Current Behavior

I have attempted to use serializers in the CardExpirationDateField component, but I have not been successful in achieving the desired customization.

Possible Solution

I believe that providing a clear example or documentation on how to use serializers in the CardExpirationDateField component would greatly assist developers in understanding and leveraging this feature effectively.

Steps to Reproduce (for bugs)

N/A (This is a request for documentation or clarification)

Context

I am using your library to create a form for activating credit cards. It is important for me to be able to customize and validate the expiration date input based on specific requirements. Clear instructions or examples on using serializers would greatly benefit my development process.

Your Environment

Thank you for your attention to this matter. I appreciate your support in resolving this issue or providing further guidance on the usage of serializers in the CardExpirationDateField component. Please let me know if you need any additional information.

nurcinozer commented 1 year ago

Sorry, I've just found the guide: https://www.verygoodsecurity.com/docs/api/collect/#api-formfield