Authorize.net Order Numbers

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
7 years ago
Authorize.net gets the Order GUID from NOP and uses it for the Order Number inside their protal.
However, they only use the first 20 characters (including the dashes).
It would be nice for store owners to be able to easily access this resulting number for reconciling orders.
It would be a very simple addition.

I add the following to my report section, which works well.

AuthOrder = dr("OrderGuid").ToString
                Dim BNGCode As String = AuthOrder

                If BNGCode.Length > 19 Then
                    BNGCode = BNGCode.Substring(0, 20)
                End If
                TransId = dr("AuthorizationTransactionCode").ToString
                Dim TransCode As String = TransId
                If TransCode.Length > 10 Then
                    TransCode = TransCode.Substring(0, 10)
                End If
7 years ago
Hi
my gateway is same as authorize.net but it needs order id.
order id should not have a letter.
how can i get order id from Guid?
thanks
7 years ago
The OrderService provides a method:

        public virtual Order GetOrderByGuid(Guid orderGuid)

(then use order.Id ;)
7 years ago
AuthorizeNet use ProcessPaymentResult method for send information to gateway and in this method orderid doesn't create yet.
7 years ago
Yes, good point.  Then it's not possible to "get order id from Guid", because the order has not yet committed to database; the Order table in the DB has the Id field as an IDENTITY column.
7 years ago
my gateway needs two things:
1.get order id that is not possible in ProcessPayment method.
2.save transaction id in DB that is not possible in PostProcessPayment method.
how can i do my payment?
7 years ago
NOP sends the OrderGUID as the OrderId to the gateway.
However Authorize.net (and Authorize emulators) only store the first 20 characters.
So the first 20 characters of the OrderGUID (in NOP) are the OrderID in Authorize.net systems when an order is placed.
7 years ago
my gateway is same as Authorize,but it does not get characters and just gets numbers as an order id.
7 years ago
Maybe you can hash the GUID.  The .NET string object has a GetHashCode() function (returns int)
7 years ago
payment plugin need to send Order id for payment processing and get order id from 3rd party for payment verification.
i can not use GetHashCode method.
do you have other solution?
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.