-
- All Implemented Interfaces:
public class CheckoutActivityResult.Builder
-
-
Field Summary
Fields Modifier and Type Field Description private Transaction
transaction
private PaymentError
paymentError
private String
resourcePath
-
Method Summary
Modifier and Type Method Description CheckoutActivityResult.Builder
setTransaction(@Nullable() Transaction transaction)
Sets the Transaction created during the checkout process. CheckoutActivityResult.Builder
setPaymentError(@Nullable() PaymentError paymentError)
Sets the PaymentError, if there was an error during the checkout process. CheckoutActivityResult.Builder
setResourcePath(@Nullable() String resourcePath)
Sets the resource path for payment status request, if it is available. CheckoutActivityResult.Builder
setCanceled(boolean canceled)
Sets the cancellation flag. CheckoutActivityResult
build()
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
-true
if checkout is canceled, otherwisefalse
.
-
build
CheckoutActivityResult build()
Creates a new checkout activity result.
-
-
-
-