kenkeiter / skeuocard

Skeuocard progressively enhances credit card inputs to provide a skeuomorphic interface.

Home Page:http://kenkeiter.com/skeuocard/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Stripe data attributes being removed.

reggi opened this issue · comments

I took the example code and added stripe attributes like data-stripe="number" to each of the inputs and they aren't rendering in the DOM. This is a bummer because I have to select each value manually.

The more I familiarize myself with it, I understand it better. You're replacing the whole form, still would be nice if these transfered over to the new inputs.

I agree, making this more Stripe friendly would be helpful.

I've placed the strip attributes and it seems to be working quite well on Mac/FF and Mac/Chrome? What is your platform?

My issue isn't with the Stripe attributes as it is with the name attribute. Is there a way to keep name from being used in the form?

@scottzirkel I was able to work around this by putting the following in the stripe success callback:

$form.find('[data-stripe]').val('')

Thanks, I ended up changing the InputSelectors on the fields. Yours has less code, though.