Apply an app account token to a purchase.
The app account token will persist in the resulting `Transaction` from a purchase.
- Parameter token: A UUID that associates the purchase with an account in your system.
A textual representation of this instance, suitable for debugging.
Calling this property directly is discouraged. Instead, convert an
instance of any type to a string by using the `String(reflecting:)`
initializer. This initializer works with any type, and uses the custom
`debugDescription` property for types that conform to
`CustomDebugStringConvertible`:
struct Point: CustomDebugStringConvertible {
let x: Int, y: Int
var debugDescription: String {
return "(\(x), \(y))"
}
}
let p = Point(x: 21, y: 30)
let s = String(reflecting: p)
print(s)
// Prints "(21, 30)"
The conversion of `p` to a string in the assignment to `s` uses the
`Point` type's `debugDescription` property.
Apply a promotional offer to a purchase.
- Parameters:
- offerID: The `id` property of the `SubscriptionOffer` to apply.
- keyID: The key ID of the private key used to generate `signature`. The private key
and key ID can be generated on App Store Connect.
- nonce: The nonce used in `signature`.
- signature: The cryptographic signature of the offer parameters, generated on your
server.
- timestamp: The time the signature was generated in milliseconds since 1970.
@DeprecationSummary { Sign promotional offers with JWS and use ``promotionalOffer(_:compactJWS:)`` instead. }
Apply a promotional offer to a purchase.
- Parameters:
- offerID: The `id` property of the `SubscriptionOffer` to apply.
- signature: The metadata of the signature used to validate a promotional offer.
@DeprecationSummary { Sign promotional offers with JWS and use ``promotionalOffer(_:compactJWS:)`` instead. }
Apply a promotional offer to a purchase.
- Parameters:
- offerID: The `id` property of the `SubscriptionOffer` to apply.
- compactJWS: The JWS signature used to validate a promotional offer.
Toggle ask to buy when testing in the App Store Sandbox environment.
The default is `false` if this option is not added.
- Parameter simulateAskToBuy: Set as `true` to simulate a child's account asking
permission to purchase from a family member.
Set the eligibility of an introductory offer for a purchase.
- Parameters:
- compactJWS: The signed JWT string with the introductory offer eligibility for the purchase.
The quantity of this product to purchase.
The default is 1 if this option is not added. This option can only be applied to consumable
products and non-renewing subscriptions.
- Parameter quantity: The quantity to purchase.
Skipped declarations
1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.