Questions tagged [stripe-payments]

Stripe-payments refers to the libraries and API produced by the "Stripe" company for payment processing.

Overview

Stripe is a complete commerce toolkit for developers—built by developers. Our comprehensive payments platform enables rapid expansion to new business models, markets, and customers. We provide language-specific libraries for PHP, Ruby, Java, Node, Go, .Net, iOS, and Android.

Developer Resources

Products

Stripe Payments: Advanced processing capabilities and support for over 135 currencies.

  • Stripe Checkout: A drop-in, smart payments page to start accepting payments in minutes.
  • Stripe Elements: A set of adaptive UI components to build secure, pixel-perfect checkouts across desktop and mobile.

Stripe Billing: A subscriptions and invoicing platform for recurring revenue.

Stripe Connect: A platform to onboard and pay out sellers or service providers in more than 25 countries.

Stripe Terminal: Card present, in-person checkout using a set of card readers, APIs, and SDKs.

Stripe Radar: A real-time ML fraud prevention powered by behavioral information and data from the Stripe network.

Stripe Sigma: Get instant answers from your Stripe data and create custom reports with SQL queries.

Stripe Issuing: An end-to-end platform for creating, distributing, and managing physical and virtual cards.

11539 questions
46
votes
4 answers

How can I clear test data in Stripe via the API?

I'm familiar with the process of clearing test data via the dashboard in Stripe (as per the image). For testing purposes, I would like to clear the test data as part of the tear down process of our unit tests - to have a clean state at the end of…
Chris
  • 54,599
  • 30
  • 149
  • 186
45
votes
4 answers

Enabling brand icon in `cardNumber` type element in Stripe

When using Stripe elements, is there a way to not use the card element, but still get the auto brand icon show up somewhere (preferably in the cardNumber input field)?
sameers
  • 4,855
  • 3
  • 35
  • 44
43
votes
5 answers

How can I put border styling with react-stripe-elements input component?

About this React component library. https://github.com/stripe/react-stripe-elements How can I put border styling with input component?
mitsuruog
  • 1,259
  • 3
  • 12
  • 21
42
votes
5 answers

Stripe receipt url

From the Stripe dashboard I can view a receipt (click preview link in invoice details). The receipt is then shown inside a popup but there is a permalink in it, so it can be viewed as a separate page. The URL of an emailed receipt looks like…
jbelis
  • 575
  • 2
  • 6
  • 16
41
votes
3 answers

Stripe testing in LIVE mode

We would like to know how we can test stripe in LIVE for an e-commerce website? The site basically is an e-commerce website and courses are purchased online, how do we test LIVE transactions without using real-time credit cards in stripe?
Vijay
  • 411
  • 1
  • 4
  • 3
40
votes
11 answers

Access raw body of Stripe webhook in Nest.js

I need to access the raw body of the webhook request from Stripe in my Nest.js application. Following this example, I added the below to the module which has a controller method that is needing the raw body. function addRawBody(req, res, next) { …
rablentain
  • 6,641
  • 13
  • 50
  • 91
39
votes
1 answer

How do you simulate Stripe Subscription Renewal Failure?

I'm trying to test different Stripe Subscription failures. Specifically, what happens when an active subscription gets renewed when initially the card got accepted and the subscription is active, but the renewal payment gets declined, or the…
Charlie Fish
  • 18,491
  • 19
  • 86
  • 179
39
votes
1 answer

Stripe Error: 'Token is Not Supported' when trying to sign up to subscription

Can't find any information on this particular error anywhere so please bear with me. My Angular/NodeJS app has a payment page (for monthly and annual subscriptions) handled through Stripe. I've created the subscription types in my Stripe dashboard…
JVG
  • 20,198
  • 47
  • 132
  • 210
39
votes
6 answers

Stripe: No such token.. a similar object exists in test mode, but a live mode key was used to make this request

When using Stripe in live mode I get this PHP error: No such token tok_fgfhn.. a similar object exists in test mode, but a live mode key was used to make this request Everything works well in Stripe test mode, and and I've switched to a live API…
Julien
  • 3,743
  • 9
  • 38
  • 67
38
votes
0 answers

Laravel Cashier Incomplete Exception Handling for 3D Secure / SCA

I'm currently trying to use Laravel Cashier to handle Billing inside a React application. When using a test card that requires 3D secure (pulled directly from Stripes Documentation) (4000000000003220), I get an IncompletePayment exception…
Squiggs.
  • 4,299
  • 6
  • 49
  • 89
38
votes
1 answer

Stripe maximum data lengths

I'm using Stripe's simple 'Checkout', is there a specification detailing the max length of data accepted and returned, eg for the following data: customer id description risk level address_line1 etc
Nick W
  • 877
  • 2
  • 15
  • 30
37
votes
2 answers

Stripe making multiple customers with same email address

I have stripe check out with php. It creates customers and charges them. I want to create a donation form where if same customer comes back and gives with same email address that Stripe doesn't create another customer but charges the existing…
Thrive Ministry
  • 473
  • 1
  • 4
  • 6
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
36
votes
1 answer

Stripe Currency - Are all amounts in cents / 100ths, or does it depend on currency?

I am currently writing the code to migrate to Stripe from a different payment processor. I know that when the currency is USD, stripe uses cents. So stripe(1000 USD) == $10.00. Same for Euros I assume stripe(1000 EUR) == € 10.00. But what about…
jcampbell1
  • 4,159
  • 3
  • 33
  • 35
36
votes
11 answers

Is it possible to set localhost as a Stripe webhook URL?

I am creating a payment gateway using Stripe. I want to set my localhost url localhost/stripe/webhook.php as my webhook url. Is it possible to set a localhost address as a webhook url? This will be used to create a mail service that is triggered on…
DjangoDev
  • 889
  • 6
  • 16
  • 25