public class Payment extends Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
khashed
Indicates whether payment token is khashed.
|
protected String |
last4
Last 4 characters of payment token.
|
protected static int |
LAST4_LENGTH
Length of payment token last 4 string.
|
protected org.apache.logging.log4j.Logger |
logger
Logger.
|
protected String |
paymentToken
Payment token.
|
protected String |
paymentType
Payment type.
|
| Constructor and Description |
|---|
Payment(String ptyp,
String ptok)
Constructor for a payment that accepts the payment ID.
|
| Modifier and Type | Method and Description |
|---|---|
void |
calculateLast4()
Calculate and set the payment token LAST4 value.
|
String |
getPaymentId()
Deprecated.
Version 5.0.0 - 2012. Use method
com.kount.ris.util.payment.Payment.getPaymentToken() :
String.
|
String |
getPaymentToken()
Get the payment token.
|
String |
getPaymentTokenLast4()
Get last 4 characters of payment token.
|
String |
getPaymentType()
Get payment type.
|
boolean |
isKhashed()
Get flag indicating whether payment token has already been khashed.
|
void |
setKhashed(boolean hashed)
Used to set flag indicating whether payment token has been khashed.
|
void |
setPaymentTokenLast4(String lst4)
Set the last 4 characters of the payment token.
|
protected String paymentToken
protected String paymentType
protected String last4
protected static final int LAST4_LENGTH
protected boolean khashed
protected org.apache.logging.log4j.Logger logger
public String getPaymentId()
public String getPaymentToken()
public String getPaymentType()
public void setPaymentTokenLast4(String lst4)
lst4 - Last 4 characterspublic String getPaymentTokenLast4()
public void calculateLast4()
public void setKhashed(boolean hashed)
hashed - True if payment token is khashed.public boolean isKhashed()
Copyright © 2022. All rights reserved.