stripe-connect

'No such token' error upon submitting payment request to Stripe

随声附和 提交于 2019-12-21 07:01:19
问题 I'm setting up payments using the Stripe API to allow a user to log into their Stripe account on an iPad and accept payments from anyone. To do this, I'm using Stripe Connect to log them in and save their account id, then I'm using the STPPaymentCardTextField to obtain credit card details, then using the Stripe iOS SDK I'm submitting a card (with the test card info - 4242...) and getting back a token via createTokenWithCard . This successfully returns a token. At this point I need to submit

Stripe API error when passing application_fee

◇◆丶佛笑我妖孽 提交于 2019-12-19 05:47:20
问题 I am trying to collect an application fee using the Stripe API. I am sure I am missing something in the request. Stripe complaints that it needs either of these: OAuth key, the Stripe-Account header, or the destination parameter. I am passing in the Stripe-Account header. Could you please point me into the right direction? Here is my curl request: curl https://api.stripe.com/v1/charges \ -u sk_test_<key>: \ -H "Stripe-Account: acct_<key>" \ -d amount=2000 -d currency=usd -d capture=true \ -d

Ember.js how to extend ember-cli-addon component

ぐ巨炮叔叔 提交于 2019-12-13 07:01:55
问题 I'm using Stripe in my Ember app, and I've set it up following the instructions here : https://github.com/sweettooth/ember-cli-stripe so as my app stands right now, the ember-checkout component installed via this addon is in myappname/node_modules/ember-cli-stripe/app/components/stripe-checkout Now, I want to create a new component "my-stripe-checkout", and have it extend the default ember-cli-stripe component. I have tried: import StripeCheckoutComponent from '../node_modules/ember-cli

Updating MetaData on Connected account fails

元气小坏坏 提交于 2019-12-12 05:19:59
问题 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

How to make multiple payments using a token created from a customer using stripe?

偶尔善良 提交于 2019-12-12 03:26:34
问题 I'm getting an error when making a charge using a token created from a customer previously created using stripe. I need to be able to charge a user more than once so charges can go to multiple destinations, which is why I'm creating the token. However, when trying to charge anyone using the following code I get the error: Fatal error: Uncaught exception 'Stripe\Error\InvalidRequest' with message 'No such token: tok_187sfmBqiK1u6WYC3qS20eNu' $stripe_id and other variables have been assigned in

LoadError in OmniauthCallbacksController#passthru (with devise/stripe connect)

冷暖自知 提交于 2019-12-12 01:47:41
问题 Trying to implement Stripe Connect, and am getting the following error when I click the "connect to stripe" button. The action 'passthru' could not be found for OmniauthCallbacksController users/omniauth_callbacks_controller.rb class Users::OmniauthCallbacksController < Devise::OmniauthCallbacksController def stripe_connect @user = current_user if @user.update_attributes({ provider: request.env["omniauth.auth"].provider, uid: request.env["omniauth.auth"].uid, access_code: request.env[

Button click causes multiple Stripe modals to pop up

痴心易碎 提交于 2019-12-11 09:48:24
问题 This is my JS function that creates the form, which I verified works. function addStripeInformation(data) { var handler = StripeCheckout.configure({ key: 'KEY_EDITED_OUT', token: function(token) { $.ajax({ url: '/charges/create', type: "POST", data: { "token" : token.id, "email" : data.email } }); } }); $('#customButton').on('click', function(e) { // Open Checkout with further options handler.open({ email: data.email, name: data.name, description: 'Adding payment information', zipCode: false,

Verify CVC code before creating charge

∥☆過路亽.° 提交于 2019-12-10 18:28:00
问题 I'm trying to check the user entered cvc code. I have stored stripe customer_id and the stripe card_id. I want to verify the CVC code before charging the user. Below are code for creating charge. charge = Stripe::Charge.create( :amount => 1000, :currency => "usd", :customer => "cus_3sAc**************", :card => "card_18m*********************", :description => "Testing multiple card payment", :capture => false # default true, :cvc => 125 ) But cvc parameter is invalid here. If I remove the cvc

Stripe Connect: Charging an existing customer against a “connected” (Standalone) account

Deadly 提交于 2019-12-10 15:38:10
问题 If attempting to charge a customer record (which has an associated credit-card) via a connected account, I get an error claiming, "No such customer: cus_xxxx" -- even though making a charge to the same-exact customer will work fine when not using a "connected" account (when charging via the platform account). For example, consider the following Ruby code, assuming we have a "connected" (Standalone) account with ID acct_ABC123 : # Use the (secret) API key for the "platform" or base account.

stripe fileUploader in meteor js gives error for the fakepath

走远了吗. 提交于 2019-12-08 09:08:52
问题 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