how to know the user is paid to given upi id? - flutter

I am developing a flutter app that uses UPI payment methods. but when I use packages like easyUPIpayment and any other upi package, I get payment failed. i researched in many way to solve this. but the solution is use a fully verified merchant account( solution is not tested by me). i don't want to use merchant payments in my app. so I decided to create a QR code that specifying the upi id and amount. the user only need to scan the upi id and pay. but i want to conform (not manually) the user has paid or not. how to do that? is ther any solution.
I found that use payment gateways is better solution for this. but payment gateways are charging money even for upi transactions. my app is for charity service so i need to avoid extra charges for collecting money. anyone has better solution for this?
i need better solution

Related

Get Webhook if donation is made to 3rd Party Charity through my Website

I would like to offer a service to my website's users if they donate to a charity while visiting my website. E.g.: Users visit my website and can unlock something if they click a button to donate $10 to a suggested animal sanctuary charity.
I would like to be able to keep track who donated. Importantly, I am looking for a way where I don't have to handle any money. I just want the money to go directly to the charity and get informed how much was donated by the users visiting my website.
Current solutions seem to suggest that PayPal is the best way to do this. Are there other alternatives also, preferably alternatives that have an API for this very purpose and offer Webhooks??
The best alternative I could come up with so far is to create a GoFundMe, but I would much prefer if it is donated directly to a chartiy. Does anybody have an idea how this could be accomplished?
If you want to use the PayPal Donation flow, you can use the Donate SDK or button, setting a business parameter (rather than a hosted_button_id) to a value that is the PayPal account to receive the donation.
For notification you can use the old IPN service, specifying a notify_url as documented here.
The newer Webhooks service cannot be paired with facilitating Donate flow payments to another account.

Integrating online payment in app or website using UPI

I am trying to find an online solution for a multi-vendor application. In this application, there will be multiple vendors and multiple customers and I want to add a feature for vendors to collect payment on their UPI id from customers.
I am thinking that the vendor will give us their VPA of UPI id and I will save that VPA address directly in the database when the customer will try to pay that vendor I will retrieve VPA from the database and make a payment to that vendor.
I tried razor pay, cash-free, PayU, Paytm SDK but no one has the solution. earlier I used this library https://pub.dev/packages/upi_india but it is not working now.
There is one solution I found
https://developers.google.com/pay/india/api/otherapis/omnichannel/initiate-payment
But for this user's have to have google pay installed on their phone
and one other solution is Razorpay routes
https://razorpay.com/docs/payments/route/ But I don't want to integrate this because for using this feature we need the vendor's bank account details and I don't want to collect bank account detail from the vendor.
Any answers or links to this solution are very much appreciated.
Thank you

Why does the package upi_pay fails to do the transactions?

I have tried to do the transaction between two UPI id (both was normal account, that is, not a merchant account).
I have tried to do the transaction with Phonepay, but Phone pay says,
For security reasons, you are not allowed to send money from your bank for this payment.
Maybe you need to check this:
Several major payment apps are looking to avoid fraud on UPI by doing
a strict check on the authenticity of payments. This makes these issues
appear more related to the lack of merchant signature in the current
version of the package. This is further seen in the following snippet
from the UPI deep linking specification which is about how a UPI
payment app should verify a UPI deep linking request (the ones made
through this package)
You can find more details on this issue or similar issues here

Split Payment using Paypal payment option

Our use case is:
The seller sells the product to our platform, the buyer buys with PayPal and payment needs to get split to seller and owner of platform using PayPal
Any idea how to achieve this? We have found ways but they are depreciated in PayPal. Any alternative to achieve using Paypal.
Please help us to find it.
Thanks a lot
Two alternatives to implementing this feature are: Stripe Connect and Braintree Marketplace. These products enable you to choose how you manage the risk give most of the supporting features for a platform payments.
These are paid services, and the cost may prohibit your app. Another alternative is implementing this logic yourself, where you will have to keep track of the sales, the percentages to take for each one for taxes, commissions, fees, and the ledger to ensure money is not lost.
Some open source solutions can help you with the in-house implementation, such as QLedger. Other managed solutions offer pieces of this infrastructure as a service, such as Decimals [disclaimer: I'm the founder of Decimals]
You need to make sure you are aware of the risks of your platform. You won't be able to get money already sent to the seller Paypal account on chargebacks/refund requests, and will have to pay for them yourself.

Different options to make payments inside an Application

I am exploring options which would enable the user to make payments from within the Application.Right now i am aware of 2 options through which a user can make payments from within the App.
1 In-App Purchase (Already implemented).
2 Pay Pal (Exploring).
So is there any other way to implement purchases. Any links , APIs ,advices will be welcomed...
PS: I intend to release this app on US App Store.
Cheers.
I can tell you, that for an in-app purchases PayPal is most definitely a no go, but you will find this out by yourself :)
Apple will only accept payment for such activities through in app purchases, no other methods of payment are allowed.
There is a workaround for these type of purchases (especially PayPal); do them not within your app but from mobile Safari. That will work and is (for now) an accepted method used by more applications.
In app purchase is the only (reliable) way to do 'feature purchasing' and if you want to be in the App Store. If you want to accept donations, you can use in app purchase or PayPal in a UIWebView. There really isn't a whole lot of choice for it on the iPhone.
The reality of the situation is that you are going to want to use in app purchase. Users are going to be more willing to pay if they can just press a button and have it show up on their bill. If you use any other service, they're going to have to go get their credit card, etc... It'll just be ugly.
Another alternative is accepting funds through SMS. This may only be appropriate for donations to charities/non-profits. There are services for supporting SMS giving such as mGive (http://www.mgive.com/), Give on the Go (http://www.giveonthego.com/), or giveByCell (http://www.givebycell.com/).