I’m looking over the C# code example for taking a payment. There’s this block of code:

client = new SquareClient.Builder()
.UserAgentDetail(“sample_app_csharp_payment”) // Remove or replace this detail when building your own app

I’ve searched the Developer’s Docs and API Reference sites, but I didn’t get any hits for “UserAgentDetail”. Can someone please explain the purpose/use of this field?



The UserAgentDetail is the server/client side configuration. In this example it’s sample_app_csharp_payment. :slightly_smiling_face:

Thank you for the reply.

As you just echoed what was in the example without any further details, I’m thinking that UserAgentDetail does not need to be any specific value, but can be any text string that I wish the UserAgentDetail to be, to identify the software making the API call. Is that correct?