iOS 如何实现用户退款后,可以定位到退款用户,并且将内购宝石进行扣除

2017-12-14 15:46:19 +08:00
 walkertuan

苹果的内购发起退款后,开发者能够识别到退款用户是哪一个吗 ? 我看 皇室冲突 如果玩家退款后,几天内,它会进行宝石的扣除。这个游戏是如何做到的呢?如下图所示 http://img5.dwstatic.com/cr/1712/376652530764/376652663157.jpg

6774 次点击
所在节点    iOS
6 条回复
sobigfish
2017-12-14 19:18:49 +08:00
https://developer.apple.com/library/content/releasenotes/General/ValidateAppStoreReceipt/Chapters/ValidateRemotely.html#//apple_ref/doc/uid/TP40010573-CH104-SW1
Validating Receipts With the App Store


Receipt Fields.
https://developer.apple.com/library/content/releasenotes/General/ValidateAppStoreReceipt/Chapters/ReceiptFields.html#//apple_ref/doc/uid/TP40010573-CH106-SW1
Cancellation Date
For a transaction that was canceled by Apple customer support, the time and date of the cancellation. For an auto-renewable subscription plan that was upgraded, the time and date of the upgrade transaction.

ASN.1 Field Type 1712

ASN.1 Field Value IA5STRING, interpreted as an RFC 3339 date

JSON Field Name cancellation_date

JSON Field Value string, interpreted as an RFC 3339 date

Treat a canceled receipt the same as if no purchase had ever been made.
walkertuan
2017-12-14 20:27:06 +08:00
@sobigfish 你好 ,我看这个解释是,这个字段是在非消耗品上才会返回,而宝石项目,是一个消耗品,消耗品项目上不会返回这个字段吧 ?
runnig
2018-05-03 15:06:27 +08:00
楼主有解决这个问题吗?我打算用飞续期订阅试一试,看看购买同一个产品会不会二次扣费!
lcvs
2020-03-04 04:07:49 +08:00
网上找了很多资料,苹果在其官方文档中写的是只有
lcvs
2020-03-04 04:12:46 +08:00
walkertuan
2020-03-08 23:53:06 +08:00
@lcvs 所以,这个问题,只能理解为:腾讯作为大公司,找苹果拿到了退款订单号,进行识别。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/414738

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX