Step 4: Customize the Checkout Amount
Before trying a credit card transaction, try updating the sample code to change the checkout amount.
Open ./app/src/main/java/com/example/readersdk/CheckoutActivity.java in the sample application.
onCreate()method, change the value of
checkoutAmountfrom $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.
Rebuild the sample application.
Choose the Charge $2.00 button to complete a new cash transaction.
View the transaction details in the Square Seller Dashboard.