-
- All Implemented Interfaces:
public class CheckoutActivityResult.Builder
-
-
Field Summary
Fields Modifier and Type Field Description private Transactiontransactionprivate PaymentErrorpaymentErrorprivate StringresourcePath
-
Method Summary
Modifier and Type Method Description CheckoutActivityResult.BuildersetTransaction(@Nullable() Transaction transaction)Sets the Transaction created during the checkout process. CheckoutActivityResult.BuildersetPaymentError(@Nullable() PaymentError paymentError)Sets the PaymentError, if there was an error during the checkout process. CheckoutActivityResult.BuildersetResourcePath(@Nullable() String resourcePath)Sets the resource path for payment status request, if it is available. CheckoutActivityResult.BuildersetCanceled(boolean canceled)Sets the cancellation flag. CheckoutActivityResultbuild()Creates a new checkout activity result. -
-
Method Detail
-
setTransaction
@NonNull() CheckoutActivityResult.Builder setTransaction(@Nullable() Transaction transaction)
Sets the Transaction created during the checkout process.
- Parameters:
transaction- the transaction.
-
setPaymentError
@NonNull() CheckoutActivityResult.Builder setPaymentError(@Nullable() PaymentError paymentError)
Sets the PaymentError, if there was an error during the checkout process.
- Parameters:
paymentError- the payment error.
-
setResourcePath
@NonNull() CheckoutActivityResult.Builder setResourcePath(@Nullable() String resourcePath)
Sets the resource path for payment status request, if it is available.
- Parameters:
resourcePath- the resource path.
-
setCanceled
@NonNull() CheckoutActivityResult.Builder setCanceled(boolean canceled)
Sets the cancellation flag.
- Parameters:
canceled-trueif checkout is canceled, otherwisefalse.
-
build
CheckoutActivityResult build()
Creates a new checkout activity result.
-
-
-
-