Reply
Contributor
Posts: 14
Registered: ‎10-28-2013
Accepted Solution

how to set API action

This doesn't work because "ApiAction" is readonly:

 

Dim objRequest As New AuthorizationRequest("4111111111111111", "1216", 10.0, "Test Transaction")
objRequest.ApiAction = RequestAction.Authorize

 

How do I set the ApiAction to "RequestAction.Authorize"?

 


Accepted Solutions
Solution
Accepted by topic author Perry
‎08-21-2015 01:58 AM
Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: how to set API action

There a CaptureRequest()

View solution in original post


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

Re: how to set API action

You could download the source and see, it look like you need to pass different param to AuthorizationRequest() to use auth_only

Contributor
Posts: 14
Registered: ‎10-28-2013

Re: how to set API action

The third overide has an IncludeCapture flag which you can set to False to turn the request into a auth_only but I want to do a capture only. There is no constructor for that.

Solution
Accepted by topic author Perry
‎08-21-2015 01:58 AM
Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: how to set API action

There a CaptureRequest()