Taking payment via Adyen in flutter webapp [closed] - firebase

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I am trying to build a WebApp using Flutter. I am stuck at a point with payment system integration. I want to use Adyen. Adyen does not provide any direct support to Flutter officially. So I made a webpage where payments can be executed supported by the backend server.
So my webapp can launch a webview and open the payment page inside it. But how can my app know if the payment has gone through or not?

An adyen integration completes a payment at the backend, either with the payment request or the additional details request (depending on the payment method used). Your server would know the result of the payment as specified in the resultCode.
You could pass the resultCode directly from your backend to your flutter app by whatever means you currently facilitate backend <-> flutter client communication.
Alternatively, you could use the webview as that communication channel by redirecting to some arbitrary completion page and implementing onPageStarted to look for that url, thus knowing the payment flow was completed.
Though with this approach you will need to make sure you redirect finished payment on client side, refer to example Adyen integration on this.

Related

Is there any other way to send notification messages to a user without firebase? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 1 year ago.
Improve this question
I am currently working on an app which will be used to send important messages as fast as possible to multiple people.
I found out that there is such a thing like firebase with which it is possible to send messages from a custom server to iOS and android devices.
But I need a solid and secure solution and firebase is therefore only my plan b. I would prefer a custom solution.
How can I achieve that a message will be sent to a client without firebase? I do not want the client to check for a new message every x seconds. That would be a waste of data. The triggering must come from the server. Can this be achieved using the observer pattern?
Firebase is a online datebase. If you try to choose a db for your app, you can choose insted MongoDB, which have a online version of db.

How to go about building a backend for an IOT Device? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
I am building an IOT device whose state is controlled by a mobile app. How do I go about building a backend for this service which can allow the device to continuously listen to any changes in state on server side?
Specifically : will cloud Firestore be appropriate for this? Or MQTT?
Since you have the tag firebase in your question, narrowing down the possibilities to only using firebase, you can use Firebase for real time listening to commands. Firebase comes with Realtime Database that can be used to listen to change in information in real time, other than that you can also use cloud Functions and make them listen to changes on certain fields inside the database.

Timed Support Chat In Flutter [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I am working on a flutter project with payment integration. I am very good at front end side but when it comes to back-end it hurts. Anyways I want to add this functionality in my app.
The user will pay price for the consultant. Once the transaction is done I want to give the user a option to chat with the support team of the app but for only 2 days not more than 2 days after the payment. I am using purely using firebase for CRUD functions but I am stuck on this. I have done this in php with sessions but I can't figure out how can I do it using firebase.
Any detailed help/guidance will be very helpful.
Thanks.
save user profile inside firestore in a users collection
add a boolean field called subscribed which is an indicator for the user payment, and subscriptionDate
when the user subscribes, record the dattime
every time the user opens your app, first check if he's subscribed or not, then compare the current date with the subscriptionDate
if the user passed the previous step, open the chat page
you can find many tutorials on google that talks about building chat app using firebase in details

How to create stripe standard account with flutter and firebase [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I have this amazing flutter app and I managed to set up a payment system with Stripe. My app is a marketplace so I have many vendors and I am able to collect money from the users and transfer the money to vendors. I have create a test vendor and it all works fine in testing mode. Now I would like to let prospective vendors to create a Stripe standard account and connect with my platform. Here are the instruction I would need to follow: link to stripe
I read the instructions but I am not able to understand or implement it. I would like to know if I can implement the steps within my Flutter app or not. I am not familiar with servers but I have managed to use firebase to create charges. My first problem is the redirect URI (what is this?). The second problem is how to handle the response from stripe (step 3) and lastly get the vendor data with a POST request... Is there anything simple to use in flutter? I have seen this and this but I am not sure they can be used...
Can you please clarify what should I do here. Many many thanks in advance
Here is what I did
in firebase: I created an http function, ie exports.createStripeAccount = functions.https.onRequest((req, res)
in stripe: set that function as redirect uri
in flutter: launch(url_to_connect_the_account)
in firebase inside the httpfunction:
return stripe.oauth.token({
grant_type: 'authorization_code',
code: req.query.code,
})
and that's all folks!

How can I implement an invitation system using Flutter and Firebase realtime database [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I am developing a Flutter app that is using the firebase realtime database. The app shall be used collaboratively by users to collect and analyze data. Users are part of a team and the data that is collected will be associated with the team. For a user to join a team, they are required to use an invitation link that is sent out by the team leader. The invite shall use the teamId which is a unique identifier for each team.
How could I go about this.
It sounds like you have a two-step process:
Create a link for a specific team that the user can click to then get into the app as part of the team.
Sending that link to the user.
For that type of link you can use Firebase Dynamic Links, for which a Flutter wrapper exists: firebase_dynamic_links plugin.
For sending the link you have many options, but the most common ones are to send it through email or SMS/text message. When the user then clicks the link, it can open your app, and you can extract information about the team from the link.
If the target user is already using your app, you can of course skip all this and create a notification system through the Realtime Database. There's nothing pre-made for that, but it's just more use of the APIs you're already using.

Resources