cancel
Showing results for 
Search instead for 
Did you mean: 

Object reference not set to an instance of an object

New to Authorize.net. 

 

I have a .net core 2.2 application . The Authorize.net code is in a class library . 

The code is similar to https://github.com/AuthorizeNet/sample-code-csharp/blob/master/PaymentTransactions/ChargeCreditCard....

 

Problem

1) The application works as expected when I execute it from Visual Studio on my local machine with the sandbox account. 

2) I need to host it on IIS(development still ) on a web server. I still want to use the Sandbox account. 

3) I thought I dont have to make any change to the configuration and it will work as is. 

4) But on the IIS the response returned from this method is null. I was of the opinion that Authorize.net will return some value always. Never expected a null. 

Question

1) how do I get it working with the sandbox account on my web server. 

2) If I have to go live , what else i have to do other than changing the Login and TranCode.?

 

Srividhya5
Member
0 REPLIES 0