public class PaymentDetails extends java.lang.Object implements PaymentDetailsIf
| Modifier and Type | Field and Description |
|---|---|
static int |
BANK_TRANSFER
Bank Transfer
|
static int |
BROWSER_IN_FRAME_PAYMENT_GATEWAY
Pay through a payment gateway using their UI in a frame within the KonaKart storefront app
|
static int |
BROWSER_PAYMENT_GATEWAY
Pay through a payment gateway using their UI
|
static int |
COD
Cash on delivery
|
static int |
CUSTOMER_CARD
Customer Card
|
static int |
FREE
Free
|
static int |
SERVER_PAYMENT_GATEWAY
Pay through a payment gateway using KonaKart UI
|
| Constructor and Description |
|---|
PaymentDetails() |
| Modifier and Type | Method and Description |
|---|---|
PaymentDetailsIf |
cloneMainAttributes()
Clones the main attributes of the PaymentDetailsIf object
|
java.lang.String |
getCcCVV() |
java.lang.String |
getCcExpiryMonth() |
java.lang.String |
getCcExpiryYear() |
java.lang.String |
getCcNumber() |
java.lang.String |
getCcOwner() |
java.lang.String |
getCcPostcode() |
java.lang.String |
getCcStreetAddress() |
java.lang.String |
getCcType() |
java.lang.String |
getCode()
The code of the payment gateway.
|
CreditCardIf[] |
getCreditCards()
Contains a list of available credit cards
|
java.lang.String |
getCustom1() |
java.lang.String |
getCustom2() |
java.lang.String |
getCustom3() |
java.lang.String |
getCustom4() |
java.lang.String |
getCustom5() |
java.lang.String |
getDescription()
The payment gateway description to put on the UI so that it can be selected.
|
int |
getOrderStatusId() |
NameValueIf[] |
getParameters()
An array of name value pairs which are the parameters that will be posted to the payment
gateway.
|
PaymentDetailsIf[] |
getPaymentDetails()
The payment details object may consist of more than one payment details objects.
|
int |
getPaymentType()
The supported payment types are:
com.konakart.app.PaymentDetails.COD - Cash on delivery
com.konakart.app.PaymentDetails.BROWSER_PAYMENT_GATEWAY - Payment gateway where user is
redirected to gateway server to enter credit card details e.g.
|
java.lang.String |
getPostOrGet()
Defines whether to use a POST or GET to send the parameters.
|
java.lang.String |
getPreProcessCode()
Information for framework to indicate that some pre-processing code needs to be run for this
Payment Gateway
|
java.lang.String |
getReferrer()
Gets the Referrer - sometimes required to be set on an HTTP post.
|
java.lang.String |
getRequestUrl()
The payment gateway url.
|
int |
getSortOrder()
Defines the order in which the payment gateways are displayed.
|
java.lang.String |
getSubCode()
One PaymentDetails code can have multiple subCodes as well (eg.
|
int |
getSubSortOrder()
Defines the subSortOrder in which the payment gateways are displayed - order first by
sortOrder, then by subSortOrder.
|
java.lang.String |
getTitle()
The title of the payment gateway which can be used in the UI.
|
boolean |
isShowAddr()
If set to true, the UI page where credit card details are entered, will display an address
field.
|
boolean |
isShowCVV()
If set to true, the UI page where credit card details are entered, will display a CVV field.
|
boolean |
isShowOwner()
If set to true, the UI page where credit card details are entered, will display an owner
field to enter the name of the credit card owner.
|
boolean |
isShowPostcode()
If set to true, the UI page where credit card details are entered, will display a postcode
field.
|
boolean |
isShowType()
If set to true, the UI page where credit card details are entered, will display a a credit
card type field.
|
void |
setCcCVV(java.lang.String ccCVV) |
void |
setCcExpiryMonth(java.lang.String ccExpiryMonth) |
void |
setCcExpiryYear(java.lang.String ccExpiryYear) |
void |
setCcNumber(java.lang.String ccNumber) |
void |
setCcOwner(java.lang.String ccOwner) |
void |
setCcPostcode(java.lang.String ccPostcode) |
void |
setCcStreetAddress(java.lang.String ccStreetAddress) |
void |
setCcType(java.lang.String ccType) |
void |
setCode(java.lang.String code)
The code of the payment gateway.
|
void |
setCreditCards(CreditCardIf[] creditCards)
Contains a list of available credit cards
|
void |
setCustom1(java.lang.String custom1) |
void |
setCustom2(java.lang.String custom2) |
void |
setCustom3(java.lang.String custom3) |
void |
setCustom4(java.lang.String custom4) |
void |
setCustom5(java.lang.String custom5) |
void |
setDescription(java.lang.String description)
The payment gateway description to put on the UI so that it can be selected.
|
void |
setOrderStatusId(int orderStatusId) |
void |
setParameters(NameValueIf[] parameters)
An array of name value pairs which are the parameters that will be posted to the payment
gateway.
|
void |
setPaymentDetails(PaymentDetailsIf[] paymentDetails)
The payment details object may consist of more than one payment details objects.
|
void |
setPaymentType(int paymentType)
The supported payment types are:
com.konakart.app.PaymentDetails.COD - Cash on delivery
com.konakart.app.PaymentDetails.BROWSER_PAYMENT_GATEWAY - Payment gateway where user is
redirected to gateway server to enter credit card details e.g.
|
void |
setPostOrGet(java.lang.String postOrGet)
Defines whether to use a POST or GET to send the parameters.
|
void |
setPreProcessCode(java.lang.String preProcessCode)
Information for framework to indicate that some pre-processing code needs to be run for this
Payment Gateway
|
void |
setReferrer(java.lang.String referrer)
Sets the Referrer - sometimes required to be set on an HTTP post.
|
void |
setRequestUrl(java.lang.String requestUrl)
The payment gateway url.
|
void |
setShowAddr(boolean showAddr)
If set to true, the UI page where credit card details are entered, will display an address
field.
|
void |
setShowCVV(boolean showCVV)
If set to true, the UI page where credit card details are entered, will display a CVV field.
|
void |
setShowOwner(boolean showOwner)
If set to true, the UI page where credit card details are entered, will display an owner
field to enter the name of the credit card owner.
|
void |
setShowPostcode(boolean showPostcode)
If set to true, the UI page where credit card details are entered, will display a postcode
field.
|
void |
setShowType(boolean showType)
If set to true, the UI page where credit card details are entered, will display a credit card
type field.
|
void |
setSortOrder(int sortOrder)
Defines the order in which the payment gateways are displayed - order first by sortOrder,
then by subSortOrder.
|
void |
setSubCode(java.lang.String subCode)
One PaymentDetails code can have multiple subCodes as well (eg.
|
void |
setSubSortOrder(int subSortOrder)
Defines the subSortOrder in which the payment gateways are displayed - order first by
sortOrder, then by subSortOrder.
|
void |
setTitle(java.lang.String title)
The title of the payment gateway which can be used in the UI.
|
java.lang.String |
toString()
Returns a string containing the attributes of the PaymentDetail object
|
public static final int COD
public static final int BROWSER_PAYMENT_GATEWAY
public static final int SERVER_PAYMENT_GATEWAY
public static final int BROWSER_IN_FRAME_PAYMENT_GATEWAY
public static final int CUSTOMER_CARD
public static final int BANK_TRANSFER
public static final int FREE
public java.lang.String toString()
toString in class java.lang.Objectpublic NameValueIf[] getParameters()
PaymentDetailsIfgetParameters in interface PaymentDetailsIfpublic void setParameters(NameValueIf[] parameters)
PaymentDetailsIfsetParameters in interface PaymentDetailsIfparameters - The parameters to set.public java.lang.String getPostOrGet()
PaymentDetailsIfgetPostOrGet in interface PaymentDetailsIfpublic void setPostOrGet(java.lang.String postOrGet)
PaymentDetailsIfsetPostOrGet in interface PaymentDetailsIfpostOrGet - The postOrGet to set.public java.lang.String getRequestUrl()
PaymentDetailsIfgetRequestUrl in interface PaymentDetailsIfpublic void setRequestUrl(java.lang.String requestUrl)
PaymentDetailsIfsetRequestUrl in interface PaymentDetailsIfrequestUrl - The requestUrl to set.public java.lang.String getCode()
PaymentDetailsIfgetCode in interface PaymentDetailsIfpublic void setCode(java.lang.String code)
PaymentDetailsIfsetCode in interface PaymentDetailsIfcode - The code to set.public java.lang.String getDescription()
PaymentDetailsIfgetDescription in interface PaymentDetailsIfpublic void setDescription(java.lang.String description)
PaymentDetailsIfsetDescription in interface PaymentDetailsIfdescription - The description to set.public int getSortOrder()
PaymentDetailsIfgetSortOrder in interface PaymentDetailsIfpublic void setSortOrder(int sortOrder)
PaymentDetailsIfsetSortOrder in interface PaymentDetailsIfsortOrder - The sortOrder to set.public java.lang.String getTitle()
PaymentDetailsIfgetTitle in interface PaymentDetailsIfpublic void setTitle(java.lang.String title)
PaymentDetailsIfsetTitle in interface PaymentDetailsIftitle - The title to set.public int getOrderStatusId()
getOrderStatusId in interface PaymentDetailsIfpublic void setOrderStatusId(int orderStatusId)
setOrderStatusId in interface PaymentDetailsIforderStatusId - The orderStatusId to set.public int getPaymentType()
PaymentDetailsIfgetPaymentType in interface PaymentDetailsIfpublic void setPaymentType(int paymentType)
PaymentDetailsIfsetPaymentType in interface PaymentDetailsIfpaymentType - The paymentType to set.public java.lang.String getCcNumber()
getCcNumber in interface PaymentDetailsIfpublic void setCcNumber(java.lang.String ccNumber)
setCcNumber in interface PaymentDetailsIfccNumber - The ccNumber to set.public java.lang.String getCcPostcode()
getCcPostcode in interface PaymentDetailsIfpublic void setCcPostcode(java.lang.String ccPostcode)
setCcPostcode in interface PaymentDetailsIfccPostcode - The ccPostcode to set.public java.lang.String getCcStreetAddress()
getCcStreetAddress in interface PaymentDetailsIfpublic void setCcStreetAddress(java.lang.String ccStreetAddress)
setCcStreetAddress in interface PaymentDetailsIfccStreetAddress - The ccStreetAddress to set.public java.lang.String getCustom1()
getCustom1 in interface PaymentDetailsIfpublic void setCustom1(java.lang.String custom1)
setCustom1 in interface PaymentDetailsIfcustom1 - The custom1 to set.public java.lang.String getCustom2()
getCustom2 in interface PaymentDetailsIfpublic void setCustom2(java.lang.String custom2)
setCustom2 in interface PaymentDetailsIfcustom2 - The custom2 to set.public java.lang.String getCustom3()
getCustom3 in interface PaymentDetailsIfpublic void setCustom3(java.lang.String custom3)
setCustom3 in interface PaymentDetailsIfcustom3 - The custom3 to set.public java.lang.String getCustom4()
getCustom4 in interface PaymentDetailsIfpublic void setCustom4(java.lang.String custom4)
setCustom4 in interface PaymentDetailsIfcustom4 - The custom4 to set.public java.lang.String getCustom5()
getCustom5 in interface PaymentDetailsIfpublic void setCustom5(java.lang.String custom5)
setCustom5 in interface PaymentDetailsIfcustom5 - The custom5 to set.public java.lang.String getCcCVV()
getCcCVV in interface PaymentDetailsIfpublic void setCcCVV(java.lang.String ccCVV)
setCcCVV in interface PaymentDetailsIfccCVV - The ccCVV to set.public java.lang.String getCcOwner()
getCcOwner in interface PaymentDetailsIfpublic void setCcOwner(java.lang.String ccOwner)
setCcOwner in interface PaymentDetailsIfccOwner - The ccOwner to set.public java.lang.String getCcType()
getCcType in interface PaymentDetailsIfpublic void setCcType(java.lang.String ccType)
setCcType in interface PaymentDetailsIfccType - The ccType to set.public boolean isShowAddr()
PaymentDetailsIfisShowAddr in interface PaymentDetailsIfpublic void setShowAddr(boolean showAddr)
PaymentDetailsIfsetShowAddr in interface PaymentDetailsIfshowAddr - The showAddr to set.public boolean isShowCVV()
PaymentDetailsIfisShowCVV in interface PaymentDetailsIfpublic void setShowCVV(boolean showCVV)
PaymentDetailsIfsetShowCVV in interface PaymentDetailsIfshowCVV - The showCVV to set.public boolean isShowPostcode()
PaymentDetailsIfisShowPostcode in interface PaymentDetailsIfpublic void setShowPostcode(boolean showPostcode)
PaymentDetailsIfsetShowPostcode in interface PaymentDetailsIfshowPostcode - The showPostcode to set.public boolean isShowType()
PaymentDetailsIfisShowType in interface PaymentDetailsIfpublic void setShowType(boolean showType)
PaymentDetailsIfsetShowType in interface PaymentDetailsIfshowType - The showType to set.public java.lang.String getCcExpiryMonth()
getCcExpiryMonth in interface PaymentDetailsIfpublic void setCcExpiryMonth(java.lang.String ccExpiryMonth)
setCcExpiryMonth in interface PaymentDetailsIfccExpiryMonth - The ccExpiryMonth to set.public java.lang.String getCcExpiryYear()
getCcExpiryYear in interface PaymentDetailsIfpublic void setCcExpiryYear(java.lang.String ccExpiryYear)
setCcExpiryYear in interface PaymentDetailsIfccExpiryYear - The ccExpiryYear to set.public boolean isShowOwner()
PaymentDetailsIfisShowOwner in interface PaymentDetailsIfpublic void setShowOwner(boolean showOwner)
PaymentDetailsIfsetShowOwner in interface PaymentDetailsIfshowOwner - The showOwner to set.public java.lang.String getReferrer()
PaymentDetailsIfgetReferrer in interface PaymentDetailsIfpublic void setReferrer(java.lang.String referrer)
PaymentDetailsIfsetReferrer in interface PaymentDetailsIfreferrer - The referrer to set.public java.lang.String getPreProcessCode()
getPreProcessCode in interface PaymentDetailsIfpublic void setPreProcessCode(java.lang.String preProcessCode)
setPreProcessCode in interface PaymentDetailsIfpreProcessCode - the preProcessCode to setpublic PaymentDetailsIf[] getPaymentDetails()
PaymentDetailsIfgetPaymentDetails in interface PaymentDetailsIfpublic void setPaymentDetails(PaymentDetailsIf[] paymentDetails)
PaymentDetailsIfsetPaymentDetails in interface PaymentDetailsIfpaymentDetails - the paymentDetails to setpublic java.lang.String getSubCode()
PaymentDetailsIfgetSubCode in interface PaymentDetailsIfpublic void setSubCode(java.lang.String subCode)
PaymentDetailsIfsetSubCode in interface PaymentDetailsIfsubCode - the subCode to setpublic PaymentDetailsIf cloneMainAttributes()
public int getSubSortOrder()
PaymentDetailsIfgetSubSortOrder in interface PaymentDetailsIfpublic void setSubSortOrder(int subSortOrder)
PaymentDetailsIfsetSubSortOrder in interface PaymentDetailsIfsubSortOrder - the subSortOrder to setpublic CreditCardIf[] getCreditCards()
getCreditCards in interface PaymentDetailsIfpublic void setCreditCards(CreditCardIf[] creditCards)
setCreditCards in interface PaymentDetailsIfcreditCards - the creditCards to setCopyright © 2018 DS Data Systems UK Ltd.