princeflutterdev / flutter_upi_pay

Find installed UPI payment apps on your phone and make payments using any one of them.
https://pub.dev/packages/flutter_upi_india
MIT License
3 stars 1 forks source link

Error is transaction #6

Open lotictech opened 4 days ago

lotictech commented 4 days ago

it is giving error on simple upi id but in case I want to put merchant id it does recognize The named parameter 'merchantCode' isn't defined. Try correcting the name to an existing named parameter's name, or defining a named parameter with the name 'merchantCode'.

princeflutterdev commented 3 days ago

You can add the merchant id in params it's already in package

lotictech commented 3 days ago

You can add the merchant id in params it's already in package param where you have commented //merchantCode: '7372', it is not accepting mechancode and giving above error, if I am missing something pls help, I am using latest version of 8.3/8.4 in my app it is indeed very good code build worked at first attempt the only thing is payment is not completing

princeflutterdev commented 2 days ago

can you please share the error which you are getting

lotictech commented 2 days ago

can you please share the error which you are getting

when I uncomment merchantCode: forget the number I put but it is underlined as "The named parameter 'merchantCode' isn't defined. Try correcting the name to an existing named parameter's name, or defining a named parameter with the name 'merchantCode'." as initiateTransaction has these param only Future initiateTransaction({ required UpiApplication app, required String receiverUpiAddress, required String receiverName, required String transactionRef, required String amount, String? url, String? transactionNote, }) payment process went through easily but after last it gives errors as : it is private UPI sending any random id's of shops [my known one] show some errors means I don't have option to check Merchant id in this code, secondly where to get Merchant id from bank or bussiness upi setup?

princeflutterdev commented 1 day ago

can you please share the error which you are getting

when I uncomment merchantCode: forget the number I put but it is underlined as "The named parameter 'merchantCode' isn't defined. Try correcting the name to an existing named parameter's name, or defining a named parameter with the name 'merchantCode'." as initiateTransaction has these param only Future initiateTransaction({ required UpiApplication app, required String receiverUpiAddress, required String receiverName, required String transactionRef, required String amount, String? url, String? transactionNote, }) payment process went through easily but after last it gives errors as : it is private UPI sending any random id's of shops [my known one] show some errors means I don't have option to check Merchant id in this code, secondly where to get Merchant id from bank or bussiness upi setup?

please check with the new version and provide the feedback for same i have added merchantCode in param as well

and merchantId you can get from the same source where you get the merchant UPI Id

princeflutterdev commented 1 day ago

The merchant ID in UPI is a unique identifier assigned to merchants accepting UPI payments. The merchant ID is used to identify the merchant when a customer scans their QR code. The merchant ID is also used to track payments and prevent fraud.

this is what we are getting in the documentation from UPI.