问题标签 [stripe.net]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
1035 浏览

php - 如何使用从客户使用条带创建的令牌进行多次付款?

使用以前使用条带创建的客户创建的令牌进行收费时出现错误。我需要能够多次向用户收费,以便收费可以转到多个目的地,这就是我创建令牌的原因。但是,当尝试使用以下代码向任何人收费时,我收到错误:

致命错误:未捕获的异常“Stripe\Error\InvalidRequest”与消息“没有这样的令牌:tok_187sfmBqiK1u6WYC3qS20eNu”

$stripe_id 和其他变量已在我的代码中分配,我只是复制/粘贴主要位:

任何帮助将不胜感激,

谢谢

0 投票
2 回答
1071 浏览

c# - 为客户 stripe.net 添加多张卡

有没有办法可以使用 stripe.net 为客户添加多张卡,我知道我们需要检索客户并使用源对象添加新卡,如下所示(https://stripe.com/docs/api #create_card)。但是对于 stripe.net,我似乎无法弄清楚如何做到这一点,任何指针都会有很大的帮助。

0 投票
1 回答
127 浏览

stripe-payments - Store data in Stripe to be sent back as part of web hook data?

I am working for the first time with Stripe. I am using stand alone accounts. I have a platform account also. In my web site a number of people with different Stripe accounts will be opening up campaigns for which money can be donated by various donors. Each campaign owner has a separate stripe account and the platform will be charging through the campaign owner's stripe account.

So what it amounts to is the platform account will be charging for a number of campaigns through each campaign owner's Stripe account. My problem is related to web hooks. One point to remember is each campaign has an id associated with it in the database and I am storing the API key of each campaign owner's stripe account and associating it with this id. To get Stripe data from the web hook in the web hook end point I have to set the API key of the connected account with a statement like:

The trouble with this is there is one web hook end point for a number of Stripe accounts. I cannot hard-code the API key in the above statement. I have to fetch the appropriate API key from my database using the id.

But when Stripe invokes the web hook end point I simply do not have the campaign id with me in order to fetch the appropriate API key and set the API key. Is there any solution around this?

0 投票
4 回答
15644 浏览

c# - Xamarin DependencyService:System.MissingMethodException:未找到 [Interface] 的默认构造函数

Xamarin.Forms PCL. 我已经看到这个错误的答案涉及iOSLinker. 但是,我正在运行它Android并且Linker关闭。调试模式也是如此。

它告诉我的构造函数在 PCL 中找不到接口的默认构造函数。

我认为这可能是我所做的一些重命名的问题(我使用了重构工具并确保进行了所有必要的更改),所以我删除了这些文件夹/文件并重新制作了它们。依然没有 :(

我已经搜索和调试了几个小时。有哪些可能会导致此错误?我很确定我的DependencyService实现是正确的,所以我觉得它是不同的。

这是我的相关代码。

界面:

安卓:

IOS:

Xamarin.Form 内容页面中的实现:

我的错误,再次:“System.MissingMethodException:未找到类型 Enchantum.Functions.PaymentProcessor 的默认构造函数”

出了什么问题?

PS请原谅我不正确的接口命名约定以及其他一些混乱。

0 投票
1 回答
2137 浏览

asp.net-core-mvc - StripeException:提供的 API 密钥无效:Stripe.Net

我的程序成功创建了一个令牌并通过了它。然后它为 Stripe 的客户创建所有相关信息。

我确认所有这些都将它们的值正确地传递给了客户对象,但是我在标题中得到了错误。我错过了什么?

0 投票
1 回答
325 浏览

c# - Stripe.net 如何将客户链接到托管账户?

我正在一个将有多个托管帐户的平台上工作。然后这些帐户将在其下创建客户。我可以使用 stripe.net 创建它们中的任何一个,但我不确定如何链接它们(或者是在幕后完成的?)

我意识到我可以手动执行费用并将charge.Destination 字段添加到 StripeChargeCreateOptions,但是我必须手动安排费用而不是使用计划。

我也想知道如何检查托管账户的账户余额。从 API:

“根据用于发出请求的身份验证检索当前帐户余额。”

我不确定如何设置它以使用托管帐户身份验证。

换句话说,我想让客户根据他们的计划收取费用,并将其添加到他们创建的托管帐户的余额中。然后按计划将余额转移到他们的银行账户(我看到可以在托管账户对象上配置)。

任何帮助表示赞赏。

0 投票
1 回答
97 浏览

stripe-payments - Stripe Card 信息最佳实践等


我正在创建一个通过条带使用的支付处理页面,我希望能够让我的客户管理保存的卡或使用新卡。我担心对某些客户信息过于坦率,以及向我的服务器暴露太多卡信息的可能性。

如果我检索到最后 4、exp 日期等敏感信息,我应该对其进行一些加密,还是完全可以在我的关系服务器端显示或存储这些信息片段?

编辑:这里的新开发者要温柔:)

0 投票
1 回答
720 浏览

javascript - AngularJS 和 Stripe:将令牌发送到服务器,将令牌插入表单

我正在使用 ASP.NET、HTML、AngularJS 和 Stripe.NET 开发卡片处理 API。我对他们都很陌生。我按照 Stripe 网站上的文档将 Stripe 令牌发送到服务器(此处):https ://stripe.com/docs/stripe.js#card-validateCardNumber

有效!但是,我想使用 AngularJS 而不是 JQuery。我想将这部分 JQuery 代码从 JQuery 转换为 AngularJS:

如果有人可以提供帮助,我将不胜感激。谢谢。:)

0 投票
1 回答
383 浏览

c# - 如何使用 stripe.net 将资金从连接的托管账户转移到平台账户

标题说明了一切。

我的平台上有几个托管帐户。我想知道如何将资金从他们转出并转入我的平台账户。这就是我希望收取平台费用的方式,因为我想每月一次性收取,而不是根据费用/转账的百分比收取。

0 投票
1 回答
799 浏览

c# - 如何使用 stripe.net 设置 ach 传输

我知道您必须创建一个客户并验证一个银行帐户,但我不确定如何做后者。

我该如何在客户身上验证它们?

要将银行账户添加到客户,您需要创建一个令牌并将其添加到 sourceToken 参数,因为目前尚未实现使用银行账户服务添加。例如:

但是,我仍然不知道如何验证创建后的银行帐户。