AACFlow

PayPal

Process payments and manage PayPal orders, subscriptions, and invoices

Usage Instructions

Integrates PayPal into your workflow. Create and capture orders, manage billing subscriptions, create invoices, and handle payment lifecycle events. Supports sandbox mode for testing.

Tools

paypal_create_order

Create a PayPal order for a payment

Input

ParameterTypeRequiredDescription
sandboxbooleanNoUse PayPal sandbox environment for testing
intentstringYesPayment intent: CAPTURE or AUTHORIZE
amountnumberYesPayment amount
currencyCodestringYesISO currency code (e.g. USD, EUR)
descriptionstringNoOrder description
returnUrlstringNoURL to redirect after approval
cancelUrlstringNoURL to redirect on cancellation

Output

ParameterTypeDescription
orderjsonThe created PayPal order object
metadatajsonOrder metadata: id, status, intent

paypal_capture_order

Capture payment for an approved PayPal order

Input

ParameterTypeRequiredDescription
sandboxbooleanNoUse PayPal sandbox environment for testing
orderIdstringYesThe PayPal order ID to capture

Output

ParameterTypeDescription
orderjsonThe captured PayPal order object
metadatajsonOrder metadata: id, status

paypal_get_order

Retrieve details of a PayPal order by ID

Input

ParameterTypeRequiredDescription
sandboxbooleanNoUse PayPal sandbox environment for testing
orderIdstringYesThe PayPal order ID to retrieve

Output

ParameterTypeDescription
orderjsonThe PayPal order object
metadatajsonOrder metadata: id, status, intent

paypal_create_subscription

Create a PayPal subscription for a billing plan

Input

ParameterTypeRequiredDescription
sandboxbooleanNoUse PayPal sandbox environment for testing
planIdstringYesThe PayPal billing plan ID
subscriberGivenNamestringNoSubscriber first name
subscriberSurnamestringNoSubscriber last name
subscriberEmailstringNoSubscriber email address
returnUrlstringNoURL to redirect after approval
cancelUrlstringNoURL to redirect on cancellation

Output

ParameterTypeDescription
subscriptionjsonThe created PayPal subscription object
metadatajsonSubscription metadata: id, status, plan_id

paypal_get_subscription

Retrieve details of a PayPal subscription by ID

Input

ParameterTypeRequiredDescription
sandboxbooleanNoUse PayPal sandbox environment for testing
subscriptionIdstringYesThe PayPal subscription ID

Output

ParameterTypeDescription
subscriptionjsonThe PayPal subscription object
metadatajsonSubscription metadata: id, status, plan_id

paypal_cancel_subscription

Cancel an active PayPal subscription

Input

ParameterTypeRequiredDescription
sandboxbooleanNoUse PayPal sandbox environment for testing
subscriptionIdstringYesThe PayPal subscription ID to cancel
reasonstringNoReason for cancellation

Output

ParameterTypeDescription
metadatajsonCancellation result metadata

paypal_create_invoice

Create a PayPal invoice to send to a customer

Input

ParameterTypeRequiredDescription
sandboxbooleanNoUse PayPal sandbox environment for testing
currencyCodestringYesISO currency code (e.g. USD, EUR)
invoiceNumberstringNoCustom invoice number
notestringNoNote to include on the invoice
payerEmailstringNoEmail address of the payer
itemsjsonNoInvoice line items as JSON array: [{name, quantity, unitAmount, description?}]

Output

ParameterTypeDescription
invoicejsonThe created PayPal invoice object
metadatajsonInvoice metadata: id, status

本页内容

今天就开始构建
超过 100,000 名开发者信赖我们。
用于构建 AI 智能体并运行智能体工作团队的 SaaS 平台。
开始使用