Skip to content

Improvement - Transaction ID as property #11

@selcukbeyhan

Description

@selcukbeyhan

hi,
instead of returning a dictionary where the transaction ID is a key in this code:

    @available(iOS 15.0.0, *)
    @objc public func getCurrentEntitlements() async -> PluginCallResultData {
....
                    transactionDictionary[String(transaction!.id)] = [
                        "productIdentifier": transaction!.productID,
                        "originalStartDate": transaction!.originalPurchaseDate,
                        "originalId": transaction!.originalID,
                        "transactionId": transaction!.id,
                        "expiryDate": transaction!.expirationDate
                    ]

The transaction ID is already a key within this dictionary above

It could be more easy to return an array of dictionaries.
thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions