Contents

custom(key:value:)

Adds data for a custom key to a purchase.

Declaration

static func custom(key: String, value: Data) -> Product.PurchaseOption

Parameters

  • key:

    The key for this custom option.

  • value:

    The data value you assign to this custom option.

Mentioned in

Discussion

Use this custom option with the Advanced Commerce API.

See Also

Setting custom purchase options