Package com.clover.sdk.v3.payments.api
Class PreAuthRequestIntentBuilder
- java.lang.Object
-
- com.clover.sdk.v3.payments.api.BaseIntentBuilder
-
- com.clover.sdk.v3.payments.api.PreAuthRequestIntentBuilder
-
public class PreAuthRequestIntentBuilder extends BaseIntentBuilder
Use the PreAuthRequestIntentBuilder class to initiate a pre-authorized payment on a Clover device.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PreAuthRequestIntentBuilder.CardOptions
Card options that allow the Integrator to control the use of cards.static class
PreAuthRequestIntentBuilder.TokenizeOptions
Options to tokenize card during transaction
-
Field Summary
-
Fields inherited from class com.clover.sdk.v3.payments.api.BaseIntentBuilder
PAPI_SDK_NAME
-
-
Constructor Summary
Constructors Constructor Description PreAuthRequestIntentBuilder(String externalPaymentId, long amount)
Creates an instance of the PreAuthRequestIntentBuilder class
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Intent
build(Context context)
Builder method to create an Intent to be used by Integrator POS to initiate a pre-authorizationPreAuthRequestIntentBuilder
cardOptions(PreAuthRequestIntentBuilder.CardOptions cardOptions)
Sets CardOptions on the PreAuthRequestIntentBuilder objectPreAuthRequestIntentBuilder
externalReferenceId(String externalReferenceId)
Sets the field 'externalReferenceId'PreAuthRequestIntentBuilder
tokenizeOptions(PreAuthRequestIntentBuilder.TokenizeOptions tokenizeOptions)
Sets the tokenize options for this transaction intent
-
-
-
Constructor Detail
-
PreAuthRequestIntentBuilder
public PreAuthRequestIntentBuilder(String externalPaymentId, long amount)
Creates an instance of the PreAuthRequestIntentBuilder class- Parameters:
externalPaymentId
-amount
-
-
-
Method Detail
-
cardOptions
public PreAuthRequestIntentBuilder cardOptions(PreAuthRequestIntentBuilder.CardOptions cardOptions)
Sets CardOptions on the PreAuthRequestIntentBuilder object- Parameters:
cardOptions
-- Returns:
- PreAuthRequestIntentBuilder object with new CardOptions
-
tokenizeOptions
public PreAuthRequestIntentBuilder tokenizeOptions(PreAuthRequestIntentBuilder.TokenizeOptions tokenizeOptions)
Sets the tokenize options for this transaction intent- Parameters:
tokenizeOptions
-- Returns:
-
externalReferenceId
public PreAuthRequestIntentBuilder externalReferenceId(String externalReferenceId)
Sets the field 'externalReferenceId'- Parameters:
externalReferenceId
-- Returns:
- PreAuthRequestIntentBuilder object with new externalReferenceId
-
build
public Intent build(Context context)
Builder method to create an Intent to be used by Integrator POS to initiate a pre-authorization- Overrides:
build
in classBaseIntentBuilder
- Parameters:
context
-- Returns:
- Android Intent to be used to initiate a pre-authorization.
- Throws:
IllegalArgumentException
-
-