public class PaymentRequestIntentBuilder extends BaseIntentBuilder
Modifier and Type | Class and Description |
---|---|
static class |
PaymentRequestIntentBuilder.CardOptions
Card options that allow the Integrator to control the use of cards.
|
static class |
PaymentRequestIntentBuilder.OfflineOptions
Offline options that allow the Integrator to control a transaction's offline state on a per-transaction level.
|
static class |
PaymentRequestIntentBuilder.ReceiptOptions
Receipt options that allow the Integrator to control the receipt selection on a per-transaction level.
|
static class |
PaymentRequestIntentBuilder.SignatureOptions
Signature options that allow the Integrator to control how the signature is collected on a per-transaction level.
|
static class |
PaymentRequestIntentBuilder.TipOptions
Tip options that allow the Integrator to control tipping on a per-transaction level.
|
static class |
PaymentRequestIntentBuilder.TokenizeOptions |
PAPI_SDK_NAME
Constructor and Description |
---|
PaymentRequestIntentBuilder(String externalPaymentId,
long amount)
Creates an instance of the PaymentRequestIntentBuilder class
|
Modifier and Type | Method and Description |
---|---|
Intent |
build(Context context)
Builder method to create an Intent to be used by Integrator POS to initiate payment
|
PaymentRequestIntentBuilder |
cardOptions(PaymentRequestIntentBuilder.CardOptions cardOptions)
Sets CardOptions on the PaymentRequestIntentBuilder object
|
PaymentRequestIntentBuilder |
externalReferenceId(String externalReferenceId)
Sets the field 'externalReferenceId'
|
PaymentRequestIntentBuilder |
offlineOptions(PaymentRequestIntentBuilder.OfflineOptions offlineOptions)
Sets OfflineOptions on the PaymentRequestIntentBuilder object
|
PaymentRequestIntentBuilder |
receiptOptions(PaymentRequestIntentBuilder.ReceiptOptions receiptOptions)
Sets ReceiptOptions on the PaymentRequestIntentBuilder object
|
PaymentRequestIntentBuilder |
taxAmount(Long taxAmount)
Sets the field 'taxAmount'.
|
PaymentRequestIntentBuilder |
tipAndSignatureOptions(PaymentRequestIntentBuilder.TipOptions tipOptions,
PaymentRequestIntentBuilder.SignatureOptions signatureOptions,
Boolean preferOnScreen)
Sets TipOptions, SignatureOptions and preferOnScreen on the PaymentRequestIntentBuilder object
|
PaymentRequestIntentBuilder |
tokenizeOptions(PaymentRequestIntentBuilder.TokenizeOptions tokenizeOptions) |
public PaymentRequestIntentBuilder(String externalPaymentId, long amount)
externalPaymentId
- amount
- public PaymentRequestIntentBuilder tipAndSignatureOptions(PaymentRequestIntentBuilder.TipOptions tipOptions, PaymentRequestIntentBuilder.SignatureOptions signatureOptions, Boolean preferOnScreen)
tipOptions
- signatureOptions
- preferOnScreen
- - applies to both tip and signature as preferred locationpublic PaymentRequestIntentBuilder cardOptions(PaymentRequestIntentBuilder.CardOptions cardOptions)
cardOptions
- public PaymentRequestIntentBuilder receiptOptions(PaymentRequestIntentBuilder.ReceiptOptions receiptOptions)
receiptOptions
- public PaymentRequestIntentBuilder offlineOptions(PaymentRequestIntentBuilder.OfflineOptions offlineOptions)
offlineOptions
- public PaymentRequestIntentBuilder tokenizeOptions(PaymentRequestIntentBuilder.TokenizeOptions tokenizeOptions)
public PaymentRequestIntentBuilder externalReferenceId(String externalReferenceId)
externalReferenceId
- public PaymentRequestIntentBuilder taxAmount(Long taxAmount)
taxAmount
- public Intent build(Context context) throws IllegalArgumentException
build
in class BaseIntentBuilder
context
- IllegalArgumentException