Reply
Highlighted
Member
Posts: 4
Registered: ‎04-13-2012

Authorize.Net C# Library 1.7.1 Issues

[ Edited ]

1.  Null ref exceptoin when calling CustomerGateway.UpdatePaymentProfile.  Error is at

PaymentProfile.ToAPI()

line:  result.payment.Item = card;

result.payment is null.

 

2.  CustomerGateway does not have a call for GetCustomerPaymentProfile.

 

Thanks.

 

Highlighted
Member
Posts: 4
Registered: ‎04-13-2012

Re: Authorize.Net C# Library 1.7.1 Issues

3. AuthorizeAndCapture returns IGatewayResponse which is not populated correctly.

 

Call:

 

Order order = newOrder(this.AppUser.PaymentGatewayID, paymethod.PaymentGatewayID, null);

order.Description = "xxxxx";

order.Amount = (pack.SalePrice > 0) ? pack.SalePrice : pack.Price;

order.InvoiceNumber = "xxxxxsadf";

AuthorizeNet.IGatewayResponse response = gate.AuthorizeAndCapture(order);

 

response:

{}

[AuthorizeNet.GatewayResponse]: {}

Amount: 0

Approved: false

AuthorizationCode: ""

CardNumber: ""

InvoiceNumber: ""

Message: ""

ResponseCode: "1|1|1|This transaction has been approved.|K301EV|Y|2170926556|||16.00|CC|auth_capture|BZ-11|Randy|Shoopman||111 Main St|cccccc|nv|94531||4083985521||randy1@cccc.com||||||||||||||226E788E55582246ABA60CFD1935D32||2||||||...||||||||||||||||"

TransactionID: ""

 

So response.ResponseCode contains the unparsed response string.

 

 

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

Re: Authorize.Net C# Library 1.7.1 Issues

Look like it using a different delimited char then what on your merchant account setting.

Highlighted
Member
Posts: 4
Registered: ‎04-13-2012

Re: Authorize.Net C# Library 1.7.1 Issues

How is the delimiter configured for the API?  The account is set to "|" ..... i believe "," was the default. 

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

Re: Authorize.Net C# Library 1.7.1 Issues

Don't know why they did it, but the SDKs use ',' as the delimited char for CIM while '|' for AIM. So, either change the account setting or download the source and search on ',' (with the single quote) to what ever you need.

Highlighted
Member
Posts: 4
Registered: ‎04-13-2012

Re: Authorize.Net C# Library 1.7.1 Issues

That's too bad.  An option on AuthorizeNet.CustomerGateway would be an nice improvement.