Skip to main content

LastLink

Follow this step-by-step guide to integrate your sales flow with Mentorfy's delivery flow using LastLink.

Before configuring the webhook in LastLink, create an Entry URL in Mentorfy. This URL defines which products, categories, or classes will be unlocked when LastLink confirms a purchase.

  1. In Mentorfy, go to Integrations > Entry and click + New URL.

  2. Fill in the URL details:

  • In Name, use something easy to identify, such as LastLink - Product Name.
  • In Payment Gateway, select LastLink. If the option does not appear, select Generic.
  • In Products to Unlock and/or Categories to Unlock, select the access that should be granted after the purchase.
tip

See the full step-by-step at How to create an Entry URL.

  1. Click Create and then use the Copy action to copy the generated Entry URL.

  2. Log in to your LastLink account and access the product that should trigger the webhook.

Product list in LastLink

  1. In the product sidebar menu, click Integrations. Search for Lastlink - Webhook and click Activate.
Integrations menu in the LastLink product

Lastlink - Webhook card with Activate button

  1. With the integration active, click New webhook in the upper right corner.
New webhook button in LastLink

  1. Fill in the webhook details:
  • In Webhook name, use an easy-to-identify name, such as Mentorfy.
  • In URL, paste exactly the Entry URL copied from Mentorfy.
LastLink webhook form with name and URL

  1. In the Events section, click Select to choose the events that Mentorfy should receive.
Select events button in LastLink webhook

Recommended events for granting, updating, or removing access:

  • Purchase_Order_Confirmed
  • Recurrent_Payment
  • Product_Access_Started
  • Product_Access_Ended
  • Subscription_Expired
  • Payment_Refund
  • Payment_Chargeback
  • Active_Member_Notification
  • Subscription_Product_Acess
info

LastLink uses the spelling Subscription_Product_Acess for this event name. If this option appears in the dashboard, select it exactly as displayed.

After selecting the desired events, click Confirm.

Event selection modal in LastLink webhook

  1. Before saving, you can click Test to check if the registered URL responds correctly. To finish, click Save.
Test and Save buttons for the LastLink webhook

Testing the integration

After configuring the webhook in LastLink and Mentorfy:

  1. Make a test sale or use a test event available in LastLink.
  2. Check if the event appears in Mentorfy's integration logs.
  3. Confirm whether the customer appears in the journey and in Mentorfy's customer list.
  4. If access is not granted, check that the Entry URL copied from Mentorfy is correct and that the recommended events were selected.

If you want to view the technical content sent by LastLink, use a tool like Webhook.site for testing only. To grant real access, the URL must be the Mentorfy URL.

Example of events received in Webhook.site

Conclusion

Once you complete these steps, the integration will be complete and you will be able to see your customers in the journey and in your customer list in Mentorfy.

If you have any questions, contact our support via the chat on the platform or by email at contato@mentorfy.io