kenkeiter / skeuocard

Skeuocard progressively enhances credit card inputs to provide a skeuomorphic interface.
http://kenkeiter.com/skeuocard/
MIT License
3.23k stars 231 forks source link

Stripe data attributes being removed. #128

Open reggi opened 10 years ago

reggi commented 10 years ago

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.

reggi commented 10 years ago

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.

scottzirkel commented 10 years ago

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

peterlada commented 10 years ago

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

scottzirkel commented 10 years ago

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?

csexton commented 10 years ago

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

$form.find('[data-stripe]').val('')
scottzirkel commented 10 years ago

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