PartnerInfo constructor

PartnerInfo({
  1. required String serviceId,
  2. required Map<String, dynamic> data,
})

Constructor to create Partner Information.

Parameters:
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
[SpaySdk.EXTRA_ISSUER_NAME] String issuerName (issuerCode for Korean issuers)
Issuer: mandatory. Merchant: not required.
[SpaySdk.PARTNER_SERVICE_TYPE] String SamsungPay.ServiceType.ABC.toString()
This value is mandatory because it will be used to verify if the service type is allowed or not.

Implementation

PartnerInfo({
  required this.serviceId,
  required this.data,
});