start checkout function