Selling design sets manually is not comfortable and 🙅 not the way.
The workflow of where the user was waiting for the license to be delivered 🚚, even the payment and order was complete instantly, is not good for the user experience.
Hence, we at thelostasura develop the integration for LeadCart. Your Asura plugin includes native integration for LeadCart by default. Selling design sets is easy!
This documentation will walk you through how to configure the LeadCart integration.
Configuring the LeadCart integration
Navigate to the Asura menu on the sidebar of your WordPress admin dashboard
On the “Setting” page, under the Vendor tab and LeadCart Section, turn it
on the Enable Integration setting.
on the Print license on the receipt email setting.
⚠ Make sure your customer has registered with their email on your WordPress website, else the generated license will not belong to anyone and the email not will be sent
Go to the “APIs” page on your dashboard sidebar. Click the Add New button. A new form will show up, and please fill in all required fields.
Label: fill the label field with anything that describes the API credential usage or purpose and easily distinguished it from another API credential. E.g., you can fill it with “My LeadCart Integration via webhook”
User: assign the owner of the API credential. The potential function of this feature is not available at the moment. You can set it to your admin (primary) account or your secondary account for best practice. Type the email, and the list of users will show.
Status: to allow API credentials to access and communicated with the Asura plugin, you need to Enabled it.
Override settings: The potential function of this feature is not available at the moment. You can leave the default value “Custom.”
Routes permissions: to allow the LeadCart to send a notification to your Asura plugin once an order completed, you need to set a proper routes permission; giving more permission means the API credential has more control over your Asura plugin. The explanation of each route permission available on a separate Document. Here the route permission you need for the LeadCart webhook notifier:
✅ leadcart → webhook
and click the Save button
The new API Credentials were created successfully. Click the
●●●●●●●●●●●●●●● on the Key column to reveal the API Key and Secret.
Copy the API Key and Secret for the next step.
Go to the “Generators” page on your dashboard sidebar.
Choose the generator you wish to use to generate a new license when a new LeadCart’s order is completed.
Copy the Generator’s id for the next step.
Now, open your LeadCart dashboard, navigate to the “Funnels” page and edit your Funnel.
Under the “Funnel Rules” tab, click the
➕ icon. The new modal form will be shown up.
on the “When” dropdown choose Order Completed, then click the
➕ Add New Trigger Group button.
on the “For The Products” dropdown choose all your product. Then on the Execute dropdown choose Webhooks
Now let us compose our webhook URL for the next step. Check the Compose the webhook URL section on the end of this documentation. (Scroll this page)
please fill in all required fields.
Label: fill the label field with anything that describes the funnel rule usage or purpose and easily distinguished it from another rule. E.g., you can fill it with “My Asura with the Generator #1″
Webhook Link: fill in the webhook link with the URL we compose in the previous step (#10).
Result Format: select “Json Format”
then click the Send Test Payload button to test it. Make sure the response returned with the
then click the
➕ Add button, followed by the Create Rule button.
- 🎉 Congratulations, you have configured the LeadCart integration successfully.
Learn by watching a brand new screencast on YouTube!
Compose the webhook URL
# where the variable is
YOUR_WEBSITE_URL = the URL of your WordPress website
LICENSE_AMOUNT = the amount of license that will be generated
YOUR_API_KEY = the API Key from step #4
YOUR_API_SECRET = the API Secret from step #4
REMOTE_ID = (optional) if you want to generate a new license on a remote site, fill with the remote's id. leave it blank if you want to generate the license on YOUR_WEBSITE_URL site
GENERATOR_ID = the generator id from step #5. If you fill in the REMOTE_ID, make sure the generator id is from your remote site.
Note: pay attention to the URL's http(s):// protocol.