You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

Stripe.MAUI

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Stripe.MAUI

.NET MAUI control and APIs for Stripe

1.204600.232705.1
Source
nugetNuGet
Version published
Maintainers
1
Created
Source

Stripe for .NET MAUI

Stripe is a well-known payment gateway providing a wide range of payment products and solutions.

Prerequisites

  • .NET 8
  • Java SDK 17 as the default Java version in your PATH IMPORTANT
  • Visual Studio or Visual Studio Code
  • .NET workloads for .NET MAUI

Steps to run the sample app

1/ Open dotnet-maui-stripe.sln file

2/ Create Shared.dev.cs as a copy of Shared.dev.cs.sample

|- src
    |- StripeMauiQs.Host
        |- Shared.cs
        |- Shared.dev.cs

3/ Replace the placeholder with your key

4/ Run StripeMauiQs.Host without debugging

5/ Use ngrok to expose your local server for accessing from mobile device(s)/simulator(s)/emulator(s)

ngrok http http://localhost:4242

6/ Set value of BACKEND_URL in Shared.dev.cs to the generated ngrok URL

7/ Run and check out the app

Steps to use in your app

1/ Install the nuget package

<PackageReference Include="Stripe.MAUI" Version="1.204600.232705.1" />

2/ Call UseStripe in your MauiProgram.cs

3/ Inject IPaymentSheet into your class

4/ Try to invoke relevant method e.g. PresentWithPaymentIntentAsync

NOTE IMPORTANT!!! If the .NET MAUI project cannot be loaded, please close the solution, then remove bin and obj folders patiently.

MAINTAINER

This project is maintained by tuyen-vuduc in his spare time.

If you find this project is useful, please become a sponsor of the project and/or buy him a coffee.

"Buy Me A Coffee"

OR

LICENSE

The 3rd libraries will follow their associated licenses. This project itself is licensed under The 3-Clause BSD License.

Copyright 2024 tuyen-vuduc

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

  • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

  • Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Keywords

FAQs

Package last updated on 05 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.