【问题标题】:Integrating stripe api集成条带api
【发布时间】:2020-11-16 05:51:30
【问题描述】:

我正在尝试为我的 android 应用程序使用条带支付网关。这是我第一次使用它,所以请耐心等待。我正在关注来自条纹的this documentation,并且有一行我想将我的后端 url 放在这样的变量中

private static final String BACKEND_URL = "my backend url";

我在后端使用 Firebase,所以我的问题是我将为 url 放什么?

【问题讨论】:

    标签: android firebase stripe-payments


    【解决方案1】:

    如果您使用 Firebase,您的集成看起来会有所不同。由于您没有要连接的后端,因此您希望使用 cloud functions 来代替。

    您将在 Firebase 上创建函数(例如“创建 PaymentIntent”函数),然后直接从您的 Firebase client on Android 调用它们。

    【讨论】:

      猜你喜欢
      • 2016-01-02
      • 2014-11-27
      • 1970-01-01
      • 1970-01-01
      • 2019-01-09
      • 1970-01-01
      • 2012-06-19
      • 2014-01-21
      • 1970-01-01
      相关资源
      最近更新 更多