Reply
Highlighted
Member
Posts: 4
Registered: ‎06-09-2017

How to generate opaqueData using .NET SDK?

I use Accept.JS for the frontend, and my backend (.NET web service) has a method, which gets opaqueData from UI. I want to write unit tests for this method, however I cannot find any way to generate this data using your .NET SDK library. Is it possible to generate valid opaqueData using .NET SDK?

Highlighted
Posts: 2,765
Topics: 57
Kudos: 247
Blog Posts: 67
Registered: ‎12-05-2011

Re: How to generate opaqueData using .NET SDK?

Hello @Mirimon

 

We currently don't support creating a token through the SDK/API, but we can see how this would be helpful.  Another developer made a similar request.  You can add your vote to add this in our Ideas forum.

 

https://community.developer.authorize.net/t5/Ideas/Test-Opaque-Token/idi-p/56940

Highlighted
All Star
Posts: 699
Registered: ‎11-03-2016

Re: How to generate opaqueData using .NET SDK?

Hi @Mirimon,

 

Richard's correct that we don't currently support a way of getting a token through the API, there is a way to make an API call to do what you ask. I posted samples of the request and response in this thread.

 

There is nothing built into the .NET SDK that would access this method, though, so you'd be sending a JSON/XML request directly into our API endpoint yourself.