Customize a checkout amount using the Reader SDK. Before trying a credit card transaction, update the sample code to change the checkout amount.
Reader SDK: Quickstart

Step 4: Customize the Checkout Amount

Java (Android)

Before trying a credit card transaction, try updating the sample code to change the checkout amount.

  1. Open ./app/src/main/java/com/example/readersdk/CheckoutActivity.java in the sample application.

  2. In the onCreate() method, change the value of checkoutAmount 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.

  3. Rebuild the sample application.

  4. Choose the Charge $2.00 button to complete a new cash transaction.

  5. View the transaction details in the Square Seller Dashboard.

Related topics Permalink Get a link to this section

If you need more assistance, contact Developer Support or ask for help in the Developer Forums.