Checkout function problem

checkout

#1

That is the code I copied from Moltin tutorial, and some errors come


I am new to the Swift. Can anyone help me, please?