执行付款贝宝颤动

毛里齐奥·曼奇尼

我正在尝试在 WebApp 中实现贝宝付款,但 WebView 与网络不兼容。我也尝试过 dart: ui 但没有成功。

//ignore: undefined_prefixed_name
  ui.platformViewRegistry.registerViewFactory(
      'paypal-html',
      (int viewId) => IFrameElement()
        ..width = MediaQuery.of(context).size.width.toString()
        ..height = MediaQuery.of(context).size.height.toString()
        ..src = checkoutUrl
        ..style.border = 'none');

SizedBox(
          width: MediaQuery.of(context).size.width,
          height: MediaQuery.of(context).size.height,
          child: HtmlElementView(viewType: 'paypal-html'),
        ),

你知道我该怎么做吗?

普雷斯顿 PHX

PayPal不支持使用Webview 来批准付款。必须使用带有地址栏的浏览器视图机制(例如 Safari 视图控制器或 Chrome 自定义选项卡)

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章