PushPaymentData
@objc public final class PushPaymentData : AbstractData
Push Payment Data which represents PPTag
values
See also
PPTag
-
Initializer
Declaration
Swift
public init()
-
Declaration
Swift
public override func validate() throws
-
Whether the code this data represents is dynamic or not
Declaration
Swift
public var isDynamic: Bool
-
Generate the push payment string with new CRC checksum. The existing CRC field will be replaced by the new CRC checksum.
Returns
Generated string with CRC.Note
- The string is generated with ordered tags, it’s not following the original order.
- This method is mutating i.e it will mutate the CRC tag
Declaration
Swift
public func generatePushPaymentString() -> String
Return Value
Generated string with CRC.
-
Get value with luhn checksum appended with the string representation of underlying value related to the tag.
Parameter
Parameter tag: Tag info for which to generate value with luhn checksumReturns
Value with luhn checksum appendedNote
This is usually used for merchant id fieldsThrows
MPQRError.invalidFormat
exception- If the value doesn’t exist for the tag
- If the format of the underlying value is not valid for generating the checksum
Declaration
Swift
@objc public func valueWithLuhnChecksum(_ tag: TagInfo) throws -> String
Parameters
tag
Tag info for which to generate value with luhn checksum
Return Value
Value with luhn checksum appended
-
Payload format indicator
Declaration
Swift
public var payloadFormatIndicator: String?
-
Point of initiation method
Declaration
Swift
public var pointOfInitiationMethod: String?
-
Merchant identifier Visa with tag
02
Declaration
Swift
public var merchantIdentifierVisa02: String?
-
Merchant identifier Visa with tag
03
Declaration
Swift
public var merchantIdentifierVisa03: String?
-
Merchant identifier MasterCard with tag
04
Declaration
Swift
public var merchantIdentifierMastercard04: String?
-
Merchant identifier MasterCard with tag
05
Declaration
Swift
public var merchantIdentifierMastercard05: String?
-
Merchant identifier NPCI with tag
06
Declaration
Swift
public var merchantIdentifierNPCI06: String?
-
Merchant identifier NPCI with tag
07
Declaration
Swift
public var merchantIdentifierNPCI07: String?
-
Merchant category code
Declaration
Swift
public var merchantCategoryCode: String?
-
Transaction currency code
Declaration
Swift
public var transactionCurrencyCode: String?
-
Transaction amount
Declaration
Swift
public var transactionAmount: String?
-
Tip or convenience indicator
Declaration
Swift
public var tipOrConvenienceIndicator: String?
-
Value of convenience fee fixed
Declaration
Swift
public var valueOfConvenienceFeeFixed: String?
-
Value of convenience fee percentage
Declaration
Swift
public var valueOfConvenienceFeePercentage: String?
-
Country code
Declaration
Swift
public var countryCode: String?
-
Merchant name
Declaration
Swift
public var merchantName: String?
-
Merchant city
Declaration
Swift
public var merchantCity: String?
-
Postal code
Declaration
Swift
public var postalCode: String?
-
Additional data
Declaration
Swift
public var additionalData: AdditionalData?
-
CRC
Declaration
Swift
public var crc: String?