Questions tagged [stripe.js]

Use this tag for Stripe.js. Stripe.js is Stripe's foundational JavaScript library for securely sending sensitive information to Stripe directly from the customer's browser.

Stripe.js is Stripe's foundational JavaScript library for securely sending sensitive information to Stripe directly from the customer's browser.

119 questions
1
vote
0 answers

Change pricing tiers in Stripe based on team size/count

I want to base my pricing tiers in Stripe for when a company signs up like so: Number of members in a company: 0-200: $50/month 201-500: $100/month 501+: $150/month Whenever a company adds or removes a member, if they enter into one of those tiers…
askilondz
  • 3,264
  • 2
  • 28
  • 40
1
vote
0 answers

Rails Stripe Checkout: Card modal not opening, stripeToken null

I'm trying to add Stripe payments to my Rails app. I've followed their Rails Checkout Guide guide exactly, but the checkout modal is not popping up to collect the card information and therefore the card token returned is null when trying to charge…
Ladybro
  • 756
  • 2
  • 9
  • 30
1
vote
0 answers

How to retrieve Stripe card element object by DOM elemnt ID

Is it possible to retrieve the card element object by referencing the ID of the DOM element that it is attached to, with the Stripe elements API in Javascript? For example, if I create the card element like this: var card = elements.create('card',…
RTF
  • 6,214
  • 12
  • 64
  • 132
1
vote
1 answer

Using Stripe.js for kickstarter-style application. How can I test cards before iterating over and charging them all?

So I am building an app that acts similarly to kickstarter/gofundme etc. in that once a price goal is met, it charges all the contributing customers. My process is, when a customer contributes towards the price goal I create a stripe customer and…
Tennyx
  • 153
  • 10
1
vote
1 answer

Custom schedule payments with Stripe

I want to handle the following use cases with Stripe: Charge a customer on a regular schedule where the interval between charges is not a single number, e.g. charge on Tuesdays and Thursdays. Charge the same customer at one off instances, e.g. they…
Emile Paffard-Wray
  • 1,006
  • 2
  • 9
  • 17
1
vote
1 answer

Stripe Element doesn't load in Android WebView

My Stripe Element doesn't load (not showing) in Android WebView during live mode, it work during test. Here is some code : HTML

user1269586
  • 372
  • 1
  • 6
  • 27
1
vote
1 answer

Stripe.js credit card input form invisible in Webview

I was trying to test if it is possible to integrate stripe js in a website and load that site in an android Webview to proceed for payment. I was using this link https://github.com/stripe/elements-examples to load that in Webview like this: WebView…
Istiak Morsalin
  • 10,621
  • 9
  • 33
  • 65
1
vote
1 answer

Add new card to existing customer in Stripe using stripe.js only

I'm using Stripe.js for creating customers,cards and charges everything works like charm but one thing I want to do is add new card to existing customer but I can't proceed further due to an error, below is the example code var customer = …
Nimesh khatri
  • 763
  • 12
  • 29
1
vote
1 answer

app creates Stripe customers but can't get ephemeral key due to "no such customer"

From my iOS app, I'm calling Firebase to 1) create a Stripe customer (and this works, I get a valid looking customer ID back) and 2) get the ephemeral key. The second part is where things are failing. The error I get back looks like this: message =…
Michael Dautermann
  • 88,797
  • 17
  • 166
  • 215
1
vote
1 answer

Create external_account for Stripe Connect payouts with Stripe.js (iOS)

I am trying to connect actual bank accounts to the stripe accounts in Stripe Connect. However, I am struggling with the actual implementation. I use Custom Accounts, so I want to provide the user with the account creation logic through my iOS…
1
vote
1 answer

react-stripe-elements getting "Cannot read property 'props' of undefined"

Following react-stripe-elements sample in readme file. I can set up the stripe form properly but I get below error on pressing pay button. Uncaught TypeError: Cannot read property 'props' of undefined at handleSubmit (paymentForm.jsx?9f51:10) …
user1553777
  • 241
  • 3
  • 7
1
vote
0 answers

How to pay with bitcoin using Stripe.js Elements and React?

Considering bitcoin as payment method, is there a simple way, using react-strip-element, to display a form that enable bitcoin payment? Has anyone already try it? I already use react-strip-element for VISA/Mastercard payment: import {…
Damien Leroux
  • 11,177
  • 7
  • 43
  • 57
1
vote
0 answers

Dynamically load Stripe.js

I have a Stripe payment form on my page but I only want to load it when the user presses a button to show the form. I've used this code without the dynamic loading and it works 100%, but with dynamic loading it doesn't seem to do anything as far as…
Simon
  • 2,498
  • 3
  • 34
  • 77
1
vote
0 answers

Cannot use stripe token more than once - Stripe

I'm trying to take charge from customer of connected account, I have this error Cannot use stripe token more than once This is my code: $customer = \Stripe\Customer::create(array( "email" => $customer_email, "source" =>…
Rubyx
  • 708
  • 1
  • 11
  • 32
1
vote
1 answer

Integrating Ideal with stripe into Node.js

Ive made the app based on this tutorial: https://stripe.com/docs/checkout/express How do I now change the payment method from creditcard to ideal? ideal docs: https://stripe.com/docs/sources/ideal#create-source Question: where do I call the…
Stef Kors
  • 310
  • 2
  • 12