【发布时间】:2020-11-15 18:46:43
【问题描述】:
您好,我目前一直在使用 Flutter 应用支付插件示例 https://github.com/flutter/plugins/tree/master/packages/in_app_purchase/example。
在付款发生后的代码中有一个名为_verifyPurchase的函数,目前该函数如下。
Future<bool> _verifyPurchase(PurchaseDetails purchaseDetails) {
// IMPORTANT!! Always verify a purchase before delivering the product.
// For the purpose of an example, we directly return true.
return Future<bool>.value(true);
}
目前它总是返回 true,但我不完全了解我需要在此处包含哪些验证过程来验证购买。
我需要在此处包含哪些验证流程来验证购买
我目前对这个函数中实际需要什么感到困惑。
【问题讨论】:
标签: flutter dart in-app-purchase