AgnelSelvan / upi_payment_qrcode_generator

Generates the QRCode for UPI Payment Flutter
https://pub.dev/packages/upi_payment_qrcode_generator
MIT License
14 stars 4 forks source link

upi_payment_qrcode_generator not responding the payment is done or not. #2

Open Sudesh101999 opened 1 year ago

Sudesh101999 commented 1 year ago

i have implemented upi_payment_qrcode_generator: ^ . With the help of QR code the payment is done by cranner side. but not responding by QR code generater side. I'm not able to get the recode of response that payment is successfully done OR Failed.

import 'package:flutter/material.dart';
import 'package:upi_payment_qrcode_generator/upi_payment_qrcode_generator.dart';

class PaymentForWindowMacos extends StatefulWidget {
  const PaymentForWindowMacos({Key? key}) : super(key: key);

  @override
  State<PaymentForWindowMacos> createState() => _PaymentForWindowMacosState();
}

class _PaymentForWindowMacosState extends State<PaymentForWindowMacos> {
  final upiDetails = UPIDetails(
    upiID: "......@okicici",
    payeeName: "Payee Name Here",
    amount: 1,
    transactionNote: "Hello World",
  );
  final upiDetailsWithoutAmount = UPIDetails(
      upiID: "....@okicici",
      payeeName: "Payee Name Here",
      transactionNote: "Hello World");

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('UPI Payment QRCode Generator'),
        ),
        body: Center(
          child: Column(
            mainAxisAlignment: MainAxisAlignment.center,
            children: [
              const Text("UPI Payment QRCode without Amount",
                  style: TextStyle(fontWeight: FontWeight.bold)),
              UPIPaymentQRCode(
                upiDetails: upiDetailsWithoutAmount,
                size: 200,
                loader: const Center(
                  child: CircularProgressIndicator(),
                ),
              ),
              Text(
                "Scan QR to Pay",
                style: TextStyle(color: Colors.grey[600], letterSpacing: 1.2),
              ),
              const SizedBox(
                height: 20,
              ),
              const Text(
                "UPI Payment QRCode with Amount",
                style: TextStyle(fontWeight: FontWeight.bold),
              ),
              UPIPaymentQRCode(
                upiDetails: upiDetails,
                size: 200,
                loader: const Center(
                  child: CircularProgressIndicator(),
                ),
              ),
              Text(
                "Scan QR to Pay",
                style: TextStyle(color: Colors.grey[600], letterSpacing: 1.2),
              )
            ],
          ),
        ),
      ),
    );
  }
}

Thank you

AgnelSelvan commented 1 year ago

Hy @Sudesh101999, this package is currently for QRCode generation of barcode for the payment. We will be considering this functionality in upcoming future updates.

github-actions[bot] commented 1 year ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 11 months ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 11 months ago

This issue was closed because it has been inactive for 14 days since being marked as stale.