Flutter:如何在 in_app_purchase 中调用 Apple pay bottom sheet?

Flutter: How to call Apple pay bottom sheet in in_app_purchase?

我尝试在我们的应用程序中实现订阅,但我停止了官方 flutter in_app_purchase plugin, i tried to use their example code, and it seems to work, it loads the products and prices for them from AppleConnect, but when I try to buy a subscription, I get this dialog box(image), instead of this(image)。

问:购买订阅时如何调用 Apple pay bottom sheet 就像第二张图片一样?

就您的应用程序在沙盒环境中而言,您只会得到这样的对话框 (image) 即使在测试飞行中,您也会得到相同的对话框,因为它仍然被视为沙盒环境.

当您的应用在 App Store 上线后,您会看到类似的底部 sheet 像这样 (image) 与 Apple Pay sheet 不完全相同。但有些与此类似。