Lien d'achat SmartTag™ (MM_Purchase_Link)

Cette balise produit le lien avec lequel un membre peut interagir pour acheter un produit ou s'inscrire à un niveau d'adhésion gratuit. Pour devenir un lien fonctionnel, cette balise doit être utilisée en conjonction avec une balise d'ancrage (<a>), un bouton (<button>) ou toute autre méthode d'exécution d'un lien cliquable.

Un identifiant de produit ou un identifiant de niveau d'adhésion doit être spécifié pour indiquer ce que le membre achète ou ce à quoi il s'inscrit. Si aucun de ces éléments n'est spécifié, le lien servira de lien d'inscription pour l'application Niveau d'adhésion par défaut.

Attributs

productId (facultatif) – Indicates the ID of the product to purchase. Following a successful purchase, the member’s account will be updated appropriately. If the product is associated with a membership level or bundle, then that membership level or bundle will be applied to their account.

identifiant de membre (membershipId) (facultatif) – Indicates the ID of the membership level for the member to sign up for. If the membership level is a paid membership, then the default product from the membership level configuration will be used unless a specific product ID is specified in the ‘productId’ attribute.

autoLogin (facultatif) – When this is set to ‘true’ a login token will be appended to the URL so that when a member clicks on it they will be automatically logged in. The default value is ‘false’.

useCardOnFile (facultatif) – This attribute is only applicable when you’re utilizing a payment method that supports card on file functionality.

When using a card on file solution, if there’s a card on file available for the current user, purchase links will be generated in a way that instruct MemberMouse to use that user’s card on file to make the purchase otherwise a standard checkout link will be generated so the user can enter in their billing information on the checkout page.

If you set this attribute to ‘false’ then regardless of whether the current user has a card on file or not, purchase links will always take the member to the checkout page to complete their order. The default value is ‘true’.

bypassConfirmation (facultatif) – This attribute is only applicable when you’re utilizing a payment method that supports card on file functionality.

When using a card on file solution, if there’s a card on file available for the current user and they click on a purchase link, the default behavior is to display a confirmation message asking the user to confirm the purchase.

If you set this attribute to ‘true’ then the confirmation message will not be displayed and the user’s card on file will be billed. If you decide to bypass the confirmation message, it’s your responsibility to make it clear to the user that they will be charged when they click the purchase link. The default value is ‘false.

mode de paiement (facultatif) – This parameter is used for certain offsite payment methods. It instructs MemberMouse to generate a link that goes directly to the offsite payment method’s checkout form instead of going to the MemberMouse checkout page. The only valid value for this attribute is ‘clickbank’. The payment method specified must be active in your configuration du mode de paiement pour que cela fonctionne.

estCadeau (facultatif) – When this is set to ‘true’ the product being purchased will be purchased as a gift. The default value is ‘false’.

Utilisation
Exemple 1

Affiche un lien cliquable menant à la page de paiement du produit portant l'ID 4. Le texte du lien est le suivant : "Purchase Membership".

<a href="/fr/[MM_Purchase_Link productId='4']/">Achat d'une adhésion</a>
Exemple 2

Affiche un lien cliquable renvoyant à la page de paiement pour le produit portant l'ID 6. Le texte du lien est le suivant : "Purchase Bundle" (acheter l'offre groupée). Réglé pour que le membre se connecte automatiquement au site lorsqu'il clique sur le lien.

<a href="/fr/[MM_Purchase_Link productId='6' autoLogin='true']/">Achat de l'offre groupée</a>
Exemple 3

Affiche un lien cliquable menant à la page de paiement pour le niveau d'adhésion avec l'ID 1 (niveau d'adhésion gratuit par défaut). Le texte du lien est "S'inscrire gratuitement".

<code><a href="/fr/[MM_Purchase_Link membershipId='1']/">S'inscrire gratuitement</a>
Exemple 4 

Affiche un lien cliquable renvoyant à la page de paiement pour le produit portant l'ID 10. Le lien est paramétré pour renvoyer à la page de paiement même si le client a une carte dans son dossier. Le texte du lien est le suivant : "Purchase Bundle".

<code><a href="/fr/[MM_Purchase_Link productId='10' useCardOnFile='false']/">Achat de l'offre groupée</a>
Exemple 5 

Affiche un lien cliquable menant à la page de paiement pour le produit portant l'ID 10. Le lien est défini pas pour afficher la fenêtre de confirmation pour les liens à 1 clic. Le paiement sera appliqué immédiatement. Le texte du lien se lit comme suit : "1-Click Buy (Bypass Confirmation)".

<code><a href="/fr/[MM_Purchase_Link productId='10' bypassConfirmation='true']/">Achat en 1 clic (contournement de la confirmation)</a>
Cet article a-t-il été utile ?

Articles connexes

Vous ne trouvez pas la réponse que vous cherchez ?

Contactez notre équipe chargée de la réussite des clients
Contactez nous !