Reply
Contributor
Posts: 36
Registered: ‎07-23-2010

SDK API Doc vs Samples

The API documentation for the .NET SDK states that an AuthorizationRequest object is "A request that authorizes a transaction, no capture."  However, the sample application shows the AuthorizationRequest class as the only request being sent to the gateway.

 

Which is correct, the samples or the documentation?  Does the AuthorizationRequest class to an AUTH_CAPTURE transaction?

All Star
Posts: 1,072
Registered: ‎08-17-2009

Re: SDK API Doc vs Samples

Hey jmorrison,

 

It looks like our documentation is incorrect on that one. We'll add this to our list of things to get updated.
 
Just some info though, the AuthorizationRequest will do a capture by default -- but you can override that by passing in a boolean parameter that turns the capture part off, making it so you just run an auth.

 

Thanks,

 

Michelle

Developer Community Manager

Member
Posts: 1
Registered: ‎03-24-2012

Re: SDK API Doc vs Samples

Just starting and looking at the sample code.

It has 

var request = new AuthorizationRequest("4111111111111111", "1216", 10.00M,
"Test Transaction"); I understand it Authorizes and Captures.

To Authorize ONLY one would add "false" as a last parameter.

 

var request = new AuthorizationRequest("4111111111111111", "1216", 10.00M,"Test Transaction", false);

 

What do you use in the API to call Prior Authorization and Capture -- could not find in the samples or docs.

Contributor
Posts: 36
Registered: ‎07-23-2010

Re: SDK API Doc vs Samples

Try the CaptureRequest.

 

var request = new CaptureRequest();

 

I forget what the constructor parameters are.

Member
Posts: 1
Registered: ‎09-03-2013

Re: SDK API Doc vs Samples

Hi emstreet,

 

Did you find a solution for that?

I couldn't find a proper class in the SDK for NCP Prior Authorization and Capture.

 

Thanks,

Eyal

 

Member
Posts: 2
Registered: ‎12-23-2013

Re: SDK API Doc vs Samples

Hi Al, To meet PCI Compliance standards i am not saving card data on local db. I created card on AuthorizeNet servers and i have CardID returned from API. I need to Authorize a transaction but AuthorizeNet Authorization class demands following parameters:

Dim Obj as new AuthorizeNet.AuthorizationRequest(CardNumber, ExpMonthYear, Amount, Description, IncludeCapture)

 

I don't have credit card number and Expiry date saved and when i use to get a card it returns only last 4 digits of card number what to do?please help me out , how can i authorize a transaction without using card number and expiry?

 

Reply ASAP.

faheem

faheemsial@gmail.com

Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: SDK API Doc vs Samples

[ Edited ]