jio_payment_sdk 0.0.1 copy "jio_payment_sdk: ^0.0.1" to clipboard
jio_payment_sdk: ^0.0.1 copied to clipboard

A Flutter package to integrate Jio Payment Gateway.

jio_payment_sdk #

A custom Flutter payment SDK that allows developers to easily integrate their own backend-based payment flow using Dio and Firebase or any backend system.


πŸ”§ Features #

  • πŸš€ Easy payment order creation
  • πŸ” Backend integration with secure verification
  • πŸ” Dio-powered async HTTP communication
  • πŸ“ Fully customizable for any payment gateway
  • πŸ”Ž Firebase-ready (compatible with Firestore)

πŸ“¦ Installation #

Add this to your pubspec.yaml:

dependencies:
  jio_payment_sdk: ^1.0.0 

Then run:

flutter pub get

βœ… Prerequisites #

Your backend must support:

createOrder endpoint β€” returns a unique orderId

verifyPayment endpoint β€” receives orderId + success flag

We recommend Firebase Functions, Node.js, or Express.

πŸ’» Usage #


import 'package:jio_payment_sdk/jio_payment_sdk.dart';

final service = PaymentService(
  createOrderUrl: 'https://your-backend.cloudfunctions.net/createOrder',
  verifyPaymentUrl: 'https://your-backend.cloudfunctions.net/verifyPayment',
);

final orderId = await service.createOrder(
  amount: 499,
  userId: 'abc123',
);

await service.verifyPayment(
  orderId: orderId,
  success: true,
);

πŸ§ͺ Example #

Check the /example directory for a working demo.

To run the example:


cd example
flutter run

πŸ“„ License #

This project is licensed under the MIT License – see the LICENSE file for details.

πŸ™Œ Author #

Maintained by Piyush. Feel free to contribute, ask questions, or report issues!

3
likes
0
points
21
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package to integrate Jio Payment Gateway.

Repository (GitHub)
View/report issues

Topics

#payment #sdk #dio #flutter

License

unknown (license)

Dependencies

convert, crypto, dio, flutter, flutter_inappwebview, flutter_pretty_dio_logger, intl

More

Packages that depend on jio_payment_sdk