Mamo Business ACTION
Create Payment Link
Generate a vanilla or subscription payment link. See the documentation
- Action
- Writes data
- API key
- SDK
- MCP
IMPLEMENTATION
Call this tool
Connect a user's Mamo Business account once, then configure and run Create Payment Link from your backend or agent.
import { PipedreamClient } from "@pipedream/sdk"
const pd = new PipedreamClient({
projectId: process.env.PIPEDREAM_PROJECT_ID!,
clientId: process.env.PIPEDREAM_CLIENT_ID!,
clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
projectEnvironment: "production",
})
const result = await pd.actions.run({
id: "mamo_business-create-payment-link",
externalUserId: "{external_user_id}", // any stable ID for this user in your system
configuredProps: {
mamo_business: { authProvisionId: "apn_xxxxxxx" },
title: "Title",
description: "Description",
},
})
console.log(result)curl -X POST https://api.pipedream.com/v1/connect/{project_id}/actions/run \
-H "Content-Type: application/json" \
-H "X-PD-Environment: production" \
-H "Authorization: Bearer {access_token}" \
-d '{
"external_user_id": "{external_user_id}",
"id": "mamo_business-create-payment-link",
"configured_props": {
"mamo_business": { "authProvisionId": "apn_xxxxxxx" },
"title": "Title",
"description": "Description"
}
}'// accessToken: mint a short-lived token with the Connect SDK — see the MCP guide
const transport = new StreamableHTTPClientTransport(
new URL("https://remote.mcp.pipedream.net/v3"),
{
requestInit: {
headers: {
Authorization: `Bearer ${accessToken}`,
"x-pd-project-id": "{project_id}",
"x-pd-environment": "production",
"x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
"x-pd-app-slug": "mamo_business",
},
},
},
)
const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)
const { tools } = await mcp.listTools()
// listTools() hands your model this tool's input schema, so it can
// fill the arguments itself:
const result = await mcp.callTool({
name: "mamo_business-create-payment-link",
arguments: {
title: "Title",
description: "Description",
},
})SCHEMA
Inputs
Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.
| Property | Type | Description |
|---|---|---|
title Title | string | The title of the payment link. Required |
description Description | string | Payment description. This will appear on the payment checkout page. Optional |
capacity Capacity | integer | The capacity will be ignored when the subscription params exist and value will be null. Optional |
active Active | boolean | Whether the payment is active or not. Optional |
returnUrl Return URL | string | The URL which the customer will be redirected to after a successful payment. Optional |
failureReturnUrl Failure Return URL | string | The URL which the customer will be redirected to after a failure payment. Optional |
processingFeePercentage Processing Fee Percentage | integer | The percentage of the transaction that is the fee. Optional |
amount Amount | string | The value number of the payment. Optional |
amountCurrency Amount Currency | string | The currency that the transaction will be charged. Required |
isWidget Is Widget | boolean | Generate widget payment link. Optional |
enableTabby Enable Tabby | boolean | Enables the ability for customers to buy now and pay later. Optional |
enableMessage Enable Message | boolean | Enables the ability for customers to add a message during the checkout process. Optional |
enableTips Enable Tips | boolean | Enables the tips option. This will be displayed on the first screen. Optional |
enableCustomerDetails Enable Customer Details | boolean | Enables adding customer details such as the name, email, and phone number. This screen will be displayed before the payment details screen. Optional |
enableQuantity Enable Quantity | boolean | Enable the payment link to be used multiple times. Optional |
enableQrCode Enable QR Code | boolean | Adds the ability to verify a payment through a QR code. Optional |
sendCustomerReceipt Send Customer Receipt | boolean | Enables the sending of customer receipts. Optional |
firstName First Name | string | The first name of customer which will pre-populate in card info step. Optional |
lastName Last Name | string | The last name of customer which will pre-populate in card info step. Optional |
email Email | string | The email of customer which will pre-populate in card info step. Optional |
externalId External Id | string | The external ID of your choice to associate with payments captured by this payment link. Optional |
customData Custom Data | object | An object with custom data of the payment link. Optional |
isRecurring Is Recurring | boolean | Whether this payment link is for a recurring payment. Required |
REFERENCE
Tool details
Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.
- Registry key
- mamo_business-create-payment-link
- Version
- 0.0.2
- App
- Mamo Business
- Authentication
- API key
- Read-only
- No
- Destructive
- No
- Open world
- Yes
- Source
- View on GitHub ↗