Package com.clover.sdk.v3.payments
Class IVasProvider.Default
- java.lang.Object
-
- com.clover.sdk.v3.payments.IVasProvider.Default
-
- All Implemented Interfaces:
IInterface
,IVasProvider
- Enclosing interface:
- IVasProvider
public static class IVasProvider.Default extends Object implements IVasProvider
Default implementation for IVasProvider.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.clover.sdk.v3.payments.IVasProvider
IVasProvider.Default, IVasProvider.Stub
-
-
Constructor Summary
Constructors Constructor Description Default()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IBinder
asBinder()
List<VasServiceProvider>
getVasProviders()
Called to load available providers before starting a txnVasPayloadResponse
handlePayload(VasPayload payload, VasMode vasMode, Intent extras)
Called when an applicable VasPayload is retrieved from the mobile device.
-
-
-
Method Detail
-
handlePayload
public VasPayloadResponse handlePayload(VasPayload payload, VasMode vasMode, Intent extras) throws RemoteException
Called when an applicable VasPayload is retrieved from the mobile device. Note implementors may NOT block while handling the payload - the VasPayloadResponse must be returned immediately and the payload handled out-of-band Parameters: payload: the actual payload from the mobile device vasMode: the VasMode relevant to the payload (may help receiver make workflow decisions) extras: intent contains string key/value mappings only. Non-string values are not supported. additional information about the transaction IF AVAILABLE (may not be present in some use cases) possible values include EXTRA_ORDER_ID (with the Clover Order UUID) and EXTRA_PAYMENT_ID (if a payment was completed at the same time as reading the VAS data). Returns: VasPayloadResponse with ResponseType of ACCEPTED (to indicate the data has been received), TXN_UPDATE (to indicate that the data was received and an update to the Order or Amount is pending, to inclue partial payments)- Specified by:
handlePayload
in interfaceIVasProvider
- Throws:
RemoteException
-
getVasProviders
public List<VasServiceProvider> getVasProviders() throws RemoteException
Called to load available providers before starting a txn- Specified by:
getVasProviders
in interfaceIVasProvider
- Throws:
RemoteException
-
asBinder
public IBinder asBinder()
- Specified by:
asBinder
in interfaceIInterface
-
-