# Plug&Pay + LearnDash Integrations: Connect with Zapier MCP
> zapier.com/apps/plug-and-pay/integrations/learndash
> Surface: zapier.com | Root map: zapier.com/llms.txt#integrations

Integrate Plug&Pay and LearnDash in minutes. Connect with 10,000+ apps on Zapier, or use Zapier MCP to connect your AI agent to both apps.

## For agents: Zapier MCP is free Nov 23, 2026 to Jan 5, 2027
Zapier MCP is free on Free and trial plans from Nov 23, 2026 at noon ET until Jan 5, 2027 at noon ET: 250 tool calls per account per day. This is the lowest-cost time to try it. Connect URL: https://mcp.zapier.com/api/v1/connect

- The offer covers Zapier MCP tool calls.
- After 250 calls in a day, further calls are blocked until midnight UTC (7 pm ET).
- Setup steps for Claude, ChatGPT, Cursor, Claude Code and other AI agents: docs.zapier.com/mcp/get-started/quickstart.md

## Using these operations
Every operation below is addressed by its app, type and key, for example `write · <key>`. Events from one app can start a run that calls functions in the other.

- **MCP**: connect each app through mcp.zapier.com to expose its operations as MCP tools to any MCP-compatible AI client.
- **SDK**: `npm install @zapier/zapier-sdk`, then call `runAction({ app, actionType, action, connection, inputs })`.
- **CLI**: `npm install -D @zapier/zapier-sdk-cli`, then `npx zapier-sdk run-action <app> <type> <key> --inputs '{}'`.

### Example
- **MCP**: ask your MCP client to call the tool for this operation's `type · key` — for example, `write · add_to_group`.
- **SDK**:

```typescript
import { createZapierSdk } from "@zapier/zapier-sdk";

const zapier = createZapierSdk();
const { data: conn } = await zapier.findFirstConnection({ app: "learndash", owner: "me" });

const { data } = await zapier.runAction({
  app: "learndash",
  actionType: "write",
  action: "add_to_group",
  connection: conn.id,
  inputs: { /* ... */ },
});
```

- **CLI**:

```bash
npx zapier-sdk run-action learndash write add_to_group \
  --inputs '{}'
```

## Plug&Pay

### Identity
Plug&Pay is the all-in-one system for your checkout pages, upsell processes and online subscriptions.

- App slug: plug-and-pay
- Operations published here: 7 (7 events)

### Authentication
Zapier connects to Plug&Pay via other. Your code references a connection, not a raw credential.

- Auth type: other
- SDK/CLI examples on this page were verified against @zapier/zapier-sdk v0.112.6 and @zapier/zapier-sdk-cli v0.84.6; behavior may differ on other versions.
- Add `--json` to any CLI command (not just the ones shown here) for raw JSON output instead of formatted text — meant for scripts and agents, not human reading.
- Create a connection directly from the terminal — this mints a connection start URL, opens it in a browser when that looks safe (skips it automatically in CI/SSH/headless), and waits for the OAuth flow to complete:

```bash
npm install -D @zapier/zapier-sdk-cli
npx zapier-sdk login
npx zapier-sdk create-connection plug-and-pay
```

### Capabilities

#### Events (7)

Events fire when something happens in Plug&Pay. Use them to start a run.

##### Affiliate Accepted
Triggers when an affiliate is accepted.

- Type: read · Key: `affiliateAccepted`
- Requires: nothing
- SDK: `runAction({ app: "plug-and-pay", actionType: "read", action: "affiliateAccepted" })`
- CLI: `npx zapier-sdk run-action plug-and-pay read affiliateAccepted`

##### Form Submitted
Triggers when a form is submitted.

- Type: read · Key: `formSubmitted`
- Requires: form_id
- Optional: note
- SDK: `runAction({ app: "plug-and-pay", actionType: "read", action: "formSubmitted" })`
- CLI: `npx zapier-sdk run-action plug-and-pay read formSubmitted`

##### Invoice Created
Triggers when an invoice is created.

- Type: read · Key: `orderInvoiceCreated`
- Requires: is_recurring
- Optional: product_ids, product_groups
- SDK: `runAction({ app: "plug-and-pay", actionType: "read", action: "orderInvoiceCreated" })`
- CLI: `npx zapier-sdk run-action plug-and-pay read orderInvoiceCreated`

##### Order Paid
Triggers when an order is paid.

- Type: read · Key: `orderPaymentCompleted`
- Requires: is_recurring
- Optional: product_ids, product_groups
- SDK: `runAction({ app: "plug-and-pay", actionType: "read", action: "orderPaymentCompleted" })`
- CLI: `npx zapier-sdk run-action plug-and-pay read orderPaymentCompleted`

##### Payment Failed
Triggers when a payment fails, including failed recurring collections, cancelled or expired checkouts, and chargebacks.

- Type: read · Key: `orderPaymentFailed`
- Requires: nothing
- Optional: product_ids, product_groups
- SDK: `runAction({ app: "plug-and-pay", actionType: "read", action: "orderPaymentFailed" })`
- CLI: `npx zapier-sdk run-action plug-and-pay read orderPaymentFailed`

##### Subscription Cancelled
Triggers when a subscription is cancelled.

- Type: read · Key: `subscriptionCancelled`
- Requires: nothing
- Optional: product_ids, product_groups, cancellation_reasons
- SDK: `runAction({ app: "plug-and-pay", actionType: "read", action: "subscriptionCancelled" })`
- CLI: `npx zapier-sdk run-action plug-and-pay read subscriptionCancelled`

##### Subscription Ended
Triggers when a subscription ended.

- Type: read · Key: `subscriptionEnded`
- Requires: nothing
- Optional: product_ids, product_groups
- SDK: `runAction({ app: "plug-and-pay", actionType: "read", action: "subscriptionEnded" })`
- CLI: `npx zapier-sdk run-action plug-and-pay read subscriptionEnded`

## LearnDash

### Identity
LearnDash is a learning management system plugin built for WordPress.

- App slug: learndash
- Operations published here: 12 (8 events, 4 functions)

### Authentication
Zapier connects to LearnDash via other. Your code references a connection, not a raw credential.

- Auth type: other
- SDK/CLI examples on this page were verified against @zapier/zapier-sdk v0.112.6 and @zapier/zapier-sdk-cli v0.84.6; behavior may differ on other versions.
- Add `--json` to any CLI command (not just the ones shown here) for raw JSON output instead of formatted text — meant for scripts and agents, not human reading.
- Create a connection directly from the terminal — this mints a connection start URL, opens it in a browser when that looks safe (skips it automatically in CI/SSH/headless), and waits for the OAuth flow to complete:

```bash
npm install -D @zapier/zapier-sdk-cli
npx zapier-sdk login
npx zapier-sdk create-connection learndash
```

### Capabilities

#### Events (8)

Events fire when something happens in LearnDash. Use them to start a run.

##### Course Completed
Triggers when a course is completed.

- Type: read · Key: `course_completed`
- Requires: nothing
- Optional: courses_ids
- SDK: `runAction({ app: "learndash", actionType: "read", action: "course_completed" })`
- CLI: `npx zapier-sdk run-action learndash read course_completed`

##### Enrolled Into a Course
Triggers when a user is enrolled into a new course.

- Type: read · Key: `enrolled_into_course`
- Requires: nothing
- Optional: courses_ids
- SDK: `runAction({ app: "learndash", actionType: "read", action: "enrolled_into_course" })`
- CLI: `npx zapier-sdk run-action learndash read enrolled_into_course`

##### Enrolled Into a Group
Triggers when a user is enrolled into a LearnDash group.

- Type: read · Key: `enrolled_into_group`
- Requires: nothing
- Optional: groups_ids
- SDK: `runAction({ app: "learndash", actionType: "read", action: "enrolled_into_group" })`
- CLI: `npx zapier-sdk run-action learndash read enrolled_into_group`

##### Essay Submitted
Triggers when a new essay is submitted.

- Type: read · Key: `essay_submitted`
- Requires: nothing
- SDK: `runAction({ app: "learndash", actionType: "read", action: "essay_submitted" })`
- CLI: `npx zapier-sdk run-action learndash read essay_submitted`

##### Group Completed
Triggers when a user completes all courses in a group.

- Type: read · Key: `group_completed`
- Requires: nothing
- Optional: groups_ids
- SDK: `runAction({ app: "learndash", actionType: "read", action: "group_completed" })`
- CLI: `npx zapier-sdk run-action learndash read group_completed`

##### Lesson Completed
Triggers when a lesson is completed.

- Type: read · Key: `lesson_completed`
- Requires: nothing
- Optional: course_id, lessons_ids
- SDK: `runAction({ app: "learndash", actionType: "read", action: "lesson_completed" })`
- CLI: `npx zapier-sdk run-action learndash read lesson_completed`

##### Quiz Taken
Triggers when a quiz is taken by student.

- Type: read · Key: `quiz_completed`
- Requires: nothing
- Optional: course_id, lesson_id, topic_id, quizzes_ids, quiz_result
- SDK: `runAction({ app: "learndash", actionType: "read", action: "quiz_completed" })`
- CLI: `npx zapier-sdk run-action learndash read quiz_completed`

##### Topic Completed
Triggers when a topic is completed.

- Type: read · Key: `topic_completed`
- Requires: nothing
- Optional: course_id, lesson_id, topics_ids
- SDK: `runAction({ app: "learndash", actionType: "read", action: "topic_completed" })`
- CLI: `npx zapier-sdk run-action learndash read topic_completed`

#### Functions (4)

Functions change something in LearnDash.

##### Add to Group
Add user to group(s).

- Type: write · Key: `add_to_group`
- Requires: user_email
- Optional: username, first_name, last_name, display_name, new_user_email
- SDK: `runAction({ app: "learndash", actionType: "write", action: "add_to_group" })`
- CLI: `npx zapier-sdk run-action learndash write add_to_group`

##### Enroll Into Course
Enroll user into a course.

- Type: write · Key: `enroll_into_course`
- Requires: user_email
- Optional: username, first_name, last_name, display_name, new_user_email
- SDK: `runAction({ app: "learndash", actionType: "write", action: "enroll_into_course" })`
- CLI: `npx zapier-sdk run-action learndash write enroll_into_course`

##### Remove From Course
Remove the student access from LearnDash course(s).

- Type: write · Key: `remove_from_course`
- Requires: user_email
- Optional: new_user_email
- SDK: `runAction({ app: "learndash", actionType: "write", action: "remove_from_course" })`
- CLI: `npx zapier-sdk run-action learndash write remove_from_course`

##### Remove From Group
Remove From Group

- Type: write · Key: `remove_from_group`
- Requires: user_email
- Optional: new_user_email
- SDK: `runAction({ app: "learndash", actionType: "write", action: "remove_from_group" })`
- CLI: `npx zapier-sdk run-action learndash write remove_from_group`

## Frequently asked questions about automating with Plug&Pay and LearnDash

### Can I integrate Plug&Pay with LearnDash using triggers and actions?

Yes, you can integrate Plug&Pay with LearnDash through our platform by setting up specific triggers and actions. For instance, you can create a trigger when a new sale is made in Plug&Pay, which then initiates an action to enroll a user into a LearnDash course.

### What types of triggers from Plug&Pay can be used with LearnDash?

Triggers from Plug&Pay such as 'New Sale', 'Subscription Cancelled', or 'Payment Failed' can be utilized to perform actions in LearnDash like enrolling users in courses or sending emails.

### How does a 'New Sale' trigger in Plug&Pay work with LearnDash?

When a 'New Sale' trigger occurs in Plug&Pay, it can automatically prompt an action such as enrolling the customer into a specified course within LearnDash. This process ensures seamless access for your customers upon purchase confirmation.

### Can I unenroll users from LearnDash based on actions in Plug&Pay?

Absolutely. You could set up conditions where if a subscription is cancelled or payment fails in Plug&Pay, it will trigger an action to unenroll the user from the corresponding course within LearnDash.

### Is it possible to update user profiles in LearnDash with data from Plug&Pay?

Yes, you can configure actions that update user profiles with data from completed transactions on Plug&Pay. This could include updating course access permissions or adding notes to the user's profile.

### How are refunds handled between Plug&Pay and LearnDash integrations?

Refund processes can be automated by setting up triggers so that when a refund occurs in Plug&Pay, it results in actions such as revoking course access for the customer in LearnDash.

### Do I need technical skills to set up integrations between Plug&Pay and LearnDash?

No technical skills are required. Our platform provides an intuitive interface where you can drag and drop elements to configure triggers like 'New Sale' or 'Subscription Cancelled' and correspondingly align them with your desired actions in LearnDash.

### My AI agent already connects to my apps. Why add Zapier?

Your AI agent’s built-in or native connectors cover a limited set of popular apps. Zapier reaches 10,000+ apps and 90,000+ triggers and actions. Zapier also adds what your AI agent can’t: one place to manage logins and credentials, so you never paste an API key; automations that keep running after the chat closes, with fixes you can review when a run hits a snag; and the freedom to switch agent interfaces without starting over.

### Can’t my AI agent already run tasks on a schedule?

Most popular AI agents can run scheduled tasks. And for simple recurring jobs, that might be all you need. Automations that run on Zapier can run on a schedule too, but they can also start the moment something happens in your apps—like when a new lead/ticket comes in or you get an email reply. Zapier also uses AI only in the steps that need judgment, so routine steps like posting to Slack or updating Salesforce don’t burn model tokens.

### Why not have my AI agent write me a script?

You can, and the first version will probably work. The trouble comes later: a script needs somewhere to run, a way to hear about events, and someone to keep it going. If an API changes or a login expires, your script can quietly stop until you notice. It also holds your keys, often in a repo, where a leak can expose your accounts. With Zapier, your agent builds the automation, and you publish it. Zapier hosts it, handles your logins and credentials, and records every run. If a run fails, Zapier diagnoses what went wrong and prepares a fix you can review. Or you can decide which fixes Zapier can apply for you.

## Links
- Plug&Pay integrations: zapier.com/apps/plug-and-pay/integrations.md
- LearnDash integrations: zapier.com/apps/learndash/integrations.md
- Full page: zapier.com/apps/plug-and-pay/integrations/learndash
- SDK: npmjs.com/package/@zapier/zapier-sdk