BTPurchaseUnit

public struct BTPurchaseUnit

Amounts of the items purchased.

Warning

This feature is in beta. It’s public API may change or be removed in future releases.
  • Creates a BTPurchaseUnit

    Warning

    This feature is in beta. It’s public API may change or be removed in future releases.

    Declaration

    Swift

    public init(amount: String, currencyCode: String)

    Parameters

    amount

    The amount of money, either a whole number or a number with up to 3 decimal places.

    currencyCode

    The currency code for the monetary amount.