天道酬勤,学无止境

stripe-connect

Tokenize bank info with Stripe iOS SDK

问题 回答1 #pragma mark - Bank Accounts @implementation STPAPIClient (BankAccounts) - (void)createTokenWithBankAccount:(STPBankAccountParams *)bankAccount completion:(STPTokenCompletionBlock)completion { NSDictionary *params = [STPFormEncoder dictionaryForObject:bankAccount]; [self createTokenWithParameters:params completion:completion]; } @end

2022-05-16 20:08:03    分类:技术分享    ios   swift   stripe-payments   stripe-connect

Updating MetaData on Connected account fails

问题 我在 Jaymedavis 的 stripe.net 库的帮助下使用了 stripe connect( destination payment )。 我面临的问题是我无法检索目标付款 ID 以更新连接帐户中的元数据。 以下行返回一个空值,阻止我更新已连接帐户上的元数据。 但奇怪的是,当我登录仪表板时,目的地付款 ID 存在。 我不确定为什么我无法在代码中检索它。 电荷创建是异步的吗? 我不确定。 Stripe 的连接文档也无济于事。 以下行返回空值。 我的代码在下面。 寻求帮助。 String deschargeID = result.Transfer.DestinationPayment; 这是我正在使用的代码 var service = new StripeChargeService(ZambreroSecretKey); var result = (Stripe.StripeCharge) null; try { result = service.Create(newCharge); if (result.Paid) { //get the chargeID on the newgen account and update the metadata. //Returns null even though it exists in the dashboard String

2022-05-02 20:39:58    分类:技术分享    c#   asp.net   stripe-payments   stripe-connect

Tokenize bank info with Stripe iOS SDK

Using the UI components in the Stripe iOS SDK, I can easily generate a token/Stripe Source ID client side to securely pass credit card info to the server. I cannot seem to find a similar tokenization feature for bank account info. I can gather bank info client side with STPBankAccountParams, but is there a way to tokenize this info to then pass to the server?

2022-04-30 08:22:18    分类:问答    ios   swift   stripe-payments   stripe-connect

stripe fileUploader in meteor js gives error for the fakepath

问题 我正在尝试使用以下流星方法上传条带上传的验证文件: 我正在传递一个包含用户身份证明文件的对象,以上传到条形服务器上进行验证。 当我编写下面的方法来上传条纹服务器上的 png 图像文件时,它给了我一个错误说 “错误:ENOENT,没有这样的文件或目录 'C:\fakepath\success.png']” Meteor.methods({ fileUploader("C:\\fakepath\\success.png"){ // path only for reference purpose let fp = fs.readFileSync("C:\\fakepath\\success. let StripefileUpload = new Future(); let file; Stripe.fileUploads.create({ purpose: 'identity_document', file: { data: fp, name: 'success.png', type: 'application/octet-stream' } }, function(err, fileUpload) { if (err) { console.log(err); StripefileUpload.return(err); } else { file = fileUpload.id

2022-04-26 14:56:18    分类:技术分享    node.js   meteor   file-upload   stripe-payments   stripe-connect

Updating MetaData on Connected account fails

I am using stripe connect(destination payment) with the help of stripe.net library from Jaymedavis. The problem that I am facing is that I am not able to retrieve the destination payment ID to update the metadata in the connected account. The following line returns a null preventing me from updating meta data on the connected account. But the strange thing is that when I log in to the dashboard the destination payment ID exists. I am not sure why I am not able to retreive it in code. Is the charge creation asynchronous?. I am not sure. Stripe's connect documentation does not help either. The

2022-04-17 10:25:57    分类:问答    c#   asp.net   stripe-payments   stripe-connect

stripe fileUploader in meteor js gives error for the fakepath

I am trying to upload a verification document on stripe upload with below meteor method : I am passing an object that contains the users identification document to to uploaded on the strip server for verification. when I write the below method to upload the image file which is a png on the stripe server it gives me an error saying "Error: ENOENT, no such file or directory 'C:\fakepath\success.png']" Meteor.methods({ fileUploader("C:\\fakepath\\success.png"){ // path only for reference purpose let fp = fs.readFileSync("C:\\fakepath\\success. let StripefileUpload = new Future(); let file; Stripe

2022-03-17 21:34:42    分类:问答    node.js   meteor   file-upload   stripe-payments   stripe-connect

"No such customer" when charging with Stripe

I was testing around with Stripe API and I couldn't get this basic 'marketplace' scenario to work. The scenario is a buyer buys from a seller, and the application has a fee. My setup: # Seller has already connected their account to the application # through "Stripe Connect Standalone". Below will attempt to charge a customer. import stripe # application's sk from stripe stripe.api_key = "sk...." # Build customer customer = stripe.Customer.create( email = customer.email, card = token_from_stripe_checkout ) # Now do a charge charge = stripe.Charge.create( amount = 2000, currency = "usd"

2022-02-14 05:27:47    分类:问答    python   stripe-payments   stripe.net   stripe-connect

Stripe Connect:根据“已连接”(独立)帐户向现有客户收费(Stripe Connect: Charging an existing customer against a "connected" (Standalone) account)

问题 如果尝试通过连接的帐户向客户记录(具有关联的信用卡)收费,我会收到一条错误消息,声称“没有这样的客户:cus_xxxx”——即使向相同的客户收费也可以正常工作不使用“连接”帐户时(通过平台帐户收费时)。 例如,考虑以下 Ruby 代码,假设我们有一个 ID acct_ABC123的“已连接”(独立)帐户: # Use the (secret) API key for the "platform" or base account. Stripe.api_key = 'sk_[...]' customer = Stripe::Customer.create(email: 'customer@example.com') # Associate a credit-card with the customer. token = # Generate a token (e.g., using Stripe Checkout). customer.sources.create(source: token) # Attempt to charge the card via the connected account... Stripe::Charge.create({ amount: 150, currency: 'usd', customer: customer.id

2022-01-22 18:35:57    分类:技术分享    ruby   stripe-payments   stripe-connect

在 Stripe Checkout 中隐藏电子邮件(Hide email in Stripe Checkout)

问题 如何在 Stripe Payment 的 checkout.js 中禁用或隐藏电子邮件 onStripeUpdate(e) { this.stripehandler.open({ name: "", description: "", panelLabel: "Pay {{amount}}", allowRememberMe: false, email: "", //--->how to hide this email? }); e.preventDefault(); } 回答1 无法完全禁用电子邮件字段。 您可以为email配置选项传递一个值,但它必须是有效的电子邮件地址。 如果它是有效地址,则该字段将替换为具有您提供的值的静态标签。 如果您不提供email选项,或者您提供了无效值(例如示例代码中的空字符串),则电子邮件字段仍将显示。

2022-01-22 16:56:53    分类:技术分享    reactjs   stripe-payments   stripe-connect