Link de compra SmartTag™ (MM_Purchase_Link)

Essa tag gera o link com o qual um membro pode interagir para comprar um produto ou se inscrever em um nível de associação gratuito. Para se tornar um link funcional, essa tag deve ser usada em conjunto com uma tag anchor (<a>), uma tag de botão (<button>) ou algum outro método de execução de um link clicável.

Um ID de produto ou um ID de nível de associação deve ser especificado para indicar o que o membro está comprando ou para o qual está se inscrevendo. Se nenhum dos dois for especificado, ele servirá como um link de inscrição para o Nível de associação padrão.

Atributos

productId (opcional) – 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.

membershipId (opcional) – 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 (opcional) – 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 (opcional) – 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 (opcional) – 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.

paymentMethod (opcional) – 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 configuração do método de pagamento para que isso funcione.

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

Uso
Exemplo 1

Exibe um link clicável que direciona para a página de checkout do produto com ID 4. O texto do link diz "Purchase Membership" (Comprar associação).

<a href="/pt/[MM_Purchase_Link productId='4']/">Compra de associação</a>
Exemplo 2

Exibe um link clicável que direciona para a página de checkout do produto com ID 6. O texto do link diz "Purchase Bundle" (Comprar pacote). Configurado para registrar automaticamente o membro no site ao clicar no link.

<a href="/pt/[MM_Purchase_Link productId='6' autoLogin='true']/">Pacote de compras</a>
Exemplo 3

Exibe um link clicável que direciona para a página de checkout do nível de associação com ID 1 (nível de associação gratuito padrão). O texto do link diz "Sign Up Free" (Registre-se gratuitamente).

<code><a href="/pt/[MM_Purchase_Link membershipId='1']/">Registre-se gratuitamente</a>
Exemplo 4 

Exibe um link clicável que direciona para a página de checkout do produto com ID 10. O link é definido para direcionar para a página de checkout mesmo que o cliente tenha um cartão registrado. O texto do link diz "Purchase Bundle" (Comprar pacote).

<code><a href="/pt/[MM_Purchase_Link productId='10' useCardOnFile='false']/">Pacote de compras</a>
Exemplo 5 

Exibe um link clicável que direciona para a página de checkout do produto com ID 10. O link está definido não para exibir o pop-up de confirmação para links de 1 clique. Aplicará o pagamento imediatamente. O texto do link é "1-Click Buy (Bypass Confirmation)".

<code><a href="/pt/[MM_Purchase_Link productId='10' bypassConfirmation='true']/">Compra com 1 clique (ignorar confirmação)</a>
Este artigo foi útil?

Artigos relacionados

Não consegue encontrar a resposta que está procurando?

Entre em contato com nossa Equipe de Sucesso do Cliente
Entre em contato conosco!