Skip to main content

mbr_stripe_one_click_upsell

Usage

This shortcode processes a one click purchase for the specified product/subscription automatically upon clicking the Buy button without needing to re-enter credit card data.

The shortcode can be used anywhere. It would typically provide the 'Buy Now' buttons on all pages in any upsell/downsell process. Alternatively the 'Buy Now' button on a page a previous purchaser is redirected to using ActiveMember360, Module, Autologin With ActiveCampaign as a link in an email sent from ActiveCampaign.

Parameters

ParametersDescription
product_idThe product/subscription ID for the purchase.
Default: none.
Required: yes.
fallback_urlThe URL to which a user will be redirected if a purchase fails.
Defaults: none.
Required: no.
button_textThe text to display on the button.
Defaults: Purchase now!
Required: no.
button_imageThe URL of the image to use for the button.
Defaults: none.
Required: no.
button_styleThe CSS style to apply for the button.
Defaults: none.
Required: no.
Note

The product_id can be determined by viewing ActiveMember360, Payment, Products or ActiveMember360, Payment, Subscriptions and editing or hovering over the product/subscription. It is the value of the post parameter shown in the URL as an example https://yoursite.com/wp-admin/post.php?post=28&action=edit the product_id is 28.

Validity

This shortcode is only available when the ActiveMember360 Payment Module is active as detailed within ActiveMember360 Payment Module Activation.

Important

This shortcode only processes for a remote user who has made a previous purchase using the ActiveMember360 Payment Extension. It relies upon having the following data stored within ActiveCampaign:

  • Standard ActiveCampain fields:
    • First Name
    • Last Name
    • Email
  • ActiveMember360 contact fields:
    • billing_address_1
    • billing_city
    • billing_postcode
    • billing_country (and if billing_country is US also billing_state)
    • stripe_customer_id

The associated Stripe Customer ID must have a credit card stored against it within Stripe.

All of this information would typicaly be populated upon the first purchase using the Payment Extension i.e. prior to the use of the [mbr_stripe_one_click_upsell] shortcode.

Conditional Branching

This shortcode does NOT support conditional branching with [ELSE_stripe_one_click_upsell].

Nesting

Shortcode nesting is NOT supported.

Examples

Process a purchase of the product/subscription with ID 345 for the remote users when the button labelled 'Purchase now!' is clicked:

[mbr_stripe_one_click_upsell product_id='345']

API

Note

There is currently no ActiveMember360 API function equivalent for this shortcode.