条带支付是指由“条纹”公司生成的用于支付处理的库和API。
哎呀, Gatsby 中的 Stripe 在页面加载时出现错误 未捕获(承诺中)TypeError:maybeStripe.apply 不是函数 从 'react' 导入 React, { useEffect, useState }; 小鬼...
具有试用期的 Stripe 订阅即使付款失败也会进入试用状态
我最近从条纹卡元素迁移到新的 PaymentElements,这样我就可以支持 Apple Pay 和 Google Pay 以及我的订阅卡。我一直在兜圈子
我目前正在使用 Stripe 付款 API 来授权和延迟捕获/取消付款,但我想知道是否可以捕获费用并捕获/取消单个产品/项目/line-ite...
Stripe Webhooks StripeSignatureVerificationError
我目前正在测试结帐流程的 Stripe Webhook 端点。 我很困惑,因为 Stripe 在其文档中显示了两个不同的片段如何设置 Webhook 端点。 在车...
未处理的拒绝(TypeError):无法读取未定义的属性“amount”
使用 React 制作电子商务应用程序。这是一个“handleSubmit”函数,每次我尝试结帐时都会返回错误。 我已导入“db”并声明“
方法com.reactnativestripesdk。 Stripe SDKModule.confirmPayment,参数 paymentIntentClientSecret
我不知道如何解决这个问题。有人请帮助我! 在此输入图像描述 router.post("/create- payment-intent", async (req, res) => { const { items, user_id } = 重新...
如何在flutter中创建用于后端支付的stripe token
我想创建一个条带令牌,将其发送到后端 API 进行支付。我创建了一个 CardFormField,然后使用: 最终 tokenData = 等待 Stripe.instance.createPaymentMethod( 参数:const
如何在不先创建付款意图的情况下显示 Stripe PaymentElement 表单?
我正在使用 React 和 Next.js 构建一个销售视频课程的平台。 我的目标是创建一种未经身份验证的用户可以使用的付款表单。我希望它能像 Gumroad 上的那样工作 - ...
我使用 vue 作为 CDN,因为应用程序非常简单。 此时当我添加代码时 我使用 vue 作为 CDN,因为应用程序非常简单。 此时当我添加代码时 <div id="app"> <!-- some code here --> <form action="/charge" method="POST"> <script src="https://checkout.stripe.com/checkout.js" class="stripe-button" data-key="<%= stripePublishableKey %>" data-amount="2500" data-name="ec-system payment" data-description="You will pay this money for something!" data-locale="auto"> </script> </form> </div> 这段代码给了我类似下面的错误。 模板应该只负责将状态映射到 UI。 避免在模板中放置具有副作用的标签,例如 ,因为它们不会被解析 我发现了一些像“vue-stripe”这样的 npm 库,但是当我使用 vue 和 cdn 而不是 vue-cli 时,我不知道如何使用这个库。 在 vue 中,您不能在模板内使用 script 标签。 在你的情况下,你可以使用这个名为“vue-stripe-checkout”的库。 该库以两种方式支持 NPM 或纱线 npm 安装 vue-stripe-checkout --save yarn 添加 vue-stripe-checkout CDN https://unpkg.com/vue-stripe-checkout/build/vue-stripe-checkout.js 您可以使用第二种方法,将 cdn 包含到您的应用程序中。 请参阅此vue-stripe-checkout了解详细信息。 是的,你可以。首先将所有的 stripe.js 脚本加入队列,然后创建一个与此类似的组件: const VueStripe = { props: ['pm_id', 'public_key', 'settings'], template: '#stripe-template', data: () => ({ stripe: null, card: null, stripe_error: '', }), mounted() { try { this.stripe = Stripe(this.public_key); this.init(); } catch (exceptionVar) { console.log(exceptionVar) } }, watch: { card: { handler(newVal, oldVal) { if (newVal.error) { this.stripe_error = newVal.error.message; } else { this.stripe_error = ''; } } } }, methods: { init() { // Create an instance of Elements var elements = this.stripe.elements(); // Custom styling can be passed to options when creating an Element. // (Note that this demo uses a wider set of styles than the guide below.) var style = { base: { color: this.settings.conf_backend_dark_mode ? '#fff' : '#32325d', fontFamily: '"Helvetica Neue", Helvetica, sans-serif', fontSmoothing: 'antialiased', fontSize: '16px', '::placeholder': { color: '#aab7c4' } }, invalid: { color: '#fa755a', iconColor: '#fa755a' } }; // Create an instance of the card Element this.card = elements.create('card', {style: style}); // Add an instance of the card Element into the `card-element` <div> this.card.mount('#card-element'); }, payNow() { this.stripe.createToken(this.card).then((result) => { if (result.error) { this.stripe_error = result.error.message; } else { this.stripeTokenHandler(result.token); } }); }, stripeTokenHandler(token) { console.log('Token received:', token); // You can now send the token to your server for processing payment } } }; .v-stripe-input .v-field__input > input[type="text"] { display: none; } <template id="stripe-template"> <v-text-field label="Input credit card details" :density="settings.conf_backend_inputs_density" :variant="settings.conf_backend_inputs_variant" dirty class="v-stripe-input mb-2" :error="stripe_error !== ''" :error-messages="stripe_error" > <template #default> <div id="card-element" class="d-block" style="width: 100%"></div> </template> </v-text-field> <v-btn @click="payNow()" :density="settings.conf_backend_buttons_density" :variant="settings.conf_backend_buttons_variant" >Pay Now </v-btn> </template> 然后将包含所有这些的文件包含在您的主文件中,最后将其作为全局组件添加到您的应用程序中,例如,执行以下操作: app.component('vue-stripe', VueStripe); 对我有用,希望对任何人都有帮助!
Stripe API - 如何仅在 PaymentElement 上显示 apple pay
在我的应用程序中,我有一个流程,用户需要添加付款方式,然后稍后收费。 所以基本上我所做的就是前端对应用程序后端执行 ping 操作以创建条带
我如何创建 Stripe 订阅,并集成 3D Secure,以便它可以在印度使用
问题是我无法创建订阅来解决印度付款问题。 当我输入印度的条纹测试卡详细信息时,它给出了错误,它正在安慰类似这样的事情......
我如何创建一个可以在印度使用的条带订阅。帮助我集成 3D 安全和所有其他需要的东西
实际上,问题是我无法创建解决印度付款问题的订阅,任何人都可以帮忙 当我输入印度的条纹测试卡详细信息时出现错误,这是缺点......
AxiosError {消息:'请求失败,状态代码401',名称:'AxiosError',代码:'ERR_BAD_REQUEST',配置:{...},请求:XMLHttpRequest,...}
(https://i.sstatic.net/cWBpMN5g.png)(https://i.sstatic.net/vTGlIyIo.png)[在此处输入图像描述](https://i.sstatic.net/ 7o83kRze.png) 我正在尝试一个带有一点后端的前端项目......
将 Expo 项目更新到 SDK 51 后,当我使用 Stripe 购买产品时,我的项目崩溃了。 它只是崩溃,没有任何错误。 我尝试更新所有模块。 没有任何信息...
如何获取 Azure Functions (Typescript) HttpRequest 原始正文作为字符串(用于 Stripe Web 挂钩验证)
我正在尝试验证 Typescript v4 Azure Function App 中的 Stripe Web 挂钩调用。 我成功收到了来自 Stripe 的电话,并带有标题中的签名,但我不知道如何获取...
为什么这个 php 方法中的所有请求值都是 null 或未定义? (Laravel + Stripe)
其实问题很简单(但对我来说并不容易)。我在 laravel 11 中创建了一个后端项目来处理我的数据库并与 Stripe api 进行通信,我已经成功实现了,
使用springboot进行Stripe webhook签名验证
我正在开发一个端点来接收来自 stripe 的 webhook 事件。使用stripe库来验证签名。 Webhook.constructEvent(body, sigHeader, "whsec_...."); 它总是给我
stripe connect api - 持有资金直到事件发生
我正在尝试使用 stripe connect api 构建一个项目来购买/出售商品。 我选择了我的平台收取申请费的解决方案,因此钱直接流向卖家......
CocoaPods 找不到 pod“StripePayments”的兼容版本
我创建了一个具有以下依赖项的react-native项目: “反应”:“18.2.0”, “反应本机”:“0.73.1”, 现在我正在尝试在
最近,我的任务是为我正在开发的应用程序设计 Stripe 集成和结账流程。我们正在内部进行产品/订单管理,这是我的第一次经历......