Questions tagged [stripe-payments]
Stripe-payments refers to the libraries and API produced by the "Stripe" company for payment processing.
stripe-payments
12,750
questions
360
votes
37
answers
488k
views
Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15
In Stripe, my client wants email and cardholder name, but the Stripe payment UI doesn't provide that option in com.stripe.android.view.CardMultilineWidget. I wanted to give it a try with the latest ...
355
votes
25
answers
574k
views
cURL error 60: SSL certificate: unable to get local issuer certificate
I am trying to send an API request using Stripe but get the error message:
cURL error 60: SSL certificate problem: unable to get local issuer certificate
This is the code I am running:
public ...
114
votes
23
answers
65k
views
Stripe Error: No signatures found matching the expected signature for payload
I have a stripe webhook that call a Firebase function. In this function I need to verify that this request comes from Stripe servers. Here is the code :
const functions = require('firebase-functions');...
98
votes
1
answer
45k
views
Stripe - How to handle subscription with a free plan and no credit card required at sign up time
We started to implement Stripe on Redsmin (one of our project) and I think we may have missed something. Here is how it works:
To use our product, the user must select a plan (free, s, m, xl, xxl...) ...
81
votes
3
answers
135k
views
Top-level ‘await’ expressions are only allowed when the ‘module’ option is set to ‘esnext'
I am going through Stripes integration steps and have come across an error for my code found in step 2.1 (https://stripe.com/docs/connect/collect-then-transfer-guide#create-an-account-link)
How do I ...
73
votes
1
answer
3k
views
ReferenceError getValuesOfAutofillInputs, Can't find variable: PaymentAutofillConfig [closed]
We are facing the Reference error in our code since 2nd of June 2022 on our sentry logs.
Moreover its only happening on iOS (iphone) devices only..
Please find the link below to see the error:
https://...
72
votes
16
answers
49k
views
Stripe, is it possible to search a customer by their email?
Update: Since around January 2018, it is now possible to search using the email parameter on Stripe. See the accepted answer.
I was wondering if it was possible to search a customer only by their ...
69
votes
6
answers
67k
views
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. ...
68
votes
10
answers
19k
views
Stripe: downgrade a user at "period end"
Is it possible to downgrade a user at period end instead of immediately? I've combed through the API Docs but haven't been able to figure out how to accomplish this.
As a workaround I'm currently ...
60
votes
3
answers
39k
views
Do not collect Zip code with Stripe
Im trying to use Stripe v3 for payment. The guide is here https://stripe.com/docs/elements
I do not want to collect the zip code. However I cannot figure out how. My HTML is:
<form>
<...
56
votes
5
answers
56k
views
'No such token' error upon submitting payment request to Stripe
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 ...
54
votes
3
answers
30k
views
Stripe Payment: Getting Error as Customer cus_***** does not have a linked card with ID tok_*****
In testing mode when I create a new customer and tries for payment, i got this error.
Customer cus_7Zz2BCnybIZLGw does not have a linked card with ID
tok_17Kp8GAwLkQPB7OqrrM73VVI
Im using card ...
51
votes
8
answers
74k
views
Catching Stripe errors with Try/Catch PHP method
During my testing of STRIPE in a website, I built the code like this:
try {
$charge = Stripe_Charge::create(array(
"amount" => $clientPriceStripe, // amount in cents
...
51
votes
4
answers
32k
views
Meteor: Proper use of Meteor.wrapAsync on server
Background
I'm trying to integrate stripe payments into my site. I need to create a stripe user using my private stripe key. I'm storing this key on my server, and calling a server method to create ...
50
votes
6
answers
41k
views
import stripe using node js + typescript
I need to import stripe in to my application
First i installed stripe npm package
npm install stripe --save
Stripe documentation says that secret key should be set before connect the api.
In ...
49
votes
4
answers
26k
views
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 ...
46
votes
1
answer
4k
views
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),...
45
votes
4
answers
14k
views
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)?
45
votes
3
answers
35k
views
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 ...
45
votes
5
answers
76k
views
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?
<CardElement style={{
base: {
fontSize: '18px',
...
43
votes
11
answers
30k
views
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 ...
43
votes
1
answer
13k
views
How do you simulate Stripe Subscription Renewal Failure? [closed]
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 ...
42
votes
1
answer
23k
views
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 ...
42
votes
6
answers
47k
views
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 ...
42
votes
5
answers
17k
views
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....
39
votes
12
answers
45k
views
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 ...
39
votes
1
answer
5k
views
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 ...
38
votes
3
answers
29k
views
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 ...
38
votes
1
answer
12k
views
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
37
votes
4
answers
36k
views
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
//, ...
36
votes
7
answers
22k
views
Non-English texts in Stripe possible?
Successfully integrating Stripe into my online shop, I completely failed to get information on whether/how to configure Stripe to return error messages in German instead of English.
So my question ...
36
votes
1
answer
21k
views
Stripe Checkout example running into CORS error from localhost
I am trying to integrate Stripe Checkout using the instructions given here https://stripe.com/docs/payments/accept-a-payment?integration=checkout for node.
I have followed their instructions to a tee ...
35
votes
2
answers
31k
views
Creating stripe token using separate elements
Instead of using the element type 'card' I needed to separate the elements, In the documentation example they only use 'card' so when they create a token they just pass the card object to the create ...
35
votes
5
answers
21k
views
Stripe checkout.js with coupons
I'm using Stripe's checkout.js because it's so easy to setup and use. Is there a way to add coupons?
<script src="https://checkout.stripe.com/v2/checkout.js"
class="stripe-button"
data-key=...
34
votes
5
answers
62k
views
Stripe Payment: Save token and customer and make payment later from token
Is it possible in stripe payment,
First we will validate credit card using stripe, then we generate token and create customers.
we will save token instead of credit card information in database and ...
34
votes
5
answers
43k
views
Stripe payment example is not displaying
I am trying to create a really simple example of using Stripe payments.
This is my code:
// Create a Stripe client
var stripe = Stripe('pk_test_XSHE4IYLLy9qCPe7lW7pK4ZE');
// Create an instance ...
34
votes
3
answers
15k
views
How to pre-populate email in the Stripe payments dialog popup
I cannot seem to find a way to pre-populate the email address in the stripe payment popup. However this weekend I signed up for two accounts on websites that use stripe payments and I realized those ...
34
votes
2
answers
13k
views
Is the customer.subscription.updated event raised when a subscription is renewed?
I'm confused about why Stripe's documentation suggests the customer.subscription.updated event is not fired when I believe it should:
A Stripe subscription object has the properties ...
34
votes
3
answers
31k
views
Stripe - Add new card to existing customer
I have a need to add a card to a pre-existing customer. Here's what I did:
1. obtain token from user submission
card_token = request.POST('stripeToken')
2. retrieve a customer
customer = stripe....
33
votes
5
answers
20k
views
Stripe Webhook events Renewal of subscription
I am using STRIPE for credit card payments in my Asp.net Application. Application have an monthly subscription plan. First time when user subscribe the webhook event 'customer.subscription.created' ...
33
votes
7
answers
11k
views
Stripe iOS SDK - Incompatible block pointer types sending
The Stripe SDK is causing a build a failure. The specific error is:
Incompatible block pointer types sending '__strong STPAPIResponseBlock _Nonnull' (aka 'void (^__strong)(ResponseType _Nullable ...
33
votes
7
answers
19k
views
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, ...
32
votes
10
answers
35k
views
Modify style of 'Pay with Card' Stripe button
Is it possible to modify style of "Pay with Card" Stripe button? I've tried modifying by,
adding a new class defined in external style sheet
modifying its own class of stripe-button in external style ...
31
votes
1
answer
8k
views
Stripe Connect: What's the difference between Customers and Accounts?
Currently, it seems as though Connect's Accounts does everything the Customers does, e.g. it is possible to add a bank card directly to the Accounts account. So just creating an Accounts object for a ...
31
votes
6
answers
28k
views
Is it possible to pass custom data to stripe checkout?
I'm following the documentation for Stripe Checkout with server integration: https://stripe.com/docs/payments/checkout/server
The code in the examples works fine, but the problem I'm having is being ...