I would like to send the purchase amount to the Telemetry Deck analytics provider which I am using in my SwiftUI app. For example:
.presentPaywallIfNeeded(
requiredEntitlementIdentifier: "all_access",
purchaseCompleted: { customerInfo in
let priceValue = NSDecimalNumber(decimal: transaction.price ?? Decimal()).doubleValue
TelemetryDeck.signal("TelemetryDeck.Purchase.completed", floatValue: priceValue)
},
restoreCompleted: {
}
)
I’d like to get the transaction price, ideally I’d also like currency, term, etc. Can I get this information from CustomerInfo?