← All integrations

Commerce & Payments · Integration

Embed a PayPal integration in your product

Add PayPal to your product for your customers, and give your AI agents governed access to it.

Embed a PayPal integration so your customers can take payments and reconcile them from inside your product instead of switching to the PayPal dashboard. Orders, captures, refunds, invoices, subscriptions and disputes are the records their finance and support teams work with, and money state must never be double-applied. Writes are idempotent, so a retry after a timeout cannot refund twice or duplicate a capture, and every call is logged per customer so a transaction can be reconciled against the event that triggered it. Each customer connects their own PayPal account, so funds and permissions stay theirs. fastn handles per-customer authorization and webhook delivery, and monitors the integration, proposing a fix for your review when PayPal changes its API.

In your product

Embedded for your customers. Per-tenant auth, customized per customer, monitored by fastn.

  • Let customers connect their own PayPal account so payments taken through your product settle to them, with no per-customer code on your side.
  • Create and capture orders from your product, then issue full or partial refunds against the original transaction.
  • Read transactions, invoices and subscription state so your product can show payment status without a manual lookup.
  • React to PayPal webhooks for completed payments, refunds and disputes so fulfillment, entitlement or accounting steps run as soon as the event lands.

For your AI agents

Governed, audited access for the agents you build, through the MCP server.

  • An agent looks up a transaction and its refund history before answering a billing question.
  • An agent issues an approved refund within governed permissions, with the write idempotent and audited.
  • An agent reacts to a dispute event and gathers the order detail needed to respond to it.

Example prompt

Find last week's failed and refunded payments and total them by reason.

Set up PayPal in 4 steps

  1. 01Open the PayPal connector from your fastn dashboard.
  2. 02Have each customer authorize their own PayPal account with OAuth.
  3. 03Select the order, refund, invoice and subscription actions your product uses, then enable the webhooks you want to react to.
  4. 04Call them from your product, or expose them to an agent through the MCP server.

Why teams use the PayPal integration

  • Ship a PayPal integration without building it. Your customers connect their own PayPal account inside your product and work their orders, payments and customers there, and nothing lands on your team.
  • Handle the part that actually costs time: money and order state must never be double-applied, and reconciliation has to be possible. fastn handles the auth, token refresh, rate limits and pagination, and when PayPal changes, its maintainer agent proposes a tested fix, so a PayPal update does not start in your backlog.

PayPal integration FAQ

Can AI agents use this PayPal integration?

Yes, through the fastn MCP gateway, scoped per customer and audited. An agent looks up a transaction and its refund history before answering a billing question. For example: "Find last week's failed and refunded payments and total them by reason."

Is the PayPal integration safe for payment and order writes?

Writes are idempotent, so a retry cannot double-charge or duplicate an order, and every call is logged per tenant so a transaction can be reconciled against the event that triggered it.

Can my product react to a new order, payment or refund immediately?

Yes, through event triggers, so fulfilment, entitlement or accounting steps run as soon as the event lands rather than on a nightly sync.

What can I build with the PayPal integration?

A common starting point: connect their own PayPal account so payments taken through your product settle to them, with no per-customer code on your side. The use cases above list the rest.

Add PayPal to your product

Start free with 3 customer connections. No sales call required, and no per-customer integration code.