public class Profile
extends java.lang.Object
implements android.os.Parcelable
Modifier and Type | Class and Description |
---|---|
static interface |
Profile.CardBrand
Constant helper values for card brands (e.g.
|
static interface |
Profile.Country
Constant helper values for country codes (e.g.
|
static interface |
Profile.DataLevel
Constant helper values for data level requested for response detail.
|
static class |
Profile.ProfileBuilder
Builder to create a
Profile . |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ACCEPT_CANADIAN_DEBIT_CARDS |
static java.lang.String |
ACCEPTED_BILLING_COUNTRIES |
static java.lang.String |
ACCEPTED_CARD_BRANDS |
static java.lang.String |
ACCEPTED_SHIPPING_COUNTRIES |
static java.lang.String |
ALLOW_ENROLLMENT |
static java.lang.String |
API_KEY |
static java.lang.String |
CAMPAIGN_URL |
static java.lang.String |
CLIENT_ID |
static java.lang.String |
COUNTRY_CODE |
static android.os.Parcelable.Creator<Profile> |
CREATOR |
static java.lang.String |
CUSTOMER_SUPPORT_URL |
static java.lang.String |
DATA_LEVEL |
static java.lang.String |
DISPLAY_NAME |
static java.lang.String |
ENABLE_TOKENIZATION |
static java.lang.String |
ENCRYPTION_KEY |
static java.lang.String |
ENVIRONMENT |
static java.lang.String |
EXTERNAL_CLIENT_ID |
static java.lang.String |
LOCALE |
static java.lang.String |
LOGO_RESOURCE_ID |
static java.lang.String |
LOGO_URL |
static java.lang.String |
NEW_USER_WELCOME_MESSAGE |
static java.lang.String |
NEW_USER_WELCOME_MESSAGE_DESCRIPTION |
static java.lang.String |
PROFILE_NAME |
static java.lang.String |
RETURNING_USER_WELCOME_MESSAGE |
static java.lang.String |
WEBSITE_URL |
Constructor and Description |
---|
Profile(org.json.JSONObject json)
Construct a Profile object from JSON.
|
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
java.lang.Object |
get(java.lang.String name)
Retrieve a Profile property by key.
|
java.lang.String[] |
getAcceptedBillingCountries()
The countries you are able to accept billing information from.
|
java.lang.String[] |
getAcceptedCardBrands()
The
Profile.CardBrand 's that are accepted as valid payment types. |
java.lang.String[] |
getAcceptedShippingCountries()
The countries you are able to ship to.
|
java.lang.String |
getApiKey()
The API Key string given associated with your Visa Merchant account.
|
java.lang.String |
getClientId()
Retrieve the current client id.
|
java.lang.String |
getCountryCode()
Country code of the country where the purchase should be shipped, such as US;
useful for calculating shipping costs.
|
java.lang.String |
getCustomerSupportUrl()
Your complete customer service or support URL.
|
java.lang.String |
getDataLevel()
The level of detail that is returned on the
VisaPaymentSummary
object after the user completes a Visa Checkout transaction. |
java.lang.String |
getDisplayName()
How Visa Checkout should refer to your company/app.
|
java.lang.String |
getEncryptionKey()
Encryption key you specified to be used by Visa
|
java.lang.String |
getEnvironment()
The server environment to use.
|
java.lang.String |
getExternalClientId()
Not required for merchants.
|
java.lang.String |
getLocale()
The locale, which controls how text displays.
|
int |
getLogoResourceId()
Deprecated.
Use
getLogoUrl() instead of this property. |
java.lang.String |
getLogoUrl()
The provided url of any logo you would like to show in Visa Checkout.
|
java.lang.String |
getNewUserWelcomeMessage()
A welcome message for the new user.
|
java.lang.String |
getNewUserWelcomeMessageDesc()
Welcome message description
|
java.lang.String |
getProfileName()
The profile name associated with your Visa Merchant account.
|
java.lang.String |
getReturnUserWelcomeMessage()
The message provided to show to returning user.
|
java.lang.String |
getWebsiteUrl()
Complete URL to your website.
|
boolean |
isAcceptCanadianVisaDebit()
Whether or not you accept Canadian debit cards.
|
boolean |
isAllowEnrollment()
Whether or not you allow enrollment in Visa Checkout.
|
boolean |
isEnableTokenization()
Whether or not tokenization is enabled.
|
void |
writeToParcel(android.os.Parcel out,
int flags) |
public static final java.lang.String LOGO_URL
public static final java.lang.String LOGO_RESOURCE_ID
public static final java.lang.String API_KEY
public static final java.lang.String ENVIRONMENT
public static final java.lang.String ENCRYPTION_KEY
public static final java.lang.String PROFILE_NAME
public static final java.lang.String DISPLAY_NAME
public static final java.lang.String CLIENT_ID
public static final java.lang.String DATA_LEVEL
public static final java.lang.String ACCEPT_CANADIAN_DEBIT_CARDS
public static final java.lang.String ENABLE_TOKENIZATION
public static final java.lang.String ACCEPTED_SHIPPING_COUNTRIES
public static final java.lang.String ACCEPTED_BILLING_COUNTRIES
public static final java.lang.String ACCEPTED_CARD_BRANDS
public static final java.lang.String EXTERNAL_CLIENT_ID
public static final java.lang.String NEW_USER_WELCOME_MESSAGE
public static final java.lang.String NEW_USER_WELCOME_MESSAGE_DESCRIPTION
public static final java.lang.String RETURNING_USER_WELCOME_MESSAGE
public static final java.lang.String CAMPAIGN_URL
public static final java.lang.String ALLOW_ENROLLMENT
public static final java.lang.String COUNTRY_CODE
public static final java.lang.String LOCALE
public static final java.lang.String WEBSITE_URL
public static final java.lang.String CUSTOMER_SUPPORT_URL
public static final android.os.Parcelable.Creator<Profile> CREATOR
public Profile(org.json.JSONObject json)
Profile.ProfileBuilder
.json
- the json object to construct frompublic void writeToParcel(android.os.Parcel out, int flags)
writeToParcel
in interface android.os.Parcelable
public java.lang.Object get(java.lang.String name)
name
- the key to retrieve.@Deprecated @DrawableRes public int getLogoResourceId()
getLogoUrl()
instead of this property.public java.lang.String getLogoUrl()
public java.lang.String getApiKey()
Environment
you are connecting to.
For instance, you will have one API Key for the Environment.SANDBOX
Environment
and a different
API Key for the Environment.PRODUCTION
Environment
.public java.lang.String getEncryptionKey()
public java.lang.String getDisplayName()
public java.lang.String getClientId()
public java.lang.String getDataLevel()
VisaPaymentSummary
object after the user completes a Visa Checkout transaction.public boolean isAcceptCanadianVisaDebit()
public boolean isEnableTokenization()
public java.lang.String[] getAcceptedShippingCountries()
Profile.Country
in the merchant's external
or default profiles.
The override value limits the selection of eligible cards in the consumer's account. If not
set in a profile or
overridden here, payments from all listed Shipping countries are accepted.public java.lang.String[] getAcceptedBillingCountries()
Profile.Country
in the merchant's external or
default profiles.
The override value limits the selection of eligible cards in the consumer's account. If not
set in a profile or
overridden here, payments from all listed billing countries are accepted.public java.lang.String[] getAcceptedCardBrands()
Profile.CardBrand
's that are accepted as valid payment types.
The VISA brand must be included if acceptCanadianVisaDebit is true. If not set in a pro le
or
overridden here,
all listed card brands are accepted.(Visa, Master, Amex, Discover , Electron(Brazil only)
,ELO(Brazil only)public java.lang.String getEnvironment()
public java.lang.String getProfileName()
public int describeContents()
describeContents
in interface android.os.Parcelable
public java.lang.String getExternalClientId()
public java.lang.String getNewUserWelcomeMessage()
public java.lang.String getNewUserWelcomeMessageDesc()
public java.lang.String getReturnUserWelcomeMessage()
public boolean isAllowEnrollment()
public java.lang.String getLocale()
public java.lang.String getCountryCode()
public java.lang.String getWebsiteUrl()
public java.lang.String getCustomerSupportUrl()