checkout

fun checkout(timeout: Long = -1, allowFallbackAfterTimeout: Boolean = false)

Starts the checkout process.

Requires a shop to be set with Snabble.setCheckedInShop.

If successful and there is more then 1 payment method the checkout state will be CheckoutState.REQUEST_PAYMENT_METHOD. You then need to sometime after call @link Checkout#pay(PaymentMethod)} to pay with that payment method.