I am using Stripe as my gateway. It is generating the token correctly before submitting the form, but I still get an error page on submission with the message “The credit card number you submitted is invalid”. Obviously, there is no credit card number, since Stripe requires that there not be a name attribute on the card number input. How do I turn off that validation? Even setting required=“not credit_card_number” on the checkout_form tag doesn’t prevent the error. An abbreviated version of my template is below.
{exp:cartthrob:checkout_form return="cart/confirmation" required="not credit_card_number"}
<fieldset>
<legend>Billing Info</legend>
{exp:cartthrob:customer_info}
[Address fields removed for length]
{/exp:cartthrob:customer_info}
</fieldset>
<fieldset>
<legend>Payment Info</legend>
{if {exp:cartthrob:view_setting allow_gateway_selection="yes"}}
<dl>
<dt><label for="gateway">Payment Type:</label></dt>
<dd><select name="gateway" id="gateway">
<option value="[code from the payment tab of CartThrob admin page]" selected="selected">Credit Card</option>
<option value="[code from the payment tab of CartThrob admin page]">Check, Cash, or Gift Certificate</option>
</select></dd>
</dl>
{/if}
<div id="payment_stripe">
<dl>
<dt><label for="credit_card_number">Credit Card #:</label></dt>
<dd><input type="text" name="" value="" id="credit_card_number" /></dd>
</dl>
<dl class="cvv2">
<dt><label for="CVV2">Security Code:</label></dt>
<dd><input type="text" name="" value="" id="CVV2" /> <em>(on the back of card)</em></dd>
</dl>
<dl class="expiry">
<dt><label for="expiration_month">Expiration:</label></dt>
<dd>
<input type="text" name="" value="" placeholder="MM" id="expiration_month" /> /
<input type="text" name="" value="" placeholder="YYYY" id="expiration_year" />
</dd>
</dl>
</div>
<div id="payment_check">
<p class="info">You must provide a check, cash, or gift certificate for the complete amount before the event begins.</p>
</div>
</fieldset>
<div class="button_set">
<input type="submit" value="Complete Order" />
</div>
{/exp:cartthrob:checkout_form}
