A script to receive and process a transaction