V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
walkertuan
V2EX  ›  iOS

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

  •  
  •   walkertuan · 2017-12-14 15:46:19 +08:00 · 6894 次点击
    这是一个创建于 2537 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

    6 条回复    2020-03-08 23:53:06 +08:00
    sobigfish
        1
    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
        2
    walkertuan  
    OP
       2017-12-14 20:27:06 +08:00
    @sobigfish 你好 ,我看这个解释是,这个字段是在非消耗品上才会返回,而宝石项目,是一个消耗品,消耗品项目上不会返回这个字段吧 ?
    runnig
        3
    runnig  
       2018-05-03 15:06:27 +08:00
    楼主有解决这个问题吗?我打算用飞续期订阅试一试,看看购买同一个产品会不会二次扣费!
    lcvs
        4
    lcvs  
       2020-03-04 04:07:49 +08:00
    网上找了很多资料,苹果在其官方文档中写的是只有
    lcvs
        5
    lcvs  
       2020-03-04 04:12:46 +08:00
    walkertuan
        6
    walkertuan  
    OP
       2020-03-08 23:53:06 +08:00
    @lcvs 所以,这个问题,只能理解为:腾讯作为大公司,找苹果拿到了退款订单号,进行识别。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2900 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 12:22 · PVG 20:22 · LAX 04:22 · JFK 07:22
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.