This page provides the complete reference for all delegate interfaces, result types, and data models in the Bolt Android SDK (com.bolt:checkout). The SDK is available on Maven Central.

BoltCheckoutDelegate

Implement this delegate when using getBoltCheckoutActivityResultLauncher().

Terminal Callbacks (Required)

CallbackParametersDescription
onCheckoutSuccess(result)result: BoltCheckoutResultCalled when the user completes checkout and payment is authorized. Use result.cart?.orderReference, result.reference, and result.merchantOrderNumber to reconcile with your backend.
onCheckoutError(errorReason)errorReason: StringCalled when checkout fails due to a network error, payment decline, validation failure, or other unexpected issue.
onCheckoutCancel()(none)Called when the user intentionally dismisses the checkout UI. The order token remains valid for a subsequent attempt.

Lifecycle Callbacks (Optional)

These default to no-op and are useful for analytics:
CallbackParametersDescription
onCheckoutStart()(none)Checkout flow started and the UI is presented.
onEmailEnter(email)email: StringUser entered and validated their email address.
onShippingDetailsComplete(address)address: BoltShippingAddressShipping address validated.
onShippingOptionsComplete()(none)User selected a delivery option and proceeded to payment.
onPaymentSubmit()(none)User tapped the pay button.
onCartLoaded()(none)Cart loaded and checkout page is ready. WebView mode only.
onNotify(eventName, eventSeverity)eventName: String, eventSeverity: StringCheckout page emitted a notification event. WebView mode only.

Bidirectional Callbacks (Optional, Suspend: WebView Mode Only)

These are request/response callbacks: the checkout WebView sends a request and waits for your app to respond. Both are suspend functions, so you can perform async work before returning.
CallbackReturn TypeDescription
check()BooleanCalled before checkout opens. Return true to proceed, false to cancel (e.g. cart validation failed). Defaults to true.
fetchShippingOptions(address)BoltFrontendShippingAndTaxResult?Called when the user enters a shipping address. Return shipping options and tax, or null to fall back to backend-managed shipping. Defaults to null.

BoltCheckoutResult

onCheckoutSuccess receives a BoltCheckoutResult that mirrors Bolt’s ClientTransactionView. All fields are optional where the type allows null.

Reconciliation Fields

FieldRole
cart?.orderReferenceBolt order reference string.
referenceTransaction reference from the payment processor.
merchantOrderNumberYour merchant-facing order number when Bolt provides it.
amountCharged totals: see BoltAmountView below.

Transaction Core

FieldTypeDescription
idStringTransaction ID.
typeStringTransaction type.
processorStringPayment processor identifier.
dateLongTransaction timestamp (Unix epoch milliseconds).
referenceStringTransaction reference.
statusStringOverall transaction status.
amountBoltAmountViewPrimary amount: use for display and reconciliation.

BoltAmountView

FieldTypeDescription
amountLongAmount in minor currency units (e.g. cents).
currencyStringISO 4217 code (e.g. "USD").
currencySymbolStringDisplay symbol (e.g. "$").

Parties and Payment Instruments

FieldTypeDescription
fromConsumerBoltConsumerView?Payer (id, email, firstName, lastName, phone).
toConsumerBoltConsumerView?Payee when applicable.
fromCreditCardBoltCreditCardView?Card used (id, last4, bin, expiration, network, billing address).
toCreditCardBoltCreditCardView?Destination card when applicable.
last4String?Last four digits of the card at the transaction level.

Authorization, Capture, and Risk

FieldTypeDescription
authorizationBoltAuthorizationView?status and reason for the auth decision.
capturesList<BoltCaptureView>?Capture records (status, amount as BoltAmountView).
creditBoltCreditView?Credit leg status when present.
transactionPropertiesBoltTransactionProperties?avsResult, cvvResult from the processor.
orderDecisionBoltOrderDecisionView?Fraud/order decision (score, decisionFactors).
riskScoreDouble?Risk score when provided.
customerListStatusBoltCustomerListStatus?autoApproved, blockListed.
indemnificationDecisionString?Indemnification decision when applicable.
indemnificationReasonString?Indemnification reason when applicable.
splitsList<BoltTransactionSplitView>?Split payouts (amount, type).
lastViewedUtcLong?Last viewed time (epoch ms).
viewStatusString?View/status string.
hasRefundsBoolean?Whether refunds exist on the transaction.

Addresses and Shipping

FieldTypeDescription
shippingAddressBoltAddressInput?Shipping address (names, street, locality, region, postal code, country, phone, email).
billingAddressBoltAddressInput?Billing address when distinct from shipping.
shippingOptionBoltShippingOption?Selected shipping option. When valid, value includes service, cost, reference, carrier, ETA, tax, and signature details.
BoltShippingOption is the checkout success parcelable (selected shipment on the transaction). It is not the same type as BoltFrontendShippingOption, which is only used in fetchShippingOptions.

Cart, Integrations, and Notes

FieldTypeDescription
cartBoltTransactionCart?orderReference, discounts (BoltCartDiscountView), items (BoltCartItemView).
shopifyBoltShopifyResponse?Shopify-hosted payment fields when applicable.
sfccBoltSfccOrderResponse?SFCC integration: sfccOrderToken when present.
customFieldResponsesList<BoltCustomFieldResponse>?Custom fields: publicId, response.
userNoteString?User-supplied order note when captured.

BoltLoginDelegate

Implement this delegate when using getLoginActivityResultLauncher().
CallbackParametersDescription
onLoginSuccess(authCode, codeVerifier, state)authCode: String, codeVerifier: String, state: StringUser authenticated successfully. Send authCode and state to your backend for token exchange.
onLoginError(errorReason)errorReason: StringLogin failed (network error, invalid session, or user denied permissions).
onLoginCancel()(none)User dismissed the login screen. No partial session is created.

BoltPaymentFlowDelegate

Implement this delegate when using getPaymentFlowActivityResultLauncher(). The payment flow is a standalone UI for collecting and tokenizing a payment method without running the full checkout.
CallbackParametersDescription
onPaymentFlowSuccess(paymentFlowMethod, creditCard)paymentFlowMethod: BoltPaymentMethod, creditCard: BoltCreditCard?Card successfully tokenized. creditCard contains token, last4, network, expiration, and postal code.
onPaymentFlowError(errorReason)errorReason: StringTokenization or network failure.
onPaymentFlowCancel()(none)User dismissed the payment collection screen.

BoltPaymentAuthorizationDelegate

Implement this delegate when calling authorizePayment(). Used in custom checkout flows where you collected a card via the payment flow.
CallbackParametersDescription
onPaymentAuthorizationSuccess(orderReference)orderReference: StringPayment authorized. Use the reference to confirm the order with your backend.
onPaymentAuthorizationFail(status, reason)status: String, reason: StringAuthorization declined by the processor (e.g. insufficient funds, suspected fraud).
onPaymentAuthorizationError(errorReason)errorReason: StringRequest failed before reaching the processor (e.g. network timeout, missing tokenized card).

Shipping Types

BoltFrontendShippingOption

Each entry in BoltFrontendShippingAndTaxResult.shippingOptions:
FieldTypeDescription
serviceStringHuman-readable shipping method name (e.g. "Standard Shipping").
costLongShipping cost in minor currency units (cents).
currencyStringISO 4217 currency code. Defaults to "USD".
referenceStringOpaque identifier for this option, passed back to the backend. May be empty.
carrierStringCarrier name (e.g. "FedEx"). May be empty.
estimatedDeliveryDateStringEstimated delivery date string (e.g. "2026-04-14"). May be empty.
taxAmountLongPer-option shipping tax in cents. Defaults to 0.

BoltFrontendShippingAndTaxResult

Return type for fetchShippingOptions:
FieldTypeDescription
shippingOptionsList<BoltFrontendShippingOption>Available shipping options to display in checkout.
taxAmountLongCart-level tax amount in cents (product tax, not shipping tax). Defaults to 0.
taxCurrencyStringISO 4217 currency code for taxAmount. Defaults to "USD".