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
69
votes
6 answers

How can I style a Stripe Elements input with Bootstrap?

I'm building a simple website that will process payments with Stripe. I'm using Bootstrap for my styling. When I use Stripe Elements to insert the payment fields, they aren't styled with Bootstrap. How can I apply Bootstrap's styling to the Elements…
michael
  • 2,977
  • 3
  • 20
  • 26
36
votes
4 answers

How to add card holder's name to Stripe checkout using Elements?

I need to add an additional field to my custom form, I want to add the name of the credit card. I tried in the following way: var cardNameElement = elements.create('cardName', { style: style //, placeholder: 'Custom card number…
user8880927
31
votes
7 answers

Stripe not working with error 'Uncaught (in promise) Error: We could not retrieve data from the specified Element.'

I am trying to use Stripe.js following https://stripe.com/docs/stripe-js/elements/quickstart I made html, css, javascript just same as sample of that url. But when I click 'Submit Payment' Button, it always shows console error and not…
LarAng
  • 1,255
  • 3
  • 18
  • 28
19
votes
1 answer

Best practice for storing Stripe payments in database?

I was wondering if there was some kind of "convention" or otherwise a best practice for storing Stripe payment data in the database. There is a real lack of information online and since I am doing it on my own I wanted to get some feedback from…
HPJM
  • 517
  • 8
  • 17
11
votes
1 answer

Add key/value pair to returned mongoose object

I have code that retrieves a Mongoose object and then uses the stripeCustomerId (stored in the document) to retrieve the Stripe customer object (via nodejs stripe). I then want to attach the stripe customer object to my Mongoose…
Dan Orlovsky
  • 1,045
  • 7
  • 18
11
votes
3 answers

Custom theme for Payment Request Button [Stripe]

Usually, we use a theme which was provided stripe like the following. style: { paymentRequestButton: { theme: "light-outline" } } They have also provided some theme's like 'dark' | 'light' | 'light-outline' My question is can we create a…
Jithin Raj P R
  • 6,667
  • 8
  • 38
  • 69
9
votes
2 answers

How do I apply a local custom font to Stripe Elements?

I am trying to use a font from a local .otf file inside my project's directory in order to style the text within the inputs of the credit card form provided by Stripe Elements. As this is a React project, I have been making use of the…
D-Maher
  • 91
  • 4
8
votes
2 answers

Is it possible to verify CVC, ZIP code, and Address 1 on Stripe.createToken()?

So my system consists of a backend and a frontend. We're doing Stripe integration. I'm implementing Stripe checkout form on frontend to simply PCI compliance process, and I want Stripe to verify everything, including CVV / Address line 1/ ZIP before…
Thiem Nguyen
  • 6,345
  • 7
  • 30
  • 50
8
votes
3 answers

How to get default shipping address with Payment Request button before customers clicks "Pay"? I'm using Stripe.js & Elements

I'm using Stripe's PaymentRequest button to collect payment & shipping information to later process the payment with Stripe on the server side. I'm targeting ApplePay, but currently testing under PaymentRequest API (Chrome). I need to know the…
Jacob
  • 81
  • 2
8
votes
2 answers

Stripe cannot create Ephemeral Key

I am making an iOS project which uses Stripe. I am using a STPCustomerContext and the parameter to create an instance is an object of MainAPI below. When I create the instance, it automatically calls createCustomerKey() but an error (404) is…
Ryan Cocuzzo
  • 3,109
  • 7
  • 35
  • 64
7
votes
2 answers

How to integrate Stripe payments gateway with Django Oscar?

I am trying to integrate the Stripe payment gateway to Django oscar for an e-commerce site which sells physical goods like groceries online.I use python 3.6.3, Django 2.0, Django-oscar 1.6, stripe 1.82.2. Method 1: So I followed this link in…
Sammy J
  • 1,048
  • 10
  • 28
7
votes
4 answers

react-stripe-elements Error: You must provide a Stripe Element or a valid token type to create a Token

I am using react-stripe-elements to create a token for payments. However, according to the documentation when the card form is wrapped in the Elements component it should automatically pickup which stripe elements to tokenize. However, in this case…
Sachin Karia
  • 547
  • 2
  • 8
  • 22
7
votes
3 answers

Invoice for a one-time payment on Stripe

Does Stripe generate invoices for one-time payments (not subscriptions)? It seems in the docs that invoices are only part of their "Subscriptions" feature.
Arnaud
  • 4,884
  • 17
  • 54
  • 85
5
votes
1 answer

Can we use custom UI for STRIPE

I implemented stripe with the default interface which is all fine. But now my client wants to use his custom screen to input payment information like this They just want to not use STRIPE's default UI I have be searching about it but could not find…
user2496608
  • 115
  • 9
5
votes
1 answer

404 Error on Stripe Webhook in Node

I have the following code setup for a webhook: var express = require('express'); var router = express.Router(); var nodemailer = require('nodemailer'); var middleware = require('../middleware'); var stripe =…
David
  • 944
  • 1
  • 13
  • 20
1
2 3 4 5 6 7 8