Before trying a credit card transaction, try updating the sample code to change the checkout amount.
- Open ./ReaderSDKSample/Screens/PayViewController.swift in the sample application.
- In the
PayViewController
class, change the value of theamount
property from $1 USD to $2 USD. As with other Square solutions, the Reader SDK specifies monetary amounts in the smallest currency unit of the associated currency code, so $2 USD is specified as 200 cents.private let amount = 200 - Rebuild the sample application.
- Choose the Charge $2.00 button to complete a new cash transaction.
- View the transaction details in the Seller Dashboard.