-
- All Implemented Interfaces:
public class PaymentDetails
Represents the payment details for before submit event.
-
-
Field Summary
Fields Modifier and Type Field Description private String
checkoutId
private final String
paymentBrand
private PaymentData
googlePayData
private CustomSheetPaymentInfoWrapper
samsungPayData
private List<Warning>
threeDS2Warnings
private boolean
isCanceled
private OrderSummary
orderSummary
-
Constructor Summary
Constructors Constructor Description PaymentDetails(String checkoutId, String paymentBrand)
Constructs PaymentDetails with the checkout id and payment brand.
-
Method Summary
Modifier and Type Method Description String
getCheckoutId()
Returns checkout id. void
setCheckoutId(@NonNull() String checkoutId)
Sets the checkout id. String
getPaymentBrand()
Returns payment brand. PaymentData
getGooglePayData()
Returns GooglePay's PaymentData response object. void
setGooglePayData(@Nullable() PaymentData googlePayData)
Sets GooglePay's PaymentData response object void
setSamsungPayData(@Nullable() CustomSheetPaymentInfo samsungPayData)
Sets SamsungPay's Payment information details with custom payment sheet information. List<Warning>
getThreeDS2Warnings()
Returns the list of warnings produced by 3DS 2 library. void
setThreeDS2Warnings(@Nullable() List<Warning> threeDS2Warnings)
Sets the list of warnings produces by 3DS 2 library. boolean
isCanceled()
Returns true
if the payment was canceled during before submit event, otherwisefalse
.OrderSummary
getOrderSummary()
Returns content of the order summary screen for GooglePay. void
setOrderSummary(@Nullable() OrderSummary orderSummary)
Sets content of the order summary screen for GooglePay. void
setCanceled(boolean canceled)
Sets to cancel payment during before submit event, otherwise false
.boolean
equals(Object o)
int
hashCode()
String
toString()
-
-
Method Detail
-
getCheckoutId
@NonNull() String getCheckoutId()
Returns checkout id.
-
setCheckoutId
void setCheckoutId(@NonNull() String checkoutId)
Sets the checkout id. Call this method once new checkout id was returned in the end of checkout id request.
- Parameters:
checkoutId
- A new checkout id.
-
getPaymentBrand
@Nullable() String getPaymentBrand()
Returns payment brand.
-
getGooglePayData
@Nullable() PaymentData getGooglePayData()
Returns GooglePay's PaymentData response object.
-
setGooglePayData
void setGooglePayData(@Nullable() PaymentData googlePayData)
Sets GooglePay's PaymentData response object
- Parameters:
googlePayData
- GooglePay's PaymentData response object.
-
setSamsungPayData
void setSamsungPayData(@Nullable() CustomSheetPaymentInfo samsungPayData)
Sets SamsungPay's Payment information details with custom payment sheet information.
- Parameters:
samsungPayData
- SamsungPay's Payment information details with custom payment sheet information.
-
getThreeDS2Warnings
@Nullable() List<Warning> getThreeDS2Warnings()
Returns the list of warnings produced by 3DS 2 library.
-
setThreeDS2Warnings
void setThreeDS2Warnings(@Nullable() List<Warning> threeDS2Warnings)
Sets the list of warnings produces by 3DS 2 library.
- Parameters:
threeDS2Warnings
- The list of warnings.
-
isCanceled
boolean isCanceled()
Returns
true
if the payment was canceled during before submit event, otherwisefalse
.
-
getOrderSummary
@Nullable() OrderSummary getOrderSummary()
Returns content of the order summary screen for GooglePay. OrderSummary.
-
setOrderSummary
void setOrderSummary(@Nullable() OrderSummary orderSummary)
Sets content of the order summary screen for GooglePay. OrderSummary.
- Parameters:
orderSummary
- Summary of the order.
-
setCanceled
void setCanceled(boolean canceled)
Sets to cancel payment during before submit event, otherwise
false
.- Parameters:
canceled
-true
to cancel payment during before submit event, otherwisefalse
.
-
hashCode
int hashCode()
-
-
-
-