paypal-getting-started

Grounds PayPal .NET SDK integration in a generated map of operations, models, enums, and error types.

Updated Jun 9, 2026
One-click install
npx skills add https://github.com/apimatic/plugin-marketplace --skill paypal-getting-started-apimatic
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: paypal-getting-started
Source: https://github.com/apimatic/plugin-marketplace/tree/main/plugins/paypal-sdk/skills/paypal-getting-started
Command: npx skills add https://github.com/apimatic/plugin-marketplace --skill paypal-getting-started-apimatic

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? AI coding agents hallucinate SDK signatures, model shapes, and error types when integrating the PayPal .NET SDK, producing code that fails to compile or misuses the API. This Skill provides an authoritative, generated SDK map so every operation signature, enum value, and error accessor is looked up rather than guessed. ## Core Features & Use Cases - SDK Identity & Setup: Provides the NuGet package name (AsadAli.Checkout.Sdk), root namespace (PayPalServerSdk), client/options classes, OAuth2 credential properties, and environment configuration. - Bundled SDK Map: Indexes all 40 operations across 5 controllers (Orders, Payments, Subscriptions, TransactionSearch, Vault) with exact C# signatures, must-pass-explicitly parameters, return types, and per-operation error accessors, plus 286 record models and 85 enums with JSON wire names. - Error-Handling Guidance: Documents the two error cases (typed {Operation}Error vs RawError) with TryGet accessors and HTTP status mappings for each operation. - Use Case: A developer asks their agent to integrate PayPal order creation and capture in a .NET service; the agent loads this Skill, looks up CreateOrder and CaptureOrder signatures in the map, and writes compiling code with correct namespaces, named arguments, and typed error handling. ## Quick Start Ask your agent to integrate the PayPal .NET SDK into your project, for example to create and capture a checkout order, and it will load this Skill to ground every signature and model in the bundled SDK map.

Frequently Asked Questions about paypal-getting-started

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

FAQPage Schema
How do I integrate the PayPal .NET SDK into my C# project?▼

Install the AsadAli.Checkout.Sdk NuGet package version-less with dotnet add package, then construct a PayPalServerSdkClient with PayPalServerSdkClientOptions. Set OAuth2 credentials and the environment on the options before constructing the client or registering it via DI.

How do I handle errors from PayPal SDK operations in .NET?▼

Operations throw SdkException<TError> on error statuses. Most operations use typed {Operation}Error classes with TryGet accessors per status code, while a few use RawError exposing StatusCode and ReadAsString. Check each operation's map row to confirm which case applies.

Why do I get CS0103 or CS0246 errors when using PayPal SDK models?▼

The SDK splits types across child namespaces that C# does not import transitively. Add separate using directives for PayPalServerSdk.Models, PayPalServerSdk.Models.Enums, PayPalServerSdk.Api, and PayPalServerSdk.Errors as needed.

Are PayPal SDK enums regular C# enums?▼

No, they are StringEnum<T> records, not C# enums. Construct them via static members like CheckoutPaymentIntent.Capture or Type.FromValue with the wire value, and reference the enums.md page for exact member names.

When should I clone the PayPal SDK source repository?▼

Clone only when the bundled SDK map cannot answer a question, such as needing a full method body or when a map-sourced name fails to compile. Clone shallow at tag v1.0.1 into the system temp directory and open only the specific file the map names.