In-App Purchase Programming Guide----(一) ---- About In-App Purchase

本文详细介绍了In-App Purchase的工作原理,包括如何在iTunesConnect中创建和配置产品,应用程序如何与App Store交互来销售产品,以及处理订阅和恢复购买的过程。文章还提到了应用程序和产品提交审核的流程。

About In-App Purchase

In-App Purchase allows you to embed a store inside your app using the Store Kit framework. This framework connects to the App Store on your app’s behalf to securely process payments from users, prompting them to authorize payment. The framework then notifies your app, which provides the purchased items to users. Use In-App Purchase to collect payment for additional features and content.

内置购买使用Store Kit 框架在应用程序里内置一个商店。该框架把你的应用程序的行为连接到应用商店来安全地处理用户的支付,促使他们授权支付。 然后框架给你的应用程序发送通知,该应用程序提供了用户购买的商品。使用内置购买可以为额外的功能和内容提供支付。

Art/remote_store_fetch_2x.png

For example, using In-App Purchase, you can implement the following scenarios:

比如,使用内置购买,你可以实现以下内容:

  • A basic version of your app with additional premium features

    一个带有额外高级功能的应用程序的基础版本。

  • A magazine app that lets users purchase and download new issues

    一个可以让用户购买和下载新刊的杂志应用。

  • A game that offers new levels to explore

    一个提供新关卡让用户攻克的游戏。

  • An online game that allows players to purchase virtual property

    一个允许玩家购买虚拟资产在线游戏。

At a Glance

概论

At a high level, the interactions between the user, your app, and the App Store during the In-App Purchase process take place in three stages, as shown in Figure I-1. First, the user navigates to your app’s store and your app displays its products. Second, the user selects a product to buy and the app requests payment from the App Store. Third, the App Store processes the payment and your app delivers the purchased product.

从高层次来说,内置购买过程处理期间,用户,应用程序和应用商店之间的交互发生在三个阶段,如图I-1。首先,用户导航到你的应用程序商店,你的应用程序显示其产品。 其次,用户选择一个产品购买,应用程序从应用商店请求支付。 最后,应用商店处理该支付,你的应用程序传递被购产品。

Figure I-1  Stages of the purchase process

图I-1 购买过程的阶段

You Create and Configure Products in iTunes Connect

一、在iTunes Connect里创建和配置产品

Understanding what kinds of products and behaviors are supported by In-App Purchase lets you design your app and in-app store to make the best use of this technology.

理解内置购买支持哪些产品和行为让你最大化使用该技术来设计应用程序和内置商店。

Your App Interacts with the App Store to Sell Products

二、应用程序跟应用商店交互来出售产品

All apps that use In-App Purchase need to implement the core functionality described in these chapters to let users make purchases and then deliver the purchased products.

所有使用内置购买的应用程序都需要实现这些章节中描述的内核功能,让用户可以购买然后传递已购的产品。

These development tasks need to be done in order. The relevant chapters introduce them in the order you implement them, and they’re listed in full in“Implementation Checklist.” To help plan your development, you may want to read the full checklist before you begin.

这些开发任务需要按顺序完成。 相关章节按照你实现它们的顺序介绍,它们在“Implementation Checklist.”中有完整列表来帮助你计划你的开发,你可以在开始前先阅读完整的清单。

Subscriptions Require Additional Application Logic

三、订阅需要更多应用逻辑

Apps that offer subscriptions need to keep track of when the user has an active subscription, respond to expiration and renewal, and determine what content the user has access to.

提供订阅的应用程序需要随时监控用户何时有一个活动订阅,响应到期和续期,然后决定用户访问什么内容。

Users Can Restore Purchases

四、用户可以恢复购买

Users can restore products that they previously purchased—for example, to bring content they’ve already paid for onto their new phone.

用户可以恢复它们先前已经购买的产品--比如,可以把购买产品给新的手机使用。

Apps and Products Are Submitted for Review

五、应用程序和产品需要提交审核

When you’re done developing and testing, you submit your app and your In-App Purchase products for review.

当你完成开发和测试后,你需要提交你的应用程序和内置购买产品以供审核。

See Also

参见

转载于:https://www.cnblogs.com/patientAndPersist/p/3699294.html

C语言-光伏MPPT算法:电导增量法扰动观察法+自动全局搜索Plecs最大功率跟踪算法仿真内容概要:本文档主要介绍了种基于C语言实现的光伏最大功率点跟踪(MPPT)算法,结合电导增量法与扰动观察法,并引入自动全局搜索策略,利用Plecs仿真工具对算法进行建模与仿真验证。文档重点阐述了两种经典MPPT算法的原理、优缺点及其在不同光照和温度条件下的动态响应特性,同时提出种改进的复合控制策略以提升系统在复杂环境下的跟踪精度与稳定性。通过仿真结果对比分析,验证了所提方法在快速性和准确性方面的优势,适用于光伏发电系统的高效能量转换控制。; 适合人群:具备定C语言编程基础和电力电子知识背景,从事光伏系统开发、嵌入式控制或新能源技术研发的工程师及高校研究人员;工作年限1-3年的初级至中级研发人员尤为适合。; 使用场景及目标:①掌握电导增量法与扰动观察法在实际光伏系统中的实现机制与切换逻辑;②学习如何在Plecs中搭建MPPT控制系统仿真模型;③实现自动全局搜索以避免传统算法陷入局部峰值问题,提升复杂工况下的最大功率追踪效率;④为光伏逆变器或太阳能充电控制器的算法开发提供技术参考与实现范例。; 阅读建议:建议读者结合文中提供的C语言算法逻辑与Plecs仿真模型同步学习,重点关注算法判断条件、步长调节策略及仿真参数设置。在理解基本原理的基础上,可通过修改光照强度、温度变化曲线等外部扰动因素,进步测试算法鲁棒性,并尝试将其移植到实际嵌入式平台进行实验验证。
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符  | 博主筛选后可见
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值