Mike,
I did get the PayPal integration working, but it sounds like you are doing the single button method. I used the ExpressCheckout for the customers with a PayPal account, and DoDirectPayment with our own secure pages for those without. So this may not help, but below is what my SetExpressCheckout api call looks like, with the return url in it.
Brian
loc:poststr = 'USER=' & clip(glo:apiuser) & |
'&PWD=' & clip(glo:apipass) & |
'&SIGNATURE=' & clip(glo:apisig) & |
'&VERSION=2.3' & |
'&PAYMENTACTION=Authorization' & |
'&AMT=' & clip(left(format(p_web.GetSessionValue('CartTotalNum'),@n_12.2))) & |
'&RETURNURL=http://www.aucsupply.com/ppReturnForm?SessionId=' & p_web.SessionID & |
'&CANCELURL=http://www.aucsupply.com/FramePage?SessionId=' & p_web.SessionID & |
'&METHOD=SetExpressCheckout'