Interface OPPDeviceFingerprint
-
- All Implemented Interfaces:
public interface OPPDeviceFingerprintAbstraction over a device-fingerprint collector that enriches a payment Transaction with a device identifier before the transaction is submitted.
-
-
Method Summary
Modifier and Type Method Description abstract voidsetDeviceFingerPrint(@NonNull() Transaction transaction, @NonNull() OppPaymentProvider provider, @Nullable() CheckoutInfo info, @NonNull() FingerPrintListener listener)Collects the device fingerprint and applies it to transaction's payment params, then reports the (possibly enriched) transaction back throughlistener.-
-
Method Detail
-
setDeviceFingerPrint
abstract void setDeviceFingerPrint(@NonNull() Transaction transaction, @NonNull() OppPaymentProvider provider, @Nullable() CheckoutInfo info, @NonNull() FingerPrintListener listener)
Collects the device fingerprint and applies it to
transaction's payment params, then reports the (possibly enriched) transaction back throughlistener.Implementations must always invoke the listener — on success with a
nullerror, on failure with a com.oppwa.mobile.connect.exception.PaymentError — so the caller's payment flow is never blocked by a fingerprinting failure.- Parameters:
transaction- the transaction to enrichprovider- the payment providerinfo- the already-loaded checkout info, ornullto fetch it viaproviderlistener- the completion callback
-
-
-
-