On the success page, go to the bindings panel.
Click the plus button and select eCart -> Checkout Form Response. From the list of payment gateways, select Sage Pay VSP Form. This will add dynamic databindings to the page that can be used to return information about the transaction including the VendorTxCode.