Plugin.Maui.RazorPaymentMin
1.1.1
dotnet add package Plugin.Maui.RazorPaymentMin --version 1.1.1
NuGet\Install-Package Plugin.Maui.RazorPaymentMin -Version 1.1.1
<PackageReference Include="Plugin.Maui.RazorPaymentMin" Version="1.1.1" />
paket add Plugin.Maui.RazorPaymentMin --version 1.1.1
#r "nuget: Plugin.Maui.RazorPaymentMin, 1.1.1"
// Install Plugin.Maui.RazorPaymentMin as a Cake Addin
#addin nuget:?package=Plugin.Maui.RazorPaymentMin&version=1.1.1
// Install Plugin.Maui.RazorPaymentMin as a Cake Tool
#tool nuget:?package=Plugin.Maui.RazorPaymentMin&version=1.1.1
Razor Payment Native Plugin for .NET MAUI
<img width="1098" alt="Screenshot 2024-02-19 at 19 20 32" src="https://github.com/samirgcofficial/RazorPaymentMaui/assets/55045516/a0336a74-182d-46f2-81d4-de14855d33ef">
Welcome to the Razor Payment Plugin for .NET MAUI repository! Our Plugin provides seamless integration with Razorpay's powerful payment gateway, enabling developers to quickly and securely accept payments in their .NET MAUI applications.
Features
- Easy Integration: Integrate Razorpay's payment gateway into your .NET MAUI apps with just a few lines of code.
- Secure Transactions: Ensure secure and encrypted payment transactions for your users.
Getting Started
To start using the Razor Payment Plugin in your .NET MAUI project, follow these simple steps:
Installation: Install the Razor Payment Plugin NuGet package in your .NET MAUI project.
dotnet add package Plugin.Maui.RazorPayment --version 1.1.1
Initialize Razor Payment Plugin
RazorPayService.Init("YOUR_API_KEY"); // https://dashboard.razorpay.com/app/website-app-settings/api-keys
Maui Android Implementation MainActivity.cs
protected override void OnCreate(Bundle? savedInstanceState)
{
base.OnCreate(savedInstanceState);
RazorPayService.Init(this, "rzp_test_m9jmynsTPIHEDl"); //Add your Razor Pay Api Key https://dashboard.razorpay.com/app/website-app-settings/api-keys
}
Maui iOS Create payment details AppDelegate.cs
public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
{
var result = base.FinishedLaunching(application, launchOptions);
RazorPayService.Init("rzp_test_m9jmynsTPIHEDl");//Add your Razor Pay Api Key https://dashboard.razorpay.com/app/website-app-settings/api-keys
return result;
}
Dotnet MAUI Implementation
string OrderID = "order_NcnkRJMfUCcRw5";
//In order for Razor Payment to function properly,
//a new order ID must be generated for each successful payment made.
//You can find more information about this process at the following link:
//[RazorPay Public Workspace](https://www.postman.com/razorpaydev/workspace/razorpay-public-workspace/folder/12492020-91450029-1c52-4375-8033-39ca4c2d0a8c).
PaymentDetails paymentDetails = new PaymentDetails
{
Amount = "20000",
Currency = "INR",
Description = "This is just a test",
OrderId = OrderID,
Name = "Samir GC",
Prefill = new PaymentDetails.PrefillDetails
{
Contact = "+97798482345567",
Email = "abc@gmail.com"
}
};
razorPayService.Pay(paymentDetails);
** Full Version **
For the full version of the Plugin without the evaluation copy, consider supporting the project by buying us a coffee and supporting our hard work 🥰. https://www.buymeacoffee.com/samirgc/e/222788
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net7.0-android33.0 is compatible. net7.0-ios16.1 is compatible. net8.0-android was computed. net8.0-ios was computed. |
-
net7.0-android33.0
- RAndroidPay (>= 1.2.8)
- Xamarin.GooglePlayServices.Auth (>= 120.3.0)
-
net7.0-ios16.1
- RiOSPay (>= 1.1.1)
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.1.1 | 208 | 2/21/2024 |