gpt4 book ai didi

ios - 如何从应用内购买获取购买信息

转载 作者:行者123 更新时间:2023-11-29 00:11:56 24 4
gpt4 key购买 nike

我如何获取有关用户购买的信息(购买日期、产品 ID...)?

switch (transaction.transactionState) {
case SKPaymentTransactionStatePurchased: {
NSLog(@"user has purchased, %@", transaction);
...
...

最佳答案

这些是相关的属性:

let purchaseDate = transaction.transactionDate
let transactionId = transaction.transactionIdentifier
let produtId = transaction.payment.productIdentifier

关于ios - 如何从应用内购买获取购买信息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46299402/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com