payment_bridge 0.0.3 copy "payment_bridge: ^0.0.3" to clipboard
payment_bridge: ^0.0.3 copied to clipboard

All-in-one payment gateway implementation of Razorpay, Paytm etc.

example/main.dart

import 'package:payment_bridge/payment_bridge.dart';

PaymentBridge paymentBridge = PaymentBridge(
  razorpay: {
    'key': 'rzp_live_########',
    'testKey': 'rzp_test_########',
  },
);

sampleCode() {
  paymentBridge
      .create(
    amount: 100,
    name: 'Alice Bob',
    description: 'Registration Charges',
    mobile: '+919876543210',
    email: 'alice.bob@example.com',
  )
      .then((payment) async {
    // payment.json;
    // {
    //    'id': id,
    //    'time': time,
    //    'amount': amount,
    //    'status': status,
    //    'orderId': orderId,
    //    'signature': signature,
    // }
  });
}
2
likes
120
pub points
42%
popularity

Publisher

verified publisherensorta.com

All-in-one payment gateway implementation of Razorpay, Paytm etc.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, js, nb_utils, razorpay_flutter, universal_html

More

Packages that depend on payment_bridge