com.mypos.myposcheckout.ipc.request

 

Class InAppPurchase

java.lang.Object com.mypos.myposcheckout.ipc.request.Request com.mypos.myposcheckout.ipc.request.InAppPurchase


public class InAppPurchase
extends Request
Process IPC method: InAppPurchase. This method initiates the beginning of the payment process for a customer (purchase). However the customer will remain within the pages of the external application. The method can be used both for a recurring transaction with already stored card or for an initial card payment.

 

Field Summary

Fields inherited from class com.mypos.myposcheckout.ipc.request.Request

configoutputFormat

Constructor Summary

Constructors
Constructor and Description
InAppPurchase(Config config) 

 

Method Summary

All MethodsInstance MethodsConcrete Methods
Modifier and Type Method and Description
java.lang.String getAccountSettlement() 
java.lang.String getAvv() 
java.lang.String getCardholderName() 
java.lang.String getCardToken() 
CardType getCardType() 
Cart getCart() 
Currency getCurrency() 
java.lang.String getCvc() 
java.lang.Integer getEci() 
java.lang.String getExpirationDate() 
java.lang.String getNote() 
java.lang.String getOrderId() 
java.lang.String getPan() 
java.lang.String getXid() 
BasicResponse process()
Gather all request parameters needed to make an API call.
void setAccountSettlement(java.lang.String accountSettlement) 
void setAvv(java.lang.String avv) 
void setCardholderName(java.lang.String cardholderName) 
void setCardToken(java.lang.String cardToken) 
void setCardType(CardType cardType) 
void setCart(Cart cart) 
void setCurrency(Currency currency) 
void setCvc(java.lang.String cvc) 
void setEci(java.lang.Integer eci) 
void setExpirationDate(java.lang.String expirationDate) 
void setNote(java.lang.String note) 
void setOrderId(java.lang.String orderId) 
void setPan(java.lang.String pan) 
void setXid(java.lang.String xid) 
boolean validate()
Checks if the class members are valid API request parameter values.

 

Methods inherited from class com.mypos.myposcheckout.ipc.request.Request

addRequestParamaddRequestParamaddRequestParamaddRequestParamaddRequestParamaddStandardParamsclearRequestParamscreateApiCallFormHtmlcreateApiCallFormHtml,createApiCallFormHtmlcreateSignaturegetConfiggetOutputFormatgetSignedRequestParamsprocessApiCallremoveRequestParamsetConfigsetOutputFormat

 

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

InAppPurchase

public InAppPurchase(Config config)

 

Method Detail

getOrderId

public java.lang.String getOrderId()

setOrderId

public void setOrderId(java.lang.String orderId)

getCurrency

public Currency getCurrency()

setCurrency

public void setCurrency(Currency currency)

getCardType

public CardType getCardType()

setCardType

public void setCardType(CardType cardType)

getPan

public java.lang.String getPan()

setPan

public void setPan(java.lang.String pan)

getCardholderName

public java.lang.String getCardholderName()

setCardholderName

public void setCardholderName(java.lang.String cardholderName)

getExpirationDate

public java.lang.String getExpirationDate()

setExpirationDate

public void setExpirationDate(java.lang.String expirationDate)

getCvc

public java.lang.String getCvc()

setCvc

public void setCvc(java.lang.String cvc)

getEci

public java.lang.Integer getEci()

setEci

public void setEci(java.lang.Integer eci)

getAvv

public java.lang.String getAvv()

setAvv

public void setAvv(java.lang.String avv)

getXid

public java.lang.String getXid()

setXid

public void setXid(java.lang.String xid)

getCardToken

public java.lang.String getCardToken()

setCardToken

public void setCardToken(java.lang.String cardToken)

getAccountSettlement

public java.lang.String getAccountSettlement()

setAccountSettlement

public void setAccountSettlement(java.lang.String accountSettlement)

getNote

public java.lang.String getNote()

setNote

public void setNote(java.lang.String note)

getCart

public Cart getCart()

setCart

public void setCart(Cart cart)

validate

public boolean validate()
                 throws IPCException
Checks if the class members are valid API request parameter values.
Returns:
true if all members can be used as valid API request parameters
Throws:
IPCException - If there are values which are missing, or invalid API request parameters.

process

public BasicResponse process()
                      throws IPCException
Gather all request parameters needed to make an API call.
Returns:
the decoded API response
Throws:
IPCException - If there are invalid or missing parameters, or configuration values.