Skip to main content

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

ParameterDescriptionDefaultRequired
tagidDefines one or more tags to assign upon successfully updating a credit card.noneNo
goalDefines the name of a Campaign Builder goal to apply to the contact upon successfully updating a credit card.noneNo
ccLISTSpecifies the credit cards that should appear in the CardType pulldown selector.Visa,MasterCard,American ExpressNo
SuccessMessageDefines an alternative to the standard success message.Your credit card information was successfully added. Thank you!No
ErrorMessageDefines 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_CVCDefines whether a CVC input field should be displayed and an entry required to process the form. Use 1 to require it, 0 otherwise.0No
addCardIfNoneAutomatically converts the "update" shortcode to "add" if there is no credit card on file. Use 1 to activate.0No
forcedefaultHides the checkbox option and automatically makes the card the default credit card. Specify 1 to force.0No
NoCardMessageDefines 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

ParameterDefault
CardNumberCard Number
CardTypeCard Type
SaveTextSave Changes
NameOnCardName On Card
BillAddress1Street Address 1
BillAddress2Street Address 2
BillCityCity
BillStateState
BillZipPostal Code
BillCountryCountry
PhoneNumberPhone Number
ExpirationMonthExpiration Month
ExpirationYearExpiration Year
CVCCVC
makedefaultMake 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']