custom(key:value:)
Adds data for a custom key to a purchase.
Declaration
static func custom(key: String, value: Data) -> Product.PurchaseOptionParameters
- 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.