paypal-integration

Implement PayPal payments, subscriptions, refunds, and IPN webhook handling via REST APIs.

Updated Apr 23, 2026
One-click install
npx skills add https://github.com/SanketAdlak/PDMProjectDesign --skill paypal-integration-sanketadlak
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: paypal-integration
Source: https://github.com/SanketAdlak/PDMProjectDesign/tree/main/.agents/skills/paypal-integration
Command: npx skills add https://github.com/SanketAdlak/PDMProjectDesign --skill paypal-integration-sanketadlak

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires requests, paypalrestsdk, flask.

What problem does it solve? Integrating PayPal into an application involves juggling client-side Smart Buttons, server-side order creation and capture, IPN verification, subscription billing, and refund workflows, each with its own API surface and failure modes. ## Core Features & Use Cases - Express Checkout: Create and capture one-time orders using the PayPal JavaScript SDK on the frontend and the v2 Orders REST API on the backend. - Subscriptions & Recurring Billing: Create billing plans and subscriptions with approval URLs for recurring payments. - IPN & Refund Handling: Verify Instant Payment Notifications, process completed payments, refunds, and chargebacks, and issue full or partial refunds via the Captures API. - Use Case: An e-commerce site adds a PayPal button to its checkout page, captures the approved order on its Python backend, and automatically processes refund IPN notifications to update order status. ## Quick Start Ask the AI to implement a PayPal checkout flow with Smart Buttons on the frontend and a Python backend endpoint that creates and captures orders using sandbox credentials.

Frequently Asked Questions about paypal-integration

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I integrate PayPal checkout into my website?

Add the PayPal JavaScript SDK with your client ID, render Smart Buttons that call createOrder and onApprove callbacks, then send the order ID to your backend. The backend captures the order via the v2/checkout/orders API using OAuth client credentials.

How to verify PayPal IPN notifications in Python?

Post the received IPN data back to PayPal's validation endpoint with cmd=_notify-validate appended. PayPal responds with VERIFIED if the message is authentic, after which you can safely process payment_status values like Completed or Refunded.

How do I create PayPal recurring subscriptions with the REST API?

First create a billing plan via /v1/billing/plans defining frequency and pricing, then create a subscription via /v1/billing/subscriptions with the plan ID and subscriber email. Redirect the user to the approval URL returned in the response links.

Can I issue partial refunds through the PayPal API?

Yes, call /v2/payments/captures/{capture_id}/refund with an amount object specifying the value and currency to refund partially. Omitting the amount refunds the full captured payment, and you can include a note_to_payer.

Why does my PayPal integration fail in production but work in sandbox?

Sandbox and live modes use different API base URLs and credentials. Ensure you switch from api-m.sandbox.paypal.com to api-m.paypal.com and replace sandbox client ID and secret with live credentials from the PayPal developer dashboard.