Giter Site home page Giter Site logo

razorpaymentmaui's Introduction

Razor Payment Native Plugin for .NET MAUI

Screenshot 2024-02-19 at 19 20 32

RazorPay

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.RazorPaymentMin --version 1.1.1

Maui Android Implementation MainActivity.cs

   protected override void OnCreate(Bundle? savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            RazorPayService.Init(this, "rzp_test_xxxxxxxxx"); //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_xxxxxxxx");//Add your Razor Pay Api Key https://dashboard.razorpay.com/app/website-app-settings/api-keys 
            return result;
        }

Dotnet MAUI Implementation

string OrderID = "order_NcnXXXXXX";
            //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 = "[email protected]"
                }
            };
            razorPayService.Pay(paymentDetails);

** How to add plugin on .net 8 project ??? ** https://drive.google.com/file/d/1aKybP5vjAinlnGG3IlRyQm4bQcOmT2sf/view?usp=sharing

** Alert! **

Please authenticate with your credentials before testing the sample app. To generate an order ID, please refer to this instructional video: link.

Activate UPI Payment on your dashboard For instructions, visit: Razorpay Documentation

Unlock the Full Version Gain access to the entire plugin, free from the evaluation limitations, by supporting our project with a small contribution. Your support acknowledges our hard work and dedication ๐Ÿฅฐ. We suggest trying the evaluation copy before purchasing. Plus, I've made it affordable for all customers. Support us

razorpaymentmaui's People

Contributors

samirgcofficial avatar xamaringuy avatar

Stargazers

lukewire avatar Gulam Ali H. avatar Dilip avatar BlueSharkPartners avatar Harisankar Angamuthu avatar Media Explorer avatar AwesomeCode avatar atallahalenazi avatar Samir GC avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.