I'm guessing, but I think this is due to the order number going too high for the code to deal with...
I think the only thing ordernumber is used for in this store I display... So I don't; see why the IPN should stop. But you can try to reduce the size of the order number to see if it work...
change...
objOInfo.OrderNumber = Format(PortalId, "00") & "-" & UsrID.ToString("0000#") & "-" & objOInfo.OrderID.ToString("0000#") & "-" & objOInfo.OrderDate.ToString("yyyyMMdd")
creates the orderbnumber and uses the orderID expecting just a 4 digit... which is fine.. until the short order number is used... Public ReadOnly Property ShortOrderNumber() As String
Get
If _OrderNumber.Length > 14 Then
Return _OrderNumber.Substring(InStr(_OrderNumber, "-") + 6, 5)
Else
Return ""
End If
End Get
End Property
This then strips the the ordernumber and return a blank.I think the only thing ordernumber is used for in this store I display... So I don't; see why the IPN should stop. But you can try to reduce the size of the order number to see if it work...
change...
objOInfo.OrderNumber = Format(PortalId, "00") & "-" & UsrID.ToString("0000#") & "-" & objOInfo.OrderID.ToString("0000#") & "-" & objOInfo.OrderDate.ToString("yyyyMMdd")
to objOInfo.OrderNumber = objOInfo.OrderID.ToString("00000#") & "-" & objOInfo.OrderDate.ToString("yyyyMMdd")
I think the other data is rather redundant!