苹果应用内支付:沙盒用户问题

huangapple go评论68阅读模式
英文:

Apple In App Payments: Sandbox user issue

问题

编辑:FYI 使用 https://pub.dev/packages/flutter_inapp_purchase 的任何人应该使用官方 https://pub.dev/packages/in_app_purchase

我正在尝试在我的Flutter应用中实现应用内购买(IAP)。我正在使用此库,但文档零散而令人困惑,我对其流程不太确定。我取得了一些进展,但在清除沙箱用户的购买记录后,收据就无法再处理了(模糊的错误代码:21005)。

我的做法是从App Store连接中删除旧用户,然后创建一个新用户,darajavaherian+test1@gmail.com。我从iPhone注销并使用 ...+test1@gmail.com 登录,也在App Store中使用它登录,但我的应用仍然尝试使用 ...+test@gmail.com 进行付款。

所以我想首先了解如何使用我的新沙箱测试用户与应用一起使用,但更重要的是,我想知道苹果使用哪个用户向用户收费?这与我的应用上的用户帐户无关。似乎与iPhone或App Store上的用户帐户无关。

我已经使用新用户登录了App Store和iOS,删除了应用程序,重新启动了手机,用Flutter重建了应用,但问题仍然存在。

英文:

Edit: FYI anyone using https://pub.dev/packages/flutter_inapp_purchase should use the official https://pub.dev/packages/in_app_purchase

I am trying to implement In-App Payments (IAP) in my Flutter app. I'm using this library, but the documentation is all over the place and I'm not really sure on the flow. I have made some progress, but after I cleared my sandbox user's purchases, the receipts weren't able to be processed anymore (vague error code: 21005).

What I did was remove the old user from App Store connect, and make a new user, darajavaherian+test1@gmail.com. I signed out of my iPhone and signed in with ...+test1@gmail.com, as well as signed in to the App Store with it, but my app still tries to make the payment with ...+test@gmail.com.

So I am wondering firstly how to use my new sandbox tester be used with the app, but more importantly, am wondering what user apple uses to charge the user? It's not related to user accounts on my app. It doesn't seem to be related to user accounts on the iPhone or on the App Store.

I have signed in with the new user to both app store and ios, deleted the app, restarted my phone, rebuilt with flutter and the issue still persists.

苹果应用内支付:沙盒用户问题

答案1

得分: 0

解决了!

设置 > 应用商店 > 沙盒测试员

我不太明白为什么,但我的旧测试员保存在那里。

英文:

Solved it!

Settings > App Store > Sandbox Tester

I don't really understand why, but my old tester was saved in there.

huangapple
  • 本文由 发表于 2023年4月20日 02:41:30
  • 转载请务必保留本文链接:https://go.coder-hub.com/76057861.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定