Yesterday I spent a bunch of time helping a 3rd party developer getting his order processing code working. We got past his first several issues and then ran into an issue we could not solve. The problem occurs when communicating with the Paypal Pay flow pro gateway. I verified the web.config matches http://www.imiscommunity.com/payment_gateway_processing_in_ibo If you have any ideas I would be very appreciative. // process payment PaymentGatewayResponse response = cOrder.Payment.ProcessPayment(new CAddressBasic(imisUser) { Address1 = cOrder.Address1, Address2 = cOrder.Address2, City = cOrder.City, StateProvince = cOrder.StateProvince, PostalCode = cOrder.PostalCode }); The error returned from the gateway is "index was outside the bounds of the array" when the line above is submitted. I have already submitted it as an SMR. I searched all our resources and nothing I found helped. http://staff.advsol.com/AM/Template.cfm?Section=My_Support_Status1&T... Full code is attached.
Message: Index was outside the bounds of the array.
Stack Trace:
[IndexOutOfRangeException: Index was outside the bounds of the array.]
Asi.PaymentGateway.PayflowProPaymentGatewayResponse.GenerateResponse(String responseString, TransactionType transactionType) +375
Asi.PaymentGateway.PayflowProPaymentGatewayProvider.ProcessPayment(TransactionType transactionType, CPayment payment, CAddressBasic billingAddress) +482
Asi.iBO.Commerce.PaymentGatewayService.ProcessPayment(TransactionType transactionType, CPayment payment, CAddressBasic billingAddress) +1239
Asi.iBO.Financials.CPayment.ProcessPayment(TransactionType transactionType, CAddressBasic billingAddress) +58
PurchasePublicationProduct.btnSubmit_Click(Object sender, EventArgs e) in c:\Development\nqf-qualityforum\svn.nqf-qualityforum\Development\Trunk\CodeBase\Web\PurchasePublicationProduct.aspx.cs:329
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +111
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +110
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565
| Attachment | Size |
|---|---|
| IMIS Custom ECommerce source code 12072010.txt | 8.06 KB |
The error you described is
The error you described is very generic and not related to ASP.NET only.
This happens due to the fact that result of an array values are over flowing the array dimension.
Basically "GenerateResponse" is not returning valid results after posting card details to paypal. Check the return results format is correct (should be a valid querystring)
Thanks