-
Notifications
You must be signed in to change notification settings - Fork 1
Order
Ryan Suzuki edited this page Mar 25, 2022
·
2 revisions
-
UNKNOWN
= Initial state -
PROCESSING
= Transaction in progress -
VALIDATING
= Validation in progress -
COMPLETE
= Validations confirmed by seller, andacknowledged
orconsumed
by the billing client's server -
CANCELED
= Order has been canceled by either the buyer or the seller -
PENDING
= Orders that did not finish at the original time of purchase, and require action.
PROCESSING
VALIDATING
COMPLETE
-
startOrder
This will start the billing UI flow for the user. On a successful transaction, order will move toPROCESSING
. -
Orders will tentatively move to
VALIDATING
, where the developer must implementOrderValidatorListener
with their own validation checks. -
Call the parameterized callback function
validated()
to notify billing client to continue on to completing the transaction. -
After successfully notifying the billing client's server that the transaction has concluded,
COMPLETE
status will be returned by subscribing LiveData observers (for UI related use-cases), and also by theOrderUpdaterListener
's callbackonComplete