I need to integrate Square Reader device to my c# .Net WPF application to send Request & verify payment which is better way? - square

I have created a WPF application and integrate checkout-api successfully for payment via payment-url.
Now I want to integrate Square Reader device so can access card payment also at same application. Please guide, suggest a proper way to integrate it.
Any way to send payment request from WPF application to SQUARE READER? Now this is my current requirement. If the terminal API works for it also?

At this time the only way to take in person payments using a web application is with our Terminal API. If this is a mobile app you can use either Reader SDK or Point of Sale API.

Related

I need to integrate POS device to my c# .Net WPF application to verify payment which is better way?

I have created a WPF application and integrate checkout-api successfully for payment via payment-url. Now I want to integrate POS device so can access card payment also at same application. Please guide, suggest a proper way to integrate it
I am trying with this
You can definitely build with the Terminal API to process in person payments. Please note that your application will need to be running on another device since 3rd party apps can't be added to Square Terminal. All payments will push via API to the Terminal device where they'll be completed. 🙂

Can I use Microsoft Graph API concept to integrate my Application with MS Teams. If yes, please elaborate

I have .net application with me. Inside the application I want to add a functionality like the users can communicate between themselves by connecting to MS Teams. So I need my user to connect to MS Teams via my application. Please provide a step by step execution on this.
I don't have any idea on how to integrate my application with MS Teams. Somewhere I heard that it can be done using MS Graph API.
Please take a look at this api first to check if the feature was what you want.
Per my understanding, what you want maybe a web application and you can send messages in the webpage and finally it will be send to Teams. If I was right, then the API may help you. Microsoft graph api has the ability to Send a new chatMessage in the specified channel or a chat.
If you want to use this api, you need to have an Azure AD application then add api permission for this app. Then register this app to your web application, so that you can sign in your app to authenticate and authorize the graph api. Then you need to compose your app to prepare the message content to be sent by the api.
Here's an official sample to create web application and register aad app into the web app and call graph api.

how to embed jitsi with my web application using REST API CALL?

I have made a web application which allows any user to chat using sockets. Now I want to use jitsi to make video calls.
All users on my application are authenticated users. When a user clicks on the call button in chat window, I want to launch Jitsi Meet Conference in a new window by using a REST API Call.
Any guidance or pointers in the right directions is highly appreciated.
For embbeded version you can follow this link and it should work perfectly if you have jitsi-meet running correctly on some domain (public or local):
https://github.com/jitsi/jitsi-meet/blob/master/doc/api.md
lib-jitsi-meet is API if you want to build your own UI and not use embbeded one.
Try and use the lib-jitsi-meet library. Jitsi Meet application is built on top of the same library. The library provides base functions to connect to Jitsi and embed the same in your custom application. By using the Jitsi Meet application API, you might not be able to customise your application to the way you want. You can follow the example at the following link:
https://github.com/jitsi/lib-jitsi-meet/blob/master/doc/example/example.js

Establish a Lync/Skype for business IM Chat from a website (Intranet)

We need to develop a website in Asp.net MVC 4 which will connect user within the organisation on Lync or (skype for business now):The ask is:
1) A Sales guy see 10 Technical person in the list which is in database and all of them are in AD if that helps
2) A sales guy click on an icon to connect to a technical person, a lync window appears on client machine (We can assume that all client will have Lync or skype for business up and running on their system from where they will access website)
3) A lync window appears on the machine of a person we are trying to connect to with Default text "hi! Bla Bla Bla"
Can somebody point me to the correct implementation with some set up details from infrastructure POV as well. We tried to do that but that does not work when we deploy to server:
AutomationModalities conversationModes = 0;
Dictionary<AutomationModalitySettings, object> conversationSettings =
new Dictionary<AutomationModalitySettings, object>();
conversationModes = AutomationModalities.InstantMessage;
conversationSettings.Add(AutomationModalitySettings.FirstInstantMessage, "Hi This is a call XXXXXXn");
conversationSettings.Add(AutomationModalitySettings.SendFirstInstantMessageImmediately, true);'
Since it appears you cannot touch the cross-domain authorization list (white-list), you should be able to achieve what you are looking for by writing some non-JavaScript code to communicate with UCWA. There are a few articles on MSDN that demonstrate how to communicate with UCWA using C#/.NET which might prove interesting:
Lync 2013: Create UCWA Windows Store apps using C#/XAML and XML
Set up the UCWA event channel to receive incoming notifications
Making an outgoing IM call and sending messages
Answer an incoming IM call and receive messages
It gives the basics of handling authentication, interacting with the events channel, handling incoming IM calls and messages. It is designed to handle XML, but that could be changed to work with JSON.
You could use the Skype Web SDK for this - Microsoft have a bunch of examples on their site for the SDK.
http://developer.skype.com/
or more specifically
https://msdn.microsoft.com/en-us/library/dn962160%28v=office.16%29.aspx
It's a JavaScript library, but very easy to integrate with a .NET MVC or Forms app.
I also have some tutorials on exactly this on my blog but not if it's appropriate to post that here. :)

How to monitor all lync users instant message via C# console application?

I have created UCMA trusted application using C# console application.
I want to monitor all Lync Users instant messaging calls (in one place) as well as store their conversations in the database via this console application.
Is it possible?.
If possible, please give an idea or any url.
UCMA trusted applications will only respond to traffic to the endpoints associated with that application so if you want to monitor all instant message traffic it would be the wrong API.
I would suggest using SIP Application API http://msdn.microsoft.com/en-us/library/office/hh364644(v=office.14).aspx to create a server application. This will also require the use of MSPL documented here
As Dai has asked - is the console application a requirement or will a windows service be ok?
Try our this sample application SipSnoop it basically shows all the metadata passing throught the lync server, you can tweak around it according to your requirement.