我使用带节点js的条来支付费用,我正在创建一个会话并使用条签出接口。我使用一个web钩子来听事件,当付款被创建或成功的时候,stripe发送payment_intent.succeeded,所以我用它做了一些事情。但问题是,当我单击cancel url取消付款时,stripe不取消付款,也不发送payment_intent.canceled,这是一个问题,因为我不知道是否取消了付款,我无法做我计划做的事情。这是我的代码:
// This will share the stripe publickey with the frontend
const webhook = async (req, r
你好,我有一个关于来自expo的反应原生条带API的问题。我在从CardField元素获取付款意图时遇到了问题。我需要创建一个条带付款意图发送到我们的api。我已经从expo安装了@stripe/stripe-react-native库,并且正在使用提供的CardField元素。 Image of my CardField Element 我为事件处理程序制作了自己的按钮,因为CardElement没有。 Image of my current event handler 我有这个useStripe钩子,但我不确定要使用哪个函数来获得付款意图。 Image of the useStripe(