razorpay_web 1.0.1 copy "razorpay_web: ^1.0.1" to clipboard
razorpay_web: ^1.0.1 copied to clipboard

outdated

Razorpay Web Payment Gateway for Flutter

Flutter Razorpay Web Plugin

Will be Chosen someday as a Flutter Favorite by the Flutter Ecosystem Committee

Pub.dev Badge GitHub Build Badge Code Coverage Badge Gitter Badge Effective Dart Badge MIT License Badge Flutter Platform Badge


image

A flutter plugin for razorpay integration for Web.

If you use this library in your app, please let me know and I'll add it to the list.

demoApp demoApp

demoApp

Installing #

Add this in pubspec.yaml

  razorpay_web: 

Using #

import 'package:razorpay_web/razorpay_web.dart';
  RazorpayWeb(
        rzpKey: rzpKey, // Enter Your Razorpay Key Here
        options: RzpOptions(
          amount: 1000,
          name: "Razorpay",
          description: "Test Payment",
          image: "https://i.imgur.com/3g7nmJC.png",
          prefill: const PrefillData(
            name: "Razorpay",
            email: "rzp@gmail.com",
            contact: "9876543210",
          ),
          colorhex: "#FF0000",
        ),
        onPaymentSuccess: (String paymentId) {
          print("Payment Success");
          log(paymentId);
        },
        onPaymentError: (String error) {
          print("Payment Error");
        },
      ),

}

If payment is successful onPaymentSuccess Function will contain the payment_id from razorpay.



<table>
  <tr>
     <td>
       <img src = "https://user-images.githubusercontent.com/14369357/48185114-109bae00-e35a-11e8-9df8-2c8ccfcdbfc7.png" height="350">
    </td>
    <td>
      <img src = "https://user-images.githubusercontent.com/14369357/48185687-d3d0b680-e35b-11e8-849b-0899364df2f2.png" height="350">
      </td>
    </tr>
     <img src = "https://user-images.githubusercontent.com/14369357/48185687-d3d0b680-e35b-11e8-849b-0899364df2f2.png" height="75%">
      </td>

     <tr>
    
    </tr>
  </table>
36
likes
0
pub points
95%
popularity

Publisher

unverified uploader

Razorpay Web Payment Gateway for Flutter

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, universal_html

More

Packages that depend on razorpay_web