asp.net - Authorize.Net AIM Transaction timeout workaround? -


i have written following code authorize.net aim gateway auth_capture transaction:

    try                 {                     if (transactionamount == 0)                     {                         logger.writeinfo("$0 transaction needs no payment gateway transaction ");                     }         else          {             //this function sends auth_capture request , processes payment based on transaction parameters.                         transactionresponse transactionresponse = processpayment(dist, fee);                          transactionid = transactionresponse.transactionid;                         transactionstatus = transactionresponse.status;                         serverresponse = transactionresponse.serverresponse;                     }                 }                 catch (timeoutexception tex)                 {                     context.dispose();                     logger.writeerror(ex.tostring());                     master.errormessage = configurationmanager.appsettings["transaction_timeout_message"];                     ieutils.sendexceptionmail(ex.tex, configurationmanager.appsettings["transaction_timeout_email_subject"]);                     logger.writeerror(ex.tostring());                  }                 catch (exception ex)                 {                     context.dispose();                     logger.writeerror(ex.tostring());                     master.errormessage = ex.message;                     return;                 } 

the scenario if timeout occurs how can see whether transaction has taken place or not , if yes transaction id? there methods available can used settled/unsettled transactions identifying recent transaction requires multiple api calls again risky. can efficient workaround after authorize.net gateway transaction request timeout?


Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -