paypal express confirm - store transaction ID
I've got my site working and processing transactions using ecart 4 (ASP VB - yeee haaa).
One thing I'm having problems with is getting the paypal express Transaction ID and storing it in my database so our accounting people can reconcile the web transaction with the paypal account.
I have set up a session variable as follows which I'm not entirely sure is correct - I've set up the 'Store Summary in db' behavior to get a value from session("PP_Express_TransactionID") and save it in the summary table already but nothing is saving and i'm guessing that i've not requested the pp transactionid properly.
<%
'Transaction ID from PayPal
if ("" = "") then
Session("PP_Express_TransactionID") = "" & cStr(WA_PP_ECO_GetValue(WA_PP_ECO_GetResult, "TransactionID", false)) & ""
end if
%>
Any pointers absolutely appreciated - this is the final bug I need to fix before the job is totally signed off.
thanks