Package com.clover.sdk.v3.payments.api
Class PaymentRequestIntentBuilder.TipOptions
- java.lang.Object
-
- com.clover.sdk.v3.payments.api.PaymentRequestIntentBuilder.TipOptions
-
- Enclosing class:
- PaymentRequestIntentBuilder
public static class PaymentRequestIntentBuilder.TipOptions extends Object
Tip options that allow the Integrator to control tipping on a per-transaction level.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PaymentRequestIntentBuilder.TipOptions
Disable()
No tip will be taken and tipAmount will default to 0.static PaymentRequestIntentBuilder.TipOptions
PromptCustomer(Long baseAmount, List<TipSuggestion> tipSuggestions)
Customers will be prompted to tip.static PaymentRequestIntentBuilder.TipOptions
Provided(long tipAmount)
Tips will be provided by Integrator.
-
-
-
Method Detail
-
Disable
public static PaymentRequestIntentBuilder.TipOptions Disable()
No tip will be taken and tipAmount will default to 0.
-
Provided
public static PaymentRequestIntentBuilder.TipOptions Provided(long tipAmount)
Tips will be provided by Integrator.
-
PromptCustomer
public static PaymentRequestIntentBuilder.TipOptions PromptCustomer(Long baseAmount, List<TipSuggestion> tipSuggestions)
Customers will be prompted to tip.- Parameters:
baseAmount
- - Optional amount used to compute percentage based tip optionstipSuggestions
- - Optional list of TipSuggestions for this transaction
-
-