walkertuan
V2EX  ›  iOS

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

  •  
  •   walkertuan · Dec 14, 2017 · 7751 views
    This topic created in 3099 days ago, the information mentioned may be changed or developed.

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

    6 replies    2020-03-08 23:53:06 +08:00
    run2
        1
    run2  
       Dec 14, 2017
    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
       Dec 14, 2017
    @sobigfish 你好 ,我看这个解释是,这个字段是在非消耗品上才会返回,而宝石项目,是一个消耗品,消耗品项目上不会返回这个字段吧 ?
    runnig
        3
    runnig  
       May 3, 2018
    楼主有解决这个问题吗?我打算用飞续期订阅试一试,看看购买同一个产品会不会二次扣费!
    lcvs
        4
    lcvs  
       Mar 4, 2020
    网上找了很多资料,苹果在其官方文档中写的是只有
    walkertuan
        6
    walkertuan  
    OP
       Mar 8, 2020
    @lcvs 所以,这个问题,只能理解为:腾讯作为大公司,找苹果拿到了退款订单号,进行识别。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3975 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 00:49 · PVG 08:49 · LAX 17:49 · JFK 20:49
    ♥ Do have faith in what you're doing.