-
- All Implemented Interfaces:
public class PaymentDetailsRepresents the payment details for before submit event.
-
-
Field Summary
Fields Modifier and Type Field Description private StringcheckoutIdprivate final StringpaymentBrandprivate PaymentDatagooglePayDataprivate CustomSheetPaymentInfoWrappersamsungPayDataprivate List<Warning>threeDS2Warningsprivate booleanisCanceledprivate OrderSummaryorderSummary
-
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 StringgetCheckoutId()Returns checkout id. voidsetCheckoutId(@NonNull() String checkoutId)Sets the checkout id. StringgetPaymentBrand()Returns payment brand. PaymentDatagetGooglePayData()Returns GooglePay's PaymentData response object. voidsetGooglePayData(@Nullable() PaymentData googlePayData)Sets GooglePay's PaymentData response object voidsetSamsungPayData(@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. voidsetThreeDS2Warnings(@Nullable() List<Warning> threeDS2Warnings)Sets the list of warnings produces by 3DS 2 library. booleanisCanceled()Returns trueif the payment was canceled during before submit event, otherwisefalse.OrderSummarygetOrderSummary()Returns content of the order summary screen for GooglePay. voidsetOrderSummary(@Nullable() OrderSummary orderSummary)Sets content of the order summary screen for GooglePay. voidsetCanceled(boolean canceled)Sets to cancel payment during before submit event, otherwise false.booleanequals(Object o)inthashCode()StringtoString()-
-
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
trueif 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-trueto cancel payment during before submit event, otherwisefalse.
-
hashCode
int hashCode()
-
-
-
-