[memb_keap_creditcard_expires]
Description
An expiry warning for the member's default card, the most recently
added card on file. The wrapped content shows only while that card
expires within the days window, which makes it the natural banner
in front of a card update form: set days="30" and every member
whose card expires this month sees the warning, everyone else sees
nothing, and the banner disappears on its own once the card is
replaced.
While the content shows, it can reference the card:
%%days_left%% prints the days remaining, and any card field prints
by name, so Your %%CardType%% ending in %%Last4%% expires in %%days_left%% days. renders as a complete sentence.
A card stays valid through the last day of its expiration month, and
that day counts. With the default days="0" the content shows only
once the card's final day has arrived; cards that expire fully drop
off the member's list, so in practice you set a window.
The member must be linked to a Keap contact: administrators see an admin notice, and nothing renders in feeds. If Keap cannot be reached, nothing renders rather than warning on unknown data.
Shortcode Examples
A 30-day warning in front of the card update form:
[memb_keap_creditcard_expires days="30"]
Your %%CardType%% ending in %%Last4%% expires in %%days_left%% days.
[memb_keap_add_creditcard button_text="Update Card"]
[/memb_keap_creditcard_expires]
With a branch for everyone else:
[memb_keap_creditcard_expires days="14"]
Your card expires soon. Update it to avoid an interruption.
[else_memb_keap_creditcard_expires]
Your card is current.
[/memb_keap_creditcard_expires]
Shortcode Parameters
days
Show the wrapped content while the card expires within this many
days. 0 limits it to the card's final day. Default: 0.
Shortcode Attributes
| Attribute | Value |
|---|---|
| Conditional | Yes |
| Nestable | No |
| Accepts formatting | Yes |