PayPal.Easy 1.25.4.27

There is a newer version of this package available.
See the version list below for details.
dotnet add package PayPal.Easy --version 1.25.4.27
                    
NuGet\Install-Package PayPal.Easy -Version 1.25.4.27
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="PayPal.Easy" Version="1.25.4.27" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="PayPal.Easy" Version="1.25.4.27" />
                    
Directory.Packages.props
<PackageReference Include="PayPal.Easy" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add PayPal.Easy --version 1.25.4.27
                    
#r "nuget: PayPal.Easy, 1.25.4.27"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=PayPal.Easy&version=1.25.4.27
                    
Install PayPal.Easy as a Cake Addin
#tool nuget:?package=PayPal.Easy&version=1.25.4.27
                    
Install PayPal.Easy as a Cake Tool

🚀 Easily integrate online payments with PayPal.Easy - Effortless .NET Integration for PayPal (pay by Credit Cards)

🔥 Accept Payments in Minutes, Not Days!


🌟 Why Developers Love PayPal.Easy

Single-Method Simplicity
Generate PayPal/card payment links with 1 method call – customize amounts, items, shipping, and more via parameters.

Zero Boilerplate Code
Focus on your app’s logic, not payment APIs. Minimal setup, maximal results.

Auto-Triggered Events
Instant notifications for PaymentSuccess or PaymentCanceled events. Perfect for order fulfillment!

Seamless Shipping
Automatically capture buyer addresses for physical goods.

Full PayPal Ecosystem
Support credit/debit cards, PayPal Balance, Venmo, and more.

📈 Easy Implementation

  • ".NET PayPal Library with 1-Click Integration"

  • "Credit Card Processing for C# Developers"

  • "Automate E-commerce Payments in 10 Lines of Code"

  • "Shipping Address Capture for .NET Apps"

🚀 Use Cases

  • Digital Products: Instant access after payment

  • E-commerce: Auto-capture shipping addresses

  • Subscriptions: Recurring billing made simple

  • Donations: Support causes with 3-line integration


📖 Introduction

[PayPal.Easy] is a .NET library designed to simplify PayPal integration. With just a few steps, you can accept payments, handle payment notifications, and automate processes like order management and shipping address capture.


Tutorial

This is a minimalist, distraction-free example of a website with an online purchase of a service, and an event notification of the purchase completion. We recommend that you start by looking at this example: Tutorial on GitHub


🔧 PayPalIpnMiddleware

The PayPalIpnMiddleware allows you to handle PayPal Instant Payment Notifications (IPN). This middleware verifies incoming notifications and triggers an event when a payment is successfully completed.

How to Configure IPN Notifications

  1. Log in to your PayPal account.
  2. Navigate to Account Settings > Instant Payment Notifications (IPN).
  3. Set the notification URL to point to your endpoint (e.g., https://yourdomain.com).
  4. Save the changes.

For more details, refer to the official PayPal documentation.

Middleware Usage Example

Here is an example of how to use the PayPalIpnMiddleware in your application:

'''csharp

var app = builder.Build();

// user for PayPal IPN validation: // in your program.cs file you can use this code to set an event (example: OnPaymentCompleted) that will be executed at every payment. app.UseMiddleware<PayPal.PayPalIpnMiddleware>(Events.OnPaymentCompleted);

'''

Event Handling

You can handle the payment success event by subscribing to the OnPaymentCompleted event. This allows you to perform actions like updating order status, sending confirmation emails, etc.

Example Event Handler

Here is an example of how to handle the payment success event: '''csharp public class Events { static internal void OnPaymentCompleted(Dictionary<string, string> instantPaymentNotificationData) { // If the payment is completed, extract transaction details var transactionId = instantPaymentNotificationData["txn_id"]; // Transaction ID from PayPal var id = instantPaymentNotificationData["custom"]; // Custom field set in the payment link var amount = instantPaymentNotificationData["mc_gross"]; // Gross amount of the transaction Debug.WriteLine($"Payment completed. Transaction ID: {transactionId}, Custom ID: {id}, Amount: {amount}");
} } '''


The GeneratePayPalLink method allows you to create a PayPal payment link for single purchases or subscriptions.

Key Parameters

  • businessEmail: The email address of the PayPal account receiving the payment.
  • productName: The name or description of the product.
  • amount: The payment amount.
  • currency: The currency code (e.g., "EUR").
  • purchaseId: A unique ID for tracking the transaction.
  • returnUrl: The URL to redirect the user after a successful payment.
  • cancelUrl: The URL to redirect the user if the payment is canceled.

Example Usage

Here is an example of how to generate a payment link:

'''csharp

        var paypalLink = PayPal.Util.GeneratePayPalLink(Settings.PayPalBusinessEmail, description, CostInEuro, "EUR", id, true, returnUrl, cancelUrl);
        Redirect = new Uri(paypalLink);

'''


📈 SEO-Optimized Benefits

  • ".NET PayPal Library with 1-Click Integration"
  • "Credit Card Processing for C# Developers"
  • "Automate E-commerce Payments in 10 Lines of Code"
  • "Shipping Address Capture for .NET Apps"

🚀 Use Cases

  • Digital Products: Instant access after payment.
  • E-commerce: Auto-capture shipping addresses.
  • Subscriptions: Recurring billing made simple.
  • Donations: Support causes with 3-line integration.

🌐 SEO Keywords

.NET payment integration, PayPal SDK C#, credit card processing library, generate payment links, minimal code payments, automate e-commerce, capture shipping address, developer-friendly PayPal, event-driven payments.


💡 Why Wait? "Spent 3 days on payment APIs? PayPal library does it in 3 minutes. Your users deserve frictionless checkout – give it to them."

🌐 SEO Keywords .NET payment integration, PayPal SDK C#, credit card processing library, generate payment links, minimal code payments, automate e-commerce, capture shipping address, developer-friendly PayPal, event-driven payments

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.25.5.2 170 5/1/2025
1.25.4.29 159 4/28/2025
1.25.4.28 146 4/28/2025
1.25.4.27 120 4/27/2025
1.25.4.26 82 4/26/2025