public class PartnerInfoextends Object
implements android.os.Parcelable
This class holds the partner information.
Any third party application using the Samsung Pay SDK is considered as partner app.
The third party application can be an issuer app (bank app), merchant app, and so on.
Since:
API Level 1.1
Nested Class Summary
Nested classes/interfaces inherited from interface android.os.Parcelable
serviceId - Unique ID to represent the service. Partner should on-board
with Samsung Pay Developers to receive this ID.
// Set the serviceId which is assigned by the Samsung Pay Developer during on boarding.
String serviceId = "sampleServiceId";
PartnerInfo pInfo = new PartnerInfo(serviceId);
// Partner must set proper service type - since API level 1.4.
Bundle bundle = new Bundle();
bundle.putString(SamsungPay.PARTNER_SERVICE_TYPE, SamsungPay.ServiceType.APP2APP.toString());
pInfo.setData(bundle);
serviceId - Unique ID to represent the service. Partner should on-board
with Samsung Pay Developers to receive this ID.
data - Extra data which partner wants to pass to Samsung Pay.
If partner app integrates SDK v1.4.00 or higher, Service Type must be set in data bundle.
Refer to the usage sample below.
Extra data bundle key-value pairs are defined as follows:
Keys
Values
SamsungPay#EXTRA_ISSUER_NAME
String issuerName (issuerCode for Korean issuers)
Issuer: mandatory. Merchant: not required.
SamsungPay#PARTNER_SERVICE_TYPE
String SamsungPay.ServiceType.ABC.toString() (since API level 1.4)
This value is mandatory because it will be used to verify if the service type is allowed or not.
// Set the serviceId which is assigned by the Samsung Pay Developer during on boarding.
String serviceId = "sampleServiceId";
String issuerName = "MyBank";
Bundle bundle = new Bundle();
// Set issuerName in case of issuers.
bundle.putString(SamsungPay.EXTRA_ISSUER_NAME, issuerName);
// Set service type - since API level 1.4.
bundle.putString(SamsungPay.PARTNER_SERVICE_TYPE, SamsungPay.ServiceType.APP2APP.toString());
PartnerInfo pInfo = new PartnerInfo(serviceId, bundle);
API to get service ID.
Since API level 1.4, productId is replaced by serviceId.
Returns:
service ID
Since:
API Level 1.4
getData
publicandroid.os.BundlegetData()
API to get partner information extra.
Extra data differs from partners.
For example, issuer app can set the SamsungPay#EXTRA_ISSUER_NAME with bundle.
Returns:
Extra data bundle passed to Samsung Pay.
Since:
API Level 1.1
setData
publicvoidsetData(android.os.Bundle data)
API to set partner information extra.
Extra data differs from partners.
For example, issuer app can set the SamsungPay#EXTRA_ISSUER_NAME with bundle.
If partner app integrates SDK v1.4.00 or higher, SamsungPay#PARTNER_SERVICE_TYPE must be set in data bundle.
We use cookies to improve your experience on our website and to show you relevant
advertising. Manage you settings for our cookies below.
Essential Cookies
These cookies are essential as they enable you to move around the website. This
category cannot be disabled.
Company
Domain
Samsung Electronics
.samsungdeveloperconference.com
Analytical/Performance Cookies
These cookies collect information about how you use our website. for example which
pages you visit most often. All information these cookies collect is used to improve
how the website works.
Company
Domain
LinkedIn
.linkedin.com
Meta (formerly Facebook)
.samsungdeveloperconference.com
Google Inc.
.samsungdeveloperconference.com
Functionality Cookies
These cookies allow our website to remember choices you make (such as your user name, language or the region your are in) and
tailor the website to provide enhanced features and content for you.
Company
Domain
LinkedIn
.ads.linkedin.com, .linkedin.com
Advertising Cookies
These cookies gather information about your browser habits. They remember that
you've visited our website and share this information with other organizations such
as advertisers.
Company
Domain
LinkedIn
.linkedin.com
Meta (formerly Facebook)
.samsungdeveloperconference.com
Google Inc.
.samsungdeveloperconference.com
Preferences Submitted
You have successfully updated your cookie preferences.