verm Posted February 11, 2003 Share Posted February 11, 2003 Graeme Solving the session ID is easy see my first posting. 1) Instead of passing WorldPay the store and customer name as the cartId you should pass the session id to WorldPay. This is done in the payment module by changing: tep_draw_hidden_field('cartId', STORE_NAME.' : '.$order->customer['firstname'].' '.$order->customer['lastname'] to tep_draw_hidden_field('cartId', $worldpay_url note $worldpay_url was already set in the module and is the session name and session id ie $worldpay_url = tep_session_name() . '=' . tep_session_id() ; 2) On callback WorldPay passes cartId back to the site and hence you can use this in the tep_href call. Basically this passes the Session ID to WorldPay who then pass it back once they have taken the payment. I have updated my callback page further to store the transId which they also pass back. The information is set out in WP's integration manual. This gives all the variables available on a callback. The above is 5 min job and allows you to also store all the address info through SSL. Hope this helps. Nick Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.