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
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.
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?
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.
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.