苹果内购和订阅 - iRemark

时间:2024-02-29 11:34:02

苹果内购和订阅

一、订阅简介
 
1.消耗型商品:只可使用一次的产品,使用之后即失效,必须再次购买。
示例:钓鱼 App 中的鱼食。
 
2.非消耗型商品:只需购买一次,不会过期或随着使用而减少的产品。
示例:游戏 App 的赛道。
 
3.自动续期订阅:允许用户在固定时间段内购买动态内容的产品。除非用户选择取消,否则此类订阅会自动续期。
示例:每月订阅提供流媒体服务的 App。
 
4.非续期订阅:允许用户购买有时限性服务的产品。此 App 内购买项目的内容可以是静态的。此类订阅不会自动续期。
示例:为期一年的已归档文章目录订阅。
 
二、订阅的操作(查看、取消、退款、优惠、[升级/降级/跨级] )
 
1.查看和取消自动订阅:
 
2.申请退款方式:
 
3.退款所需时间:
 
4.[升级的按比例退款] [升级降级跨级] [优惠类型]:
 
5.支持多久退款:
(1).申请退款是有时间限制,即必须在购买应用程序的90天内提出。
(2).正常的订阅通常情况下是不退款的,苹果申请退款也比较严格,防止薅羊毛。
 
 
三、促销、试用、调价
 
1.苹果推介促销:
 
 
2.订阅周期支持:
如下五个:
1周、1月、3月、6月、1年
 
3.试用周期支持:
如下八个:
试用可以选择【开始时间】和【地区】。
 
 
4.关于调价:
调高:可以保持原用户的价格不变。
调低:所有用户都必须一起调低。
时间:调价今天调 最快明天生效。
 
 
 
四、关于测试
 
1.推介促销测试:
 
2.沙盒时间:
实际时限 测试时限
1 周 3 分钟
1个月 5 分钟
2 个月 10 分钟
3 个月 15 分钟
6 个月 30 分钟
1 年 1 小时
 
 
3.试用3天时候的票据:
套餐情况:1年的自动续订,免费试用7天
第1笔: 免费试用 7天(沙盒账户对应时间是3分钟)
第2笔: 自动续费的1年(沙盒账户对应时间是1个小时)
(lldb) po info
{
    "expires_date_ms" = 1605174535000;
    result =     {
        environment = Sandbox;
        "latest_receipt_info" =         (
                        {
                "expires_date" = "2020-11-12 08:48:55 Etc/GMT";
                "expires_date_ms" = 1605170935000;
                "expires_date_pst" = "2020-11-12 00:48:55 America/Los_Angeles";
                "is_in_intro_offer_period" = false;
                "is_trial_period" = true;
                "original_purchase_date" = "2020-11-12 08:45:58 Etc/GMT";
                "original_purchase_date_ms" = 1605170758000;
                "original_purchase_date_pst" = "2020-11-12 00:45:58 America/Los_Angeles";
                "original_transaction_id" = 1000000741072967;
                "product_id" = "com.compay.app.yearly";
                "purchase_date" = "2020-11-12 08:45:55 Etc/GMT";
                "purchase_date_ms" = 1605170755000;
                "purchase_date_pst" = "2020-11-12 00:45:55 America/Los_Angeles";
                quantity = 1;
                "subscription_group_identifier" = 20671141;
                "transaction_id" = 1000000741072967;
                "web_order_line_item_id" = 1000000057320058;
            },
                        {
                "expires_date" = "2020-11-12 09:48:55 Etc/GMT";
                "expires_date_ms" = 1605174535000;
                "expires_date_pst" = "2020-11-12 01:48:55 America/Los_Angeles";
                "is_in_intro_offer_period" = false;
                "is_trial_period" = false;
                "original_purchase_date" = "2020-11-12 08:45:58 Etc/GMT";
                "original_purchase_date_ms" = 1605170758000;
                "original_purchase_date_pst" = "2020-11-12 00:45:58 America/Los_Angeles";
                "original_transaction_id" = 1000000741072967;
                "product_id" = "com.compay.app.yearly";
                "purchase_date" = "2020-11-12 08:48:55 Etc/GMT";
                "purchase_date_ms" = 1605170935000;
                "purchase_date_pst" = "2020-11-12 00:48:55 America/Los_Angeles";
                quantity = 1;
                "subscription_group_identifier" = 20671141;
                "transaction_id" = 1000000741074419;
                "web_order_line_item_id" = 1000000057320060;
            }
        );
        "pending_renewal_info" =         (
                        {
                "auto_renew_product_id" = "com.compay.app.yearly";
                "auto_renew_status" = 1;
                "original_transaction_id" = 1000000741072967;
                "product_id" = "com.compay.app.yearly";
            }
        );
        receipt =         {
            "adam_id" = 0;
            "app_item_id" = 0;
            "application_version" = 11;
            "bundle_id" = "com.job.net";
            "download_id" = 0;
            "in_app" =             (
                                {
                    "expires_date" = "2020-11-12 09:48:55 Etc/GMT";
                    "expires_date_ms" = 1605174535000;
                    "expires_date_pst" = "2020-11-12 01:48:55 America/Los_Angeles";
                    "is_in_intro_offer_period" = false;
                    "is_trial_period" = false;
                    "original_purchase_date" = "2020-11-12 08:45:58 Etc/GMT";
                    "original_purchase_date_ms" = 1605170758000;
                    "original_purchase_date_pst" = "2020-11-12 00:45:58 America/Los_Angeles";
                    "original_transaction_id" = 1000000741072967;
                    "product_id" = "com.compay.app.yearly";
                    "purchase_date" = "2020-11-12 08:48:55 Etc/GMT";
                    "purchase_date_ms" = 1605170935000;
                    "purchase_date_pst" = "2020-11-12 00:48:55 America/Los_Angeles";
                    quantity = 1;
                    "transaction_id" = 1000000741074419;
                    "web_order_line_item_id" = 1000000057320060;
                },
                                {
                    "expires_date" = "2020-11-12 08:48:55 Etc/GMT";
                    "expires_date_ms" = 1605170935000;
                    "expires_date_pst" = "2020-11-12 00:48:55 America/Los_Angeles";
                    "is_in_intro_offer_period" = false;
                    "is_trial_period" = true;
                    "original_purchase_date" = "2020-11-12 08:45:58 Etc/GMT";
                    "original_purchase_date_ms" = 1605170758000;
                    "original_purchase_date_pst" = "2020-11-12 00:45:58 America/Los_Angeles";
                    "original_transaction_id" = 1000000741072967;
                    "product_id" = "com.compay.app.yearly";
                    "purchase_date" = "2020-11-12 08:45:55 Etc/GMT";
                    "purchase_date_ms" = 1605170755000;
                    "purchase_date_pst" = "2020-11-12 00:45:55 America/Los_Angeles";
                    quantity = 1;
                    "transaction_id" = 1000000741072967;
                    "web_order_line_item_id" = 1000000057320058;
                }
            );
            "original_application_version" = "1.0";
            "original_purchase_date" = "2013-08-01 07:00:00 Etc/GMT";
            "original_purchase_date_ms" = 1375340400000;
            "original_purchase_date_pst" = "2013-08-01 00:00:00 America/Los_Angeles";
            "receipt_creation_date" = "2020-11-12 08:51:14 Etc/GMT";
            "receipt_creation_date_ms" = 1605171074000;
            "receipt_creation_date_pst" = "2020-11-12 00:51:14 America/Los_Angeles";
            "receipt_type" = ProductionSandbox;
            "request_date" = "2020-11-12 08:51:16 Etc/GMT";
            "request_date_ms" = 1605171076700;
            "request_date_pst" = "2020-11-12 00:51:16 America/Los_Angeles";
            "version_external_identifier" = 0;
        };
        status = 0;
    };
 
 
采坑参考文献: