Posts: 26
Registered: ‎10-27-2014

C# CaptureRequest invoice number not getting set.

I'm working on a C# integration using both CIM and AuthorizeCapture methods, and currently the CIM populates an invoice number properly where as the AuthorizeCapture is not. Here is the way I have been attempting to use AuthorizeCapture, that works, but does not show the Invoice Number in transaction history.


      IGatewayRequest request = new CaptureRequest( authCode, cardNumber, monthFormatted + cardYearFormatted, amount );
      request.InvoiceNum = createTransaction.Id.ToString(); 
      if( cardCode != null && cardCode != "" ) {
        request.AddCardCode( cardCode );
      IGatewayResponse actual = target.Send( request );

I was thinking of trying instead:


 request.AddInvoice( createTransaction.Id.ToString() );

I figured I would post the issue here in case some users have experience in this area.


Thank you,

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

Re: C# CaptureRequest invoice number not getting set.


It's been a while since this was first posted. I would recommend subscribing to this topic so that you'll be alerted via email if anyone from the community is able to respond with any comments. To subscribe, click Topic Options at the top of this thread and then select Subscribe. You'll then receive an email once anyone replies.