ValidatorCallback

interface ValidatorCallback

Respond to the events triggered by the developer's validator. Developers will need to implement this interface if custom validation checks need to be provided before finalizing an order. If the purchase is properly verified, call onSuccess, otherwise call onFailure so the library can appropriately continue the lifecycle of a customer's order.

Functions

Link copied to clipboard
abstract fun invalidated(order: Orderz)

Call if order is deemed invalid due to the nature of the purchase. i.e. the order was fulfilled already or the sku is no longer available, etc.

Link copied to clipboard
abstract fun validated(order: Orderz)

Developers should verify the order with their own backend records of a users purchase history prior to calling this method.