Package com.thalesgroup.tpcsdk.model
Class Config
- java.lang.Object
-
- com.thalesgroup.tpcsdk.model.Config
-
public class Config extends Object
Config holds data required setting up SDK to work, this would include context common data etc. This is used as param while initializing the SDKTPCManager.config(Config, TPCSDKListener)activity- Activity contextissuerId- Issuer ID of TSH ServeroemPayType- OEM Type used for provisioning- GOOGLE_PAY
- SAMSUNG_PAY
- HUAWEI_PAY
- NONE
url- TPC server urlserviceId- For SamsungPay this is a mandatory fieldcallbackUrl- A callback URL For HuaweiPay Wallet to go back to Issuer Application. this is a mandatory fieldcontext- Application context in case activity is not provided.visaClientAppId- Visa Client App Identifier. Unique identifier for the client application. It is obtained from the wallet provider. Application may set this value to have different value with Thales TSH Server IssuerIdsetIssuerId(String)If this value is set,CardInfo.setIssuerAppId(String)must use the same value. This value is only used for SamsungPay.- Since:
- 1.0
- Version:
- 1.1
-
-
Constructor Summary
Constructors Constructor Description Config()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ActivitygetActivity()StringgetCallbackUrl()ContextgetContext()StringgetIssuerId()OEMPayTypegetOemPayType()StringgetServiceId()StringgetUrl()StringgetVisaClientAppId()voidsetActivity(Activity activity)voidsetCallbackUrl(String callbackUrl)voidsetContext(Context context)voidsetIssuerId(String issuerId)voidsetOemPayType(OEMPayType oemPayType)voidsetServiceId(String serviceId)voidsetUrl(String url)voidsetVisaClientAppId(String visaClientAppId)
-
-
-
Method Detail
-
getCallbackUrl
public String getCallbackUrl()
-
setCallbackUrl
public void setCallbackUrl(String callbackUrl)
-
getActivity
public Activity getActivity()
-
setActivity
public void setActivity(Activity activity)
-
getIssuerId
public String getIssuerId()
-
setIssuerId
public void setIssuerId(String issuerId)
-
getOemPayType
public OEMPayType getOemPayType()
-
setOemPayType
public void setOemPayType(OEMPayType oemPayType)
-
getUrl
public String getUrl()
-
setUrl
public void setUrl(String url)
-
getServiceId
public String getServiceId()
-
setServiceId
public void setServiceId(String serviceId)
-
getContext
public Context getContext()
-
setContext
public void setContext(Context context)
-
getVisaClientAppId
public String getVisaClientAppId()
-
setVisaClientAppId
public void setVisaClientAppId(String visaClientAppId)
-
-