checkout app code