PC.PlugIns.Stripe 1.0.6

dotnet add package PC.PlugIns.Stripe --version 1.0.6
NuGet\Install-Package PC.PlugIns.Stripe -Version 1.0.6
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="PC.PlugIns.Stripe" Version="1.0.6" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add PC.PlugIns.Stripe --version 1.0.6
#r "nuget: PC.PlugIns.Stripe, 1.0.6"
#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.
// Install PC.PlugIns.Stripe as a Cake Addin
#addin nuget:?package=PC.PlugIns.Stripe&version=1.0.6

// Install PC.PlugIns.Stripe as a Cake Tool
#tool nuget:?package=PC.PlugIns.Stripe&version=1.0.6

PC.PlugIns.Stripe

A plug-in for creating Stripe PaymentSheet on MAUI cross-platform. It supports MAUI Android and iOS.

How to use

  1. Call a use StripePlugIns at MAUI builder()

    var builder = MauiApp.CreateBuilder().UseStripePlugin();   
    
  1. Create a PaymentSheet

using PC.PlugIns.Stripe;
var stripeService = new StripeService();

stripeService.Configure(new PaymentRequest
        {
            AccountId = "",
            PaymentIntentSecret = "",
            CustomerSecret = CustomerSecret,
            CustomerId = "",
            PublishableKey = "",
            ReturnUrl = "",
            AllowsDelayedPaymentMethods = true,
            MerchantName = ""
        });
  1. Launch a payment sheet


 var paymentResult = await stripeService.LaunchPaymentSheet();
 
  1. Check paymentResult variable.

1: Success 2: Cancelled 3: Failed

Reference to create a payment sheet document at Stripe iOS and Stripe Android

Product Compatible and additional computed target framework versions.
.NET net8.0-android34.0 is compatible.  net8.0-ios17.2 is compatible. 
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.0.6 34 6/14/2024
1.0.5 34 6/14/2024
1.0.4 99 5/6/2024
1.0.3 86 5/6/2024
1.0.2 86 5/6/2024
1.0.1 89 5/6/2024
1.0.0 91 5/6/2024