I want to use Authorize.net for my subscription checkout - what fields do I need to include on the Checkout page?
Start by making sure you've integrated Authorize.net on the Settings > General page. If you need help setting up your API keys, refer to How do I integrate Authorize.net for credit card payments?.
After you've added Authorize.net as your credit card payment option, you'll need to update both the Checkout page, the Manage Billing/Shipping page, and anywhere else you might be collecting credit card information (such as the Account Dashboard page).
The first thing we recommend is to take a backup of your page styles to make sure you can roll back your changes in case you have any trouble. Even better, test this implementation on your development site first!
Once you've taken your backup, go to Settings > Page Styles within Conjured Subscriptions, and find the section of your code where the credit card fields should be displayed. Add the following fields:
<div data-creditcard-selected> <label for="cardNumber">Credit Card Number</label> <input type="text" id="cardNumber" /> <label for="expMonth">Expiration Month (MM)</label> <input type="text" id="expMonth" maxlength="2" /> <label for="expYear">Expiration Year (YYYY)</label> <input type="text" id="expYear" maxlength="4" /> <label for="cardCode">CVC</label> <input type="text" id="cardCode" maxlength="4" /> <input type="hidden" name="dataValue" id="dataValue" /> <input type="hidden" name="dataDescriptor" id="dataDescriptor" /> </div>
Style the fields however you'd like, but make sure they're contained in a div with the "data-creditcard-selected" parameter, and that the ids match the ones in the example above.
That's all there is to it - Authorize.net should now function as your credit card processor. If you have any trouble with the implementation, don't hesitate to reach out to us at email@example.com.