Package com.clover.sdk.v3.payments.api
Class RequestTipIntentBuilder
- java.lang.Object
-
- com.clover.sdk.v3.payments.api.BaseIntentBuilder
-
- com.clover.sdk.v3.payments.api.RequestTipIntentBuilder
-
public class RequestTipIntentBuilder extends BaseIntentBuilder
Use the RequestTipIntentBuilder class to initiate a customer facing tip screen.
-
-
Field Summary
-
Fields inherited from class com.clover.sdk.v3.payments.api.BaseIntentBuilder
PAPI_SDK_NAME
-
-
Constructor Summary
Constructors Constructor Description RequestTipIntentBuilder(long baseAmount)
Constructor that takes an amount that is displayed on the screen and is also used used to calculate percentage based tips.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Intent
build(Context context)
returns a single-use Intent that can be used to launch an Activity to process the requestRequestTipIntentBuilder
tipSuggestions(List<TipSuggestion> tipSuggestions)
Options list of up to 4 tip suggestions that can be either percentage or fixed amounts.
-
-
-
Method Detail
-
tipSuggestions
public RequestTipIntentBuilder tipSuggestions(List<TipSuggestion> tipSuggestions)
Options list of up to 4 tip suggestions that can be either percentage or fixed amounts. Percentage based suggestions are calculcated based on the baseAmount- Parameters:
tipSuggestions
-- Returns:
-
build
public Intent build(Context context)
Description copied from class:BaseIntentBuilder
returns a single-use Intent that can be used to launch an Activity to process the request- Overrides:
build
in classBaseIntentBuilder
- Returns:
-
-