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.Object
public NameValueIf[] getParameters()
PaymentDetailsIf
getParameters
in interface PaymentDetailsIf
public void setParameters(NameValueIf[] parameters)
PaymentDetailsIf
setParameters
in interface PaymentDetailsIf
parameters
- The parameters to set.public java.lang.String getPostOrGet()
PaymentDetailsIf
getPostOrGet
in interface PaymentDetailsIf
public void setPostOrGet(java.lang.String postOrGet)
PaymentDetailsIf
setPostOrGet
in interface PaymentDetailsIf
postOrGet
- The postOrGet to set.public java.lang.String getRequestUrl()
PaymentDetailsIf
getRequestUrl
in interface PaymentDetailsIf
public void setRequestUrl(java.lang.String requestUrl)
PaymentDetailsIf
setRequestUrl
in interface PaymentDetailsIf
requestUrl
- The requestUrl to set.public java.lang.String getCode()
PaymentDetailsIf
getCode
in interface PaymentDetailsIf
public void setCode(java.lang.String code)
PaymentDetailsIf
setCode
in interface PaymentDetailsIf
code
- The code to set.public java.lang.String getDescription()
PaymentDetailsIf
getDescription
in interface PaymentDetailsIf
public void setDescription(java.lang.String description)
PaymentDetailsIf
setDescription
in interface PaymentDetailsIf
description
- The description to set.public int getSortOrder()
PaymentDetailsIf
getSortOrder
in interface PaymentDetailsIf
public void setSortOrder(int sortOrder)
PaymentDetailsIf
setSortOrder
in interface PaymentDetailsIf
sortOrder
- The sortOrder to set.public java.lang.String getTitle()
PaymentDetailsIf
getTitle
in interface PaymentDetailsIf
public void setTitle(java.lang.String title)
PaymentDetailsIf
setTitle
in interface PaymentDetailsIf
title
- The title to set.public int getOrderStatusId()
getOrderStatusId
in interface PaymentDetailsIf
public void setOrderStatusId(int orderStatusId)
setOrderStatusId
in interface PaymentDetailsIf
orderStatusId
- The orderStatusId to set.public int getPaymentType()
PaymentDetailsIf
getPaymentType
in interface PaymentDetailsIf
public void setPaymentType(int paymentType)
PaymentDetailsIf
setPaymentType
in interface PaymentDetailsIf
paymentType
- The paymentType to set.public java.lang.String getCcNumber()
getCcNumber
in interface PaymentDetailsIf
public void setCcNumber(java.lang.String ccNumber)
setCcNumber
in interface PaymentDetailsIf
ccNumber
- The ccNumber to set.public java.lang.String getCcPostcode()
getCcPostcode
in interface PaymentDetailsIf
public void setCcPostcode(java.lang.String ccPostcode)
setCcPostcode
in interface PaymentDetailsIf
ccPostcode
- The ccPostcode to set.public java.lang.String getCcStreetAddress()
getCcStreetAddress
in interface PaymentDetailsIf
public void setCcStreetAddress(java.lang.String ccStreetAddress)
setCcStreetAddress
in interface PaymentDetailsIf
ccStreetAddress
- The ccStreetAddress to set.public java.lang.String getCustom1()
getCustom1
in interface PaymentDetailsIf
public void setCustom1(java.lang.String custom1)
setCustom1
in interface PaymentDetailsIf
custom1
- The custom1 to set.public java.lang.String getCustom2()
getCustom2
in interface PaymentDetailsIf
public void setCustom2(java.lang.String custom2)
setCustom2
in interface PaymentDetailsIf
custom2
- The custom2 to set.public java.lang.String getCustom3()
getCustom3
in interface PaymentDetailsIf
public void setCustom3(java.lang.String custom3)
setCustom3
in interface PaymentDetailsIf
custom3
- The custom3 to set.public java.lang.String getCustom4()
getCustom4
in interface PaymentDetailsIf
public void setCustom4(java.lang.String custom4)
setCustom4
in interface PaymentDetailsIf
custom4
- The custom4 to set.public java.lang.String getCustom5()
getCustom5
in interface PaymentDetailsIf
public void setCustom5(java.lang.String custom5)
setCustom5
in interface PaymentDetailsIf
custom5
- The custom5 to set.public java.lang.String getCcCVV()
getCcCVV
in interface PaymentDetailsIf
public void setCcCVV(java.lang.String ccCVV)
setCcCVV
in interface PaymentDetailsIf
ccCVV
- The ccCVV to set.public java.lang.String getCcOwner()
getCcOwner
in interface PaymentDetailsIf
public void setCcOwner(java.lang.String ccOwner)
setCcOwner
in interface PaymentDetailsIf
ccOwner
- The ccOwner to set.public java.lang.String getCcType()
getCcType
in interface PaymentDetailsIf
public void setCcType(java.lang.String ccType)
setCcType
in interface PaymentDetailsIf
ccType
- The ccType to set.public boolean isShowAddr()
PaymentDetailsIf
isShowAddr
in interface PaymentDetailsIf
public void setShowAddr(boolean showAddr)
PaymentDetailsIf
setShowAddr
in interface PaymentDetailsIf
showAddr
- The showAddr to set.public boolean isShowCVV()
PaymentDetailsIf
isShowCVV
in interface PaymentDetailsIf
public void setShowCVV(boolean showCVV)
PaymentDetailsIf
setShowCVV
in interface PaymentDetailsIf
showCVV
- The showCVV to set.public boolean isShowPostcode()
PaymentDetailsIf
isShowPostcode
in interface PaymentDetailsIf
public void setShowPostcode(boolean showPostcode)
PaymentDetailsIf
setShowPostcode
in interface PaymentDetailsIf
showPostcode
- The showPostcode to set.public boolean isShowType()
PaymentDetailsIf
isShowType
in interface PaymentDetailsIf
public void setShowType(boolean showType)
PaymentDetailsIf
setShowType
in interface PaymentDetailsIf
showType
- The showType to set.public java.lang.String getCcExpiryMonth()
getCcExpiryMonth
in interface PaymentDetailsIf
public void setCcExpiryMonth(java.lang.String ccExpiryMonth)
setCcExpiryMonth
in interface PaymentDetailsIf
ccExpiryMonth
- The ccExpiryMonth to set.public java.lang.String getCcExpiryYear()
getCcExpiryYear
in interface PaymentDetailsIf
public void setCcExpiryYear(java.lang.String ccExpiryYear)
setCcExpiryYear
in interface PaymentDetailsIf
ccExpiryYear
- The ccExpiryYear to set.public boolean isShowOwner()
PaymentDetailsIf
isShowOwner
in interface PaymentDetailsIf
public void setShowOwner(boolean showOwner)
PaymentDetailsIf
setShowOwner
in interface PaymentDetailsIf
showOwner
- The showOwner to set.public java.lang.String getReferrer()
PaymentDetailsIf
getReferrer
in interface PaymentDetailsIf
public void setReferrer(java.lang.String referrer)
PaymentDetailsIf
setReferrer
in interface PaymentDetailsIf
referrer
- The referrer to set.public java.lang.String getPreProcessCode()
getPreProcessCode
in interface PaymentDetailsIf
public void setPreProcessCode(java.lang.String preProcessCode)
setPreProcessCode
in interface PaymentDetailsIf
preProcessCode
- the preProcessCode to setpublic PaymentDetailsIf[] getPaymentDetails()
PaymentDetailsIf
getPaymentDetails
in interface PaymentDetailsIf
public void setPaymentDetails(PaymentDetailsIf[] paymentDetails)
PaymentDetailsIf
setPaymentDetails
in interface PaymentDetailsIf
paymentDetails
- the paymentDetails to setpublic java.lang.String getSubCode()
PaymentDetailsIf
getSubCode
in interface PaymentDetailsIf
public void setSubCode(java.lang.String subCode)
PaymentDetailsIf
setSubCode
in interface PaymentDetailsIf
subCode
- the subCode to setpublic PaymentDetailsIf cloneMainAttributes()
public int getSubSortOrder()
PaymentDetailsIf
getSubSortOrder
in interface PaymentDetailsIf
public void setSubSortOrder(int subSortOrder)
PaymentDetailsIf
setSubSortOrder
in interface PaymentDetailsIf
subSortOrder
- the subSortOrder to setpublic CreditCardIf[] getCreditCards()
getCreditCards
in interface PaymentDetailsIf
public void setCreditCards(CreditCardIf[] creditCards)
setCreditCards
in interface PaymentDetailsIf
creditCards
- the creditCards to setCopyright © 2018 DS Data Systems UK Ltd.