checkout

fun checkout(activity: Activity, request: CheckoutRequest, callback: PaymentCallback)

Starts a hosted checkout: creates the session, opens the payment screen and reports the outcome to callback. Exactly one callback method runs, on the main thread.