Reply
Highlighted
Regular Contributor
Posts: 64
Registered: ‎10-03-2013
Accepted Solution

Payment Method in the Batch Details response

The "GetBatchStatistics" API method returns a "GetBatchStatisticsResponseType" object. This type contains a "batch" property of type "BatchDetailsType". The "BatchDetailsType" class defines a property called "paymentMethod". In my test environment, since eCheck transactions do not settle, this property always comes back as "creditCard". What will it come back as in real, production environment, where there are also eCheck transations that need to be settled? Will Authorize.Net create separate batches for credit card transactions and eCheck transactions? If that is the case, I can see how this "paymentMethod" property will be "creditCard" in one case and "eCheck" in the other. Is that how it works?

 

TIA,

Eddie


Accepted Solutions
Highlighted
Solution
Accepted by RichardH (Administrator)
‎08-21-2015 01:58 AM
Administrator Administrator
Administrator
Posts: 563
Registered: ‎08-03-2011

Re: Payment Method in the Batch Details response

 

Hi,

 

If a merchant is processing credit card and eCheck transactions, these will settle in two batches. You will also receive two separate emails for Successful Credit Card Settlement Report and Successful eCheck.Net Settlement Report.

 

Thanks,

Joy

View solution in original post


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

Re: Payment Method in the Batch Details response

The schema for the getBatchStatisticsResponse

https://api.authorize.net/xml/v1/schema/AnetApiSchema.xsd

said the BatchDetailsType is a minOccurs="0" maxOccurs="unbounded"

 

so there should be 2, one for cc and one for echeck

Highlighted
Regular Contributor
Posts: 64
Registered: ‎10-03-2013

Re: Payment Method in the Batch Details response

In my Service Reference class, that type comes defined as this:

 

/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.18408")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="https://api.authorize.net/soap/v1/")]
public partial class GetBatchStatisticsResponseType : ANetApiResponseType

{
   private BatchDetailsType batchField;

   /// <remarks/>
   [System.Xml.Serialization.XmlElementAttribute(Order=0)]
   public BatchDetailsType batch {
      get {
         return this.batchField;
      }
      set {
         this.batchField = value;
         this.RaisePropertyChanged("batch");
      }
   }
}

 

So there's only one BatchDetailsType object, not an array of them. The PaymentMethod property belongs to the BatchDetailsType class, so there's only one payment method.

Highlighted
Regular Contributor
Posts: 64
Registered: ‎10-03-2013

Re: Payment Method in the Batch Details response

[ Edited ]

From the WSDL (https://api.authorize.net/soap/v1/service.asmx?WSDL):

 

<s:complexType name="GetBatchStatisticsResponseType">

   <s:complexContent mixed="false">

      <s:extension base="tns:ANetApiResponseType">

         <s:sequence>

            <s:element name="batch" type="tns:BatchDetailsType" maxOccurs="1" minOccurs="0"/>

         </s:sequence>

      </s:extension>

   </s:complexContent>

</s:complexType>

 

So, there's only one Batch Details object aggregated in the Batch Statistics Response Type.

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

Re: Payment Method in the Batch Details response

Oop. now I see it, the request is based on batchID, so there would be different batchID.

Highlighted
Regular Contributor
Posts: 64
Registered: ‎10-03-2013

Re: Payment Method in the Batch Details response

So my question stands: are there separate batches closed daily for credit card transactions and eCheck transactions? Maybe someone else can shed some light on this question. Someone that already has a live/production account.

Highlighted
Solution
Accepted by RichardH (Administrator)
‎08-21-2015 01:58 AM
Administrator Administrator
Administrator
Posts: 563
Registered: ‎08-03-2011

Re: Payment Method in the Batch Details response

 

Hi,

 

If a merchant is processing credit card and eCheck transactions, these will settle in two batches. You will also receive two separate emails for Successful Credit Card Settlement Report and Successful eCheck.Net Settlement Report.

 

Thanks,

Joy

Highlighted
Regular Contributor
Posts: 64
Registered: ‎10-03-2013

Re: Payment Method in the Batch Details response

Thank you Joy for the clarification.

 

Best regards,

Eddie