i4w_ccard_update
Usage
This shortcode is designed to automatically pull the subscriber's latest credit card from Keap and build an HTML form with that data. When submitted, the modified information is then updated in Keap.
By using the "addcardifnone" parameter, this "update" shortcode can automatically convert to an "add" shortcode if there is no credit card on file for a particular subscriber.
By default, a checkbox is provided through which the user can specify that the card added/modified should be used as the default credit card for his/her account.
[ELSE_ccard_update] conditional branching is NOT supported.
Shortcode nesting is NOT supported.
Parameters
| Parameter | Description | Default | Required |
|---|---|---|---|
| tagid | Defines one or more tags to assign upon successfully updating a credit card. | none | No |
| goal | Defines the name of a Campaign Builder goal to apply to the contact upon successfully updating a credit card. | none | No |
| ccLIST | Specifies the credit cards that should appear in the CardType pulldown selector. | Visa,MasterCard,American Express | No |
| SuccessMessage | Defines an alternative to the standard success message. | Your credit card information was successfully added. Thank you! | No |
| ErrorMessage | Defines an alternative to the standard error message. | Sorry but your credit card information could not be updated. Please try again later or contact the site's support staff. | No |
| req_CVC | Defines whether a CVC input field should be displayed and an entry required to process the form. Use 1 to require it, 0 otherwise. | 0 | No |
| addCardIfNone | Automatically converts the "update" shortcode to "add" if there is no credit card on file. Use 1 to activate. | 0 | No |
| forcedefault | Hides the checkbox option and automatically makes the card the default credit card. Specify 1 to force. | 0 | No |
| NoCardMessage | Defines a message to display if no credit card is on file. | You have no credit cards on file to update. Please add one. | No |
Label Parameters
| Parameter | Default |
|---|---|
| CardNumber | Card Number |
| CardType | Card Type |
| SaveText | Save Changes |
| NameOnCard | Name On Card |
| BillAddress1 | Street Address 1 |
| BillAddress2 | Street Address 2 |
| BillCity | City |
| BillState | State |
| BillZip | Postal Code |
| BillCountry | Country |
| PhoneNumber | Phone Number |
| ExpirationMonth | Expiration Month |
| ExpirationYear | Expiration Year |
| CVC | CVC |
| makedefault | Make this the default card |
Example
Basic usage:
Shortcode
[i4w_ccard_update]
With tags:
Shortcode
[i4w_ccard_update tagid='123,345']
With goal:
Shortcode
[i4w_ccard_update goal='cardupdated']
With auto-add if none:
Shortcode
[i4w_ccard_update addCardIfNone=1 ccLIST='Visa,MasterCard,American Express']
With CVC required:
Shortcode
[i4w_ccard_update req_CVC='1' forcedefault='1' ccLIST='Visa,MasterCard,American Express']