Apply Credit Card Validation to Text Fields

For our purposes, we plan to generate PDF “contracts” using a Gravity Form, but won’t actually be storing any data on the site. Every entry will get deleted after submission.

Part of our process is to have the user add credit card details, but as I understand it, the Credit Card field doesn’t actually store that data, I was wondering if there was either:

  1. A way to apply the same credit card field design & validation to regular text fields that store the data. I like that it identifies the card type and lets you know if it’s a valid format or not.
  2. A way to have the credit card fields actually save the data instead of passing through an API.

Any ideas would be great!