#dev-help

1 messages Β· Page 95 of 1

cursive heronBOT
#

@warm aurora pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hi, can someone take a look at my proposal that I will send in the thread

Related Request ID(s)
-

What have you already attempted?
Read documentation

What are you working on?
Implementing SEPA Direct Debit from scratch in my ERP

cursive heronBOT
#

@jolly fiber pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We want to allow our customers to have a one-off free trial when they already have a subscription. After the free-trial has ended, we want their subscription to seamlessly begin billing them again.

We can see that there are phases we can add to the subscription. Is this the right way to do it or there a better way we ought to be doing it?

Related Request ID(s)
N/A

What have you already attempted?
We used to just change the end date of the subscription, but this would generate an invoice for them which we would have to void. This doesn't seem the right way to do it as we are fighting against the system, seemingly.

What are you working on?
B2C SaaS system

#

@merry veldt pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
/* eslint-disable @typescript-eslint/no-explicit-any */
import { useEffect, useRef, useState } from 'react';
import { useNavigate } from "react-router-dom"
import { Button } from "@/components/ui/button"
import { Input } from "@/components/ui/input"
import { Label } from "@/components/ui/label"
import { useCreateOrg } from '@/hooks/core/useCreateOrg';
import { Card } from '@/components/ui/card';
import { Plus, Upload, User } from 'lucide-react';
import { UserAuthForm } from '

Question
I have this error:
IntegrationError: The selector you specified (#address-element) applies to no DOM elements that are currently on the page. Make sure the element exists on the page before calling mount(). #4982

What have you already attempted?
I already tried many fixes proposed by the LLMs

but still same issue, it actually breaks my client page and renders white page....

The weird thing is that it works on most of my computer's friends but on some client's it doesnt

#

@west otter pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
if (submitError.type === 'validation_error') {
elements?.getElement('address')?.focus();
}

Question
How to focus on a errored field on the Address Element? In mobile view, we have long address element, payment element and then the submit button. On submit, we want to focus to the field with the error in the Address element. At the moment, the focus shifts only the name field of the address element when using addressElement.focus(); Is there a way to focus the first error on the Address element ?

What have you already attempted?
addressElement.focus();

What are you working on?
One step checkout using Address and Payment element.

#

@verbal sorrel pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I'm trying to return metadata from a checkout session with PHP ($stripe->checkout->sessions->retrieve). I see the metadata in the dashboard, but it doesn't come through when I make an API request. Do I need to expand metadata?

Related Request ID(s)
NA

What have you already attempted?
I have attempted to expand line_items and custom_fields.

cursive heronBOT
#

@pliant birch pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Does stripe allow B2C virtual cards so our fintech product can assign every user there own virtual card.? Is it something with regulation?

Related Request ID(s)
Confused

What have you already attempted?
Hearing different feedback from stripe support

What are you working on?
Fintech bill splitting application

#

@glad cosmos pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I am trying to create a subscription schedule for an existing subscription (eg at the end of the billing period, switch the pricing to annual) but when we run the API request, it creates the schedule but not associated with the subscription

Related Request ID(s)
evt_1QeJcuCfwYrvlXdJHYwXPhzS, sub_1QeJCICfwYrvlXdJKPiQ3wgE

What have you already attempted?
We are manually able to do this behavior in the dashboard by updating the subscription. Here is an example https://dashboard.stripe.com/subscriptions/sub_1OUDujCfwYrvlXdJnmrcmxXH. You can see the correct logs on this subscription that there was a schedule added. We need to be able to do this using the API.

Here is the API call:
stripe.SubscriptionSchedule.create(
customer=organization.stripe_customer_id,
start_date=subscription.current_period_end,
phases=[{"items": [{"price": env_var("STOREFRONT_NONBETA_ANNUAL_PRICE_ID"), "quantity": 1}]}],
)

What are you working on?
Passing from_subscription doesn't allow me to then pass start_date or the new price

#

@muted escarp pressed the 🀨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
I'm attempting to implement 3D Secure workflow for payments and I expected one of these card numbers: https://docs.stripe.com/testing?testing-method=card-numbers#authentication-and-setup to to trigger a `requires_action` response https://docs.stripe.com/payments/3d-secure/authentication-flow

What actually happened?
The test mode payment succeeds rather than requiring an action.

Reproduction Steps
Use the "Always authenticate" card here:
https://docs.stripe.com/testing?testing-method=card-numbers#authentication-and-setup

Question
How can I force Stripe to prompt for the 3D Secure action?

cursive heronBOT
#

@molten bolt pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
var options = new SessionCreateOptions
{
LineItems = newLineItems,
Mode = "payment",
SuccessUrl = hostUrl + "/OrderComplete",
CancelUrl = hostUrl + "/OrderAbandoned"
};
var service = new SessionService();
var session = await service.CreateAsync(options);
return session.Url;

Question
I have a C# .NET code snippet that generates a URL to send the customer to a Stripe-hosted payment page. However, I'm unsure how to enable an option for customers to add a gratuity or tip on this page.

What have you already attempted?
Reviews online stripe docs regarding tips, tryed to find other repos on github that may have this same question/issue. not sure if this is a feature that is at all avalib on stripe?

What are you working on?
small business app for checkout using stripe.

cursive heronBOT
#

@vale marsh pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I'm using stripe ruby gem and when i use the following code to set up payment method, it still request permission of balances, transactions, etc.

Stripe::SetupIntent.create({
payment_method_types: ['us_bank_account'],
payment_method_options: {
us_bank_account: {
verification_method: 'instant',
financial_connections: { permissions:['payment_method'] },
},
},
usage: 'off_session',
)}
stripe.collectBankAccountForSetup({
clientSecret: "",
params: {
payment_method_type: 'us_bank_account',
payment_method_data: {billing_details: { name: '', email:' '}}}})

Related Request ID(s)
req_xk6q9RKK2lawJ4

What have you already attempted?
try to change the verification_method and different permissions but didn't really work

What are you working on?
allow customers to set up auto payment to charge their invoice near the due date

#

@rose slate pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
When creating a trial without payment method, the docs suggest to have customers provide their payment details using the customer portal. This can be best achieved using a portal sessions with the "payment_method_update" flow. However, how do you suggest users provide their billing details in that case? E.g. on a checkout session, I can provide 'billing_address_collection': required. But something like that doesn't exist on the payment method update flow.

I think some customers would be reluctant to put in payment details without having provided a vat id. However, sending customers through two separate flows will probably also be bad for conversion rates..

Doc/Guide Links
https://docs.stripe.com/billing/subscriptions/trials#create-free-trials-without-payment

What are you working on?
Marketing attribution software for Saas companies

#

@crystal aspen pressed the πŸ“š Doc or Guide button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Link to the Doc/Guide in question
https://support.stripe.com/questions/stripe-feature-availability-by-country?locale=pt-BR

Question
n the Stripe Connect dashboard, as a US-based company, is it not possible to create an account for Brazil?

I am a developer providing services for a US company that has multiple clients worldwide, including in Brazil. I tried searching for Brazil in the list of onboarding countries but couldn’t find it.

What have you already attempted?
Tentei procurar nas configuraΓ§Γ΅es dos paΓ­ses habilitados e nΓ£o encontrei o Brasil.

What are you working on?
I will create the account for the American company and need to create accounts for clients (sellers) from other countries and process payments for those sellers.

cursive heronBOT
#

@deft dragon pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
Stripe SDK and Stripe API CSP related issues on Chrome browser. First noticed in December 2024.

Question
We recently started receiving CSP related issues for js.stripe.com (frame-src) and api.stripe.com (connect-src). We did not update our API/SDK. I also did not find any changes related to this on Stripe changelog. Can you please suggest which Stripe changes may have caused this?

What have you already attempted?
We added the URLs to the CSP list and it fixed the issue, but we do not know when the issue started, so we can contact relevant users or do data fixes.

cursive heronBOT
#

@vale marsh pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I'm using stripe ruby gem and when i use the following code to set up payment method, it still request permission of balances, transactions, etc.

Stripe::SetupIntent.create({
payment_method_types: ['us_bank_account'],
payment_method_options: {
us_bank_account: {
verification_method: 'instant',
financial_connections: { permissions:['payment_method'] },
},
},
usage: 'off_session',
)}
stripe.collectBankAccountForSetup({
clientSecret: "",
params: {
payment_method_type: 'us_bank_account',
payment_method_data: {billing_details: { name: '', email:' '}}}})

Related Request ID(s)
req_xk6q9RKK2lawJ4

What have you already attempted?
I have tried to change the permissions and verification method but didn't make any difference

#

@strong ermine pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
for testing payments in our application, what stripe card numbers can we use to simulate a payment method with delayed success confirmation?
What I am looking for exactly is to receive a Payment Intent status of processing.

Doc/Guide Links
https://docs.stripe.com/testing

What are you working on?
A payment application using Stripe Elements.

cursive heronBOT
#

@rough forge pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Is Price.tiers guaranteed to be sorted by "up_to" ascending? When I query a Price with graduated tiers, is the ordering of the "tiers" array guaranteed to be from lowest to highest of the "up_to" value? (Also, where `null` represents infinity)

Related Request ID(s)
n/a

What have you already attempted?
I queried the API and it looked ok.

What are you working on?
Graduated pricing feature

cursive heronBOT
#

@green wigeon pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Is there a reason why invoice.payment_intent.charges is not part of the open api (but invoice.payment_intent.latest_charge)?
Otherwise it will be returned via the getInvoices endpoint (if expand is data.payment_intent.latest_charge).

Related Request ID(s)
-

What have you already attempted?
-

cursive heronBOT
#

@lament ether pressed the 🀨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
I have a subscription that is meter based. When the invoice date arrived, I expected the balance to be paid.

What actually happened?
An "Applied Balance" was issued, so no payment was actually made.

Reproduction Steps
Subscription + multiple meter events.

Question
Why was an applied balance applied to the invoice? It looks like the amount was just carried over to the next month.

What are you working on?
Subscription with Meters

#

@lean cradle pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I want to find a way to retrieve customers payment details without charging them (or we could charge them a microtransaction) but for the purpose of creating payment details to be used later on. Is this possible?

Related Request ID(s)
req_jyq5ELqq8ZAQhM

What have you already attempted?
Using nodejs stripe.setuIntent.create with customer_id and then pass it to the client and using PaymentElement with stripe.confirmSetup with client secret retrieved from the backend

cursive heronBOT
#

@modest rover pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Stripe is updating their customer consent process for save card on file. Does this apply to the stripe-terminal-ios SDK only or also includes the stripe-ios SDK?

Related Request ID(s)
NA

What have you already attempted?
Looked into documentation of both repors https://github.com/stripe/stripe-terminal-ios and https://github.com/stripe/stripe-ios?tab=readme-ov-file

What are you working on?
Getting ahead of the compliance changes

#

@chilly urchin pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We have a new dev starting on our team. I want to add them to our Stripe dev team but don't want them to be able to access live data, especially revenue related. I would like to limit their access to just the test environment, its API and its dashboard so they can set up products and plans, etc. The stripe help bot said this can be achieved by adding them to the dev team and giving them a test-only API. But the docs state that a developer role gives the ability to view and add production API keys.

What is the best practice for managing developer access? I'm coming up short on finding clear documentation on this.

Doc/Guide Links
https://support.stripe.com/questions/invite-team-members-or-developers-to-access-your-stripe-account

https://docs.stripe.com/get-started/account/teams/roles

What are you working on?
Client billing portal

cursive heronBOT
#

@paper glen pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We have a stripe checkout session with a 7 day free trial created via the api. It seems that after the 7 day free trial a large percent of users have a payment_failed and dont end up actually paying us.

We want to verify these cards before checkout in one way or another.

Related Request ID(s)
in_1QakUxC29OKMRxYZgHXAFRST

What have you already attempted?
I contacted support and they showed a way to manually add a one-time charge to a subscription but we need something automated to do at checkout not after they have subscribed. I dont see a way of adding a 1 time charge to the line items that wouldn't be subject to the free trial. Also I don't know I would refund or prorate the charge.

I have looked into documenation about SetupIntents but seems like that wont work will with checkouts in subscription mode. I have also looked at PaymentIntents but again I dont see anything in the API docs for my checkout that would help verify payments.

cursive heronBOT
#

@brazen moth pressed the πŸͺ Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I am trying to track a failed payment from a billing portal configuration, I want to know if I can stop the invoice from being retried if there is a payment failure.

Related Event ID(s)
evt_1QeQ3IGei7MrDZax0gN4syG8

What have you already attempted?
Read the Docs

cursive heronBOT
#

@mental owl pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
IOS
PaymentSheet.PaymentButton

Question
On iOS, i want to make a call to our own backend before opening the paymentsheet

- do we have to use the stripe object PaymentSheet.PaymentButton or can we use our own custom button?

What have you already attempted?
n/a

cursive heronBOT
#

@mystic roost pressed the πŸ“š Doc or Guide button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Link to the Doc/Guide in question
https://docs.stripe.com/elements/address-element

Question
In addressElement when user is on Country as India and trying the autocomplete and select a address then the state field is not auto filled.

What have you already attempted?
gone though docs and same issue

What are you working on?
We are building out checkout pages with stripe web elements

#

@clear spear pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Is it possible to use a radar rule or some other rule in code that can limit the total *amount* per week a user can pay/deposit, not just per transaction?

Doc/Guide Links
https://docs.stripe.com/radar/rules

What are you working on?
We use stripe to deposit onto our platform, we want to limit our risk by reducing the amount a user can deposit per week or per x number of days/hours

#

@echo coral pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
https://docs.stripe.com/elements/express-checkout-element#create-an-express-checkout-element

Question
Apple pay is not visible, plugin using https://docs.stripe.com/elements/express-checkout-element

What have you already attempted?
Customer can see the apple pay an gpay under try the demo section when checking the Stripe URL (https://docs.stripe.com/elements/express-checkout-element#try-demo)

What are you working on?
Stripe plugin using stripe app OAuth authentication

#

@heavy warren pressed the πŸͺ Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Is there a race condition when updating an invoice and finalizing it immediately after?

This live invoice was supposed to cancel out the default item line and create a new item line with a discounted price.

But instead, it just canceled out and did not add a new item line before finalizing.

Related Event ID(s)
we_1PPfnyAHIrtkyTaBuEGRALxN

What have you already attempted?
Stripe Docs

What are you working on?
Marketplace

cursive heronBOT
#

@grave heart pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
Stripe::SetupIntent.create({
customer: @stripe_customer.id,
payment_method_types: ['google_pay']
},stripe_account: stripe_account_id)

Question
I am trying to implement google pay in my payment element (setup intent mode, standard/undeferred flow) but not able to.

What have you already attempted?
Checked docs, checked dashboard if it is enabled too

What are you working on?
We are migrating to stripe PaymentElement from traditional elements

#

@shut lotus pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Please i need quick help on the invoice on stripe, is it when i finalize the invoice that stripe will try to charge it, and what happens if the customer doesn't have a payment method

Related Request ID(s)
Stripe Invoice

What have you already attempted?
none

#

@spring mauve pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Need help in Subscription cancellation with InvoiceNow set to true didn't create new invoice.

Related Request ID(s)
req_L8UWLYuCGRdDFi

What have you already attempted?
I've set the InvoiceNow params to True in Go SDK to create invoice after the subscription is cancelled immediately.

cursive heronBOT
#

@stone otter pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I am looking for the money transfer to service provider (in our platform term) with hold of money to maximum period on user's action. Right now we are using capture=manual which only holds the money for 7 days. How can implement escrow to hold the money or is there ways?

Related Request ID(s)
req_Vk8Gb9gADlZVOm

What have you already attempted?
I have make the payment with payment intent while creating transaction with capture=manual to hold the money. and when we want to transfer the money, we are capturing and with the intent id money is transferred to the destination.

What are you working on?
It is a platform for client and service providers, where client create task and pay the amount at the same time, and once provider completed the task client approve the task and provider gets paid.

cursive heronBOT
#

@twin thicket pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I'm getting a `This PaymentIntent requires a mandate` error when trying to pay for an invoice with an existing payment method. I understand that this payment method was set correctly for off_session usage, and it has a mandate (`mandate_1QUZwa2GOJZ85wYsYGrz7TXR`). What is the cause of this error?

Related Request ID(s)
req_zZ1HdM1hX1s9iD

What have you already attempted?
I've tried reproducing this issue in a test mode, but with no success.

cursive heronBOT
#

@icy cradle pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
for await (const subscription of stripe.subscriptions.list({
current_period_end: {
gt: Math.floor(gtStartDate.getTime() / 1000),
},
limit: 100,
status: "canceled",
})) {
subscriptions.push(subscription);
}
return subscriptions;
}

Question
I'm accounting total amount paid + total amount refunded for all subscriptions per product id that I have. What's the fastest way to do this?

What have you already attempted?
I've tried using the list charges API, list invoices API, but they take too many API calls to finish what I need to do.

#

@civic smelt pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We are using Stripe's React Native Terminal SDK to implement Stripe Tap to Pay within our mobile app and would like to understand better how Stripe manages the lifecycle of the connection token needed to connect to a reader. When does it expire, what auth checks are conducted and is it stored/ pinned anywhere?

Related Request ID(s)
NO

What have you already attempted?
Reviewed Stripe Docs

What are you working on?
Stripe's React Native Terminal SDK

cursive heronBOT
#

@sullen willow pressed the πŸͺ Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I am working on a ridesharing web app, where a user can select their ride and pay through stripe. Once the checkout sessions is completed it goes to webhook with meta data such as id of the ride, user id, etc. But not sure what the problem is. I am getting 400 BAD request with error Webhook Error: Webhook payload must be provided as a string or a Buffer (https://nodejs.org/api/buffer.html) instance representing the _raw_ request body.Payload was provided as a parsed JavaScript object instead. Signature verification is impossible without access to the original signed material. Learn more about

Related Event ID(s)
evt_1QeYZvCAkUDxAcxaVKQejd8V

What have you already attempted?
I used chatgpt too to fix the proble, but it looks like Chatgpt doesnt do verification.

What are you working on?
I am working on a ridesharing app.

cursive heronBOT
#

@dreamy mauve pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hello, will the max trial days improve one day? The 720 days is very limiting for the promotion offers of my client. Their users can change their subscription, without losing their "previous" days nor losing initial revenue, so the only way to do this is to create a subscription with the old subscription remaining days as free trial. If the user takes a 1 year subscription and has more than 1 year of remaining days it doesn't work. And they can't stack subscriptions change too.

Related Request ID(s)
.

What have you already attempted?
.

What are you working on?
Fitness app

#

@formal sphinx pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
onMounted(async () => {
await initializeStripe();
});

const initializeStripe = async () => {
stripe = await loadStripe(stripePk);
const res = await fetch('/api/payment/create-payment-intent', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
amount: total
})
});
const result = await res.json();
clientSecret = result.client_secret;
elements = stripe.elements({ clientSecret });
paymentEl

Question
When looking at stripe dashboard i see incomplete payments. For some reason payment intent being created when I enter my nuxt page.

What have you already attempted?
Tried editing code, but i'm not sure I'm doing it correctly

#

@mighty vault pressed the 🀨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
When i try to purchase Twitter premium plan it should purchased and i should get premium subscription to my twitter account

What actually happened?
When i try to purchase Twitter premium plan then it says "Your card has been declined." without any error showing in my bank account or console.

Reproduction Steps
Login to your Twitter account and purchase premium plan for your account

Question
Please help, as it effects my business

cursive heronBOT
#

@slender lynx pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
spark.http.matching.GeneralError -
com.stripe.exception.InvalidRequestException: Checkout does not currently support sar prices with more than 2 decimal places in payment mode. In `line_items[0]` you passed `240.09` corresponding to `Ψ±.Ψ³2.4009`, which is not supported. You can round your price and pass in `unit_amount: 240` or `unit_amount: 241` instead.; request-id: req_7jXNxPn8N2uHIX

Related Request ID(s)
req_7jXNxPn8N2uHIX

What have you already attempted?
How should this problem be solved? Do other regions have this problem

cursive heronBOT
#

@idle pawn pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
The creation time of this record is 1735574435, which is converted to 2024-12-30 16:00:35 +0000. However, the operator describes the actual effective_at is 2025/1/1 16:00 .which is inconsistent with the data transmitted by the api.But the operator's other records are correct, only these two records are wrong.

Related Request ID(s)
txn_3QbunvI9qxn1A7eM009APH4X

What have you already attempted?
I tried to ask the operator if the time was recorded incorrectly or read incorrectly, but the operator said no.

#

@trail ocean pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hi,

I am new to the Stripe CLI.

I have a questions about getting the Stripe CLI to call the webhook in my code.

So first of all i run the command:

stripe listen --forward-to localhost:3001/api/stripe-webhook

The CLI then sats Ready! and it gvies me the version number and webhook signing secret.

I then run the command:

stripe trigger payment_intent.succeeded

when i do this it does nothing. Like the CLI just goes onto a new empty line and my server is not called.

But when i try and call said endpoint from Insomia it calls ok.

So seems to be some sor

Related Request ID(s)
whsec_f81abf21963e12d3fca4409ec287737787fad0d5b73c69537732d0ef130d29e9

What have you already attempted?
t of issue with the connection between the express server and the Stripe CLI.

What are you working on?
I am working on an endpoint that should be notified when a payment successfully goes through.

#

@tough arch pressed the 🀨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
Payment Elements would show localised payment methods relative to the customer's location.

What actually happened?
Payment Elements is showing payment methods relative to the business's location (the US).

Reproduction Steps
It was too long for Discord, so I created a GitHub Gist: https://gist.github.com/duncanmcclean/74bfaaa2408c62a25642cf62662c38c8

Question
We updated our Stripe integration last month, moving from legacy Card Elements and Charges (old, I know), to Payment Elements and Payment/Setup Intents.

However, Stripe Payment Elements seems to always be showing US-centric payment methods, instead of localized payment methods.

(FYI: I don't have direct access to my client's Stripe account)

What are you working on?
A platform for purchasing software licenses / partner subscriptions.

#

@rustic geyser pressed the πŸͺ Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Might a card payment method decline manual capture when a payment intent is created? Is there a way to test it?

Related Event ID(s)
No relevant ID

What have you already attempted?
There is no clear way to test this via test cards. We're unsure about the events being emitted surrounding a payment intent that is created with capture method "manual" and where the associated "card" payment method isn't able to be processed as such.

What are you working on?
Capturing payment intents manually at a later date

#

@bitter spade pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hi, is there a way to have different capture methods for different payment methods using the Stripe's Payment Element? We're not using the element to create payment intents, only to confirm the payment intents created in our back-end, but Stripe throws an error if the capture method used when creating the payment intent is different from the one set for the payment element. Using the Payment Element to create a payment method and then using it to confirm the payment intent seems to work (i.e., the capture method does not "carry" from the Element settings to intent confirmation), but I'm unsure if that's the way to go.

Doc/Guide Links
https://docs.stripe.com/payments/payment-element
https://docs.stripe.com/js/payment_methods/create_payment_method

What are you working on?
A Payment Element integration that would support our existing payment flows (e.g. manual capture for credit cards, but still list US bank accounts as well).

cursive heronBOT
cursive heronBOT
#

@solemn mica pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I've only used test data for testing payments.
However, I've been charged 3 times due to "negative balance", all around 10/11€.
Why is that?

Related Request ID(s)
None

What have you already attempted?
N/A

What are you working on?
Ecommerce platform

#

@ocean cosmos pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Are the billing credits/credit burndown safe to use in production? Or when are they expected to go to GA?

Doc/Guide Links
They are mentioned for example here: https://docs.stripe.com/billing/subscriptions/usage-based/pricing-models
but here it says 'Public preview': https://docs.stripe.com/billing/subscriptions/usage-based/billing-credits

What are you working on?
A usage based AI API

#

@undone mulch pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
at 13th december 2024, a google cloud function i wrote, which uses the stripe python package to retrieve the description of disputes via expansion of the charge object to include additional fields, i.e. description, but as of today, so 7.1.2025 it does not work anymore like this and i get the error: "Error processing Stripe disputes request: 'Description'"

Related Request ID(s)
-

What have you already attempted?
i tried to set it up locally similar with only retrieving the description through expansion of charge object, there it works, how can this strange behaviour be explained and fixed? The way I retrieve the data is same and before retrieving the description in gc function, i retrieve the id also and after it with the description it breaks, it has never done that before and i know that this version worked.

cursive heronBOT
#

@olive heron pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How to automatically deduct taxes for subscriptions via API when creating a subscription? Unfortunately I saw that subscriptions do not deduct the taxes and I would need to activate this toggle (see screenshot, sorry, it's in German). Do I need to pass a parameter when creating a subscription so it always deducts taxes?

Related Request ID(s)
NA

What have you already attempted?
NA

What are you working on?
Facebook SaaS

cursive heronBOT
#

@rose slate pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
When I use the subscription_update_confirm flow with the billing portal to let users upgrade their subscription to a different plan, is it possible for them to keep their remaining trial days? Currently, the page says "due today: $149", even though the subscription still has 14 trial days left

Doc/Guide Links
https://docs.stripe.com/customer-management/portal-deep-links

What are you working on?
Attribution software for saas

#

@silent dock pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I have added webhook on paymenet captured but its not trigger I want to get response when a payment received

Related Request ID(s)
req_1zR1rdkjrKJCe4

What have you already attempted?
https://www.zohoapis.com/crm/v2/functions/stripe_response_webhook/actions/execute?auth_type=apikey&zapikey=1003.f6b7adf3ef1759860e9b41fa88499f83.fd1b40b2e5426f3717d4c1ec82749855

What are you working on?
I want to add payment status in CRM via webhook. when a customer pay invoice I want to send this payment response on webhook and then push status of payment in crm via this webhook but its not trigger

#

@subtle lily pressed the 🀨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
I use coupons to reward user that referred someone. As long as the referred-in is active the referrer gain a coupon applied to his subscription.

The coupons are generated the 25th of each month and applied to the referrer.

The coupon should applied to generated invoice at the end of the month

What actually happened?
It apply in most case but

If the referrer change is plan (change are applied with proration `always_invoice` if upgrade, `none` otherwise) the coupons are lost

Reproduction Steps
- Create a coupon valid once
- Apply coupon to subscription
- Update subscription with proration always invoice

Question
The coupons validity to once is used to be sure that next month it won't be applied. Is it possible that the pro ration behavior might burn the coupon ?

What are you working on?
A subscription service for digital nomad

cursive heronBOT
#

@lyric iris pressed the ❌ An Error button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
We've recently made some changes in how we charge and collect fees through Stripe. This has led to some unexpected consequences where all payments have been processed, but the balance seems to be missing. But potentially has been transferred from the Express account to the platform account. Negative balance still shows.

We collect fees in 2 places
- 2% commission through our platform account
- a monthly fee through an express account.

Question
Not fussed if the monies are in the express or platform account, but do need to make sure they are visible and available in one of them, which doesn't seem to be the case.

What have you already attempted?
Contacted Stripe generic support. The response didn't help.

cursive heronBOT
#

@opal marlin pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
When a subscription is created with send_invoice as the collection method. Is the client's payment method then stored on their accounts and the subscription changed to collection_method = charge_automatically?

Related Request ID(s)
acct_1LD6WMLoMN7oRScy

What have you already attempted?
Already tried it in test_mode... not clear if it worked.

What are you working on?
Sports Center Subscription Memberships System

#

@knotty locust pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We are developing a platform where customers can buy products from different sellers (connected accounts).
I would like to manage the customers at platform level and not at seller level.
Can I somehow use or synchronize them including payment methods for the connected accounts. We are using direct charge for subscriptions?

Doc/Guide Links
The only way I saw is already legacy and only allowed card payment methods, but we also need other payment methods (https://docs.stripe.com/connect/cloning-customers-across-accounts)

What are you working on?
a marketplace where user can sell extentions of a larger system

#

@patent field pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How can I make my platform be liable for negative balances, refunds or chargebacks?

Related Request ID(s)
req_hqj9flbjCi3OqJ

What have you already attempted?
I have tried creating a Connect Express Account. But I get this error:
When `stripe_dashboard[type]=express`, your platform must collect fees and be liable for negative balances or refunds and chargebacks.

I have looked in this URL, and it says that I'm responsible for chargebacks so I dont understand why I'm getting an error.
https://dashboard.stripe.com/settings/connect/platform-profile

cursive heronBOT
#

@cloud cosmos pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I have two payment methods. Blik and card payment. I must collect user email in the purchasing process. My problem is when user clicks Blik method there is an email input show but when switching to card payment method there is nothing then like email input. How can i attempt this problem?

Related Request ID(s)
I have two payment methods. Blik and card payment. I must collect user email in the purchasing process. My problem is when user clicks Blik method there is an email input show but when switching to ca

What have you already attempted?
I have two payment methods. Blik and card payment. I must collect user email in the purchasing process. My problem is when user clicks Blik method there is an email input show but when switching to card payment method there is nothing then like email input. How can i attempt this problem?

What are you working on?
I have two payment methods. Blik and card payment. I must collect user email in the purchasing process. My problem is when user clicks Blik method there is an email input show but when switching to ca

#

@eternal crater pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
const connectedAccountId = this.product.connectedAccountId;
this.stripeService.createSetupIntent(connectedAccountId, this.player.stripeCustomerId).subscribe({
next: async (data: any) => {
const { setupIntent: confirmedSetupIntent, error } = await this.stripe.confirmCardSetup(
data.clientSecret
);
if (error) {
console.error('Error confirming SetupIntent:', error);
}
}
});

Question
I want the customers to be able to add payment methods from my app and manage them. The customers belong to a connected account, so the payment method has to be added to the connected account and attached to a customer from the connected account. Almost everything is being done from our .NET backend but in order to keep the sensitive information the most secured, I wanted to use Stripe-Js from my ionic app to allow the users to manage their payment methods.

What have you already attempted?
I tried creating the payment method from stripe-js and then link its id to a customer from my backend, but the payment is created on platform account so I can't link it to a connected account's customer. I've tried to create a setupIntent from my backend that is related with a customer from the connected account and then, on the frontend side access to that setupIntent, but stripe-js looks for it on the platform account so its not reachable.

What are you working on?
It could be seen as a marketplace, more or less.

cursive heronBOT
#

@lavish flame pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We need more information on stripe risk evaluation.

Related Request ID(s)
req_MWSGHzGbqr7Q7U

What have you already attempted?
Making a charge

What are you working on?
We are builiding a business

cursive heronBOT
#

@unique rose pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
When issuing a refund for a payment intent using destination charges, we are using "reverse_transfer" to pull the funds from the connect account balance back to our platform balance. Can that reverse_transfer fail? If it fails do we get a webhook event or would it fail immediately in response to the v1/refunds API call?

Related Request ID(s)
none

What have you already attempted?
I'm doing an audit of our refund flow and want to be sure we're catching any issues that could arise.

What are you working on?
Paw Partner Payments

cursive heronBOT
#

@uneven urchin pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I successfully listed all the connected accounts associated with our account using the API. Now, I need to check for each connected account all the payments that had refunds and list them. Is there a way to link a refund, payment intent, or charge with an account ID?

Related Request ID(s)
N/A

What have you already attempted?
I’ve already tried looking into the API documentation to find relationships between charges, refunds, and intents, but I couldn’t find any direct connections between them.

I’d like to perform a query similar to the one used here:
https://dashboard.stripe.com/connect/accounts/acct_.../payments?status[0]=[…]nded&status[1]=refund_pending&status[2]=partially_refunded

for each connected account.

What are you working on?
Financial

cursive heronBOT
#

@restive lynx pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
Block if :address_zip_check: = 'fail' AND NOT :is_recurring:

Question
We are trying to use radar for fraud teams to not do the zip code check on recurring installment payments ONLY. So, all payments would get the zip code check, whether recurring or one-time payments, BUT, if it's an installment on a recurring payment (so any subsequent recurring payment after the first one), we don't want the zip code check to run.

What have you already attempted?
I tried to test a block rule: I tested if zip check fails and it's not recurring, and it spits out transactions in the past 6 months that would have met the criteria, and it returned a significant amount of transactions that were recurring payments. I then tried just "Is_recurring" and got 0 results. We have MANY recurring payments so this is incorrect. Can you help figure out why it doesn't work, and how to do what we are trying to accomplish?

#

@graceful thistle pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Can we set the expiration time for billing and checkout sessions?

Related Request ID(s)
N/A

What have you already attempted?
Looked in the docs and code on how to set/invalidate the sessions

What are you working on?
We have a customer portal where they can access their Stripe Billing portal, but if they stay on their portal page too long, the billing portal session expires.

#

@earnest jetty pressed the πŸͺ Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I am using checkout sessions to handle payments on my website.
I have three questions:

  1. What event i should handle too to be absolutely sure that all use cases of checkout are covered?
  2. Is `checkout.session.completed` final event where i can be sure that payment has ended successfully?
  3. Can i be sure that all `checkout.session.***` events will contain `client_reference_id` which i use to attach order id to payment?
  4. Does Stripe extends `checkout` session after failed async method payment?

Related Event ID(s)
No related events, just a question

What have you already attempted?
Currently I have implemented handlers for `checkout.session.completed`, `checkout.session.expired` events and I am willing to handle also `checkout.session.async.payment.succeeded` and `checkout.session.async.payment.failed` events.

What are you working on?
I am building backend for e-commerce using NestJS. All prices, products etc handling using my app. I am integrating Stripe checkout page to my server.

#

@sinful turret pressed the ❌ An Error button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
[Stripe.js] Unrecognized addressElement.update() parameter: defaultValues is not a recognized parameter. This may cause issues with your integration in the future.

Question
I'm using stripe along with ngx-stripe. Upon looking at the docs

https://docs.stripe.com/js/elements_object/update_address_element

it seems like there's no longer an option to update the defaultValues.

I created a mechanics where a user can select an address from pre-saved data instead of manually entering an address. So I somehow need to update the address element default values.

What have you already attempted?
I've read the docs (https://docs.stripe.com/js/elements_object/update_address_element) already, I also tried re-initializing the options but that doesn't seem to work.

What are you working on?
An e-commerce side project that uses Stripe for payments.

cursive heronBOT
#

@drowsy crown pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
const createSetupIntentForBankAccountProvider = async (req, res) => {

const { customerId, nameOnAccount, accountNumber, routingNumber } = req.body;

try {
const bankAccountToken = await stripe.tokens.create({
bank_account: {
account_number: accountNumber,
routing_number: routingNumber,
country: 'US', // Replace with appropriate country code
currency: 'usd', // Replace with appropriate currency
account_holder_name: nameOn

Question
This is a function that adds a bank acount to a custom connected account for payouts. i want to do the same thing ffor debit cards. that means instead of putting in a bank account a user would enter a card detail. how would that be done if possible?

What have you already attempted?
I've tried to add a card as external account but didn't work and tried using cardfield but that was bad intel from AI. every time i try and add card details myself in return for a token it returns that it's not a allowed

What are you working on?
within my app i'm trying to create a wallet where service providers can get payouts either to their bank account or debit card

#

@earnest jetty pressed the πŸͺ Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How can i distinguish unpaid expired checkout session from expired checkout session which could be later payed via async payment method?

Related Event ID(s)
cs_test_a1Vj3WSb4dL5FzgIZ7juJmmaKQy1Jt8XoNv4MD86JIFVemFqnqobnvkw0M

What have you already attempted?
Since `session.checkout.expired` cant be invoked by Stripe CLI I didnt figure out how to test it.

What are you working on?
E-commerce backend in NestJS

cursive heronBOT
#

@pale zodiac pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
When creating a Connected Account via the API I'm trying to pass in the `groups.payments_pricing` field to set the fee schedule for that particular account. However, the account appears to be added to the "Default" group. Is there something I'm doing wrong with the API request to add to the correct group?

Related Request ID(s)
req_rLfPZxlzL5XQ5Q

What have you already attempted?
Initially I was passing in the incorrect pricing group ID, but I've confirmed it's the correct one, but the behaviour is still incorrect.

What are you working on?
A feature that puts Connected Accounts into different pricing groups based on business criteria.

#

@magic mauve pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
There's no code yet, i am using nodejs

Question
Hey, I am trying to implement one time payments with stripe, all the tutorials i found were of people creating payment links in their stripe dashboard then linking to that from their website, I was wondering if I could instead create a payment page myself that charges the customer X amount. For example, instead of creating a payment link for a product named Headphones, i have the headphones with their price in my database and i just create a link that asks the customer to pay

What have you already attempted?
Nothing yet

cursive heronBOT
#

@obsidian dove pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hello, some time ago on the legacy usage-based billing system we attempted to setup a checkout session instead of rolling our own UI and endpoint with Stripe elements, however there was a limitation with the checkout session on being able to set a billing threshold on the subscription so we ended up going the route of a semi-custom implementation. I'm wondering if that system has changed at all with the new usage-based/metered subscriptions and we'd now be able to use Checkout sessions to facilitate billing onboarding? Or is there a workaround with a webhook server (we have one setup already)?

Related Request ID(s)
None

What have you already attempted?
Reviewed existing implementation and scoured docs for information on limitations/use cases for stripe checkout vs. semi-custom with elements and API endpoints. In the checkout session docs the `subscription` mode calls out fixed-price subscriptions so wondering if usage-based/metered subscriptions are still not a supported use case of the checkout session. Happy to provide snippets of our existing endpoint that creates the subscription if that is useful.

cursive heronBOT
#

@manic flicker pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I am setting up a metering system for storage in
gigabytes, and trying to design the proper
architecture and metering system.

I have two main questions (and some sub-questions):

  1. Regarding the Aggregation formula, should I be
    using Sum or Count?

  2. How can I ensure my system and the stripe meter
    value do not drift, especially before a billing invoice is
    generated? One idea was to trigger a meter update with +/- value right before invoice creation? Not sure how feasible that is.

Doc/Guide Links
My initial impression was that Count accepted any value and that became the updated metered amount. But some testing shows that it simply iterates the count by 1, on each call.

https://docs.stripe.com/api/events/types

https://docs.stripe.com/billing/subscriptions/usage-based/recording-usage#payload-key-overrides

https://docs.stripe.com/billing/subscriptions/usage-based/recording-usage-api

What are you working on?
SaaS Video Software

#

@earnest jetty pressed the 🀨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
stripe trigger checkout.session.async.payment.succeeded should work

What actually happened?
i have got error `The event `checkout.session.async.payment.succeeded` is not supported by Stripe CLI.`

Reproduction Steps
stripe trigger checkout.session.async.payment.succeeded

Question
No question. I think it's a bad docs here https://docs.stripe.com/cli/trigger.
stripe trigger checkout.session.async_payment_succeeded works fine

#

@nocturne burrow pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
suspend fun confirm(paymentIntent: PaymentIntent): PaymentIntent {
return suspendCancellableCoroutine { cont ->
Terminal.getInstance().confirmPaymentIntent(
paymentIntent,
object : PaymentIntentCallback {
override fun onSuccess(paymentIntent: PaymentIntent) {
cont.resume(paymentIntent)
}

                override fun onFailure\(e\: TerminalException\) {

Question
I am implementing an Android app for the Stripe Reader S700 using Apps on Devices in Handoff Mode. It works fine for successful payments, but when I test unsuccessful payments (such as entering the amount $1.05), it shows a screen that says "Card declined. Try a different form of payment." On this screen is an X in the top left corner and a "Go back" button, but neither of these buttons does anything. How can I add functions to these buttons to execute when they are clicked?

What have you already attempted?
I've put logic into the onFailure callback but that gets triggered regardless of whether the buttons are pressed or not.

What are you working on?
A multi-tenant POS solution that integrates with our event management and access control systems.

#

@candid cargo pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How should I update an active subscriptions item where I want to overwrite items, and not append them?

Related Request ID(s)
req_aOl36yt3462QeJ

What have you already attempted?
I use `subscriptions.update` and I pass the subscription ID and then the items I want to be on the subscription. I expected this to overwrite the items currently on the subscription, but instead it adds that item and keeps the old item also.

#

@dense hornet pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hi, we have a e-commerce web service that also gives users who have ordered visibility into their orders and a link to their receipt/invoice that is created automatically with the order.

Our challenge is that the invoice/receipt expires after 30 days due to your security measures. https://support.stripe.com/questions/invoice-link-expiration

How should we handle that? I mean most users expect access to invoices/receipts to be available way past 30 days for bookeeping.

One idea would be to constantly renew the links, but that would be sending thousands of requests to Stripe.

Related Request ID(s)
-

What have you already attempted?
See above

What are you working on?
E-commerce platform

#

@gentle ore pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Is there a way to pass along metadata to the payout that gets created when using stripe connect express.

Basically I capture funds for charge with metadata {foo: bar}. When connect account exports payments can that have metadata {foo: bar} as well?

Related Request ID(s)
ch_

What have you already attempted?
Gone through docs but given I have a charge and connect account has payment not sure if information is shared

#

@dull jungle pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I'm trying to debug a duplicate customer being created after applying a discount programatically

Related Request ID(s)
cus_RXpVOdHenuxE9X, cus_RXpUzKJ873KEu4

What have you already attempted?
This user was created with a rewardful coupon, then got a student discount. Somewhere a duplicate customer was created and im unsure what happened

What are you working on?
godelterminal.com

#

@sacred gorge pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Is it possible to start a subscription with a trial of less than a day? Like 1 hour?

We are trying to build a job that queries for all the subscriptions with trials ending within the next hour and we would like to test that functionality in test mode.

Related Request ID(s)
n/a

What have you already attempted?
We havent found a way to make a subscription with a trial of less than a day.

cursive heronBOT
#

@nocturne dust pressed the 🀨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
We are using the stripe js payment element
https://docs.stripe.com/sdks/stripejs-react#element-components

We using the onChange event detailed here: https://docs.stripe.com/js/element/events/on_change?type=paymentElement

When an onChange event occurs we check the event.complete value. If it is false we call paymentElement.submit()

What actually happened?
Sometimes, even though the event.complete is true the Element.submit call produces errors saying some of the information isn't correct on the form. For example, even when event.complete is true we still see submit throwing errors such as "Your card’s security code is incomplete." or "Please fill in your card details."

Reproduction Steps
We have a hard time reproducing this consistently so we have Datadog logging to capture this occurring in production.

Question
Is this behavior expected? Or can we configure something differently so that if event.complete is true then we shouldn't expect to see submit errors indicating missing information?

What are you working on?
We have a checkout page set up for customers to purchase subscriptions

cursive heronBOT
#

@barren laurel pressed the 🀨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
[PROD] My payments are taking 7 days - I need them to be within 3 days.

What actually happened?
My payments are taking 7 days - I need them to be within 3 days since these funds then need to be transferred ahead.

Reproduction Steps
py_1Qc0fBGa8Tfgfn4e2cNk3qKB

Payment ID

Question
Why do payments with the charges API take so long?

What are you working on?
Expense sharing app for groups.

#

@thick nacelle pressed the 🀨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
I expected the product price in USD to be automatically converted to EUR on the Stripe-hosted Checkout page when testing with a French customer locale (e.g., test+location_FR@example.com and Locale.FR).

What actually happened?
The product price remained in USD on the Stripe-hosted Checkout page, and no automatic conversion to EUR occurred, despite enabling Adaptive Pricing and setting the customer email and locale to a French region.

Reproduction Steps
Followed the Stripe documentation to set up Adaptive Pricing in Checkout, created a product with a price in USD, enabled Adaptive Pricing, set the customer email to test+location_FR@example.com for the French region, set the locale to French, and tested the Checkout session using the Stripe-hosted page.

Question
Why is Adaptive Pricing on Stripe not converting my product price from USD to EUR on the Checkout page, despite following the official documentation and ensuring that none of the documented limitations apply

What are you working on?
Clothing E-Comerce website

#

@frozen parrot pressed the πŸͺ Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hello, I want to manually resend a list of webhook events since they have previously failed. I see that you provide the CLI to do so, stripe events resend <event_id> [flags], but I want to do in via python. I grabbed the list of events from events = stripe.Event.list, but I am unable to resend these via python.

Could you redirect me to the right documentation or help me implement this in my python script?

Related Event ID(s)
evt_1Qem6XGZMPJ4zCnu3r0LkYHW

What have you already attempted?
Tried looking up online, the API documentations, etc.

cursive heronBOT
#

@cobalt monolith pressed the ❌ An Error button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
"stripe_api_access_type": "oauth" | "platform"

Question
I'm trying to submit a new version of our Stripe app that allows users to install it directly inside the Marketplace listing page + install in test mode (similar to Hubspot: https://marketplace.stripe.com/apps/hubspot-data-sync).

However, when submitting the app for review, the "Install from listing" option is disabled: https://share.cleanshot.com/nDd8t8vv

May I know how can I set it to Install from listing?

What have you already attempted?
I suspect this is due to "stripe_api_access_type": "oauth" (our current configuration)

However, when I set "stripe_api_access_type": "platform", I get another error:

9:Setting stripe api access type to 'PLATFORM' not allowed for app distribution 'PUBLIC' because the app is already published

Is there any way we can get the restriction for using "stripe_api_access_type": β€œplatform” lifted? Or is there another solution for this?

What are you working on?
Dub Conversions: https://marketplace.stripe.com/apps/dub-conversions

cursive heronBOT
#

@karmic bone pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We are trying to create the smoothest, simplest onboarding process for our Connect users. But we can't git rid of things like being asked to donate to climate change and such. Is there a way to bypass such things?

Related Request ID(s)
no logs

What have you already attempted?
We are currently trying to change from Upfront to Incremental.

We are also attempting to add some onStepChange to see if we can bypass some things.

What are you working on?
Onboarding Connect Accounts

cursive heronBOT
#

@sullen sphinx pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I wanted to add Thank You Page on specific Product on Stripe, to override the default thank you page

Related Request ID(s)
None

What have you already attempted?
I tried to add it via Payment Link, but what if the Product not needed a Payment link since it is integrated to an app

What are you working on?
I

cursive heronBOT
#

@wise cypress pressed the 🀨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
customer receives an email for payments that require confirmation (3DS authentication).

What actually happened?
no email received. but subscription is marked as incomplete and invoice is pending

Reproduction Steps

  1. Using sandbox
  2. customer email matches the owner of the sandbox (previously being able to receive failed payment emails)
  3. active subscription exists
  4. upgrade subscription to a higher plan with immediate proration configured via shell/API
  5. subscription marked as incomplete because of the pending payment authentication
  6. no email sent

Question
How can we see what this stripe hosted page looks like when a customer is required to confirm a payment (3-DS auth), in the sandbox?

What are you working on?
subscription management

cursive heronBOT
#

@molten fulcrum pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
java.lang.RuntimeException: com.stripe.exception.InvalidRequestException: The payment method type "apple_pay" is invalid. Please ensure the provided type is activated in your dashboard (https://dashboard.stripe.com/account/payments/settings) and your account is enabled for any preview features that you are trying to use.;

Related Request ID(s)
req_SkN76SBbtbxcFV

What have you already attempted?
code: payment_intent_invalid_parameter;

cursive heronBOT
#

@compact zealot pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How can i make se of StripeConfiguration.ApiVersion

Related Request ID(s)
none

What have you already attempted?
var requestOptions = new StripeRequestOptions
{
StripeVersion = "2023-01-01", // Replace with your desired API version
StripeVersionBetaHeader = "your-beta-version" // Replace with your beta version
};

also tried
StripeConfiguration.AddBetaVersion("feature_beta", "v3");
StripeConfiguration.ApiVersion = "2020-08-27";

cursive heronBOT
#

@toxic relic pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I have configured my account to cancel subscriptions automatically after 4 failed payment attempts.This setup works correctly on my staging environment, but I’ve noticed that for some users on production, their subscriptions are not being canceled even after 4 failed attempts. This is the invoice that is not canceled I checked
in_1QbW5nGJRTFjj5zfM1VNt7VO

Related Request ID(s)
Dashboard >invoices

What have you already attempted?
Here’s what I’ve done so far:

Verified the setting in my account for 4 retry attempts.
Tested the setup on staging, and it works as expected.
Observed the issue with specific users in the production environment.

#

@shut lotus pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I have an invoice on charge automatically on an invoice, when i finalize this invoice, will it automatically send an email to the customer

Related Request ID(s)
invooice

What have you already attempted?
nonw, i ahve only read the docs

cursive heronBOT
#

@tawny agate pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
const { error } = await discoverReaders({
discoveryMethod: 'localMobile',
simulated: false,
});

Question
We're receiving an error ({"code": "CommandNotAllowed", "message": "Operation not permitted. Verify the app has the necessary entitlements and that the application bundle is valid."}) while trying to invoke tap to pay with "simulated" set as false in "discoverReaders" method in our react native application. The functionality is working as expected when simulated is set to true. We weren't receiving this issue a few months back

What have you already attempted?
Haven't found any solution for this as our app already contains the development entitlement for tap to pay on iPhone and the functionality is working as expected when simulated mode is set to true.

What are you working on?
We're incorporating tap to pay on iPhone in our react native application.

cursive heronBOT
#

@quiet canyon pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I’m using Playwright for E2E testing, and the test involves signing up for a Stripe account. However, I encountered an hCaptcha during the signup process, which is blocking the E2E test. Do you have any good suggestions to bypass the hCaptcha verification? For example, using a test mode or creating the account via API?

Doc/Guide Links
https://docs.stripe.com/test-mode

What are you working on?
Iam frontend Engineer,Maintain a SaaS platform

#

@bronze pagoda pressed the πŸ“š Doc or Guide button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Link to the Doc/Guide in question
https://stripe.com/mx/connect/pricing

Question
Ok. I am not understading correctly how stripe is billing with connect.

I have a platform (let's say similar to airbnb). I currently only have one customer with a standard account.

If I create a payment intent with a similar configuration like this:

stripe payment_intents create
--amount=1000
--currency=usd
-d "automatic_payment_methods[enabled]"=true
--application-fee-amount=123
-d "transfer_data[destination]"='id'

Will I only pay the 3..% etc. commission (payments) or I need to pay anything else?

This also applies for an account of type express?

What have you already attempted?
I've just played around on test mode. Not sure

What are you working on?
SaaS but for sports clubs. (airbnb similar).

cursive heronBOT
#

@wide sundial pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
In my web-hook, I response `EventTypes.CheckoutSessionCompleted` and `EventTypes.CheckoutSessionAsyncPaymentSucceeded`

When I get these, I generate a report that the customer has just paid for. I don't do it beforehand, as I have to pay for the raw data to generate the report.

I want the payment session to fail if I can't get the data from my supplier, otherwise I'll have to issue refunds.

I tried returning `BAD_REQUEST` from my webhook, but it doesn't make a difference. In fact, during debugging, if I spend too long in the webhook, I still get a redirect request to my complete page.

Related Request ID(s)
req_e1sq2nNclpkrdP

What have you already attempted?
I've tried returning non OK requests to signify that I can't actually provide what the custom has paid for. There is no way to check this beforehand. 99.999% of the time, I *will* be able to fulfil the request.

#

@shut steeple pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
i have a radar rule that block a prepaid card, i was trying to maintain the behavior but attach anyway the payment method to the customer, but i obtain payment_method_already_consumed

Related Request ID(s)
req_0705E9czTg9hPN

What have you already attempted?
try to attach a blocked pm to a customer

#

@molten fulcrum pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Initiate a consultation on payment interface issues

Related Request ID(s)
test

What have you already attempted?
We now have a requirement that even if other payment methods are enabled on the console, we only want to activate Apple Pay

cursive heronBOT
#

@tidal oar pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Two developers worked on integrating with Stripe.
We followed the documentation to ensure built-in support for discount coupons that we want to offer our customers.

Using:

stripe.checkout.Session.create
stripe.Webhook.construct\_event
STRIPE\_WEBHOOK\_SECRET

The issue arises when I receive the session.url.

The appearance of the web page at the address containing session.url is not visually appealing and does not align with our brand's style at all.

We would like a different design. Is it possible to define and customize it to match our preferences?

Related Request ID(s)
irrelevant

What have you already attempted?
Two Approaches We Tried:
The First Approach:
We used:
stripe.PaymentIntent.create
The frontend developer was responsible for designing the landing page. However, we realized that, according to the documentation, we have no option to use couponsβ€”there's no support for it.
Despite this limitation, the payment page matched the visual style of our website.
The Second Approach:
Is mentioned in the Questioned I raised in the previous field I have elaborated I have used: stripe.checkout.Session.create and stripe.Webhook.construct_event.

What are you working on?
ML product

cursive heronBOT
#

@shell shadow pressed the πŸ“š Doc or Guide button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Link to the Doc/Guide in question
https://docs.stripe.com/connect/custom-accounts

Question
I am creating a platform where my majority users are from Latin America, I want to know how many countries stripe connect covers in Latin America?
I can't find this in the docs

What have you already attempted?
I have coded the logic for creating the stripe connect account, and I pass country dynamically. So we take user country before generating stripe connect link.
Once we get the country we pass it to stripe.accounts.create() API

What are you working on?
Stripe connect

#

@ocean sequoia pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
When i try to integrate swish as a payment method i get an error : ""error":"The payment method type "swish" is invalid. Please ensure the provided type is activated in your dashboard" I have tried to activate it from the dashboard but iam not finding that option. This is regarding adding Swish as a payment method.

Related Request ID(s)
"error":"The payment method type "swish" is invalid. Please ensure the provided type is activated in your dashboard

What have you already attempted?
Its important for my client to have Swish as a payment/payout option. Is this possible?

What are you working on?
A marketplace app

cursive heronBOT
#

@tawny agate pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
const { error } = await discoverReaders({
discoveryMethod: 'localMobile',
simulated: false,
});

Question
We're receiving an error ({"code": "CommandNotAllowed", "message": "Operation not permitted. Verify the app has the necessary entitlements and that the application bundle is valid."}) while trying to invoke tap to pay with "simulated" set as false in "discoverReaders" method in our react native application. The functionality is working as expected when simulated is set to true. We weren't receiving this issue a few months back

What have you already attempted?
Haven't found any solution for this as our app already contains the development entitlement for tap to pay on iPhone and the functionality is working as expected when simulated mode is set to true. Have verified all the necessary configurations in info.plist file as well.

What are you working on?
We're incorporating tap to pay on iPhone in our react native application.

cursive heronBOT
#

@modern sonnet pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
During checkout I want to remove the billing address details - I don't want to collect this information

Related Request ID(s)
i checked some topics but with clear info

What have you already attempted?
setAutomaticTax to false + SessionCreateParams.BillingAddressCollection.AUTO from backend side. fro dahsboard - i tried the same and was trying to find a way to skip the tax calculation

What are you working on?
insurance service

#

@heavy warren pressed the πŸͺ Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How can I hold funds for a seller on my marketplace until they have completed their Connect Express Onboarding and enabled capabilities required for a 'Transfer' and 'Payout'?

For example, how can I label certain funds and transfer them to a seller as soon as they have the capabilities enabled?

I have both one-time payments and subscriptions as possible transaction types.

Related Event ID(s)
N/A

What have you already attempted?
Looked into Transfer API - `source_transation`, `transfer_group`

What are you working on?
Marketplace for Rentals

#

@nimble moon pressed the πŸ“š Doc or Guide button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Link to the Doc/Guide in question
https://docs.stripe.com/api/payment_methods/list?lang=curl

Question
What is the difference between .list() and . listPaymentMethods() methods for loading a list of payment methods? In the docs it describes .list() is used for treasury flow, could you expand on what this is as they seem to return the same thing?

What have you already attempted?
https://docs.stripe.com/api/payment_methods/list?lang=node

https://docs.stripe.com/api/payment_methods/customer_list?lang=node

#

@jagged kayak pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
var options = new PaymentIntentGetOptions();
options.AddExpand("latest_charge.balance_transaction");

var service = new PaymentIntentService();
PaymentIntent paymentIntentAndCharge = service.Get(paymentIntent.Id, options);

Question
Earlier we were getting balance_transaction object but after upgrading sdk version to 46.2.0, balance_transaction is coming as null

What have you already attempted?
Already tried to fetch charge and expand balance_transaction on that

#

@dire nymph pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How can I remove product from subscription during subscription update with payment behavior `pending_if_incomplete`.

Setting quantity of product to `0` results in weird state where invoices are generated with position for this product but with quantity of `0`.

Currently using .NET SDK, with API version 2024-11-20.acacia

Related Request ID(s)
req_LYiydOZuQ7tydp

What have you already attempted?
Update subscription with product marked as `deleted` with payment behavior set to `pending_if_incomplete`, this results in error:

When `payment_behavior` is set to `pending_if_incomplete`, you can only pass supported params. `items[0][deleted]` is not supported. See https://stripe.com/docs/billing/subscriptions/pending-updates-reference#supported-attributes for more details.

cursive heronBOT
#

@vocal wagon pressed the 🀨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
Enable the country dropdown to display all countries supported by Klarna.

What actually happened?
The country dropdown is disabled, preventing me from selecting the customer's country.

Reproduction Steps
When the Stripe element is mounted, the dropdown, initially disabled with "US" selected by default, becomes active during the mounting process.

Question
Could you please clarify why I am unable to select other countries where Klarna is supported?

cursive heronBOT
#

@unborn mesa pressed the 🀨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
The apply_pay payment method should have been enabled in the PaymentElement

What actually happened?
Got a console warning:
Stripe.js] You have not registered or verified the domain, so the following payment methods are not enabled in the Payment Element:

- apple_pay

Please follow https://stripe.com/docs/payments/payment-methods/pmd-registration to register and verify the domain.

Even though we have added and verified the domains through the stripe dashboard

Reproduction Steps

  1. Go to: xxxframe.stage.onbookee.com/login
  2. Login with the following credentials:
    username: REDACTED
    password: REDACTED
  3. Go to: https://xxxframe.stage.onbookee.com/pricing?r=471&loc=647
  4. Click "Buy now" on "Credit pack unlimited"
  5. Click on "Proceed to checkout"
  6. Click on "Add payment method"
  7. Observe stripe not having apple pay.

Question
How do I fix this warning, We've verified our domains and it says that the domain is added and verified.

What are you working on?
We're trying to add the apple_pay payment method in our checkout page.

cursive heronBOT
#

@fallen ginkgo pressed the πŸ“š Doc or Guide button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Link to the Doc/Guide in question
https://docs.stripe.com/disputes/verifi-beta

Question
Stripe offering RDR service now, may I ask how to identify the RDR service that is offered by Stripe in the dispute webhook?

Some of our merchants enrolled RDR with other resellers. I know there is an object in the dispute that indicates the dispute is resolved by RDR service.

"network_details": {
"type": "visa",
"visa": {
"rapid_dispute_resolution": true

But I wonder if there's a way to identify whether the RDR service is offered by Stripe or other resellers if a dispute is resolved by RDR.

What have you already attempted?
Try to identify if the RDR service is offered by Stripe or not after our merchants enroll in RDR via Stripe.

What are you working on?
Integrating RDR service.

cursive heronBOT
#

@queen nebula pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
$signatureRequest = $invoice->getParent() === null ?
$invoice->getSignatureRequest() :
$invoice->getParent()->getSignatureRequest();
try{
$clientStripe->invoiceItems->create([
'customer' => $signatureRequest->getCustomer()->getStripeId(),
'invoice' => $stripeInvoiceId,
'price' => $priceId,
'quantity' => $item->getQuantity(),
], [

Question
Hello, I have implemented a custom multiple payment system, I have a question about VAT management.
When I have an invoice at 100€ HT, I create 3 invoices with a LigneItem with a price.
For accounting purposes I want to see on 3 invoices these amounts:
- 33.33HT 6.67€ VAT 40€ TTC
- 33.33HT 6.67€ VAT 40€ TTC
- 33.34HT 6.68€ VAT 40€ TTC

I need a bit of advice and help on tax management, despite the very complete api I can't do what I want.

What have you already attempted?
I'm trying to create several invoice items, specifying the VATs, but I can't manage it. I must have the wrong approach

What are you working on?
Je crΓ©er un service pour des avocats qui leurs permettrons de gΓ©rΓ© des convention d'honoraires en ligne et de pouvoir faire des paiements en plusieurs fois sous

cursive heronBOT
#

@turbid knoll pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
react payment request button

Question
hi. is it possible to have two PaymentRequestButton on the page. one for google/apple pay and one for Link payments?

What have you already attempted?
tried to render two payment methods at the same time

#

@karmic bone pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How do we change all our plans to be free for 2 weeks? Does it require code or api changes or just dashboard changes?

Related Request ID(s)
none

What have you already attempted?
I don't want to change all the prices and then change them back, that seems strange, is there a way to make them all free only for a limited time?

What are you working on?
We want to quickly give all users a free 2 weeks when they go to subscribe.

cursive heronBOT
#

@fallen nymph pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Suddenly unable to find payment intents with search api on production and staging environments

Related Request ID(s)
NA

What have you already attempted?
I tried changing from single quotes to double same problem

#

@balmy pebble pressed the πŸͺ Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
What webhook events should I listen to for handling post-success payment failures (failures that might cause funds withdrawal after the initial success of any payment)

Related Event ID(s)
N/A

What have you already attempted?
I have already handled `charge.dispute.*` events in-case a dispute was raised for a successful payment. However, I am unsure if any other conditions can cause a funds withdrawal for a successful payment.

What are you working on?
Stripe integration to handle any post-success payment failure for a SaaS app.

#

@pure nexus pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I want to add cardholder for my connected account so I am using API : /v1/issuing/cardholders
But i am getting error : Your account is not set up to use Issuing
what can do now?
my connected account type is standard

Related Request ID(s)
req_PnHT3jExvHVFEA?t=1736342479

What have you already attempted?
I want to add cardholder for my connected account and also enable the issuing feature on stripe main account

What are you working on?
I wanna add cardholder in my connected account and then I want to issuing card and used it for payment

#

@mighty halo pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We're working on our terminal integration. Were using BBPOSE and server driven integration. Our workflow is the following: Staff at our location can click collect payment from [Terminal A]. Terminal A should show the user the cart, and then depending on if the staff has prefilled the tip or not show the user sub total (pretip), or total (with tip). User should be able to review the cart, add a tip (if necessary), and then be displayed the collect payment screen. Where we are stuck is the cart screen just shows the subtotal, how does the user progress to the tipping or collect payment screen?

Doc/Guide Links
https://docs.stripe.com/terminal/features/display

What are you working on?
Terminal workflow

#

@olive heron pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Duplicate subscription entries by using the Subscription API. I'm using the Subscription API of Stripe and create subscriptions like so:

```js
const subscription = await stripe.subscriptions.create({
customer: customerId,
items: [{ price }],
trial_period_days: trialPeriodDays,
default_payment_method: paymentMethod,
coupon: couponId,
collection_method: "charge_automatically",
automatic_tax: {
enabled: true
}
});
```

I noticed some subscriptions are duplicate.

Related Request ID(s)
More info below

What have you already attempted?
- Tried to reproduce the issue on different devices and by clicking the submit button multiple times

#

@candid cargo pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How can I check if I customer has a default payment method on file? I don't see a field on the Payment Method object that would confirm this.

Related Request ID(s)
N/A

What have you already attempted?
I have used `customers.listPaymentMethods` and confirm there is at least one that is returned, but that doesn't cover the case where none are set to default.

What are you working on?
I am automating subscription creation. I will receive an error if there is no "Default" payment method set, even if there is a payment method present.

cursive heronBOT
#

@civic smelt pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We were planning to add certificate pinning to our react native mobile app which uses Stripe React Native Tap to Pay SDK. However docs recommend not using certificate pinning. Why is that?

Related Request ID(s)
NA

What have you already attempted?
reference to docs: https://docs.stripe.com/terminal/payments/setup-integration?terminal-sdk-platform=android#connection-token

#

@opal marlin pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I just tried to create a subscription which is 3 months up front and then switch to monthly by creating a subscription scheduel. However stripe doesn't allow this. Not sure I understand why not?

Related Request ID(s)
price_1QcpKWLoMN7oRScye8P0H5Wb

What have you already attempted?
The transition from 3 months upfront to then monthly is keyed by metadata attribute 'phases="
[{"change": "classes-monthly"}]" when the subscription is created. Tried this in code and manually on the dashboard.

What are you working on?
A membership system for a sports complex.

#

@foggy acorn pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
```typescript

const event = stripe.webhooks.constructEvent(
rawBody,
stripeSignature,
STRIPE_WEBSOCKET_SECRET as string,
)

```

Question
The `event` returned from `stripe.webhooks.constructEvent` is of type `Stripe.Event`, which is defined here: https://github.com/stripe/stripe-node/blob/master/types/EventTypes.d.ts#L5

But when I try to create handlers w/ the union types that are listed there, I get typing errors.

The only thing I've found that works is type-casting these types directly on the `event.data.object` in each handler, which is obviously not ideal.

Has anyone figured out how to use these types??

What have you already attempted?
i.e.

```typescript
export async function checkoutSessionCompletedHandler(
event: Stripe.CheckoutSessionCompletedEvent,
)
```

#

@signal tartan pressed the ❌ An Error button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
"The payment could not be captured because the requested capture amount is greater than the amount you can capture for this charge and MCC (5399). Contact us via https://support.stripe.com/contact for help.", "Response Code: amount_too_large", "An error occurred while Payment"

Question
Is our MCC code 5399 correct to over capture a tip?

What have you already attempted?
Upgraded our MCC to 5399 recently.

What are you working on?
Tap to Pay for our POS system.

cursive heronBOT
#

@onyx juniper pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
params := &stripe.FinancialConnectionsAccountRefreshParams{
Features: []*string{stripe.String("balance")},
}
result, err := stripeAccount.Refresh(account.StripeAccountID.String, params)

balanceParams := &stripe.FinancialConnectionsAccountParams{}
result, err = stripeAccount.GetByID(account.StripeAccountID.String, balanceParams)
if result.Balance.Current["usd"] != 0 && client.BalancePulls.Bool {
account.Balance = null.Float64From(float64(resul

Question
Hello! The point of this code is to automatically refresh the balances for our related financial account connections.

The first coal is meant to initiate a balance refresh, and the second, after a moment, fetches it again.

While a web hook would probably be better here, is there any way to not do this in two calls?

What have you already attempted?
This actually does work, it just does it in two calls instead of one which means that our cost goes up relatively to just using one call. I've trawled the docs for an attempted fix but haven't managed to find one.

I've tried a bunch of different API calls on this as well to see if any particular one would ask for the refresh and fetch the refreshed value both.

#

@sharp saffron pressed the πŸͺ Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Display costs per billing cycle for our customers per billing period based on invoice line items.

The problem is that here and there the epoch timestamps looks off. This issue is especially prevalent on subscription cancels (same day re-subscription makes this even worse).

In Stripe SDK the docs in Period class says:
"The end of the period, which must be greater than or equal to the start. This value is inclusive."

We have many examples where this seems to be not true (e.g. invoice: in_1QX18XGhDr1u9rxF6n3byrxU).

If invoice line item periods are not suitable for our use case then what is?

Related Event ID(s)
https://dashboard.stripe.com/test/events/evt_1QY6ZwGhDr1u9rxF8d6WHufp

What have you already attempted?
We could just skip these events, but I afraid that we would lose valuable data.

What are you working on?
We would like to display costs per billing period for our customers based on invoice line item periods, but some weird values make it harder than needed and we would like to have more insight.

#

@opal marlin pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I am trying to create a subscription which is 3 months up front (interval_count = 3) and then transition to a monthly payment. However stripe is not allowing me to create phases with different interval counts?

Related Request ID(s)
price_1QcpKWLoMN7oRScye8P0H5Wb

What have you already attempted?
In my automation on receipt of a webhook I try to add in a new phase which changes it to a monthly subscription but this doesn't work.

What are you working on?
A membership system for a sports center

#

@reef token pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I just watched "Affiliate marketing with Payment Links" https://www.youtube.com/watch?v=ytRkVL1Dm50 and want to know if this also works for Subscriptions. E.g. I have a $15/month product and price, and I want to setup Affiliate marketing where the affiliate (referrer) gets $1/month/subscriber commission.

Related Request ID(s)
n/a

What have you already attempted?
Just watched the video, haven't found any other videos referencing this with subscriptions yet.

What are you working on?
We have a new subscription site and are in the process of adding affiliate marketing so we can get influencers to drive membership to our site. Ty.

#

@errant moss pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Is it possible to Include iDeal as payment method option for an open subscription invoice ?

Related Request ID(s)
in_1QZZST2ERkXzKdsioY4Ctmj0

What have you already attempted?
I have a subscription flow like so:
- new users can add a payment method using iDela
- we save the Sepa payment method as default PM for the user
- we initiate an off-session payment for a new subscription with sepa pm.

When the payment fails, I would like to give my users a payment links to Stripe payment page for this subscription and include ideal as payment method option (for a direct payment this time).

Thanks

What are you working on?
A recurring subscription with ideal as

#

@manic blaze pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
My account ID"id": "acct_1NXg4wEY2q0KPP1O", I contacted support several times and updated my account, I found that my "payouts_enabled": false was not updated to "payouts_enabled" during the automatic update process: ture

Related Request ID(s)
My account ID"id": "acct_1NXg4wEY2q0KPP1O", I contacted support several times and updated my account, I found that my "payouts_enabled": false was not updated to "payouts_enabled" during the automatic

What have you already attempted?
My account ID"id": "acct_1NXg4wEY2q0KPP1O", I contacted support several times and updated my account, I found that my "payouts_enabled": false was not updated to "payouts_enabled" during the automatic update process: ture

#

@formal sphinx pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
import Stripe from 'stripe';

export default defineEventHandler(async (event) => {
const body = await readBody(event);
const stripe = new Stripe(process.env.STRIPE_SECRET_KEY);

if (body.amount < 50) {
throw new Error('Amount must be at least $0.50');
}

try {
const paymentIntent = await stripe.paymentIntents.create({
amount: Number(body.amount),
currency: 'usd',
automatic_payment_methods: { enabled: true },
});

return {
  cli

Question
I create payment intent with currency set to usd, and I know that minimum payment is $0.50. But in test mode when I try to charge it prints

``` Error creating PaymentIntent: Amount must convert to at least 50 cents. $0.50 converts to approximately €0.48.```

What have you already attempted?
Researching

What are you working on?
Fixing the code

#

@rapid jetty pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
// Set `allowsDelayedPaymentMethods` to true if your business can handle payment
//methods that complete payment after a delay, like SEPA Debit and Sofort.
allowsDelayedPaymentMethods: true,
defaultBillingDetails: {
name: user?.name,
email: user?.email,
},
googlePay: {
merchantCountryCode: "US",
testEnv: false,
},
applePay: {
merchantCountryCode: "US",
},

Question
How can I make the Google Pay button appear in the PaymentSheet using Stripe React Native on Android?

What have you already attempted?
- Complete step-by-step Stripe documentation https://docs.stripe.com/google-pay?platform=react-native
- Different merchantCountryCodes
- "com.google.android.gms.wallet.api.enabled" is on the AndroidManifest.xml

What are you working on?
It's a digital good based purchase to be used in the App. The PaymentSheet appears when the user selects a plan (e.g. $10.00) and clicks confirm.

#

@gaunt delta pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We use Stripe elements on our checkout forms to collected "Tax ID Type" and "Tax ID" values. This is an API integration of Stripe Tax. Example here:

https://osmo.outseta.com/auth?widgetMode=register&planUid=gWKZg09p&planPaymentTerm=oneTime&skipPlanOptions=true

I'm wondering how we can validate the Tax ID value that's entered and if one is entered, updated the "Tax Status" value to "Exempt" so users aren't charged tax at checkout.

Related Request ID(s)
NA

What have you already attempted?
We're collecting the Tax ID Type and Tax ID values, but anything can be entered into these fields and they aren't resulting in checkout sessions where users are tax exempt.

#

@proper bronze pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Is there a way to figure out when the most recent "confirm" request was made for a payment_intent?

Related Request ID(s)
n/a

What have you already attempted?
read docs for fields on PaymentIntent

What are you working on?
ach payment flow

cursive heronBOT
#

@tranquil dagger pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We utilize the Universal Stripe Connector for SF. It doesn't support all the functionality of the new API versions i.e. discounts vs. single coupon. When will that get updated to support the modern API?

Related Request ID(s)
N/A

What have you already attempted?
Reviewed the other connector packages, contacted support. I'm hoping for more specifics around status of package being updated to know how/when to automate my business cases that require the discount functionality. (they require manual work direct in stripe currently and this is not sustainable)

cursive heronBOT
#

@karmic kernel pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I have a product with two prices in different currencies (USD and CAD). How can I pull the price for a specific currency from Stripe?

Related Request ID(s)
NA

What have you already attempted?
Read the docs but couldn't find anything for this

cursive heronBOT
#

@balmy yacht pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I have current fraudulent charges going through one of our stripe connect accounts (they are standard). What's odd is that Stripe first multiple payment due to suspected testing, using the same payment id, even up to 10 times but then eventually succeeds with a new card. How can I prevent this if the payment intent is already created and it's using Stripe elements? The confirm payment is within the Stripe iframe.

Related Request ID(s)
evt_3Qf3svD5HHG99nQo0N8kmW2w

What have you already attempted?
We have rate limiting in place, but it doesn't stop the same payment id being used and tried with multiple cards

What are you working on?
Ticketing engine -

#

@thorny stream pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I'm running an affiliate program in my app with connected accounts. They are custom accounts and transfers are on so I am collecting the required tax information from them. I also have the embedded document component inside my app . Now, i will be paying out the connected accounts every month for their affiliate pay, and I'm wondering if Stripe will automatically provide the necessary tax documents to my connected accounts through the embedded component, or I will have to send each connected account their correct tax forms?

Doc/Guide Links
https://docs.stripe.com/connect/supported-embedded-components/documents
https://docs.stripe.com/connect/embedded-onboarding

What are you working on?
Quoting, invoicing software

#

@viscid haven pressed the πŸͺ Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
What event should be listened for when a subscription ends, so if you have a monthly subscription and the user cancels it, I want to catch the event after their last billing

Related Event ID(s)
-

What have you already attempted?
Documentation

What are you working on?
I have a pay-as-you-go subscription, certain actions are restricted when you don't have an "active" subscription, but I only want to change that status after the given subscription has actually ended

#

@languid rapids pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How to set Connected Account Sales Tax Location on each transaction

Related Request ID(s)
N/A

What have you already attempted?
Charging the sales tax based on the host's location which is wrong for my Airbnb clone app. Sales tax needs to be paid based on the location of the rented space.

What are you working on?
An AirBnb clone

#

@fallen shoal pressed the ❌ An Error button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
// add verification to stripe account for personal emails and default business urls
log.Debug().Str("accountId", stripeAccount.ID).Msg("adding verification for stripe account")
_, err = h.StripeServiceRef.AddVerification(stripeAccount.ID)
if err != nil {
log.Error().Err(err).Msg("Failed to add verification")
}

Question
Any ideas why the requests to add verification would hang randomly? The above code is run in the callback for the connect oauth onboarding flow. Our service has a timeout of 15 seconds set and periodically it will fail because of a timeout. We investigated what is causing the timeout and narrowed it down to account update calls like the one above.

What have you already attempted?
Tried increasing the timeout of the service. Initially it was 7 seconds and we bumped it to 15 but still found these errors happen intermittently.

cursive heronBOT
cursive heronBOT
#

@languid rapids pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How to set Stripe Sales Tax location on each transaction for Connected accounts?

Related Request ID(s)
N/A

What have you already attempted?
Using the Stripe Connect-ed account's location but that is wrong from a tax perspective. I need to use the location being rented for the salex tax location.

What are you working on?
An AirBnb clone

#

@cerulean silo pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
The method Create a source is deprecated?

Related Request ID(s)
create source

What have you already attempted?
We received an email notifying us about changes to the API for ACH payments. After reviewing the announcement, we found that we do not have webhooks with the events source.*, but we are using the method:this.stripeSdk.sources.create({
type: "ach_credit_transfer",
currency: "usd",
owner: { email },
});
Should we make any changes regarding the creation of this resource?

#

@round dock pressed the 🀨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
Be able to verify connect account in test mode

What actually happened?
"Something went wrong. Please try again later, or contact support."

Reproduction Steps
* create a connect account
* create an account link type: onboarding
* Attempt to go past the first screen captcha

Question
How can I continue to register the connect account?

What are you working on?
Automated connect account provisioning for customers

#

@golden spade pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
When I use `stripe.Invoice.upcoming()` with a promotion code, I get back a response that contains `discountable=True, discounts = []` and a third `discount_amounts` key whose value doesn't seem documented in https://docs.stripe.com/api/invoiceitems/object

Is there some way to get calculated line item price (e.g. unit_amount - discount_amount)?

Related Request ID(s)
il_tmp_18fbcfCoTIfwbn28086c14a5

What have you already attempted?
Reading docs

What are you working on?
Saas checkout

cursive heronBOT
#

@vale quail pressed the πŸ“š Doc or Guide button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Link to the Doc/Guide in question
https://docs.stripe.com/issuing/purchases/transactions

Question
When a transaction on a Stripe Issued Card incurs a foreign transaction fee. Does this fee come in to our webhook as a separate transaction or is it included in the total of the same transaction ?

What have you already attempted?
I have looked at the transaction object

https://docs.stripe.com/api/issuing/transactions/object

But I am unsure if the currency would always be USD since the card is a USD and US based card. Can you share examples of what a foreign transaction object would look like and fees?

What are you working on?
Stripe Connect + Issuing

cursive heronBOT
#

@median echo pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We use Stripe Checkout. Currently we collect and send the customer email before creating the checkout session. We're considering switching to having Stripe collect the email to cut out our intermediate page. Is there any way to enforce unique emails in Stripe? From what I've found online it doesn't look like it, but if there is a way to do so, we'd be interested in seeing how it works, and if it would affect our existing customers. If we could enforce unique emails for customers going forward that would be ideal.

Related Request ID(s)
NA

What have you already attempted?
I've looked through the Stripe checkout session docs and online for answers.

What are you working on?
A SAAS site where we manage our sign ups and subscriptions.

#

@sleek pine pressed the πŸ“š Doc or Guide button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Link to the Doc/Guide in question
https://docs.stripe.com/billing/subscriptions/subscription-schedules#subscription-schedule-sub-updates

Question
How to downgrade at the end of the active plan. integration with bubble.io

What have you already attempted?
I have tried to create a schedule subscription, or prorated behavior= none

What are you working on?
Bubble.io

#

@cerulean pasture pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Trying to change payout with api to credit card instant

Related Request ID(s)
none

What have you already attempted?
I have the card token coming back but it is not saving to allow my connect customer to do an instant payout

What are you working on?
White label point of sale platform

#

@tepid gust pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
`currency_options` on Price seems to be write-only. is this correct or is it an oversight?

Related Request ID(s)
req_E7wrZ97ouVB7fF

What have you already attempted?
Working on updating prices programmatically, and I need to retrieve the existing currency options

cursive heronBOT
#

@snow chasm pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How can I find all the trials I've ever granted for a subscription?

Related Request ID(s)
N/A

What have you already attempted?
I've searched online, and through Stripe documentation.

What are you working on?
AI

cursive heronBOT
#

@grand forum pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
document.getElementById('button').addEventListener('click', async function(event) {
event.preventDefault();

const loadingSpinner = document.querySelector\('.loading\-spinner'\);
const processingText = document.querySelector\('.processing\-text'\);
const lastName = document.getElementById\('last\-name'\).value.trim\(\);
const firstName = document.getElementById\('first\-name'\).value.trim\(\);
const email = document.getElementById\('email'\).v

Question
Stripe Payment Configuration
Implemented Stripe payment using data transmission from index.html to charge

I have set up the frontend page to allow users to enter their card information and then redirect to charge.php, but it always results in an error.

The platform I am using is EC2.

The frontend (index.html) handles Stripe token creation and data submission.

The backend (charge.php) manages Stripe payment processing and error handling.

What have you already attempted?
"Required data is missing": Request data validation error in charge.php.
"SyntaxError: Unexpected token '<'": JSON parsing failed due to receiving an HTML server error response.
"Could not connect to Stripe": Connection error to the Stripe API (Port 443 connection failure).

What are you working on?
to change the script code

#

@reef token pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I'm trying to do Affiliate Marketing payments on a Subscription where the Affiliate is paid $1/month/subscriber from a $15/month subscription.

Related Request ID(s)
n/a

What have you already attempted?
previous discussion below.

What are you working on?
I would like to not have to use "application_fee"

#

@quick terrace pressed the πŸ“š Doc or Guide button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Link to the Doc/Guide in question
https://docs.stripe.com/payment-links/customize#convert-to-local-currency

Question
I created a Payment Link and enabled adaptive pricing (in Live and Test modes) but the link only displays the currency selected during the creation of the payment link.

What have you already attempted?
I've tried to manually add prices in different currencies but the link still only displays one price: https://buy.stripe.com/test_bIY3eY2OHdUddsA6oq?

What are you working on?
Just trying to create a payment link with adaptive pricing.

cursive heronBOT
#

@haughty dagger pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
Stripe::Invoice.create(
customer: customer.external_id,
collection_method: 'send_invoice',
days_until_due: 0,
description: 'Creator Payouts Invoice',
payment_settings: {
payment_method_types: [type]
},
default_payment_method:
)

Question
I generate invoices for customers to pay, but when they go to the invoice page, they don't see any of the payment methods attached to their stripe customer. Even if I try to manually assign a default payment method, nothing appears. I want them to be able to select a pre existing payment method to avoid manual repetition.

What have you already attempted?
Went through docs, tried different variety of requests. Nothing works.

cursive heronBOT
#

@scarlet oxide pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Is it possible to programatically update an account dashboard settings using the Stripe API?

Related Request ID(s)
N/A

What have you already attempted?
I've tried updating the account using the https://docs.stripe.com/api/accounts/update but the dashboard object despite being returned in the response it's not accepted in the request object

const updateTimezone = async (item: CSVRow) => {
const account = await stripe.accounts.retrieve(item.account_id);
await stripe.accounts.update(account.id, {
dashboard: {
display_name: item.dispay_name,
timezone: item.timezone,
},
});
};

cursive heronBOT
#

@agile fractal pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I am using stripe connect express, specifically i want too use "direct charges". If i create through API a payment link for one of my users assigning 'Stripe-Account': stripeAccountId, the payment link will be created for him. But, if i do not specify "application_fee_percent" or amount, BUT, i have in my platform settings default commisions, the commissions are applied or not? The application_fee_percent or ammount is necessary when i am going to create the link?

Related Request ID(s)
No

What have you already attempted?
As defined in the question

#

@mighty halo pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Using BBPOSE and server driven integration. If predip is disabled an cart is shown. How does a customer facing the terminal progress to the payment page? There is no "continue to payment" that takes the customer to a screen to complete the payment on the terminal.

Related Request ID(s)
Stripe Terminals

What have you already attempted?
API does not have any information on what comes after the cart? https://docs.stripe.com/terminal

cursive heronBOT
#

@vale quail pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I am trying to update a cards spend controls. From having set a few allowed categories to then removing those and allowing all categories. What do I pass to the cards await stripe.issuing.cards.update() method for this?

Related Request ID(s)
evt_1QfBFbQ8nn4qito7Gsr9jPfk

What have you already attempted?
I have already tried sending an empty array for allowed_categories but this doesn't seem to work and still restricts to the previously set categories.

What are you working on?
Stripe Connect + Issuing

#

@exotic wigeon pressed the πŸ“š Doc or Guide button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Link to the Doc/Guide in question
https://docs.stripe.com/api/invoices/object#invoice_object-next_payment_attempt

Question
Is the next_payment_attempt in upcoming invoice always ahead of 1 hour from upcoming periodStart of subscription? If yes, what's the reason for this?

What have you already attempted?
I tried converting the unix timestamp on period start and next_payment_attempt and notice they are 1 hour apart. I can't seem find a documentation that explains this behavior.

cursive heronBOT
#

@nocturne dust pressed the 🀨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
Using link authentication element with the payment element I sign up with link (fill out my card, enter my email into the link element, enter my phone) then abandon checkout. When I come back to checkout and enter my email the link box pops up. I choose my card where it says use **4242. The paymentElement.complete is true, but I need to still confirm my cvc

What actually happened?
The payment element status should be false if the confirm cvc box is in an error state. I need to retrigger the elements.submit once the cvc is completed. I need a way to know that the confirm cvc was completed and I cannot get that information because the paymentelement looks complete

Reproduction Steps
fill out my card, enter my email into the link element, enter my phone, abandon checkout, come back to checkout, enter email, choose link card

Question
How can I put an on change handler on the confirm cvc box so that I can act accordingly when it's filled out?

What are you working on?
a react checkout page for my company

cursive heronBOT
cursive heronBOT
#

@sonic marten pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Is it possible to create an invoice, add a custom value e.g., $100 line item and send it to the customer in one API call? What is the minimum flow/API calls needed to send a finalised invoice to the customer.

Related Request ID(s)
N/A

What have you already attempted?
I've read the invoicing docs and I cant see a parameter to add line items in the create Invoice call.

What are you working on?
Solar installation payment solution

cursive heronBOT
#

@nova blade pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
const stripe = require('stripe')(process.env.STRIPE_SECRET_KEY);

exports.handler = async (event, context) => {
try {
// Create a Standard account
const account = await stripe.accounts.create({
type: 'standard',
// email:"vajjala.saicharan@voltuswave.com"
});

    // Generate an onboarding link
    const accountLink = await stripe.accountLinks.create\({
        account\: account.id,
        return\_url\: 'https\:

Question
iam trying to add a standard account for my company's stripe account but iam uanble to add in inida and it is saying that only invite in inida ?

What have you already attempted?
i have already read the particular docs for onbaording but iam not getting the clarity to add them.
what to do now ?

What are you working on?
iam working on connected accounts

cursive heronBOT
#

@shut lotus pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
i want to add a tax id in tax type to an invoice, via api, how can i do that
this is the tax type
US EIN 93-2948005

Related Request ID(s)
tax and invoice

What have you already attempted?
nothing

cursive heronBOT
#

@marble lava pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We use stripe for our business and we want to add WeChat Pay and Alipay onto our system. For Alipay, it shows 'activated' yet nothing shows up on our webpage. For WeChat Pay, it shows 'failure' on our dashboard. We would like to know what should we do to proceed with adding those two methods onto our webpage payment methods.

Related Request ID(s)
pmc_1Pi8zvRoUfb6BI4p49CuPfhX

What have you already attempted?
here is the link https://dashboard.stripe.com/settings/payment_methods/pmc_1Pi8zvRoUfb6BI4p49CuPfhX

cursive heronBOT
#

@woven moth pressed the πŸͺ Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How can I verify if the payment is successful from the user side? I am using checkout sessions (stripe.checkout.sessions.create()). there is no event like payment.succeed for checkout

Related Event ID(s)
evt_1QfFWb021oVRUlBpJVg4JNLA

What have you already attempted?
I am only getting checkout.session.completed and checkout.session.expired

#

@raw coral pressed the πŸͺ Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
My customer seems to have missed an invoice, and then he paid the invoice (evt_1Qcnv8FvG2PBfrpSKGrwB5IG). However, the Stripe subscription (sub_1OOcD9FvG2PBfrpSoDelc2y6) status is still canceled

Related Event ID(s)
payment failed event: evt_1QcklZFvG2PBfrpSvE2XG14V

What have you already attempted?
I tried to look for an event that update subscription to be active again, but I couldn't find one. And I notice that Subscription status still be canceled. How can I help my customer to active his subscription again?

#

@stone karma pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hello,
Need assistance with multi capture functionality.
Can you please provide exact commands to make it work?

Related Request ID(s)
pi_3QfFwU2MenHkIoIh1j7tXldw

What have you already attempted?
1 step:
stripe payment_intents create --amount="10000" --currency="USD" --capture-method="manual"
2 step:
stripe payment_intents capture "pi_3QfFwU2MenHkIoIh1j7tXldw" --final-capture="false" --amount-to-capture="1000"

What are you working on?
Getting:

cursive heronBOT
#

@wild patrol pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We want to track metrics on what API calls we make to Stripe. We want to know a way to skip the path parameters and use placeholders instead of actual values. Is there a way to do this?

Related Request ID(s)
none

What have you already attempted?
none

#

@chrome sable pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How to use terminal for subscription creation,

Related Request ID(s)
null

What have you already attempted?
Creating subscription with default incomplete and returning the payment_intent created from that to frontend

#

@dreamy inlet pressed the πŸͺ Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I'm trying to simulate the following flow
- a Connect account is asked some documents (so transfers are disabled)
- the Connect account documents are provided (by me)
- the documents are approved by Stripe (so transfers are enabled again)

Thanks a lot for your help!

Related Event ID(s)
none

What have you already attempted?
I've read the testing doc https://docs.stripe.com/testing but did not find anything related to what I'm trying to test.

What are you working on?
I'm maintaining an affiliation platform

cursive heronBOT
#

@quiet drift pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
flowController.configureWithIntentConfiguration(
intentConfiguration = PaymentSheet.IntentConfiguration(
mode = PaymentSheet.IntentConfiguration.Mode.Payment(
amount = 12345,
currency = "USD",
setupFutureUse = PaymentSheet.IntentConfiguration.SetupFutureUse.OnSession,
captureMethod = PaymentSheet.IntentConfiguration.CaptureMethod.AutomaticAsync,

Question
Why i get this error?

When confirming a PaymentIntent with a `us_bank_account` PaymentMethod and `setup_future_usage`, `mandate_data` is required

What have you already attempted?
Used every capturemethod

#

@civic cove pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
import {useStripe, useElements, PaymentElement} from '@stripe/react-stripe-js';
const options = {
layout: {
type: 'tabs',
defaultCollapsed: false,
radios: true,
spacedAccordionItems: false
},
terms: {
sepaDebit: 'auto',
card: 'auto'
}
}

<PaymentElement options={options} onReady={() => setLoading(false)}/>

Question
In my test environment SEPA options is visible but when i try to use production keys SEPA aren't wokring

What have you already attempted?
I have checked all documentation and haven't made any change in code but suddenly SEPA is removed why?

#

@vivid pewter pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hi, we would like to begin specifying IDs in the "paymentIntent.payment_method" field instead letting the system use a Connect customer’s default payment method. Though we don’t know how to get a customer’s ApplePay payment method ID, or would we specify something else then, e.g. 'applepay'?

Related Request ID(s)
n/a

What have you already attempted?
Have searched through the API docs w/o success. Have tried fetching payment methods for customer accounts via the API (but ApplePay PMs are not included).

What are you working on?
Tiptapp, a transportation service in the EU.

cursive heronBOT
#

@pure rampart pressed the ❌ An Error button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Error Message
We identified a high volume of unauthorised charges on your account. Payouts are now paused. We will issue refunds on affected card payments five days after your Stripe account is closed. Refunds may take longer to appear on a cardholder's statement. If you believe we've made a mistake, provide additional information about your business for review.

Question
I just created my store for print on demand posters. Bought a nice domain, added stripe for payments. And after 2 minutes i received this message. Guys, please help me out. This is an error. There are literally 0 orders on my website. How is possible to identify a "high volume of unauthorised charges" when i just created the website and there are 0 sales? Help pls!

What have you already attempted?
I read everything. I tried contacting the support. The chat is not working. I receive an email, which is automated every time, and no real person checks out my problem. They are asking for info about the orders, but there ARE 0 ORDERS.

Reproduction Steps
I don't really know the steps. I only know that i need this problem to be solved, and that this is a huge system mistake and needs to be reviewed by a real person. Thanks!

What are you working on?
I am a pro volleyball player(national team player). I made a website for volleyball posters with famous players on them.

cursive heronBOT
#

@celest turret pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How can I retrieve all the currencies and associated amounts of a single price?

Related Request ID(s)
https://dashboard.stripe.com/test/logs/req_BRC24XWtGcCqV8

What have you already attempted?
I tried listing product prices with currency ISO code, same with searching and I tried retrieving the price. All return only the default price.

What are you working on?
I am working on service subscription pipeline with self-hosted pricing table and stripe-hosted checkout. I want users to be able to select the currency in the pricing table and use it in checkout

#

@urban trout pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I'm having an issue with stripe connect integration. I have a stripe platform setup based in Estonia and when I get a connect account which is destination account and has Mexican account. This creates a region limitation error for transferring funds to MXN account from EE account. If I create a US based stripe platform and get connect accounts from regions like Mexico and Spain. Will I get the same region limitation issue or it will work fine?

Error:
transfers_not_allowed
Funds can't be sent to accounts located in MX because it's restricted outside of your platform's region.

Related Request ID(s)
req_jUsZ3EMeQvaEWY

What have you already attempted?
I have tried to attempt using transfer API to manually transfer the amount to connected account. Also I tried to automatically send to connected account using
transfer_data: {
destination: <CONNECTACCOUNTID>
},

What are you working on?
I'm creating a platform for communities on which sellers/community creator will create paid or free communities and other users can join the communities via subscriptions.

#

@woven moth pressed the πŸͺ Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I've created a checkout session and in that added some information (booking ID) which I need in the webhook response.

if my payment is succeed then only I am getting the metadata. in case of failure I am not getting anything in the metadata and I want to perform some operations using that ID.

Related Event ID(s)
succeeded event: evt_3QfGWj021oVRUlBp1RbWP0A2, payment failed event: evt_3QfITN021oVRUlBp0pIRkBZ3

What have you already attempted?
-

#

@fading shadow pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hi everyone! I'm working on a project where I need to localize Stripe payment error messages based on the user's language (e.g., German). Currently, Stripe provides error messages in English, and I want to know if there's a way to configure my backend to automatically receive localized error messages in different languages (e.g., German) from Stripe's API. How can I set the language in my backend so that any Stripe SDK responses are returned in the correct localized language?

Thanks in advance!

Doc/Guide Links
https://docs.stripe.com/api/payment_intents/create

What are you working on?
Stripe error message localize

cursive heronBOT
#

@tranquil latch pressed the πŸ“š Doc or Guide button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Link to the Doc/Guide in question
https://docs.stripe.com/billing/subscriptions/billing-cycle

Question
As a service, we provide access to content on a Monthly Subscription basis. Sometimes subscription auto-renew fails with "Payment failed because of insufficient funds" error. Current Subscription settings are 8 retries within 2 weeks. The invoice can be paid in 2 weeks after creation.

How to shift the billing cycle and the subscription period so users actually get 1 month of access? And how make the next payment happen exactly in 1 month from the previous?

In my project, I rely on current_period_start and current_period_end from subscription to provide access to my service.

What have you already attempted?
The idea to stop the current subscription and create a new one started in the future I do not like.
And I do not see a way to update current_period_start and current_period_end of the current subscription.

#

@dreamy inlet pressed the πŸͺ Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
When I update the information of a Stripe Connect Express account, it seems the account.updated event is not sent.

For example I tried updating account "acct_1QfIyDQm0yQwWBTr" address line 1 with the "address_line1_no_match" test token.

I don't understand why no account.updated seems to be sent.

Related Event ID(s)
none

What have you already attempted?
- I searched for any accoun.updated event in Workbench events tab (none show up)
- I added logs in my account.updated webhook handler and none of my logs show up

What are you working on?
I'm maintaining an affiliation platform

cursive heronBOT
#

@urban trout pressed the πŸ“š Doc or Guide button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Link to the Doc/Guide in question
https://docs.stripe.com/connect/cross-border-payouts#supported-countries

Question
There's a statement in 'Requirements and Restrictions' of this documentation that says:

"US connected accounts don’t support cross-border payouts; onboard US connected accounts using the full terms of service."

Can someone elaborate what this means? I want to implement a cross border border payouts to the users on my app.

What have you already attempted?
I was suggested with this documentation for my use case so I was going through the documentation and saw this statement which was confusing so I wanted to ask regarding it.

What are you working on?
I'm creating a platform for communities in which sellers/community creators will pay a subscription fee to my platform and create paid communities which other users will join

#

@shut lotus pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
i have an issue,
i am using set up intent to attach a card to a customer, now i need to select a card to use for a payment, when i click on a card on the payment sheet how do i get the payment method ID

Related Request ID(s)
none

What have you already attempted?
none

cursive heronBOT
#

@halcyon scarab pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
i have PaymentIntent id how can i get intent secrte key after payment in post api i m geting payment_intent_client_secret i need to verify that key how can i achive this

Question
i have PaymentIntent id how can i get intent secrte key after payment in post api i m geting payment_intent_client_secret i need to verify that key how can i achive this

What have you already attempted?
tried using intent.get() not worked

What are you working on?
integration stripe payment in my application

#

@limpid scaffold pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I was testing my integration, and during another attempt with 4242 card, my payment was declined due to `requires_action`. It don't usually happens for 4242, and for some reason payment requires 3DS. Can you explain why can it happen?

Related Request ID(s)
pi_3Qf5vAKbHTyAU2AT1eQ8KdVb

What have you already attempted?
Usually that logic just works

#

@formal sphinx pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
webhook code

import Stripe from 'stripe';

export default defineEventHandler(async (event) => {
const stripe = new Stripe(process.env.STRIPE_SECRET_KEY)
const headers = event.node.req.headers;
const body = await readRawBody(event);
const sig = headers["stripe-signature"];
let hookEvent;

try{
    hookEvent = stripe.webhooks.constructEvent\(
        body,
        sig,
        process.env.ENDPOINT\_SECRET
    \)
}catch\(error\){

Question
I'm using nuxt with stripe. I as well have stripe CLI installed.

I start CLI with: stripe listen --forward-to localhost:3000/api/payment/webhook

For some reason I'm getting 403 when making call to api.

Ready! You are using Stripe API Version [2024-09-30.acacia]. Your webhook signing secret is whsec_693438147a85388c0b754f8391794f3e9908c5484e2827729cb91903c49ede13 (^C to quit)
2025-01-09 13:55:02 --> payment_intent.created [evt_3QfKKHKPj3JfoYa71a3zpNpz]
2025-01-09 13:55

What have you already attempted?
Reseaching

What are you working on?
Reseaching

cursive heronBOT
#

@obtuse girder pressed the 🀨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
Link should not show up in PaymentElement React component.

What actually happened?
"Secure, 1-click checkout with Link" shows up.

Reproduction Steps
Create a setup intent, then display a PaymentElement React component to the user. Have Link disabled in the Stripe settings.

Question
I disabled Link in the Stripe settings completely, yet it still shows up as an option in the PaymentElement React component for my setup intent. I also tried to limit "payment_method_types" in the setup intent to "card", but that didn't change anything.

cursive heronBOT
#

@merry valve pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I need to make a custom paymentElement which is provided by react-stripe default like with card payment but i ahve to do like this

Apply Pay Button Link Button

Email Input

Card Number
ExpireDate SecurityCode

name of Card holder Input field

Country drop down list which already provided by <PaymentElement /> but want to need customise

Related Request ID(s)
Need to do customize Stripe <PaymnetElement/> as per some custome reduiremnet like add some new inputs and change some UI which is default as <PaymentElement/>

What have you already attempted?
I already did to do try for making add some extra CSS and Input fields But it is not working

cursive heronBOT
#

@livid kernel pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
const invoice = await stripe.invoices.retrieveUpcoming({
subscription: subscriptionId,
subscription_details: {
proration_date: prorationDate,
proration_behavior:'always_invoice',
items,
}
});

Question
I want to confirm if this is correct way to calculate proration amount
Code written above is slightly different than proration API call mentioned in Stripe documentation here:
https://docs.stripe.com/billing/subscriptions/prorations#manually-creating-your-own-prorations
Stripe documentation uses `subscription_items` and `subscription_proration_date` which are deprecated fields.
My question is, code that I have mentioned above is that correct way to calculate proration?

What have you already attempted?
I am passing subscription_details.proration_date instead of `subscription_proration_date` and instead of using deprecated `subscription_items` I am passing subscription_details.items. And I pass `subscription_details.proration_behavior` as `always_invoice` in order to calculate proration amount for current billing period.

What are you working on?
I am working on calculating proration amount for current billing period when making an upgrade

cursive heronBOT
#

@grave comet pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
C3Web.AssetStoreCheckout.getStripePI().then(piResult => {

    window.onbeforeunload = null;
    stripe.confirmCardPayment\(piClientSecret, stripeCardData\)
        .then\(function \(result\) {
            if \(result.error\) {
                            
                C3Web.AssetStoreCheckout.hideGreyOut\(\);
                C3Web.AssetStoreCheckout.enableBuyButtons\(\);
                C3Web.AssetStoreCheckout.handleStripeError\(result.error\);

Question
Is it at all possible to retrieve the payment methods registered country? EG test card # 4000000320000021 is registered to Argentina.

We do Geo pricing, and are having issues where customers are buying our cheap pricing from other countries. Ideally, we'd like to be able to check the payment methods country if it exists before processing the transaction.

What have you already attempted?
The stripeCardData property doesn't seem to contain anything relevant.

What are you working on?
Checkout on our existing store. We've processed >Β£4,000,000 using Stripe so far.

cursive heronBOT
#

@winged tendon pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hi everyone πŸ‘‹,

I’m integrating Stripe into my eCommerce built on Webflow, and I want to set up a payment process where the charge on the card is not made immediately. The idea is to authorize the payment (reserve the amount on the card) and capture it manually only after the product has been shipped.

Related Request ID(s)
N/A

What have you already attempted?
N/A

What are you working on?
eComerce on webflow

cursive heronBOT
#

@zenith vault pressed the πŸ“š Doc or Guide button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Link to the Doc/Guide in question
https://docs.stripe.com/api/payment_methods/create

Question
i have used setup intent to store payment method for future use but it was in mobile app react native now i wants to do same in web so how can i use setup intent with stripe js web elements?

What have you already attempted?
i have used setup intent to store payment method for future use but it was in mobile app react native now i wants to do same in web so how can i use setup intent with stripe js web elements?

What are you working on?
stripe checkout and setup intent

#

@radiant canyon pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
On the codebase I work with I realized we would sometimes create Payment Intent with shipping attributes, and sometimes we don't.

I was wondering if it was better to mention it or to not mention it, what was the purpose of this attribute? It seems that PayPal for example do not want any shipping attribute in our case so we might as well stop sending it entirely.

We are a marketplace that sell cleaning, haircut, massage services so the shipping attribute maybe is not relevant in our case?

Doc/Guide Links
https://docs.stripe.com/api/payment_intents/object#payment_intent_object-shipping

What are you working on?
We are a marketplace that sell cleaning, haircut, massage services.

#

@empty meadow pressed the πŸ“š Doc or Guide button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Link to the Doc/Guide in question
https://docs.stripe.com/payments/checkout/cross-sells

Question
Is there a way to enable the addition of multiple products as cross-sells? It appears that the dashboard currently allows only one.

What have you already attempted?
Yes, I successfully added one, but it does not provide the option to add additional items.

What are you working on?
Adding cross_sell products to complement our current plans.

#

@nimble moon pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
const elementsOptions: StripeElementsOptions = {
mode: 'subscription',
amount: Math.round(Number(finalPrice)) * 100,
currency: selectedPlan.currency,
paymentMethodCreation: 'manual',
appearance: { ...paymentElementStyles },
};

Question
I am trying to enable the iDEAL payment method in my checkout flow and noticed that it only appears when the payment element option mode is set to setup. Why does iDEAL not appear for subscription and payment mode?

What have you already attempted?
I have tried looking at the docs but couldn't see any specific information regarding it.

#

@dense ravine pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Is it possible to create an one time payment without creating an invoice before the customer has paid?

Related Request ID(s)
N/A

What have you already attempted?
Create a one time invoice. But it's not what I want, because if the customer doesn't pay, I don't want to generate an invoice.

#

@heavy berry pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
$checkoutSession = $this->stripe->checkout->sessions->create([
'allow_promotion_codes' => true,
'automatic_tax' => [
'enabled' => true,
],
'billing_address_collection' => 'auto',
'cancel_url' => url('/checkout/cancel?session_id={CHECKOUT_SESSION_ID}'),
'custom_fields' => [
[
'key' => 'license_id',

Question
I want to remove the checkbox that states that Billing info is same as shipping, how?

What have you already attempted?
Added 'billing_address_collection' => 'auto', in the api

#

@stray surge pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hello, Is there a way to deactivate the CBT capability for Afterpay/Clearpay in Stripe, as described in the Afterpay API documentation here: https://developers.afterpay.com/docs/partner/reference/partner/operations/update-a-v-1-onboarding-capability-cbt ?

Related Request ID(s)
N/A

What have you already attempted?
I looked in stripe's doc but found nothing on the subject.

cursive heronBOT
#

@jade basin pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I am using Stripe in my php website. My page redirects to Stripe, user enters cc and webhook is called. The problem is I don't get any fee information in Stripe incoming data (I need to know Stripe fees!). webhook intercepts "checkout.session.completed" event but there is no information about fees. how do i find out what the fee for that charge was? should i call any other API? i checked more incoming webhook events but fee was always set to NULL.

Related Request ID(s)
none

What have you already attempted?
I checked incoming Stripe data (php://input) but I can't find fee information anywhere.

What are you working on?
Website. User pays with cc, gets redirected back to my website, Stripe calls my webhook.php...

#

@snow chasm pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How do I identify whether a subscription ever had a trial?

Related Request ID(s)
N/A

What have you already attempted?
I've searched through the documentation, and I've asked a prior question here: https://discord.com/channels/841573134531821608/1326679022880690307. I'd like to get some help figuring out how to reconstruct a list of trial subscriptions (even if it isn't straightforward).

What are you working on?
AI

#

@cedar kettle pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I was wondering. I am using the stripe portal through the API. A user has mutiple subscriptions but can be confusing as they can buy the same subscription for different business they have so they cant tell them apart. Can I add something so when they render on the portal they are told apart?

Related Request ID(s)
None

What have you already attempted?
I am lost not sure what to do

What are you working on?
I am having a multysubscription logic of venues B2B which a business owner can have X amount of venues which each venue is an inivudual subscription

#

@fringe temple pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
32323132132321321321321323132132321321132132131231232132113213211321

Question
321321321323232313213232132132132132313213232132113213213123123213211321321132113231321323213211321321312312

What have you already attempted?
3231321323213213213213231321323213211321321312312321321132323231321323213213213213231321323213211321321312312321321132132113211321

What are you working on?
32323132132321321321321323132132321321132132131231232132113213211321

#

@hoary scroll pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
await stripe.subscriptions.update(stripeSubscription.id, {
items: [
{
id: stripeSubscription.items.data[0].id,
price: new_price_id,
},
],
billing_cycle_anchor: 'now',
proration_behavior: 'always_invoice',
payment_behavior: 'pending_if_incomplete',
proratio

Question
There is different behavior occuring in prod and in dev which I don't understand.

This code is supposed to (for products of diff cadencies):

Move the product of the subscription to the new_price_id, and charge the difference in price between the old product and new product (NO time based prorations as these are physical products rather than a usage-based service) or credit / refund the user amount depending if the new product is more exp or cheaper

What have you already attempted?
My last ticket was regarding this. It works perfectly in dev but doesn't work in prod. will post more details below

#

@silent thorn pressed the ❌ An Error button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Error Message
400. Reason: No account session with that client secret was found. Was the account session created using a secret key for a different account?

Question
My team is switching from using regular test mode to using Stripe Sandboxes feature in our local development, and we currently use Stripe Connect React Embedded Components. When changing stripe private key secret from our stripe test mode into the sandbox mode secret, I got this error on the connect.js loadConnectAndInitialize call.

What have you already attempted?
I did console.log sanity checks that I am using the same stripe publishable and secret keys on the client and the server. Also, while using regular test mode keys, it works.

Also, I checked to see that my accountsession api call does return an secret string and the error occurs when that string is fed into connect.js loadConnectAndInitialize call.

Reproduction Steps

  1. Create a stripe sandbox and get its secret key
  2. create a connected account within the sandbox mode and get the connected account id
  3. On the server, create account session
  4. on client get that account session client secret using the connected account id
  5. on client call loadConnectAndInitialize using sandbox mode publishable key. (error)
#

@unkempt edge pressed the πŸͺ Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Good afternoon Stripe Team, I have a question related to the Refun.Failed and Refund.Updated events. We are testing in Sandbox environment and we've noticed two different behaviours related with refund. We are testing failed refunds using this card number 4000000000005126, in one scenario we have received Refund.updated event (with status successful) and refund.failed event both at the same time, will this happen in production? When we retested we received first the "refund.failed" event and then the "refund.updated" (with status failed), why this inconsistency? How will it work in production?

Related Event ID(s)
re_3QfMyhEyC9QaXxZH0jXlC6px

What have you already attempted?
Create a payment using the card number provided, and then create a refund from Stripe Dashboard. This simple scenario lead us to different event flows

#

@dreamy lichen pressed the 🀨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
The same error as before, "L'annΓ©e d'expiration de votre carte est passΓ©e.".

What actually happened?
The error is now "L'annΓ©e d'expiration de votre carte est dans le passΓ©.", but before, it was "L'annΓ©e d'expiration de votre carte est passΓ©e.".

Reproduction Steps
Put an expired year in the PaymentElement's Expiration date input.

Question
Did the PaymentElement error on card’s expiration year changed ?

What are you working on?
A Stripe PaymentElement composant for Planity's website.

#

@patent field pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hello, what is the best approach to transfer money to my users using Stripe? I have already tried creating epxress account but I still find that it asks questions that are not suitable for my customers.

Doc/Guide Links
https://docs.stripe.com/api/accounts/create

What are you working on?
I'm working on a website where I want to redirect some of the funds I get in my Stripe Account to my users, because I have a monetization program.

#

@dry delta pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Does stripe allow merchants to have two separate bank accounts? one for funds to be deposited and one for stripe charges to come out of?

Related Request ID(s)
unsure

What have you already attempted?
N/A

What are you working on?
Looking at signing up with Stripe but this will be a dealbreaker

#

@tropic bridge pressed the 🀨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
I expect customers.search to find a match when the customer has been previously created

What actually happened?
customers.search doesn't find the customer

Reproduction Steps

  1. create the customer with a uid as metadata
  2. try to search for it using the metadata within 5seconds

Question
Why is this happening? Is there a way to implement some kind of locks to avoid this from happening?

#

@peak gull pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
WooCommerce Stripe Gateway - On the checkout page the fields open in an iframe. Is there a way in javascript to detect the card type that's being entered?

Related Request ID(s)
None

What have you already attempted?
document.addEventListener("DOMContentLoaded", function () {
console.log("DOMContentLoaded event fired.");

// Polling to wait for the iframe to appear
const waitForIframe = setInterval(() => {
const iframe = document.querySelector("iframe"); // Adjust selector as needed
console.log("Checking for iframe...");

if \(iframe\) {
  console.log\("Iframe found\:", iframe\);
  clearInterval\(waitForIframe\); // Stop checking once the iframe is found

  // Wait for the iframe to fully load
  iframe.addEventListener\("load", function \(\) {
    console.log\("Iframe loaded."\);

What are you working on?
I want to detect the card type so I can charge the transaction fee accordingly.

cursive heronBOT
#

@onyx quest pressed the πŸ“š Doc or Guide button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Link to the Doc/Guide in question
https://docs.stripe.com/currencies/conversions

Question
My Product requires me to dynamically check for the exchange rates between currencies before each transaction but an api for getting stripe's exchange rates for each currency is not available on the documentation

What have you already attempted?
I've tried using other third party providers but their rates are very different from what stripe uses so using them would lead to mismatches in values.

What are you working on?
A social media application where users can purchase digital coins.

#

@woven cipher pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How can I create a credit card token using my own custom form?

Related Request ID(s)
N/A

What have you already attempted?
I've tried this basic example on the client:

Stripe.createToken({
card: {
number: "4242424242424242",
exp_month: "12",
exp_year: "2026",
cvc: "212",
},
})

But it keeps throwing an error:

IntegrationError: You must provide a Stripe Element or a valid token type to create a Token

custom form is very important for branding/UX

What are you working on?
Saas product

cursive heronBOT
#

@eternal shell pressed the πŸͺ Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hi there,
I m trying to save the receipt number but it always comes as null to me on charged.suceed. is there any reason why? What can I do to change it?

Related Event ID(s)
evt_3QfNx3CVvrXPcWZm1vuXy5ie

What have you already attempted?
Tried to enable post invoice generation, but I dont really need to invoice, I just need the receipt number.

What are you working on?
A payment integration with a game server, the receipt will be needed for troubleshooting in case any in-game fullfilment failures.

#

@carmine latch pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I sent a request for Swish activation couple of months ago. When I spoke last time, customer support said swish might get activated in a month but it's still not activated!
Is there any process to activate SWISH

Related Request ID(s)
help

What have you already attempted?
I sent a request for Swish activation couple of months ago. When I spoke last time, customer support said swish might get activated in a month but it's still not activated!

cursive heronBOT
#

@distant oxide pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
what api do i call and in what order to get an account id I can use for future payments without them re-entering their card

Related Request ID(s)
none

What have you already attempted?
I have attempt reading documentation and tried a couple of apis. I can create an account and i can create a charge using stripes web javascript

What are you working on?
I need to recharge a card when a balance dips below the minimum

cursive heronBOT
#

@eternal shell pressed the πŸͺ Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Webhooks doenst carry receipt information, event testing with a real payment I have never received an email automatically and neither the webhooks got updated with such information.

Related Event ID(s)
evt_3QfQajCVvrXPcWZm1QzIvL9m

What have you already attempted?
Tried to pay with a real method, but nothing happened related to the receipt_numer in the webhooks

What are you working on?
In an integration with Discord and a game server, the donations are to maintain the server, but I need to track the receipt as this is the only information available on the customer side receipt.

cursive heronBOT
#

@unkempt kelp pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I am trying to create payment on behalf of a connected account. This works fine when I want to create a payment method for a single connected account using the following code:
const stripeClient = loadStripe(process.env.STRIPE_TEST_KEY, {
stripeAccount: 'my_vendors_id',
});
and passing this into <Elements stripe={stripeClient} />
The problem arises when I have a customer who has 2 products in their cart from 2 different vendors. The current flow only allows for creation of payment methods for the stripeAccount that I have passed to loadStripe().
Having multiple stripeClients and <Elements /> components for each connected account does not seem correct. Thanks in advance.

Doc/Guide Links
https://docs.stripe.com/js/payment_methods/create_payment_method

What are you working on?
Online Marketplace

cursive heronBOT
#

@sullen spindle pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I'm trying to test Stripe Connect on localhost, but I'm getting stuck on the captcha validation. I'm using the React component. It works if I deploy to AWS. I have also tried the sample code provided by Stripe and same behavior.

Related Request ID(s)
NA

What have you already attempted?
That's the code I'm using.
````
<ConnectComponentsProvider connectInstance={stripeConnectInstance}>
<ConnectAccountOnboarding
collectionOptions={{
fields: 'eventually_due',
}}
onExit={() => {
setOnboardingExited(true);
}}
/>
</ConnectComponentsProvider>
````

This is a screenshare of the issue:

https://streamable.com/hqokt7

I've tried from different IP addresses as well.

What are you working on?
Integrate Stripe connect

#

@hollow steeple pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Can we copy users data from one stripe customer id, onto a new stripe customer?

Related Request ID(s)
cus_MqK5ra7SI4GsKm

What have you already attempted?
We originally migrated 50,000 customers from our legacy system, onto our new system. Not knowing that we had around 500 customers who had multiple subscriptions to our old platform. In result we now have 500 customers that have multiple subscritpions, and what our goal is that each subscription would have been linked to it's own stripe customer_id

What are you working on?
We built a claiming system, for users to claim their legacy accounts on a new system.

#

@manic igloo pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I update stripe sdk for node js and after update i am creating a payment intent with confirm equalts to true to capture it asap. it's working fine but i am not getting any receipt url as a response. before updating i was getting it. I checked the whole response object but the url is not their.

Related Request ID(s)
req_g4JsAD8NOu4BHg

What have you already attempted?
nothing

cursive heronBOT
#

@warm dagger pressed the ❌ An Error button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Error Message
{
"error": {
"code": "resource_missing",
"doc_url": "https://stripe.com/docs/error-codes/resource-missing",
"message": "No such on_behalf_of: 'acct_1Gx9wmL9oNRZiMeT'",
"param": "deferred_intent[on_behalf_of]",
"request_log_url": "https://dashboard.stripe.com/test/logs/req_sAF9DENVyuxJ4t?t=1736452776",
"type": "invalid_request_error"
}
}

Question
We are adding the `onBehalfOf` parameter in the options when we create our elements instance but getting this error. The account does exist and I can not even find the request logs in the dashboard.

What have you already attempted?
It worked locally when using the same parameters. Failing in QA - trying to instantiate the elements instance with a deferred intent flow with options = {
mode: 'payment',
amount: 1600,
currency: 'usd',
paymentMethodCreation: 'manual',
onBehalfOf: 'acct_1Gx9wmL9oNRZiMeT'
}

Reproduction Steps
instantiate the elements instance with a deferred intent flow with options = {
mode: 'payment',
amount: 1600,
currency: 'usd',
paymentMethodCreation: 'manual',
onBehalfOf: 'acct_1Gx9wmL9oNRZiMeT'
}

What are you working on?
Adding the onBehalf Of parameter to the options so we can turn link on and off for individual connected accounts.

#

@serene prism pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
if (!paymentIntent || paymentIntent.status !== 'succeeded') {
paymentIntent = await stripe.paymentIntents.create({
amount: totalCost,
currency: "usd",
customer: stripeCustomerId,
payment_method_types: ["card"],
setup_future_usage: "off_session",
application_fee_amount: printAgent.stripe_account_id
? Math.floor(totalCost * (perAmount / 100))
: undefined, // Optional for agents with Stripe account

Question
apple pay button is not showing, even it is enabled from dashboard.

What have you already attempted?
payment_method_types: ["card","apple_pay"],

What are you working on?
online store

#

@digital geyser pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
A user gets an invoice on 23.11.2024, but it is charged only after 7 days, due to retries (on 30.11.2024).
We renew the subscription and charge for the next cycle 30 days after the invoice creation date (on 23.12.2024), not 30 days after the successful payment (e.g., 30.12.2024).
I tried to follow docs with billing_cycle_anchor set to now, when the (invoice.payment_succeeded event happens) and the suggested proration type but this results in an invoice. Is there any way to change the cycle without invoicing? I would also like to avoid tampering with setting the free trial since we use the status of the subscription through the rest of our app.

Doc/Guide Links
https://docs.stripe.com/billing/subscriptions/billing-cycle#changing

What are you working on?
Sports data application

cursive heronBOT
#

@serene prism pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
if (!paymentIntent || paymentIntent.status !== 'succeeded') {
paymentIntent = await stripe.paymentIntents.create({
amount: totalCost,
currency: "usd",
customer: stripeCustomerId,
payment_method_types: ["card"],
setup_future_usage: "off_session",
application_fee_amount: printAgent.stripe_account_id
? Math.floor(totalCost * (perAmount / 100))
: undefined, // Optional for agents with Stripe account

Question
apple pay button is not showing, even it is enabled from dashboard.

What have you already attempted?
payment_method_types: ["card","apple_pay"],

What are you working on?
online store

cursive heronBOT
#

@safe cape pressed the πŸͺ Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How to add a beta parameter to an existing webhook destination (retrieve_tax_forms_beta=v1)

Related Event ID(s)
None, I can't receive tax.form.updated events because of this issue.

What have you already attempted?
When I attempt to add the beta event to our webhook destination `tax.form.updated` I am presented with the following message:

"The following event types are still in beta: tax.form.updated. In order to receive webhooks with these event types, you must explicitly specify which version of the beta you want, by setting the 'api_version' parameter to something like '2020-03-02; retrieve_tax_forms_beta=v1'."

I have no way in the workbench to add this beta version to the existing in-use destination. I can only add it by creating a new webhook destination and adding it during creation.

What are you working on?
I am trying to send emails to our accounts when a tax form is updated, to do this I need to receive the webhook events for tax.form.updated.

#

@crisp falcon pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Is there a way to disable subscription invoices from auto advancing (finalizing) automatically at the subscription level?

Related Request ID(s)
(none)

What have you already attempted?
Looked at the API docs and don't see an option to do this.

What are you working on?
Mitigating webhook event processing outages

cursive heronBOT
#

@latent tinsel pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
elements.create("card", {style: style, hidePostalCode: true}); call for US bank account only

Related Request ID(s)
N/A

What have you already attempted?
elements.create("us_bank_account",);

cursive heronBOT
#

@wary lintel pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Regarding api changes for the statement_descriptor param for payment intents, is it still safe to use when using automatic_payment_methods?

Related Request ID(s)
none

What have you already attempted?
Our product (GiveWP) implements the Payment Element which creates a payment intent with the automatic_payment_methods param as well as statement_descriptor. So far, it is still working when using a card.

cursive heronBOT
#

@obsidian dove pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hello, I'm looking for a way to model a more complex pricing strategy for a new product offering. We want to split the product into tiers that have differing amounts of usage included in each tier, and some tiers will allow for a per-1000 cost for usage beyond the allotted amount.

For example, we want to have a `Free` and `Basic` tier that will cost $0/mo and $5/mo respectively and include 1000 and 10000 units of usage respectively. For our higher `Standard` and `Pro` tiers we will also have per-month flat fees, and have a price per-1000 units beyond the allotted usage for those tiers.

Related Request ID(s)
NA

What have you already attempted?
We have a different product line which is strictly usage based and modeled that very simply with usage-based pricing and a threshold on the subscription to cap usage amount (in USD) before sending out an invoice. I'm wondering if it's possible to model this new product scheme without doing something like, Make `Free` and `Basic` a flat recurring fee, and `Standard` and `Pro` according to the fixed fee and overage model (https://docs.stripe.com/billing/subscriptions/usage-based/pricing-models#fixed-fee-overage)
And then track usage entirely on our end for the `Free` and `Basic` products.

#

@formal hinge pressed the ❌ An Error button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Error Message
Incorrect payout to my Bank by Stripe

Question
Stripe has paid me out the incorrect amount. $0.50 is owed to me to be able to reconcile this with my Accounting. I have only received $4,331.27
Pay ID:
pi_3QbrAdS6XyMPMXKp06UiZBLV

Payment amount
A$4,400.00 AUD
Xero application fee
- A$68.27 AUD
Net amount
A$4,331.73 AUD

What have you already attempted?
I dont know where else to ask this..?

Reproduction Steps
please sent me $0.50 more in a new transaction

cursive heronBOT
#

@glossy anvil pressed the ❌ An Error button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Error Message
You may not update your TIN because of the Stripe terms of service you have signed. Please contact Stripe support for assistance.

Question
This error is occurring in our sandbox when we attempt to re-record API calls for end-to-end tests. This particular test is attempting to fix a EIN error for a new account that has no Persons associated yet.

What have you already attempted?
Tried re-recording the API calls using the same version of the previously recorded calls.

What are you working on?
I am rebuilding recorded API calls for a Stripe API version upgrade

#

@muted escarp pressed the 🀨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
I'm using https://docs.stripe.com/js/payment_intents/handle_next_action to handle the next action that is returned from confirming a payment intent on the server. Once the user is done, we refresh the payment intent on the server (by making a request to the Stripe API) and then we proceed with the next steps on our end (confirming the order).

What actually happened?
I assume because of a (slight) replication lag, when we make the request for the payment intent on the server, the `status` has not yet been updated (even though the one returned by the Stripe JS SDK has been). We need a way (on the server) to verify that the user successfully completed the auth.

Reproduction Steps

  1. Use https://docs.stripe.com/js/payment_intents/handle_next_action
  2. Once complete, immediately request the payment intent on the server.
  3. The `status` will not match what was returned on the client.

Question
Is there a way to bypass the cache/replica and ensure that we are getting the most recent version? Alternatively, could you add a signature to the payment intent (with our server side secret?) on the client so we can trust what is returned by the JS SDK? Or is there a way to know on the client when the payment intent has been fully updated?

What are you working on?
https://www.withflex.com/

#

@astral breach pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
In the schedule api, why does the discount field in the discounts appear null for a phase? There is a valid coupoun, but that field is null

Related Request ID(s)
-

What have you already attempted?
Subscription api returns id

What are you working on?
-

#

@faint hearth pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
Future<bool> _processPayment() async {
try {
await Stripe.instance.presentPaymentSheet();
return true; // Pagamento bem-sucedido
} on StripeException catch (e) {
// Tratamento especΓ­fico para exceΓ§Γ΅es do Stripe
print('Pagamento cancelado ou falhou: $e');
return false; // Pagamento cancelado ou falhou
} catch (e) {
// Outros erros
print('Erro inesperado durante o pagamento: $e');
return false;
}
}

Question
i have a question here, i want to save the cards of the customer but i just can't, i tried some ways but without success, i'm just using flutter/dart to do this

What have you already attempted?
i tried to create a new screen to payment and to import flowController, but ijust don't worked

What are you working on?
a self project about a bar/restaurant

cursive heronBOT
#

@brazen moth pressed the 🀨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
I expected Stripe CLI to send events to live mode.

What actually happened?
The event never went through even with correct credentials.

Reproduction Steps
I tried to resend an event using the `stripe resend` command from the cli using instructions I found here :
https://docs.stripe.com/cli/trigger. However, I am getting a resource_missing error although the event that I am trying to resend exists.

Question
How do I resend an event that is older than a few months ?

#

@ionic wing pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Updating subscription schedule phases with option `always_invoice` on proration behaviour not working, the customer still get pending invoice items and will only be charged at the end of the billing cycle

Related Request ID(s)
req_mZKvYQt2Kl5cY4

What have you already attempted?
Read the docs on https://docs.stripe.com/api/subscription_schedules/update but don't understand why it's not working. Previously when we use normal subscription (non schedule) with `always_invoice` option it works fine. Our API version is `2020-08-27` not sure if this is related but we're not confident to upgrade it. Thanks.

What are you working on?
Splose, a practice management software

cursive heronBOT
#

@sturdy cobalt pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
when i download payout report Item.5 i got 95 columns, But when i am trying to get same column through API call i am getting this error.

Related Request ID(s)
https://docs.stripe.com/reports/payout-reconciliation#schema-payout-reconciliation-itemized-5

What have you already attempted?
Stripe.StripeException: 'The value for `parameters.columns` contains invalid column identifiers: "customer_address_city ", "customer_address_country ", "customer_address_line1 ", "customer_address_line2 ", "customer_address_postal_code ", "customer_address_state ", "customer_shipping_address_city ", "customer_shipping_address_country ", "customer_shipping_address_line1 ", "customer_shipping_address_line2 ", "customer_shipping_address_postal_code ", "customer_shipping_address_state ", "destination_payment_id ", "invoice_number ", "is_link ", "payment_metadata ", "refund_metadata ", "trace_id ",

What are you working on?
Get payout report.

cursive heronBOT
#

@frigid imp pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I'm trying to copy a payment method from a connected account to a platform account but not finding the right call.

Related Request ID(s)
req_V6c6j0KWZ37UFP

What have you already attempted?
Specifying the platform account's id with the --stripe-account in strip cli returns an error like - In order to share a PaymentMethod, you must pass a connected account ID by using an OAuth key or the Stripe-Account header

cursive heronBOT
#

@grave heart pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
server:
Stripe::SetupIntent.create({
customer: stripe_customer_id,
payment_method_types: ['card'],
},
stripe_account: stripe_account_id})

client:
const options = {

layout\: {
  type\: 'accordion',
  defaultCollapsed\: false,
  radios\: true,
  spacedAccordionItems\: false
},
paymentMethodOrder\: PAYMENT\_METHODS\_ORDER,
clientSecret}}

<PaymentElement
options={options}
onChange={handlePaymentElementChange}
/>

Question
Hi, I am trying to integrate Google pay using stripe payment elements (undeferred flow + setup intent). I know that Gpay is not a separate payment method type in stripe, but I am wondering how it is displayed on the User interface. I tried on Chrome and Safari browsers but couldn't avail.

What have you already attempted?
Verified that google pay is enabled on dashboard, tried on google chrome and safari browsers

What are you working on?
We are migrating to stripe PaymentElement from traditional elements

cursive heronBOT
#

@glossy oak pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
When loading the stripe payment element, the sessions API is throwing 400 with the following error - You do not have the capabilities required for payment method `sepa_debit`. Client claims that they don't have any errors related to it in their dashboard

Related Request ID(s)
req_7sVQq6lmmCCpDu, acct_1PyGC2EWpHr2XKZj

What have you already attempted?
We tried checking our account for any errors with sepa debit. We were not able to find anything and also it is working as expected for other customers

cursive heronBOT
#

@past aurora pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
Stripe\SubscriptionSchedule

Question
Invoice is not generating for next phase

What have you already attempted?
$invoice = \Stripe\Invoice::upcoming([
'subscription' => $subscription->id,
]);

What are you working on?
Subscription downgrade

cursive heronBOT
#

@spiral bluff pressed the πŸ“š Doc or Guide button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Link to the Doc/Guide in question
https://stripe.com/connect/pricing

Question
I'm confused about how to calculate the fees incurred for the following Stripe Connect integration type: Direct charges + our platform covers all fees (including Stripe transaction fees).

Our Platform: Singapore-based (SGD)
Connected account: Could be any one of the following
1) UK-based, their customers paying in GBP
2) UK-based, their customers paying in USD
3) India-based, their customers paying in INR

What have you already attempted?
From my knowledge for
1) GBP to GBP = no conversion. GBP to SGD conversion when reaching our account results in a conversion fee of 2% I guess? Not sure if there's also cross-border fee. And what about the card payments charge is there a Stripe transaction fee on that?
2) USD to GBP = 2% conversion rate. And then another 2% for GBP to SGD.
3) INR to INR = no conversion. INR to SGD = 2% conversion rate.

What are you working on?
NFT checkout service provided to clients using Shopify model

#

@merry valve pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I used this <PaymentElement /> from react-stripe now i have to do some customisation in this like i need to add two new input field like Email and Name of Card Holder then how can i do that and i also need to add css for display none on my link paymnet option's dropdown then how can i do i want the solution for this

Related Request ID(s)
Need to add some custom inputs in my <PaymnetElement /> Component which is already provided from react-stripe package

What have you already attempted?
I already did add some input field but that is not in payment element

#

@shut lotus pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
hi, how do i pass a promotion code to an invoice directly on the api...

i mean i want to apply a promotion code to an invoice, i have access to the code and not the code id,

Related Request ID(s)
promotion code

What have you already attempted?
nothing

cursive heronBOT
#

@dusk gulch pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
Provide code in conversation

Question
Card tab and bank tab display in my site but I have need card only how to remove bank tab

What have you already attempted?
New card add time bank tab remove

cursive heronBOT
#

@lapis chasm pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
export const updateStripeConnect = async ({ spaceId }: { spaceId: number }, context: any) => {

const accountLink = await stripe.accountLinks.create\({
  account\: space.stripeConnectAccountId,
  refresh\_url\: \`${process.env.WASP\_WEB\_CLIENT\_URL}/${space.slug}/revenue?refresh=true\`,
  return\_url\: \`${process.env.WASP\_WEB\_CLIENT\_URL}/${space.slug}/revenue?success=true\`,
  type\: 'account\_onboarding',
  collect\: 'eventually\_due'
}\);

Question
I have set up stripe connect on my app. I can create the account but when I want to update some info all works and the information change on the stripe dashboard but the email change on the connect interface but not on the stripe admin dashboard

What have you already attempted?
Use Update account type insted but it doen't work to

What are you working on?
web app with stripe payement for subscription

#

@nova blade pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
const stripe = require('stripe')('sk_test_β€’β€’β€’4DeZ'); // Use your Stripe secret key

exports.handler = async (event) => {
try {
console.log('Event body:', event.body);

const body = JSON.parse\(event.body\); 
console.log\(body\);
console.log\(body.sendData\);
console.log\(body.sendData.paymentIntentId\);
// const { data\: { object\: { status } } } = body; 
// cons

Question
getting error of
Error creating or finalizing invoice: StripeInvalidRequestError: As per Indian regulations, export transactions require a description.

What have you already attempted?
attentemplted by adding description and changing description but iam not able to genarte finalize invoice why ?

What are you working on?
iam trying to genarte invoice after payment

#

@fading shadow pressed the ❌ An Error button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Error Message
There is not getting any error message . intent is just create and getting this
`payment_intent.requires_action`
message in my dashboard.

Question
Hi everyone! I'm facing an issue with 3D Secure cards while working with Stripe.

When I create a Payment Intent for the first time and process the payment, it works fine. However, after saving the card for future payments and trying to use it again, the payment gets declined.

Has anyone experienced this or knows how to handle 3D Secure cards for recurring payments?

What have you already attempted?
I makes payment from German region its doesn't work .

What are you working on?
Creating payment intent and do payment with 3D secure card.

cursive heronBOT
#

@dreamy inlet pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I'd like to test the following flow
- a Connect account has transfers enabled
- deactivate transfers on the Connect account
- reactivate transfers on the Connect account

Related Request ID(s)
none

What have you already attempted?
I've went through this doc docs.stripe.com/connect/testing

I tried creating a charge with the "tok_visa_triggerChargeBlock" token to make the eventually due requirements required now.

However this doesn't disable the transfers capability.

What are you working on?
An affiliation platform

cursive heronBOT
#

@nova blade pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
const stripe = require('stripe')('sk_test_β€’β€’β€’4DeZ'); // Use your Stripe secret key

exports.handler = async (event) => {
try {
console.log('Event body:', event.body);

const body = JSON.parse\(event.body\);

// Check if paymentIntentId is available in the body
if \(!body.sendData.paymentIntentId\) {
  throw new Error\('paymentIntentId is missing in the request body'\);

Question
iam paying amount initallay and iam getting payment_intent.status as successful but when i try to generate hosted url of invoice iam able to get but in voice it is asking to pay again the amount which i have been paid initially why?

What have you already attempted?
i have already attempted giving payment_intent.amount to invoice while generating but again the same issue

What are you working on?
iam working on invoice generation

#

@lost gulch pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I am reaching out regarding a transaction issue faced by my Singapore-based client, related to the following scenario:
https://support.stripe.com/questions/transaction-declined-stripe-singapore-accounts

Some of my client's guests have been unable to complete payments, receiving an error message stating:
"The transaction could not be completed due to restrictions on donations from high-risk areas..."

My web application connects to my client's Stripe account via Stripe API.
Can Stripe team change the setting so that the transaction won't be categorized as a donation ?

Related Request ID(s)
API

What have you already attempted?
I tried to find the solution via ChatGPT.

What are you working on?
I am a developer of the web application that event organizer can manage their event.

#

@steep slate pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
creating stripe product for each payment

Related Request ID(s)
stripe checkout always creates a product

What have you already attempted?
Hello,

One of the developers has connected stripe checkout in such a way that each stripe payment creates a new product in the stripe panel. Because of this we already have 945 products in the stripe panel in production. This is a shipping application so no two products are ever the same moreover customers duplicate after each payment. In my opinion we should not create a product but only a payment for a specific amount.

Do you have recommendations about this situation and how to fix it,?

What risks does the current situation have?

I will add that the application is gradually scaling

What are you working on?
I want to archive all products

#

@olive heron pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Is creating a customer during checkout session (before completing the payment form) the correct approach?
----
I'm using the Subscriptions API + Stripe Elements. As soon as a user opens the URL where he can add his payment method and subscribe to my app, I create him as a Stripe customer. I was wondering if this is the correct approach?

More info below

Related Request ID(s)
NA

What have you already attempted?
NA

#

@thick kraken pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I have a scenario, where I generate Invoices for the user and charge their payment method. The invoice goes in pending or processing state.

Meanwhile the user settles the invoice via different medium like credits. Now I can't void the invoice.

What can I do in such case?
I want to void the invoice and prevent charging the customer twice on the same invoice.

Maybe I can issue a refund as soon as the state of the invoice is updated (if it succeeds) but even for that I would have to keep listening for the invent to change.

Doc/Guide Links
https://docs.stripe.com/api/invoices/void

What are you working on?
I am building a Cloud based SaaS platform where users can create sites and spin up servers and they are charged on pro rata model

cursive heronBOT
#

@hallow stratus pressed the ❌ An Error button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Error Message
I tried to add the PayPal payment method. It shows "PayPal review in progress" for 20 days now and was never asked to put my PayPal business address, which is strange. And PayPal don't understand my problem and don't even know Stripe has integrated this payment method.

Question
How can I solve this problem with PayPal payment method?

What have you already attempted?
Contact Stripe support, contact PayPal support

#

@stiff creek pressed the ❌ An Error button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Error Message
You can only create new accounts if you've signed up for Connect

Question
We got an exception on production " You can only create new accounts if you've signed up for Connect, which you can learn how to do at https://stripe.com/docs/connect"
What is the problem here then? Does it depend on the LIVE status?

What have you already attempted?
We use the same method in all our environments.

#

@soft gate pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
Since two days, I'm looking for how to integrate Stripe solution on my Web site e-commerce. But, I'm still looking for, I have no idea. I read Strip documentation, I still have no solution. Is someone can help please ?

Question
Since two days, I'm looking for how to integrate Stripe solution on my Web site e-commerce. But, I'm still looking for, I have no idea. I read Strip documentation, I still have no solution. Is someone can help please ?

What have you already attempted?
IntΓ©gration Strip payment solution.

cursive heronBOT
#

@cloud dagger pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hello! We have an integration for payment request buttons based very similarly on your documentation examples. I have recently changed how the amounts are passed for some Apple Pay changes, although this has now stopped capturing the payment once complete. The payment shows in the Dashboard as uncaptured and the UI modal works fine. I’ve tried setting the capture method to both automatic and automatic_async but this doesn’t appear to do any automatic capturing. Since I’ve not changed anything related to the capture which was working before I’m a bit lost as to how to fix this now.

Related Request ID(s)
req_ehxaKRQkotqo8h

What have you already attempted?
I’ve attempted to change the capture mode to automatic and also automatic_async as this was set to manual before but this doesn’t appear to work. We do take standard card payments also via Stripe and these are still functioning correctly as before and capturing payments.

What are you working on?
We build a SaaS product for managing after-school and extra-curricular activities for children

#

@radiant canyon pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We're still wondering about the shipping attributes for PaymentIntent. We do not sell physical goods but home cleaning services. A few years back, some devs added the shipping attributes to our intents because it would "reduce 3DS2 explicit validations"

but now we implemented paypal via stripe, and since they do not want any shipping params passed, we wonder if we could remove it alltogether for all transactions. Is the shipping attributes relevant in our case, and does it actually reduce 3DS2 explicit validations

Related Request ID(s)
no request.

What have you already attempted?
I haven't attempted anything but I'd like to remove the shipping attributes from our payment intents

What are you working on?
a marketplace for home cleaning services, home hairdresser, home massages...

cursive heronBOT
#

@rapid holly pressed the πŸ“š Doc or Guide button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Link to the Doc/Guide in question
https://docs.stripe.com/connect/platform-pricing-tools

Question
We are trying to figure out how to use pricing tool but add additional fee for subscription rebill payments.

  1. Can we use an api to determine what pricing fee *would* apply for a given payment intent?

  2. I don't believe there is a way for payment tool to know its a subscription - is this accurate?

What have you already attempted?
We already have this tool working for our platform account but are trying to see the best practice for managing subscription payments separately because apparently they are more expensive with Stripe itself.

What are you working on?
Lead engineer on ThriveCart - SaaS checkout page builder software

cursive heronBOT
#

@torn rapids pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
SELECT
c.id AS customer_id,
ch.*
FROM
customers c
LEFT JOIN
payment_intents pi ON pi.customer_id = c.id
LEFT JOIN
checkout_sessions cs ON cs.payment_intent_id = pi.id
LEFT JOIN
charges ch ON ch.payment_intent = pi.id
LEFT
WHERE
pi.id = 'pi_3QfiAyJ3mXHphgmz04IHg4rG'

Question
Im trying to use sigma queries to get a list of all the price objects for every payment intent. I can see in the stripe dashboard /payments/:payment_id that there is a link to the price object and the payment as stripe displays a list of the prices used in the payment attempt but getting this link via the sql is causing me a challenge.

What have you already attempted?
Write lots of different queries

cursive heronBOT
#

@reef token pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I'm adding Affiliate Marketing to our website, utilizing Stripe Connect for the tracking and payouts of subscription customers. When creating a Stripe Connect account, calling Stripe:Account.create via Postman in Test it allows you to create multiple accounts with the same Email address. Everything else I read says that is not possible. Trying to determine if I need to check for pre existing accounts before creating one. Then the big question was, what if the person I am creating a Connect Account for ALREADY has a Stripe account with another platform. TY!

Related Request ID(s)
n/a

What have you already attempted?
Verified duplicates connect accounts for our platform in test mode utilizing the same email address. Easy to reproduce, fill out necessary info to run the Stripe:Account.create - run it, then wait a few seconds and run it again. They are assigned new acct ids. I know to prevent accidental duplicates to use an IdempotencyKey, but I'm purposely seeing what happens if we add an account. Later turn it off then at a later date try to add them again. TY

#

@past cloak pressed the 🀨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
I expected webhook events to only be delivered from the list of IPs here: https://docs.stripe.com/ips#ip-addresses

What actually happened?
I received three valid webhook events from IPs not present in that list:
172.68.168.172
172.68.168.163
172.69.7.151

Reproduction Steps
I cannot reproduce this, I can only wait for more requests from potentially invalid IPs.

Question
Can you confirm that these IPs are valid Stripe IPs?

If they are, can you update both the page with the list of IPs and the referenced API announce mailing list with all of Stripe's valid IPs?

https://docs.stripe.com/ips#ip-addresses
https://groups.google.com/a/lists.stripe.com/g/api-announce

What are you working on?
I'm building CityStrides, a website that helps people run/walk every street in their city

cursive heronBOT
#

@fast stream pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hello, I hope you are well! I am implementing automatic refunds via API, my problem is that the automatic refund emails are not sent, although I have the option enabled in the dashboard

Related Request ID(s)
-

What have you already attempted?
I have tried to configure it in the panel and make changes to my code

cursive heronBOT
#

@dusk sedge pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Regarding the new field allow_redisplay.

Do I need to pass it only for SetupIntents and Terminal integrations?

Or do I also need to set it in PaymentIntents that uses `setup_future_usage: off_session` or `off_session: boolean`?

Related Request ID(s)
N/A

What have you already attempted?
N/A

#

@stuck flame pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I’m trying to configure Klarna to display the correct locale after redirecting from the Stripe Elements view. Stripe Elements is rendering in the correct language, but upon redirecting Klarna renders in English.

Related Request ID(s)
N/A

What have you already attempted?
I’m setting the locale when creating the elements session, then again under PaymentMethodOptions.Klarna.PreferredLocale when creating the Klarna session.

#

@soft gate pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
How can I generate StripeClient Token ?

That I can put on StripeClient Class.

Question
How can I generate StripeClient Token ?

That I can put on StripeClient Class.

What have you already attempted?
The solution about my question.

cursive heronBOT
#

@spice whale pressed the πŸ“š Doc or Guide button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Link to the Doc/Guide in question
https://support.stripe.com/questions/block-a-specific-credit-card-from-being-accepted

Question
How can i block prepaid cards from being added? i understand i can create a radar rule to block these cards from getting charged but i want to block them from even being added in the first place so I dont get to the charge part.

What have you already attempted?
read your docs and created stripe radar rules but it still allows the user to add the card, but then the charge fails.

#

@open jackal pressed the πŸ“š Doc or Guide button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Link to the Doc/Guide in question
https://docs.stripe.com/api/subscriptions/object?lang=python

Question
If I am reading this correctly, a subscription should create an invoice at current_period_end with invoice.period_start=current_period_start and invoice.period_end=current_period_end before updating subscriptoin.current_period_end to a new date.
Is there ever a case where invoice.period_end is greater than invoice.created?

What have you already attempted?
N/A

cursive heronBOT
#

@blissful patio pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I know this is a long shot, but it would be really nice for us to have an option to automatically exclude some subscriptions from auto-cancellation via the API instead of using the dashboard.

We have a demo environment that is used by the sales team to showcase our application to prospects and sometimes it happens that if we forget to manually exclude the subscription from auto-cancellation it leads to weird behaviors.

Related Request ID(s)
req_5xwWxjad0tOtnZ and req_4mGKm8mTiEhkU7

What have you already attempted?
I have tried to send a request using the same signature the dashboard is sending but I get a bad request back saying that the parameter is unknown

cursive heronBOT
#

@simple relic pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Checkout session I have queries to make charges with a product_ID

Related Request ID(s)
checkOut

What have you already attempted?
I need to collect taxes by country using checkout session

What are you working on?
developer

#

@prisma coral pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
This may be difficult to help with but was unsure what to do here. My customers websites are all of a sudden occasionally showing payment elements in a broken state. Upon refreshing they are usually fixed.

Related Request ID(s)
N/A

What have you already attempted?
I've attempted to look over our payment elements code and verified no code change has gone out recently.

What are you working on?
BookingTerminal.com

#

@pale tide pressed the πŸͺ Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Currently our webhook handler is designed around api version 2024-06-20, but our production dashboard has 2024-04-10 set as the default. I don't see an option to upgrade the default to 2024-06-20, only 2024-12-18.acacia which our system doesn't support yet. How can I set the default API version to 2024-06-20?

Related Event ID(s)
N/A

What have you already attempted?
Clicked "Upgrade available" but wasn't presented with an option for 2024-06-20

What are you working on?
Deploying our application to production

#

@tidal chasm pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hey guys! I am from Brazil. I would like to report a small problem. I'm from the Notazz team, we integrate with you via API to search for sales.

In your API currently, when the currency is in the CLP currency, a value missing 2 decimal places is returned in the amount_captured field, so if we convert the CLP to BRL it will have the wrong value.

Related Request ID(s)
ch_3QcZSND632iYSfdd0WlQdUT0

What have you already attempted?
In this sale above, it was made on 01/02/2025, in CLP currency.

Secret Key: rk_live_β€’β€’β€’sdw7

The API's amount_captured field contains the value of 63198, but if we multiply 63198 by the day's CLP rate, which is 0.0062220, the result is 393. Dividing 393 by 100, the result is R$3.93. The correct would be R$ 393.21 BRL

I would like to suggest that, if sales are in CLP currency, add 00 to the end of the amount_captured field, this way it would be 6319800 / 0.0062220 = 39321

39321 / 100 = R$ 393.21 BRL

What are you working on?
Development

#

@hasty fog pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Does checkout session creation expect the `payment_method_types` parameter?

When creating a checkout session with only ['card'] for `payment_method_types`, I am able to pay with a card OR a US bank account. I would expect to only be allowed to pay with a card inside the checkout session.

Related Request ID(s)
req_eKXVfWo4EM6XXq

What have you already attempted?
I've tried various combinations of `payment_method_types`. If I explicitly provide only ['us_bank_account'], I am _not_ able to pay with a card (expected).

cursive heronBOT
#

@dusk sedge pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Do I need to change any UX on the client when using the new SetupIntent field allow_redisplay instead of just only `usage: "off_session"` to be compliant?

----

Reoening a thread to answer this question:

#1327337032711803064 message

As the other thread has been closed.

Related Request ID(s)
N/A

What have you already attempted?
N/A

cursive heronBOT
#

@quick gulch pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hi when submitting payouts on Stripe Connect what time can I expect funds to hit the merchants bank account?

Related Request ID(s)
none

What have you already attempted?
I dont see exact timelines in the docs

What are you working on?
Stripe Connect for vertical saas for restaurants

#

⛔️ Stripe developers aren't currently available on Discord

We're not around on weekends, holidays, and (rarely) other times, but we should be back during regular business hours! In the meantime you can contact Stripe support for help.

cursive heronBOT
#

βœ… Stripe developers are currently available on Discord!

#

@clear spear pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We may programatically cancel a payment intent (when using `manual` `capture_method`) when a payment is outside our risk profile, sometimes known fraud, sometimes just too risky.
If we cancel a payment intent with a cancellation_reason of `fraud`, will that have any other downstream impacts?
Would it be okay to always provide `fraud` in this case, or is it better to just not send a `cancellation_reason` unless we know for sure that it's fraud?

Doc/Guide Links
https://docs.stripe.com/api/payment_intents/cancel?api-version=2024-06-20

What are you working on?
A financial platform that people deposit money onto

cursive heronBOT
#

@round geyser pressed the πŸ“š Doc or Guide button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Link to the Doc/Guide in question
https://docs.stripe.com/payments/customer-balance/invoicing-migration

Question
We use stripe billing & invoicing. I'm looking into the ach_credit_transfer -> bank_transfer migration. The language in the doc implies that once we turn on bank transfers, it would cascade to existing customers (https://docs.stripe.com/payments/customer-balance/migrating-from-sources#credit-transfers-versus-bank-transfers as well). When I enable it in testing, it does not appear to be the case. Do we need to iterate over every customer with a source and convert them? Some of these customers have the source but not on the subscription. Is this needed as well Or is there an auto process when on

What have you already attempted?
I've followed the api guide here: https://docs.stripe.com/payments/customer-balance/invoicing-migration?dashboard-or-api=api

This lets met create an ach_credit_transfer invoice or subscription. I can create a new invoice for a customer and it updates their default source. But if i update an existing subscripiton, it does not update the source attached to the customer.

I can create new subscriptions and it updates the default source for the customer. Will we need to migrate all customers? The docs imply that's automated.

What are you working on?
Migrating our existing stripe billing customers with an ach_credit_transfer source.

cursive heronBOT
#

@uncut jacinth pressed the πŸͺ Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
we receive the invoice.paid webhook, but i find, in the conten of this webhook, the value of filed of the "payment_intent" is null. Now, i need the id of the "payment_intent" to refund.

Related Event ID(s)
evt_1QfULKIC1xDAOwlv7HHC0JPh

What have you already attempted?
no

cursive heronBOT
#

@magic cloud pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
Code is too large. I have a form for customer data. The cart_items have the order details. The form is based on livewire structure. I want to use payment elements which is using the Javascript from the stripe website. The submit button is not submitting.

Question
Building ecommerce shop. Livewire for front-end, using laravel cashier. Code I am using is not working.

What have you already attempted?
I am using the Javascript from the stripe website.i

What are you working on?
Building ecommerce shop. Livewire for front-end, using laravel cashier. Code I am using is not working.

cursive heronBOT
#

@halcyon scarab pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
i need to enrolled my customers in stripe to create accound because i need to payout them back that is the my use case how to achive this

Related Request ID(s)
NA

What have you already attempted?
tried checking doc not understood

What are you working on?
i was integrating strip to my application

#

@shut lotus pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hi, is there a way i can check if a customer has enough money in his account for a us to pay an invoice form API.

what i am trying to implement is, i have a system that connects a service provider to a customer, i am creating an inovoice for every service to e rendered when the customer looks for the service provider.
i want to confirm that the customer has enough money before i connect the service provider with the customer

Related Request ID(s)
none

What have you already attempted?
nothing

cursive heronBOT
#

@sullen willow pressed the πŸͺ Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I am unable to process the webhook

Related Event ID(s)
evt_3QgiaWCAkUDxAcxa16UUDs6V

What have you already attempted?
I have tried chatgpt and Cursor AI too, but not getting the webhook working

What are you working on?
I am working on an SAAS application

cursive heronBOT
#

@formal sphinx pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
import Stripe from 'stripe';

export default defineEventHandler(async (event) => {

const stripe = new Stripe\(process.env.STRIPE\_SECRET\_KEY, {
  apiVersion\: '2023\-08\-16'
}\)

const headers = event.node.req.headers;
const body = await readRawBody\(event\);
const sig = headers\["stripe\-signature"\];
let hookEvent;

const isDevMode = process.env.NODE\_ENV === 'development';
const endpoint\_secret = isDevMode ? 'endpoint\_secret

Question
Is there a way to get processed fees in stripe?

What have you already attempted?
Tweaking the code

What are you working on?
Researching

cursive heronBOT
#

@balmy pebble pressed the πŸͺ Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
In settings > billing > subscriptions and emails > manage disputed payments, there are 3 options for updating subscription status when a dispute is opened.

  1. Leave the subscription overdue
  2. Cancel the subscription at the end of the billing period
  3. Cancel the subscription immediately without prorating

1 works well for me, but I cannot get 2/3 to work. The settings for 2/3 also mention -> "Cancellation will only take effect if the opened dispute is for the full amount on a recurring card payment.".

When do 2/3 happen and what events do they trigger?

Related Event ID(s)
N/A

What have you already attempted?
I tried listening for `customer.subscription.updated` and `customer.subscription.deleted` after following these steps

  1. Create new subscription via checkout session and card "4242424242424242"
  2. As user, visit the customer portal and add card "4000000000000259" (to stimulate dispute) and remove existing card "4242424242424242"
  3. Advance subscription to next billing cycle with test clock
  4. Wait for webhook events (none received for subscription cancellation)

What are you working on?
Stripe integration to handle disputed payments and subscriptions.

cursive heronBOT
#

@halcyon scarab pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
def params = SessionCreateParams.builder()
.addPaymentMethodType(SessionCreateParams.PaymentMethodType.CARD)
.setMode(SessionCreateParams.Mode.PAYMENT)
.setSuccessUrl(successUrl)
.setCancelUrl(cancelUrl)
.addLineItem(lineItem)
.build()
def session = Session.create(params)

Question
here session is created and it has url for payment but here id is something like cs_test_a1PgIYeJibwIVdOhGDKgzvp48T83mvYrCH3q8i3Yu8Y7ViW7tXspOz1uJZ i didnt found payment intent id how to achive this using api how will i get payment id with this id

What have you already attempted?
tried reading doc not found the solution

What are you working on?
i was integrating strip to my application

cursive heronBOT
#

@stark atlas pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hello,
I'd like to try PayPal payment through the Stripe Checkout session.
I've found the test credit cards, but is there a test PayPal account to verify if it works properly?
Thanks for you help

Related Request ID(s)
Test payment method

What have you already attempted?
Check CB is ok, look for try paypal

#

@jade plinth pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
route("manage-subscription-link") {
post {
try {
val requestBody = call.receive<ManageSubscriptionLinkRequest>()

                // Retrieve org from DB
                val org = OrgDao.getById\(requestBody.orgId\)
                    ?\: throw IllegalArgumentException\("Org not found with ID\: ${requestBody.orgId}"\)


                val portalParams = BillingSessionCreateParams.builder\(\)
                    .s

Question
I need to 'update subscription' to show up in this page, or at least I need to know where else I can let the user change their amount of subscriptions for more than one product.

Having a link for each subscription would also work, just need a solution really

What have you already attempted?
I tried changing on the billing page configs. It only works when users have only one type of subscription, I need to do it when they have more than one. I see that in the docs limitations, but I wanted to work across it

#

@rare tartan pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
const initialOptions = {
mode: 'payment',
amount: totalPrice,
currency: this.currency,
paymentMethodTypes: ['card'],
}
if (this.usecase === 'membership') {
initialOptions.mode = 'setup'
initialOptions.setupFutureUsage = 'off_session'
initialOptions.paymentMethodCreation = 'manual'
}

Question
I tried to do subscription payment for google pay. But it requires me to have payment method id before getting clientSecret. so that's why I tried to setup and get payment method id before posting to subscription api. But I can't seem to make google pay button show when the mode is 'setup'. Is there any flow that I missed?

What have you already attempted?
Tried to change mode with setup, but it didnt work.

elements.on('confirm', async event => {
const { error: submitError } = await elements.submit()
if (submitError) {
console.log(submitError)
return
}

        // Create a Payment method
        const { error, paymentMethod } = await this.stripe.createPaymentMethod\({

it supposed to create payment method after confirmation.

What are you working on?
Subscription with google/apple pay express checkout element

#

@heavy warren pressed the πŸͺ Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
What is the best way to auto finalize an invoice that is generated when a trial subscription is created?

Currently in `invoice.created`, I check if an invoice has amount_due of $0 and immediately finalize it. But that doesn't work anymore with some new functionality I want to add.

It would be even better if I could prevent an invoice from creating from a trial subscription.

Related Event ID(s)
N/A

What have you already attempted?
Check if invoice amount_due is $0

What are you working on?
Marketplace Subscription Flow

#

@dire nymph pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Let's imagine a case, there is a modification of the subscription, the subscription is for 2 items, one of them is removed from it, and for the second item quantity is increased.

I would like the credits for the deleted item not to be returned, I would also like the item for which we increase the quantity to be charged immediately.

Is it possible to do it in one API request ( to generate only 1 invoice )?

Related Request ID(s)
-

What have you already attempted?
-

#

@halcyon scarab pressed the πŸ“š Doc or Guide button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Link to the Doc/Guide in question
https://docs.stripe.com/payments/accept-a-payment?platform=web&ui=elements

Question
"payment_method_types": [
"card",
"link",
"cashapp"
]

here its taking default only three option i need to enable all the avaible methods

What have you already attempted?
tried in code by removing paymentMEthod

What are you working on?
i was integrating strip to my application

cursive heronBOT
#

@stuck jasper pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Creating a stripe checkout session in nodejs using stripe.checkouts.session.create function. But the checkout window doesn't have google pay UPI or apple pay there. It's only accepting card. I can see that there's a payment_methods option available in API with the available option 'card', and I believe there should be more options there too. But, I can't find the actual value to put in there so that UPI payments can also be accepted within our checkout windows.

Related Request ID(s)
null

What have you already attempted?
UPI is already enabled in payment methods in Stripe dashboard. I think i need to add in a variable in my sessions.create parameters for UPI to work.

cursive heronBOT
#

@restive crest pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How can I capture the Stripe Processing fees of a payment?

Related Request ID(s)
pi_3QYAQdEmmAsNZVwX16D5egv6

What have you already attempted?
I have tried capturing the payment event and the invoice paid event but the fees are not in there

What are you working on?
It's a marketplace implementing stripe connect and my clients wants to charge the fees on the connected accounts, not on him.

#

@kindred bough pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
When we configure stripe in an application as a payment method, it's require card number , CVV code and expiry, if someone can bruteforce only card number is it a vulnerability?

Related Request ID(s)
Stripe

What have you already attempted?
I have tested in my application where i configure stripe and I can bruteforce all valid card numbers of debit and credit card, is it a security concerm or issue if attacker can only bruteforce number not CVV or expiry code.

What are you working on?
I am working on an applicatiom where we have implemented stripe for paymemt purpose

#

@rich badge pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hi, Im trying to get the Express checkout element to work with the Custom checkout beta (custom_checkout_beta_5)
I seem to fullfil all requirements but still don’t get any payment methods. The element iframe only renders some empty divs. The element ready event fires with availablePaymentMethods undefined and no loaderror event is fired.

Related Request ID(s)
Cant find a request id for checkout.createElement('expressCheckout')

What have you already attempted?
Ive completed Domain Registration and use HTTPS through ngrok, and my browser (Chrome) supports Google play on other sites. The normal payment element works as expected.

What are you working on?
Trying to implement a checkout page using the new Custom Elements checkout API

#

@balmy pebble pressed the πŸͺ Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Continuing discussion on my older thread that got closed.

> In settings > billing > subscriptions and emails > manage disputed payments, there are 3 options for updating subscription status when a dispute is opened.
> 1. Leave the subscription overdue
> 2. Cancel the subscription at the end of the billing period
> 3. Cancel the subscription immediately without prorating

> 1 works well for me, but I cannot get 2/3 to work. The settings for 2/3 also mention -> "Cancellation will only take effect if the opened dispute is for the full amount on a recurring card payment".

> When do 2/3 happen?

Related Event ID(s)
N/A

What have you already attempted?
I tried listening for `customer.subscription.updated` and `customer.subscription.deleted` after following these steps
Create new subscription via checkout session and card "4242424242424242"
As user, visit the customer portal and add card "4000000000000259" (to stimulate dispute) and remove existing card "4242424242424242"
Advance subscription to next billing cycle with test clock
Wait for webhook events (none received for subscription cancellation)

I have also confirmed that the new payment method `4000000000000259` gets set as default.

What are you working on?
Stripe integration to handle disputed payments and subscriptions.

#

@glossy leaf pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We appear to have an intermittent issue where requesting a payment intent doesn't include a payment_method id in the response after processing a successful payment

Related Request ID(s)
req_wfcvKkWwD1cSao

What have you already attempted?
99% of the time this is not an issue, however we're experiencing this a couple of times a day

What are you working on?
The payment and billing system for our customer acquisition pipeline (critical path!)

cursive heronBOT
#

@heavy warren pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I want to check if the invoice received in a `invoice.created` event is the invoice generated after a trial subscription ends.

Currently comparing if `trial_end` and `current_period_start` are equal.

Is there a better way to do this? Maybe some sort of index?

If not, are there any edge cases I should watch out for?

Doc/Guide Links
https://docs.stripe.com/api/invoices/object
https://docs.stripe.com/api/subscriptions/object

What are you working on?
Marketplace

cursive heronBOT
#

@vestal bough pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I'm trying to retrieve available balance for a Stripe Connect account, it is returning 0. However, when looking into the dashboard, I see that some funds should be available.

What causes this discrepancy?

Related Request ID(s)
Don't see the request in logs.

What have you already attempted?
Nothing, just simply calling the endpoint for multiple Connect accounts, all return 0, even if in dashboard it shows funds.

#

@ashen aspen pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I want to create an off_session payment intent but to create it before sending. Because i use the payment intent id in my code before i have to confirm the payment

Related Request ID(s)
req_mzFImzULYTkXOA

What have you already attempted?
PaymentIntentCreateParams params =
PaymentIntentCreateParams.builder()
.setCustomer(method.getCustomerId())
.setPaymentMethod(method.getDefaultPaymentMethodId())
.setAmount(netToPay.multiply(BigDecimal.valueOf(100)).longValue())
.setCurrency(PaymentProcessorEnum.STRIPE.getCurrency())
.setOffSession(true)
.setConfirm(true) //t

What are you working on?
Make a backend payment

cursive heronBOT
#

@topaz garden pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
When creating an subscription it creates an invoice linked to that

I'm using send_invoice as the method

What is the correct process for adding a subscription item to the existing subscription then getting an up to date invoice for both items

Currently I'm adding the subscription item and see 2 items against the subscription but it doesn't update the linked invoice even though it isn't finalised

I've seen that I can call create invoice and pass the subscription but this gave me a blank invoice

Related Request ID(s)
NONE

What have you already attempted?
Above

What are you working on?
Invoicing Edit Screen with Mix of One time and Recurring

#

@river pivot pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hey! I'd like to offer more a longer retention period for our customers against payment, and I plan on letting the user decide how how many days/months. I thought or something like a slider or similar.

How should I set that price up? Tiered? Or is there a better way to do dynamic pricing for this sort of product?

Doc/Guide Links
https://docs.stripe.com/products-prices/pricing-models?locale=en-GB

What are you working on?
SaaS for uploading media files and monitoring players in game servers. fivemanage.com

cursive heronBOT
#

@hexed wagon pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
What are the best practices to implement Stripe for multiple tenants with different bank accounts to pay out to?

Doc/Guide Links
I don't have any doc/guide links yet

What are you working on?
Ticketing tool

#

@spring stump pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
await stripe.subscriptions.cancel(subscriptionId, {
invoice_now: false,
prorate: false,
});

      // Issue the refund
      const refund = await stripe.refunds.create\({
        charge\: chargeId,
        amount\: amount,
      }\);

Question
Here i want to refund amount only when its not revered. Here i am ending up refunding the amount event subscription is cancelled. Its happening when i cancelling subscription immediatly.

What have you already attempted?
I didnt find any solution which says that charge is reversed so do not create refund.

#

@vivid burrow pressed the 🀨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
Can you help diagnose inconsistent behavior in stripe account related to 3ds and expiring subscriptions?
In case 1: customer subscription status changed to expired_incomplete after 23 hours of not authenticating there payment
In case 2: customer subscription status changed to past_due and is retrying payment

I expect these to be the same

What actually happened?
evt_1QfPJLDKXn4ivDe3BBTGh7ic, evt_1Qc5wkCPHmUYMa5NVeKTcLD

These are different stripe accounts, one is a connected account

Reproduction Steps
Use 3ds card, buy a subscription, do NOT authenticate the payment, wait 23 hours

Question
Why is the behavior of not authenticating the 3ds payment have different results in these two accounts? Is it related to a billing setting or something else?

What are you working on?
Successfully reporting on when the expired_incomplete status changes in our DB

#

@topaz garden pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I previously contacted about the correct method of regenerating an invoice for a subscription after an item has been added to it

I was told to use billing_cycle_anchor and reset it to now

This has worked but I cannot delete the previous invoice or void it

So I end up with a draft invoice with the first subscription item on it and another invoice that is up to date with all subscription items on it.

How can I get rid of these old invoices?

Related Request ID(s)
NA

What have you already attempted?
Above

#

@plain mulch pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Best practices around handling multiple products from the same page.

Doc/Guide Links
https://docs.stripe.com/payments/checkout/custom-shipping-options

What are you working on?
I have multiple products that I'd like to handle through Stripe: physical products shipped both domestically and internationally, digital downloads, and PWYW digital downloads.

#

@onyx mantle pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Is it possible to apply usage credits directly to an invoice? Our pricing model gives users a varying amount of free usage per month, and we want to make sure it gets applied monthly and doesn't roll over. From what it looks like you can't directly apply credits towards a particular bill?

Related Request ID(s)
None

What have you already attempted?
Poking around in test mode, not getting a great dx around these credit grants

#

@dreamy inlet pressed the πŸͺ Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I try to disable transfers on a Stripe Connect account by disabling payments as I was told to do so in a previous thread.

However when I disable payments
- a first account.updated event is sent with the transfer capability set to "inactive" (which is what I expect)
- a few seconds later, a second account.updated event is sent and this time the transfer capability is enabled.

The second event is sent without me touching anything.

Also, when I check the dashboard of the connected account, the transfers are still marked as inactive.

Related Event ID(s)
https://dashboard.stripe.com/acct_1QgoA9Qco2XcrP2n/test/events

What have you already attempted?
For now nothing as it is an unexpected behaviour.

What are you working on?
An affiliation platform

#

@crisp anchor pressed the ❌ An Error button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Error Message
Los cargos y transferencias estΓ‘n suspendidos

Question
I've been having this problem for almost 3 months. I already sent the information they requested and everything else and it continues to give me problems.. I need fix it

What have you already attempted?
I've been having this problem for almost 3 months. I already sent the information they requested and everything else and it continues to give me problems.

What are you working on?
Freelance

cursive heronBOT
#

@lyric cedar pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I'm currently building out a solution that would refund all the charges associated with a lease. Some of these charges can be as old as 2 years so I wonder is there any limits imposed by Stripe itself for the maximum age of a transaction that can be refunded? I saw 90 days being mentioned somewhere, but I was able to refund tx older than 400 days in test mode

Related Request ID(s)
-

What have you already attempted?
-

What are you working on?
Fintech LTO

#

@vocal stump pressed the πŸͺ Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Which event should I listen to in order to determine if a Connected account has a negative balance?

Related Event ID(s)
n/a

What have you already attempted?
I've not tried anything yet because I don't know which event to use. Docs say " This event is not fired for negative transactions." for balance.updated, so I'm not sure I can use that one.

What are you working on?
Warning users on our end, that their Stripe account has negative balance

#

@fair pebble pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I'm adding a fixed fee and and overage model, but I think it looks confusing on checkout and on the invoice. I'd much rather have the items have different names, which is not possible with the proposed solution in the docs(?). I.e., the fixed fee should be named "Business plan (subscription fee)" and "Business plan (additional usage)". That could be done with two products with a single price each, and both added to the same subscription. But I'm not sure if there's a downside to doing this, that might hit me later?

Doc/Guide Links
https://docs.stripe.com/billing/subscriptions/usage-based/pricing-models#fixed-fee-overage

What are you working on?
Adding multiple prices

#

@fervent brook pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hey! Guys, could you tell me please, how can I add to Stripe Elements from react-stripe-js Tax Id Field to collect tax id user information?
Or if there is no such fields, is it possible to add to the stripe elements a custom field?
Thanks a lot!

Related Request ID(s)
-

What have you already attempted?
Checked API Docs but found nothing

What are you working on?
Billing service

#

@golden spade pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I'm trying to use the upcoming invoice feature to generate a shopping cart preview page and show discounts. Even though my promotion code only applies to one product, I'm still getting `invoice.lines.discountable = True` on the line associated with the price/product that the promotion code does NOT apply to.

Related Request ID(s)
req_Z8FXQRSWzC2Ji8 req_0nlr32Qj1tsN8K

What have you already attempted?
Reviewing API responses.

What are you working on?
Checkout flow for SaaS

#

@summer mural pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
My customer wants to use Stripe just to validate credit card numbers, not to proceed with payment. Is this possible with Stripe PHP SDK? I looked all around the documentation but the only thing I found was creating a single-use card token and, if it fails, check the error to see if the credit card is invalid (in case this endpoint returns such errors)

Doc/Guide Links
https://docs.stripe.com/api/tokens/create_card

What are you working on?
Validating credit cards via Stripe

cursive heronBOT
#

@grave vine pressed the πŸ“š Doc or Guide button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Link to the Doc/Guide in question
https://dashboard.stripe.com/settings/payment_methods

Question
Hi!

I wanted to try to integrate Pay with Crypto and the doc says it needs to enable first in payment method settings, but I cannot find the crypto

What have you already attempted?
read the docs and searched the enable crypto

What are you working on?
integrate crypto pay to checkout & api

#

@open jackal pressed the πŸ“š Doc or Guide button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Link to the Doc/Guide in question
https://docs.stripe.com/api/invoices/object

Question
When an invoice is created manually, is the period of the invoice be the aggregate of the line items?
ie period_start be the min of all line item periods and period_end be the max of all line item periods?

Or is the period of the invoice be directly related to the last line item?

What have you already attempted?
N/A

cursive heronBOT
#

@vestal bough pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Is it possible to retrieve filtered accounts?

Similar to what the dashboard has - filter by enabled/completed accounts.

Related Request ID(s)
None

What have you already attempted?
I tried to search the Stripe Docs, but only find a simple find all, as far as I can see, there is no search endpoint.

#

@topaz garden pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hi

Your node js documentation for subscriptionItems delete seems to mention a parameter for proration_behavior but doesn't seem to offer any actual interface for it

https://docs.stripe.com/api/subscription_items/delete?lang=node

Related Request ID(s)
NA

What have you already attempted?
I've come here as I need to be able to remove a subscription item from a subscription without causing prorations on the next invoice that gets generated

I'm generating the next invoice by reseting the billing anchor

#

@soft gate pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
I try to setting up Strip Payment Element.

How Can I hide optional field during payment ?

Question
I try to setting up Strip Payment Element.

How Can I hide optional field during payment ?

What have you already attempted?
Having solution.

#

@tiny jewel pressed the πŸ“š Doc or Guide button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Link to the Doc/Guide in question
https://docs.stripe.com/payments/bank-transfers

Question
How to collect bank details from customer & send a payment to user from my top-up balance?

What have you already attempted?
$token = $this->client->tokens->create([
'bank_account' => [
'country' => 'GB',
'currency' => 'gbp',
'account_holder_name' => 'Jenny Rosen',
'account_holder_type' => 'individual',
'account_number' => '00012345',
'routing_number' => '108800', // Adding sort_code for GB accounts
],
'usage' => 'source' // Adding this parameter
]);

#

@rigid flame pressed the πŸͺ Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hey team, what webhook events can I expect in the flow for partial authorizations? https://docs.stripe.com/payments/partial-authorization

Will the webhooks just be the same as those for normal auths except the Charge object will contain the extra `payment_method_details.card.partial_authorization` object? Or will there be any distinctions in the sequence of webhook events for partial auths compared to normal auths?

Related Event ID(s)
n/a

What have you already attempted?
n/a

What are you working on?
We are working on implementing partial authorizations in our card payment flow in an attempt to minimize NSF declines to comply with CFPB rules. We're still working on getting partial auths enabled fo

cursive heronBOT
#

@normal solar pressed the ❌ An Error button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Error Message
We've seen an uptick in card issuers declining cards due to the following error:

Stripe: card error: invalid_address_line - decline code: do_not_honor for null with param card[address_line]

Question
This error started occurring on Jan 7. Was there a change to how Stripe provides the address to card issuers for validation? Customers mention the address is accurate but we continue to see the card issuer state the address is incorrect.

What have you already attempted?
We are early in the troubleshooting process so we haven't tried much.

cursive heronBOT
#

@verbal sorrel pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
My client takes payments and donations. Funds need to be transferred to different bank accounts based on the location where the service took place. Please clarify the best practice for enabling this structure. The same web team will be overseeing payments to all locations. Do we need separate accounts for each bank account?

Doc/Guide Links
https://docs.stripe.com/get-started/account/multiple-accounts

What are you working on?
Website that takes donations and payments for services rendered

cursive heronBOT
#

@tropic tulip pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
// Create the Stripe checkout session
const session = await stripe.checkout.sessions.create({
success_url: `${CLIENT_URL}?success=true`,
cancel_url: `${CLIENT_URL}?canceled=true`,
line_items: lineItems,
mode: "payment",
phone_number_collection: {
enabled: true,
},
billing_address_collection: "required",
shipping_address_collection: {
allowed_countries: ["NO"], // Norway only
},
shipping_option

Question
Im coding a project for a bakery delivering bread. and i need to be able to set what zip codes i deliver to. When i customer adds their adress or zip code i can make the input not valid. how can i do this? and i also dont want it to denny a order with the wrong zip number if they have selected pickup

What have you already attempted?
crrently i have tried to do the checking and response to he zip code being valid or not in the frontent before you get to the checkout. but this doesnt stop anyone from ordering to the wrong zip number in the backend

What are you working on?
a wesite for a bakery where you can order bread and chose pickup or delivery

#

@latent tinsel pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
stripe.Customer.modify() us bank account, previosly confirmed by confirmUsBankAccountSetup()

Related Request ID(s)
req_azyYggCDkcMx07

What have you already attempted?
seems the issue is because account is not verified?

cursive heronBOT
#

@cedar kettle pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I was wondering I have created meter with the new API, then a new price, how can I attach them together?

Related Request ID(s)
Null

What have you already attempted?
I have created a meter.
Then a price.
Then I put the price in a subscription, when I open the dashboard the price is default ticked "old usage record" which is confusing to me...

What are you working on?
Trying to create a subscription with a price that has meter usage on it with the v2 api

#

@hoary scroll pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
Will be attached below

Question
How come, for the same scenario in my test and prod environment, different instances occur. In test, the user is immediately charged the price difference. In prod, the user is credited but is not charged (billing period stays the same). This is both going from a monthly -> quarterly cadence

What have you already attempted?
Code attached below. It works perfectly in dev, but behaves differently in prod

#

@topaz garden pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hi

When creating a subscription is it possible to not have it become active until the due date

I can see a days_until_due feature but that only seems to be for the invoice generated by the subscription

Related Request ID(s)
NA

What have you already attempted?
I'm looking at subscription schedules as I couldn't seem to figure it out from standard subscriptions

#

@candid cargo pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
What is the most reliable way to determine when an invoice is delinquent (past due, unpaid, etc)? For subscriptions I check the status which has more specific types, whereas invoices I see can be "Open" but not necessarily be past due.

I believe I could figure it out by checking the `attempted` field, and then check `amount_remaining` for a greater than 0 amount. I'm wondering if I'm over-complicating it.

Doc/Guide Links
https://docs.stripe.com/invoicing/overview#workflow-overview

https://docs.stripe.com/api/invoices/object

What are you working on?
Displaying a banner to our users when they have any delinquent invoices. (From subscriptions or one-off payments)

#

@somber forge pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We’re launching sales tax handling for our communications services using Avalara. By default, the invoices generated and shared with customers display a detailed tax breakout, including the tax rate percentage applied (e.g., β€œExcise Tax (2.5%)”).

Since communications taxes are highly complex, including the rate can lead to confusion for customers. We would prefer that invoices omit the tax rate and only display the name of the tax (e.g., β€œExcise Tax”).

Is there a way to make this change in Stripe? If so, could you provide guidance on how to configure invoices to remove the tax rate %?

Related Request ID(s)
None at the moment

What have you already attempted?
We’ve reviewed Stripe's documentation and settings related to invoice customization but haven’t found a clear way to suppress the tax rate percentage. We’ve also consulted our development team, but this specific requirement isn’t immediately clear from the resources available.

What are you working on?
We’re implementing Avalara for communications tax compliance to manage the complexity of calculating and remitting taxes for our services.

#

@light jacinth pressed the πŸͺ Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I have two problems:

  1. I want to expand the webhook setup_intent.succeeded to give me the payment_method information with the payment method.
  2. Also all payment methods seem to show themseleves as link which is problematic because in my service I store the payment method id's for later to charge customers on the correct payment methods when payment is due. So I would like to store in my DB a name that is relevant to said payment method other than "Link"

Related Event ID(s)
setup_intent.succeeded

What have you already attempted?
I have already split the webhook into two where the webhook is sent and then I fetch additional information from stripe, but I would prefer if it came all in 1 message. I do not want to have stripe send me a message then query you guys again and incur 2x the API calls and latency.

cursive heronBOT
#

@cedar kettle pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Is the meter updated after a while on the subscription about usage or it takes a while?

Related Request ID(s)
Null

What have you already attempted?
I have made a subscription with a price that has a meter usage on it per unit. I have increase the unit by 1 and on the subscription the quantity for that price stays 0.

What are you working on?
Trying to make a subscription to have a usage price of meter

#

@heady flax pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We are trying to implement a flow where, upon payment, we put a hold on the user's card and capture the amount after we deliver the service. We also need to maintain tax (VAT) information for the payment and ideally line items or a description of the product sold.

Is there a way to put a hold on someone's card and send a TAX receipt without creating a custom Payment Intent and an Invoice that then get manually paid or cancelled?

Related Request ID(s)
req_ATeGyadxzgBtZi, req_s3h5Fs0UtZoZg2, req_sGanUMuztPlpxg

What have you already attempted?
- We tried to modify the Payment Intent attached to the Invoice, but this does not work, because the `capture-method` property of the Payment Intent is locked by the Invoice (API Error).
- We tried to generate a new Invoice and attach an existing Payment Intent that we create, which is also not possible in the current API.
- We mainly use invoices for tax information, so we attempted to attach tax information directly on the Payment Intent, but were unsuccessful. This feature (https://docs.stripe.com/tax/payment_intent) would help, but it doesn't seem to exist in the API.

What are you working on?
A payment system that sells tickets for buses.

#

@eternal nimbus pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hello, I'm trying to introduce promo codes into my Flutter web apps that should be put in a textField during the checkout session. I am wondering if it's possible and how to properly send the discount code trough Firebase Database to the customer profile inside Stripe.

Related Request ID(s)
req_O72oKs5qMBiAOs

What have you already attempted?
onPressed: _productId.isEmpty
? null
: () async {
setState(() {
pressedNext = true;
});
final price = await FirebaseFirestore
.instance
.collection('products')
.doc(_productId)
.collection('

What are you working on?
Promo codes in Flutter Web checkout

#

@shut steeple pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I'm trying to bill my user off session, i have inserted a rul on a specific metdata to bypass radar, but the outcame say Stripe blocked this payment as too risky. and i cannot try to bill the user

Related Request ID(s)
ch_3QgitCG0HkO3ZPnp0aPLC7Z3

What have you already attempted?
Try to increase radar rule and add the user to allow list, wait 24 hour before retry

What are you working on?
Simply bill my customer

cursive heronBOT
#

@prisma temple pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
$session = $this->instance->checkout->sessions->create([
'payment_method_types' => ['card'],
'line_items' => [[
'price' => $data['price'],
'quantity' => 1,
]],
'mode' => 'subscription',
'success_url' => 'https://app.relead.com.br/',
'customer' => $data['customerId'],
]);

Question
Hello, I am creating a payment session and directing my customer to the Stripe link, how can I insert a fee in the first installment of a subscription?

What have you already attempted?
Setting prices on the product

#

@austere portal pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
paymentRequest.on('shippingaddresschange') fires but expressCheckoutElement.on('shippingaddresschange) does not

Question
We are trying to upgrade from Payment Request to Express Checkout, however the shippingaddresschange event does not seem to fire in the same way on Express checkout. We use the shipping address change to dynamically update our shipping and tax calculation and then update our cart with new pricing. With the Payment Request, this worked and the Apple Pay or Google Pay payment screen updated with revised values.

With Express Checkout, it is not working in the same way.

What have you already attempted?
We've been following the migration guide that Stripe provides, although we didn't see anything documented about this difference. We've outputted the event calls to the console and can see the behavior between the two elements is different.

What are you working on?
We operate a funnel / landing page builder and checkout solution for direct to consumer brands.

#

@sacred gorge pressed the πŸͺ Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I am wondering what you can do when an invoice is in draft state? We would like to run a balance check on the user's account right after a trial ends to see if they have the balance to pay for the subscription via ach. I am wondering if we can use the invoice.created event. We would perhaps like to change the billing anchor if it appears the user doesnt have enough to pay for the subscription

Related Event ID(s)
n/a

What have you already attempted?
we currently just have a job that looks at all trialing subscribers

cursive heronBOT
#

@wind sparrow pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Is it possible to trigger an event when a subscription expires and after a specific time an another event is trigger to signal that the service should be cancelled

Doc/Guide Links
https://docs.stripe.com/billing/subscriptions/billing-cycle

What are you working on?
On a discord bot that adds roles to customers and removes them when they stop renewing theyre subscription

#

@tender pawn pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I'm creating pending invoice items, and then creating an invoice for a subscription and expecting that these invoices are finalized into a single invoice. The invoices aren't being combined and I'm ending up with a Draft invoice.

Related Request ID(s)
9BA6C037-DRAFT, 9BA6C037-0001

What have you already attempted?
I've made several attempts at finding a solution for:
1) generate several invoice items
2) create a new subscription
3) pay everything together in a single invoice.

What are you working on?
Premium Video Purchase + Subscription

#

@balmy pebble pressed the πŸ“š Doc or Guide button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Link to the Doc/Guide in question
https://docs.stripe.com/billing/subscriptions/upgrade-downgrade#handling-zero-amount-prices-and-quantities

Question
What does this section mean in the doc above
> If you’ve subscribed a customer to a price with a non-zero amount and a zero-amount quantity, changing the quantity to a non-zero amount does not generate an invoice or reset the billing period.

If a customer downgrades a subscription plan from price-A to price-B will it always generate an invoice and an `invoice.payment_succeeded` event with `billing_reason` of `subscription_update`?

What have you already attempted?
N/A

What are you working on?
Stripe integration to handle subscription upgrades/downgrades.

#

@limpid scaffold pressed the πŸͺ Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
What's default webhooks timeout? E.g. how many seconds would webhook request wait until deciding that request was `timed out`?

Related Event ID(s)
wc_1Qgv0JJbrk1nz30VWXuoDHWJ

What have you already attempted?
Checked docs, didn't find the information

cursive heronBOT
#

@stiff iron pressed the 🀨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
We expected somebody to call us

What actually happened?
They didnt call

Reproduction Steps
I need help and nobady is answering

Question
I need help with adress verifocation

cursive heronBOT
#

@weary crescent pressed the πŸ“š Doc or Guide button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Link to the Doc/Guide in question
https://support.stripe.com/questions/enable-apple-pay-on-your-stripe-account

Question
I'm trying to test apple pay integration with PaymentElement (loaded within Elements instance). I've registered the domain (monkeytest3.com, our nonprod dev domain) in the dashboard under the platform account and specific USD account for the locale I'm testing, but it's not appearing at checkout using Safari. The dashboard no longer prompts to host a file under /.well-known under my domain, is this still required?

What have you already attempted?
- Dashboard says my domain is apple pay enabled already
- Safari Version 18.1.1
- Using react stripe 3.0.0, stripe js 5.2.0
- Domain ID here if it helps: pmd_1QfpwqAuBotMkyCiY4C4tXWF

What are you working on?
enabling apple pay for checkout in PaymentElement

cursive heronBOT
#

@mortal epoch pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I'm trying to enable wallets through Payment Element however for Google Pay when I select the wallet it automatically displays the Google Pay pop up modal. Is there a way to stop this from occurring on click and to trigger it manually through my own button for example when the customer clicks on the Pay button?

Related Request ID(s)
N/A

What have you already attempted?
I've set the wallets to display as 'auto' but don't see any other options to stop the modals from opening automatically

cursive heronBOT
#

@noble kettle pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Is there a way to group multiple Stripe API requests together in a way that if any of the grouped requests fail, they're all rolled-back? Similar to a database transaction where you can "commit" at the end of the the last statement. For example, if I want to create a credit note, create an invoice, pay the invoice but payment is declined, is it possible to reverse the credit note and invoice? Alternatively I know I can write code that would check for an existing credit note/invoice before generating a new one.

Related Request ID(s)
N/A

What have you already attempted?
Read thru idempotency keys docs & blog post, but this seems to be per-request.

What are you working on?
Custom billing solution

#

@dreamy terrace pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I am looking to integrate card payments into the treasury product.

Currently, I am creating a payment intent for the amount we would like to charge and providing the relevant Stripe Connect account ID. I can then see the payment intents within the dashboard under the provided account (as expected).

My issue is that I am unable to load the Stripe hosted UI since the public key I am using is associated with our platform Stripe account and not the Connect account. How would I go about collecting card payments here?

Related Request ID(s)
N/A

What have you already attempted?
See above. I am able to create payment intents but not load the hosted UI since they are mapped to a different account (Connect account).

cursive heronBOT
#

@hybrid zenith pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We would like to sunset a subscription offering (already on Stripe) and migrate all existing customers on that subscription to a new subscription with a discount applied (also on Stripe). Since the subscriptions all have different start/end dates, what's the best way for us to do this in bulk?

Doc/Guide Links
https://docs.stripe.com/billing/subscriptions/migrate-subscriptions

What are you working on?
We are a SaaS platform for digital business cards.

#

@dawn goblet pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
unset( $args['customer_email'], $args['customer_name'], $args['customer_address'] );

		$this\-\>intent = PaymentIntent\:\:create\( $args, Helpers\:\:get\_auth\_opts\(\)\);

		if \( ! in\_array\( $this\-\>intent\-\>status, \[ 'succeeded', 'requires\_action', 'requires\_confirmation' \], true \) \) {
			$this\-\>error = esc\_html\_\_\( 'Stripe payment stopped. Invalid PaymentIntent status.', 'wpforms\-lite' \);

			return;
		}

		if \( $this\-\>intent\-\>status === 'succeeded' \) {
			return;
		}

Question
I am trying to apply direct charges in this code. To do this, I need to pass ['stripe_account' => '{{CONNECTED_ACCOUNT_ID}}'] when the payment intent is created.

What have you already attempted?
I am currently trying to follow this documentation. I am a .NET developer and have successfully achieved this in C#, but my skills in PHP are limited.

I am currently using WordPress/WooCommerce to build this project. I have successfully set up the connection between my WordPress site and Stripe, but they do not have a function for separate charges in WooCommerce/WordPress.

What are you working on?
I will be providing websites to my clients. Each client will have an Express connected account to receive payments, and I will be charging commission on orders

cursive heronBOT
#

@austere portal pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
paymentRequest.on('shippingaddresschange') fires async but expressCheckoutElement.on('shippingaddresschange) seemingly does not fire async

Question
We are trying to upgrade from Payment Request to Express Checkout, however the shippingaddresschange event does not seem to fire in the same way on Express checkout. We use the shipping address change to dynamically update our shipping and tax calculation and then update our cart with new pricing. With the Payment Request, this worked and the Apple Pay or Google Pay payment screen updated with revised values.

With Express Checkout, it is not working in the same way async CB

What have you already attempted?
We've been following the migration guide that Stripe provides, although we didn't see anything documented about this difference. We've outputted the event calls to the console and can see the behavior between the two elements is different.

Apologies for not responding earlier, apparently notifications were disabled on my browser and I didn't see the response. You asked if it is not working at all -- and it seems like the problem is when the callback is async, it doesnt await

What are you working on?
We operate a funnel / landing page builder and checkout solution for direct to consumer brands.

#

@rigid flame pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
When using partial authorizations, what are the valid ways that the partial authorization status can be `not_requested`?

Is that exclusively used to indicate that our API request didn't provide the `request_partial_authorization` parameter? Or is that status somehow related to how the issuer handled the request?

Related Request ID(s)
n/a

What have you already attempted?
https://docs.stripe.com/payments/partial-authorization#verify-partial-authorization-status

cursive heronBOT
#

@near peak pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Is there the ability to add BPAY or Direct Credit bank details on the invoices feature in Stripe?

Related Request ID(s)
Not sure what this means?

What have you already attempted?
I spent quite a bit of time reading articles on Stripe, so i'm fairly sure what i'm asking can't be done, but i thought id try here as a last resort :)

What are you working on?
I'm interested in transferring our current invoicing to Stripe, as it seems so much simpler than our current process.

cursive heronBOT
cursive heronBOT
#

@latent tinsel pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
stripe.PaymentMethod.modify() call against token="ba_1Qh0AXAZsVWZrzM8PJ3SJlmx"

error:
PaymentMethods of type us_bank_account cannot be updated at this time

Related Request ID(s)
req_Do0uYwAJMuGV6j

What have you already attempted?
N/A

cursive heronBOT
#

@mortal epoch pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I'm looking for some documentation on how to process Wallet payment methods (Apple pay/Google pay) through the Payment Element. Especially how it differs from regular card payments when accepting the payment

Related Request ID(s)
N/A

What have you already attempted?
N/A

cursive heronBOT
#

@urban burrow pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
When creating a checkout session mode = 'setup' I want to set that payment method that the user added as a default payment. Without using a webhook

Question
When creating a checkout session mode = 'setup' I want to set that payment method that the user added as a default payment. Without using a webhook. I want to use that card to charge an existing subscription but it won't do it because it is not set as a default payment method.

What have you already attempted?
I have tried using other parameters to set it like payment behaviour, and card settings to set as default payment but since the mode is 'setup' it won't allow it

What are you working on?
reverse free trial. User will have a stripe subscription when the object is created

cursive heronBOT
#

@scenic dove pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Is it possible to get tax to be shown on Stripe receipts when using the Tax Calculations API? With Stripe Checkout, the receipt will contain the tax, but with the Tax Calculations API, it is just a gross amount not stating tax.

Related Request ID(s)
with tax calculation api: pi_3QgVSCBQHBiilAQ42W3mOHle, with stripe checkout: pi_3Pqz5WBQHBiilAQ42nKIONXT

What have you already attempted?
We have a fully working tax calculation setup, but are running into this issue. I already read these docs but can't find the answer https://docs.stripe.com/tax/custom#tax-transaction

What are you working on?
Checkout Page, no-code checkout page builder to sell event tickets, digital products and subscriptions

#

@muted kernel pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
My customer subscribes to multiple items in a single subscription. Both items are of monthly subscription type. Now the customer wants to update their yearly subscription to include one item. However, I am encountering an error with Stripe regarding the different billing intervals.

Related Request ID(s)
req_mMs2NHD3gT8f9i

What have you already attempted?
I first try to unsubscribe from the second item that the user doesn't want to update. Then, I update the subscription of the first item to yearly. But it's not working. The solution someone suggests is to create different subscriptions for different ends. But this is difficult for the admin and user to manage which user subscribes which item.

cursive heronBOT
#

@cobalt mist pressed the πŸ“š Doc or Guide button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Link to the Doc/Guide in question
https://dashboard.stripe.com/test/products?active=true

Question
can we add more than one products in cross sells in a product?

What have you already attempted?
I have created product and have added another product in cross sells. but unable to add few more products.

I'm trying to create add-on kind of on stripe payment link.

cursive heronBOT
#

@candid stirrup pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I am using a test key with one of stripe’s test cards for a payout and it says β€˜Cannot create payouts’

Related Request ID(s)
req_2qUIjX3X9UmTFR

What have you already attempted?
I don’t know what I could try to be honest, it should work it’s a sandbox

What are you working on?
Work

#

@obsidian dove pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I'm wondering if there is a standardized or publicly available way of determining what has changed in a subscription upon receiving a `customer.subscription.updated` event? I see in the dashboard that the event summaries are informative e.g. `Customer upgraded from price {price} to price {price}` and I'm looking for a way to better serialize/organize subscription changes in our handler since we have application logic for a variety of subscription changes. I see in the events there is a `previous_attributes` object but it is not serialized in the stripe java SDK as far as I can tell.

Related Request ID(s)
NA

What have you already attempted?
Checked forum posts and docs for more info on `previous_attributes` object. Checked Stripe Java SDK docs for info as well

#

@lime bear pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We are moving from stripe.js terminal reader communications to server-driven. My front-end engineer says that the js sdk was able to wake up a reader that was idle when initiating transaction, but we find that the server-driven request errors out with terminal_reader_offline. This means the merchant would first have to wake up the reader every time they want to do a transaction, which is annoying. Please advise.

Related Request ID(s)
req_AHgOhYewqssZPi

What have you already attempted?
Implemented server-side logic to do card-present transactions.

What are you working on?
Merchants accepting card-present transactions.

#

@grave heart pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
<LinkAuthenticationElement
id="link-authentication-element"
onChange={handleLinkAuthenticationChange}
options={{
defaultValues: {
email: email
}
}}
/>

Question
Hi, I am using Stripe Link element along with stripe payment element - setup intent mode. The Link element behaves fine, however, it works differently for an existing Link account and a newly added Link account

What have you already attempted?
We tried in various scenarios and couldn't figure out if it's expected behavious or if we can do something about it

What are you working on?
Implementing stripe payment element to save payment methods for future payment

cursive heronBOT
#

@surreal vigil pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
\Stripe\PaymentMethod::all([
'type' => 'klarna', // Check for Klarna specifically
'customer' => null, // Omit if for general availability
'expand' => [],
]);

Question
Hi, obviously the above code is not working :)
But can I get if a specific payment method type is available in a stripe account ?
thanks

What have you already attempted?
I could not find any info on this in the docs.

What are you working on?
I am doing an integration with different stripe accounts, and in order to add the payment method types I would like to know if they are available in the account

#

@hollow niche pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Is there a limit to how many customers the api can fetch

Related Request ID(s)
?

What have you already attempted?
?

What are you working on?
im trying to make a command that fetches a emails data but its only fetching 28

cursive heronBOT
#

@random bear pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Is it possible to charge an application fee before payout a connected account?

Related Request ID(s)
nope

What have you already attempted?
I just transfer manually the fee to the main stripe account.

What are you working on?
Marketplace with an application fee for the buyer and seller

cursive heronBOT
#

@summer mural pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
$stripe = new StripeClient($this->settings->key());

$session = $stripe->checkout->sessions->create([...]);

Question
Is it possible to initialize the Checkout form with the email pre-filled? I've already registered the customer on my system so I already know that field value

What have you already attempted?
Tried with properties like `email` or `customer_email` but it says `Received unknown parameter`

What are you working on?
Integrating Checkout (Stripe-hosted page) into our bookings system

cursive heronBOT
#

@deep sand pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
So i build an app with oauth im adding authorization url from my frontend im giving the permission and generating the token in my backend part im handling all of these related to products api and files api and also im sending the oauth url a scope of read_write also in console getting scope stripe_app everything is correct im fetching the details from the stripe dashboard but im not getting the price in my frontend ui im getting image product name description but not getting the price and also when i cteate a product in my frontend it ask me for read_write permission and my api not worked

Related Request ID(s)
Look in dashboard

What have you already attempted?
I read the docs from stripe and did what the doc says just stuck in price is there any read write permission for price i wanna know

What are you working on?
Im making a stripe store

cursive heronBOT
#

@quartz quarry pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
is there a possible way to retreive iban put by the client during the subscription to a product starting from get chekout session

Related Request ID(s)
IBAN

What have you already attempted?
i tried getting it by cutomer id and i can't figure out how

What are you working on?
a small app to sell a product

#

@molten rock pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I want to make pricings groups for my custom account on my platform.

But my problem is my connected accounts are controller.fees = custom

But i want application to make pricing groups work.

https://docs.stripe.com/connect/migrate-to-controller-properties

Related Request ID(s)
-

What have you already attempted?
But how i can migrate my connected accounts ?

cursive heronBOT
#

@arctic carbon pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hello! We are currently setting up multiple level of subscriptions to our application. We would like to have monthly, yearly and lifetime subscription. We set up 2 products - one with recurring prices (monthly and yearly) and another product for lifetime - not recurring. However, while testing integration with our backend I found few issues.
When I create a payment link and test the lifetime product - no invoice is created, only payment, is this correct?
When I create payment link and create a monthly subscription and then with the same email and payment link I create yearly subscription it creates a new customer and new subscription. Should it link to same customer or no?

Doc/Guide Links
https://docs.stripe.com/billing/subscriptions/overview

What are you working on?
Subscription integration

#

@warm aurora pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I have created a customer via POSTMAN using POST /v1/customers. I see this customer in my dashboard, so that works fine.

After this I created a SetupIntent via POST /v1/setup_intents. In my setup intent I added
- payment_method_types[] = sepa_debit
- payment_method_data[type] = sepa_debit
- payment_method_data[sepa_debit][iban] = NL*******
- payment_method_data[billing_details][name] = Name
- payment_method_data[billing_details][email] = email

When I navigate to my customer I see the setup intent request and it has the status requires_confirmation, but I don't see the payment method..

Related Request ID(s)
-

What have you already attempted?
Read docs

What are you working on?
SEPA Direct Debit implementation in my laravel application

#

@surreal vigil pressed the 🀨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
I have this piece of code:
options = {
mode: 'payment',
amount: 10000,
currency: 'eur',
appearance: {
theme: 'flat',
},
capture_method: 'automatic',
};
as payment element options

What actually happened?
I use the stripe connect:
main account payment methods configuration pmc_1PFup1Eah6jYoDaipaeErIT4 (in test mode)
There I have klarna as a payment method enabled.
I have the connected account acct_1A8P8ZG5NORjrd4m for which I want to make the payments
I use euro and I am in romania.
I do not see any klarna options.

Reproduction Steps
connect via api with a connected account acct_1A8P8ZG5NORjrd4m
set in the main account the payment option klarna as default on.
Klarna is not showing in the payment options cards
https://app.screencast.com/qpszpgx5KHqu7

Question
How can I make klarna show in there? If I specify the klarna in the payment_method_types it will show, but I understand that stripe can take care of the available payment methods, so I do not have to.

What are you working on?
I have an application that processes payments on behalf of the connected accounts

#

@bright field pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
$checkoutSession = Session::create([
'payment_method_types' => ['card'],
'line_items' => [
[
'price' => $newPriceId,
'quantity' => 1,
],
],
'mode' => 'subscription',
'subscription_data' => [
'items' => [
[
'id' => $updatedSubscription->id,
'price' => $newPriceId,
],
],
'proration_behavior' => 'create_prorations',
],

Question
i have a laravel application, here i intregrate stripe using SDK.
in my application when user sign up then create a initial subscription with trial or free plan,
then when user choose a plan and purchase, this time i wanna to update existing subscription without create new subscription, just updated subscription item, then when user again upgrade or downgrade plan, this time maintain proration for adjust bill. then update same subscription and chekout session,

What have you already attempted?
show error: unknown parameter recieve id, price

What are you working on?
i intregate stripe with SDK in application

#

@tidal oar pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I have a product registered in my Strip's dashboard under product catalog,
The price was set and a coupon was set.
I can easily copy the product_id

now in the code I'm using:
stripe.checkout.Session.create how do I pass the product_id??

I think I should avoid passing: "price_data" since all product fields should be managed from a single place the dashboard. please let me know.
More to say I would like to get the layout like I have configured here:
https://pay.nvox.com/b/5kAdSb3mpf0y0fKcMO

but I don't get an option to pass coupon code in the UI with the session.url I get from stripe.

Related Request ID(s)
No clue

What have you already attempted?
Invoking the stripe.checkout.Session.create
with the parameter, which seems wrong:

'price_data': {
'currency': 'usd', # I have hardcoded this
'product_data': {'name': PRODUCT_NAME},
'unit_amount': PRICE_PER_EXAMINEE,
},

What are you working on?
simple product

#

@eternal adder pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
We provide this url in our return_url field: "/app/checkout-session/${id}?isRedirecting=true" but we are getting back from the paypal auth page after successful payment: "/checkout-session/${id}?isRedirecting=true&payment_intent=pi_xxxxxx&payment_intent_client_secret=pi_xxxxxx

Question
Hi, we have been live with stripe for almost a year and paypal has always worked. We are using the react-stripe-js PaymentElement in the client. But all of a sudden when coming back from the paypal authentication page it is appending a lot of extra parameters to our 'return_url' and we have logic depending on this url, we can probably find a workaround for it but we want to know why this is happening and we don;t want to show the client secret and the payment_intent

What have you already attempted?
We have tried this on stage and prod and it happens on both places. We double checked the return_url and we also went to gh history and checked if anything has changed. But we can't see that anything has changed for a long time on our end

#

@covert zodiac pressed the πŸͺ Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Is it possible to test payouts (specifically the payout.reconciliation event) in test mode using the main Stripe account? I know this can be done with connected accounts, but I’m wondering if there’s a way to test this directly on the main account in test mode.

Related Event ID(s)
N/A

What have you already attempted?
N/A

#

@frosty iris pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
What is the difference between Payment Methods API and Setup Intents API? Which one should I use if I am looking to collect my customers cards for charging them later?

Does $0/$1 auth occur only through Setupintent API and if yes, does it occur for every card?

Related Request ID(s)
NA

What have you already attempted?
Have tried both endpoints. Deciding which one to use

What are you working on?
Looking to collect my customers cards for charging them later

#

@bright pine pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We're currently on stripe API 2022-11-15 version and are using Payment Request Button Element on the fronted. The payment intents are created and immediately confirmed on the server. We got a feature request to implement amazon pay, looking at the documentation, we should switch over to the Express Checkout Element and bump the stripe API version to 2024-04-10.

Am I correctly assuming that Express Checkout Element doesn't support payment intent creation and confirmation on the server side, rather, the server should create the payment intent, and the Elements is the one that confirms the payment which then using webhooks, server listens to statues?

Doc/Guide Links
https://docs.stripe.com/elements/express-checkout-element/migration

https://docs.stripe.com/stripe-js/elements/payment-request-button

What are you working on?
Working on implementing amazon pay integration

cursive heronBOT
#

@serene gale pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We are evaluating if Stripe can support specific subscription flows:

Monthly Subscription with Variable Additional Charges

- Fixed base amount (e.g., $10) per month.
- Each month, an additional variable charge based on usage is added to the invoice as a separate line item.

Annual Subscription with Monthly Variable Charges

Annual fee paid upfront.
- Additional variable charges billed monthly on separate invoices.
- Can Stripe natively handle these flows? If so, what are the best practices and potential limitations?

Doc/Guide Links
https://docs.stripe.com/billing/invoices/subscription#Customize

What are you working on?
Our development team is working on a B2B platform where businesses providing services want to charge their clients a fixed amount plus a percentage of their monthly revenue.

#

@spice whale pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We use Stripe to build invoicing in our app via Stripe connect. Our connected accounts that we pass to Stripe still have access to their Dashboard and we haven't disabled their API keys. When they use our invoicing tool to process credit card payments, we pass an application_fee.

When the connected accounts use their API keys for other scenarios where they create the PI, we cannot pass an application_fee since the platform isnt creating the PI. How do we achieve this as we want to earn revenue on PI created via the API as well since they are our customers that we are passing to Stripe?

Related Request ID(s)
example PI -- pi_3QgAuDPvUJwFZfxD0WQzg1Ez

What have you already attempted?
Created platform pricing on the Stripe dashboard and the pricing still doesn't apply and we still make $0

#

@tidal oar pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I have a product registered in my Strip's dashboard under product catalog,
The price was set and a coupon was set.
I'm passing the price_id,
but I don't get an option to pass coupon code in the UI webpage, with the session.url I got from stripe.

I'm aiming to get this:
https://pay.nvox.com/b/5kAdSb3mpf0y0fKcMO

Related Request ID(s)
nothing

What have you already attempted?
in both setting test and live the same result I get, missing textbox to enter coupon code.

How do I make sure the coupon code textbox will appear?

What are you working on?
just simple product

#

@knotty locust pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
we are testing destination charge with on_behalf_of for subscriptions so that the invoice created is from the perspective of the connected account (express account).
as I understand it, the connected account needs the invoices that were created for it for tax reasons. Is this somehow possible? I dont find them in the express dashboard.

Doc/Guide Links
https://docs.stripe.com/connect/destination-charges

What are you working on?
a marketplace where user can sell extentions of a larger system

#

@sonic raft pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I'm using the Stripe API to create custom accounts and integrating the ConnectAccountOnboarding component. When I include the business_profile object during account creation, the document upload step doesn't appear in the onboarding flow, and the account shows as Restricted in the dashboard with "Provide a document for a business representative." If I omit the business_profile object, the onboarding flow correctly shows an Incomplete label and prompts for document upload. How can I ensure the document upload step always appears during onboarding?

Related Request ID(s)
req_dkTHXgfqI1CFCT, req_3ZDcHxEG5lvUU2

What have you already attempted?
I’ve tested account creation with and without the business_profile object. Without it, the onboarding flow prompts for documents as expected, but including business_profile prevents this. I’ve ensured the payload includes valid fields like individual and capabilities, and checked the requirements field via API, which lists missing items like individual.verification.document. I also tried leaving some fields empty intentionally, but the onboarding flow still skips document upload when business_profile is present.

cursive heronBOT
#

@haughty kraken pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hello, I would like to know if it is possible to use the Stripe api to make SEPA direct debits, but not with recurring amounts, but with one-off amounts.
I.e. for the first transaction (authorization of the mandate) it is a payment of 455€ and next month of 532€.
I'm currently comparing solutions (Stripe with Gocardless).

Related Request ID(s)
Request

What have you already attempted?
Comparaison

What are you working on?
Automatic SEPA direct debits with mandate

cursive heronBOT
#

@nimble vessel pressed the ❌ An Error button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Error Message
IntegrationError: Invalid createElement() parameter: options.allowedCountries is not an accepted parameter.

Question
Trying to integrate the AddressElement and it says the options are not allowed by the ts types clearly show I should be able to modify this.

What have you already attempted?
I trie without adding these options and loads fine. Upon adding any options -- allowedCountries or blockPoBox, it throws this error.

What are you working on?
building an ecom site using the new public preview custom_checkout_beta_5 betas.

cursive heronBOT
#

@proud rover pressed the πŸͺ Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I would like to retrieve both the ECI value and the CAVV from 3D Secure (3DS) transactions. I’m able to access the ECI value located in the charge object under:
payment_method_details.card.three_d_secure.electronic_commerce_indicator

However, I haven’t been able to locate the CAVV. Is there a way to retrieve it?

Related Event ID(s)
evt_3Qh8E4JuHp8JScH30ebH7Gvg

What have you already attempted?
I've investigated the charge object and different Stripe APIs

What are you working on?
Integration with fraud detection system

#

@wild hemlock pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I would like someone to help me with best practices. Do you know someone that can help? Could be a paid Stripe expert. Right now we need to create a dashboard for reconciliation as finance is struggling to reconcile

Doc/Guide Links
I've read multiple documents

What are you working on?
subscription for app access

#

@warped isle pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
I am unable to share full code

Question
I am trying to integrate Stripe Checkout with Django. When I click the "Buy Now" button, I receive the following error in my browser console:

```
POST https://api.stripe.com/v1/payment_pages/cs_test_XXXXXX/init 401 (Unauthorized)
```

Additionally, on the frontend, I see this error message:
**"Something went wrong. You might be having a network connection problem, the link might be expired, or the payment provider cannot be reached at the moment."**

How can I resolve this i

What have you already attempted?
### 3. What I Have Already Attempted

  1. Verified that the `STRIPE_SECRET_KEY` and `STRIPE_PUBLIC_KEY` are correct and active.
  2. Confirmed that the product data (`product.title`, `product.description`, and `product.price`) is valid and non-empty.
  3. Printed the `STRIPE_SECRET_KEY` in the view to ensure it's being set correctly.
  4. Tested the `/create_checkout_session` endpoint using Postman to ensure the view responds correctly.
  5. Checked the network tab in the browser to co
#

@carmine lintel pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Is it possible to retrieve all payments associated with a payout if I use automatic payouts? I can generate a report from the Dashboard but is it possible through the API?

Related Request ID(s)
n/a

What have you already attempted?
Reading the docs

#

@thorny tartan pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We have an integration Stripe Express Connected Accounts - when taking payments via an online link our users (Connected Account) receive the charge and then transfer our fee to us. When taking payments through the terminal, we receive the payment and we pay out the charge less the fee to our connected account. Searching here for advice on how we can ensure the charge goes to the connected account first via both payment collection methods. Is this expected functionality or something we have done in the build?

Related Request ID(s)
-

What have you already attempted?
I've reviewed the request bodies for both types of payments with my developers - they note a restriction on the type of integration that we have (Express), yet that doesn't explain the difference between how transactions are recorded with the two separate payment methods.

What are you working on?
We are working to increase transaction visibility for our connected accounts regardless of payment method. Appreciate any advice you have!

#

@jagged plume pressed the 🀨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
When subscription is cancelled for Billing method
Send invoice., customer should not get the email.

What actually happened?
Customer got the email for invoice.

Reproduction Steps
https://dashboard.stripe.com/subscriptions/sub_1OXp6KJkcw3plchcpGJrSA8L

Question
Why did customer got the email even after subscription was cancelled>

cursive heronBOT
#

@simple nebula pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
const initiateVerificationResponse = await stripe.verifyIdentity(clientSecret);

Question
When using stripe identity verification via the modal documented here
https://docs.stripe.com/js/identity/modal
Most of the time the modal transitions to the 'Something went wrong page'
this error appears in the console:
```Blocked a frame with origin "https://verify.stripe.com" from accessing a frame with origin "https://js.stripe.com". Protocols, domains, and ports must match.```
it seems cors blocks your own modal from accessing your backend?

What have you already attempted?
Sometimes it does succeed on safari although rarely, i almost always succeeds on chrome, from the verification session events on the stripe console I can see the user information is never received but the verification session is started. Since everything seems to take place inside an iframe in your modal I am not sure what I can do

What are you working on?
User verification for checkout flow

cursive heronBOT
#

@dreamy terrace pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hello, I have a quick question. I am using Stripe connect and treasury. Each customer has a connect account and an associated treasury financial account.

I have configured card payments (using the Payment Element) and these payments are going into the Connect account. I would then like to transfer these funds into the treasury financial account.

How would I do this?

Is this workflow correct? Should I be directly paying into the financial account or do card payments have to go through the connect account first?

Related Request ID(s)
N/A

What have you already attempted?
See above.

#

@floral lotus pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I am trying to cancel a subscription but it is giving me a "No such subscription" error. Even though the subscription already exists in the Dashboard

Related Request ID(s)
req_BgQgGzW0ZHyXm8

What have you already attempted?
Attempted to call the API from Workbench CLI. Still the same error.

#

@nova blade pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
const stripe = require('stripe')('sk_test_β€’β€’β€’4DeZ');

exports.handler = async (event) => {
try {
// Parse the session ID from the request body
const { sessionId } = JSON.parse(event.body);

// Retrieve the checkout session
const session = await stripe.checkout.sessions.retrieve\(sessionId\);
console.log\('Session\:', session\);  // Log the session for debugging

//

Question
iam correctly passing session id from frontend and iam even getting invoice hosted url in stripe webhook and also passing description too but when i try to generate invoice by passing session id from frontend iam getting error of {"error":"As per Indian regulations, export transactions require a description. More info here: https://stripe.com/docs/india-exports"}

What have you already attempted?
tried by adding description but didnt worked out

#

@frosty dawn pressed the πŸ“š Doc or Guide button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Link to the Doc/Guide in question
https://docs.stripe.com/connect/custom/onboarding#embedded-onboarding

Question
I am trying to figure out the difference between embedded onboarding solution vs API onboarding solution. I understand what is required to integrate with the API but am less clear about embedded since the doc mentions it is based on the Accounts API. Do I need to integrate with the Accounts API to implement the embedded solution? How does embedded work and why would I choose that?

What have you already attempted?
Evaluating what type of onboarding experience I would want for a franchise business spanning a couple geographies.

#

@willow bridge pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
how to create a stripe coupon that works only for products that were created and added through stripe's dashboard, not for all random products added in line_items? Preferable with stripe's nodejs api?

Related Request ID(s)
idk

What have you already attempted?
I've tried to add all my products to the applies to when creating the coupon, but it won't really work if I'd add more products in the meantime.

#

@warm relic pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
hello i am admin of stripe account and i can not see my secret key there is no reavel key button

Related Request ID(s)
api secret key

What have you already attempted?
i have tried switching to test mode and back to live but nothing

What are you working on?
i want the secret key revealed

#

@plain mulch pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
func calculateShippingOptions(shippingDetails ShippingDetails, session *stripe.CheckoutSession) ([]*stripe.CheckoutSessionShippingOptionParams, error) {
var shippingOptions []stripe.CheckoutSessionShippingOptionParams
domesticShipping := stripe.CheckoutSessionShippingOption{
ShippingAmount: 500,
ShippingRate: "shr_1PLnWrGVt95r9kfaO35Xkhut",
}
internationalShipping := stripe.CheckoutSessionShippingOption{
ShippingAmount: 2000,
ShippingRate: "shr_1QfvZcGVt95r9kfaBOh

Question
How to use an already-created Shipping Amount vs creating a new one when calculating shipping for dynamic shipping?

What have you already attempted?
https://docs.stripe.com/payments/checkout/custom-shipping-options

What are you working on?
Handling dynamic shipping for a variety of products.

cursive heronBOT
#

@wraith yarrow pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
My site is using the Stripe Express checkout API with Apple Pay and Google Pay. The default behavior is to stack the payment method buttons vertically, but we want to align them horizontally (I've seen other sites do it this way). What's the easiest way to apply this styling?

Related Request ID(s)
N/A

What have you already attempted?
Looking through the typescript code to see if there are props we can pass to the express checkout element to align the buttons properly. Haven't seen anything helpful yet

What are you working on?
An ecommerce website

cursive heronBOT
#

@languid rapids pressed the 🀨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
ApplePay working with EmbeddedCheckoutProvider and EmbeddedCheckout

What actually happened?
ApplePay not showing up

Reproduction Steps
Use the elements above; also enable ApplePay in dashboard; also whitelist domain; test in Stripe Test mode

Question
How do I enable ApplePay using the EmbeddedCheckout?

cursive heronBOT
#

@jade plinth pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
When a checkout works but the stripe webhook fails, what happen?

Related Request ID(s)
not specific

What have you already attempted?
Just want to understand if there is some sort of retry on stripe side

#

@fierce holly pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We use Stripe Connect to help manage youth soccer leagues and one of the features our platform provides is the ability to accept donations. We require that users be logged-in. One of our leagues asked if we can waive this requirement to accept anonymous donations. My question is: is it advisable (much less possible) to provide a form on the web that accepts credit cards without any authentication? This seems like an invitation to bots to me and years ago, other card processors did not allow it. Or should we just use payment links and scrap our own form?

Doc/Guide Links
https://support.stripe.com/questions/how-to-accept-donations-through-stripe

What are you working on?
Donation form for non-profits

#

@proper bronze pressed the πŸͺ Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
webhook for the creation of a 'balance_transaction' object

Related Event ID(s)
txn_1Qh1vuAQbHn4ElzTQBGnOsbG (not an eventID but I want to get one)

What have you already attempted?
read docs

What are you working on?
tracking expenses related to "Connect Account" verification

#

@dreamy terrace pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Is it possible to setup instant payouts from the Stripe connect balance to a treasury account balance?

Related Request ID(s)
N/A

What have you already attempted?
I am unable to send instant payouts to my connected treasury bank account.

#

@bleak fractal pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Say there is a booking form through which customers can book an appointment for a business. I now want to make sure that customers who make a booking but do not show up (its a doctors cabinet) are charged let's say 100 USD. All of this is done to avoid no-shows. Which API strategy to choose for this

Related Request ID(s)
-

What have you already attempted?
I initially though about authorizing the payment at the moment of the booking, to freeze the funds on the payment method. And capture in case of no-show, or release in case of show. But this would require re-auth cycles, as an appointment may be booked more than 6 days in advance. So I wondered if your API offers a better endpoint / strategy to implement this? 'Charge 100 USD at date X' with date X being up to 60 days in advance would be the rule, I guess.

What are you working on?
Integration of Stripe API into automated booking system

#

@true vessel pressed the πŸ“š Doc or Guide button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Link to the Doc/Guide in question
https://docs.stripe.com/terminal/references/testing?terminal-sdk-platform=android#simulated-reader-updates

Question
Can I simulate reader updates on a USB reader using the SimulatorConfiguration

What have you already attempted?
I have already attempted to simulate reader updates by using the SimulatorConfiguration as outlined in the Stripe documentation. Specifically, I configured the SimulatorConfiguration with SimulateReaderUpdate.REQUIRED and provided a SimulatedCard and a simulatedTipAmount as part of the setup. I then passed this configuration to the Terminal.simulatorConfiguration property before initiating the connection to the simulated reader using terminal.connectReader(). In addition, I verified that the reader was successfully

What are you working on?
I am working on testing the behavior of a Stripe reader when there is a reader update to install.

cursive heronBOT
#

@bitter oriole pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
response = stripe.OAuth.deauthorize(
client_id=os.getenv('STRIPE_CLIENT_ID'), # Replace with your platform's client ID
stripe_user_id=user.get("stripe_id")
)

Question
stripe.oauth_error.InvalidClientError: Request req_uPFcgUo9cSNKFV: You cannot call deauthorize on acct_1QgCz8IjfsjR6d0g because you're responsible for negative balances on this account.

What have you already attempted?
I filled out the documents in the stripe dashboard and it is saying I can't payout to the customer

What are you working on?
I am currently working on deleting a user from my application but it is not allowing me to delete a user from stripe

#

@wraith yarrow pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Following up re: ,my previous question about Express Checkout buttons

Related Request ID(s)
N/A

What have you already attempted?
The previous suggestions

What are you working on?
An ecommerce website

cursive heronBOT
#

@surreal vigil pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
options = {
mode: 'payment',
amount: 10000,
currency: 'eur',
appearance: {
theme: 'flat',
},
capture_method: 'automatic'
}
this.elements = this.stripe.elements(options);
this.elements.create('payment').mount('.js_stripe_payment_cc_div');

Question
I have klarna payment method as an option, and I would like for it not show the country, email and full name fields. How do I do that ?

What have you already attempted?
I tried adding defaultValues -> billingDetails to the options above

#

@drowsy thorn pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hello and thank you for helping!

We are currently integrating Stripe SDK and gem to our Rails Backend API / Vite separate client side service. I have a couple questions regarding card authorization.

Our devs are currently wondering if there is an exposed method to simply authorize a card without doing anything else. My understanding is that authorization only happens when certain methods are called in the SDK or Gem, specifically "confirmPayment" or "confirm" respectively. And that vaulting a card, creating, or updating a Payment Intent with an attached card does not immediately authorize.

Related Request ID(s)
req_JHuLIGfXRb9i4e

What have you already attempted?
N/A looking for clarity around docs.

What are you working on?
E-commerce Application

#

@sacred falcon pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Can I set a subscription billing cycle anchor in a specific day of the week? For example, to set it to be billed every 3rd thursday of the month?

Related Request ID(s)
API

What have you already attempted?
API

What are you working on?
API

#

@abstract roost pressed the πŸͺ Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I have a new test mode webhook set to 2024-12-18.acacia, but events are still being delivered using 2020-08-27. Do you know if I'm missing anything with my setup?

Related Event ID(s)
evt_3QhFtZCQkFi8IKk80FxuqP1o

What have you already attempted?
I've tried creating a new webhook endpoint just in case. Same thing :(

What are you working on?
I'm migrating our ruby gem to 13.3.0 and the API version to 2024-12-18.acacia

#

@gusty lotus pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Does Stripe Billing support this kind of use case?
I want to charge my user every 3rd week of each month. No specific dates, it can either every 2nd or 3rd week of the month.

Related Request ID(s)
N/A

What have you already attempted?
I can only see a fix monthly recurring fee.

What are you working on?
Collect payments every 2nd or 3rd week each month.

cursive heronBOT
#

@wraith yarrow pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
My site currently uses Stripe Express Checkout. However, we'd like to have more granular control over the styling and positioning of the Apple Pay and Google Pay buttons, and that's not possible with the ExpressCheckoutElement. If we wanted to create our own buttons and manually build integrations for Apple Pay and Google Pay via Stripe, would that be possible? If so, can you point me towards the relevant documentation/resources?

Related Request ID(s)
N/A

What have you already attempted?
I've looked at online documentation

What are you working on?
An ecommerce website

cursive heronBOT
#

@boreal root pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Can you make promo codes that give 100% shipping rate discount?

Related Request ID(s)
n/a

What have you already attempted?
I have already added a promo code with 100% off forever. But my Stripe checkout session uses a shipping rate with $9.99, so even if the products go to $0.00, the total charge is still $9.99.

How can you make a promo code apply to shipping as well? I want the order total to be $0.00

#

@dawn goblet pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
$stripe = new \Stripe\StripeClient('sk_test_β€’β€’β€’TntU');

$stripe->charges->create([
'amount' => 1500,
'currency' => 'gbp',
'source' => 'acct_1QfUeABO5hlueKZw',
]);
}

$order = wc_get_order( $order_id );

$order->add_order_note(
' Transaction ID '. $order->get_transaction_id()
);

Question
Hi there I want to capture transaction id after order is placed I am able to get things like
$order->get_total()
$order->get_payment_method()
But transaction ID is null

What have you already attempted?
I have tried adding $order->get_transaction_id()
it doesnt work I cant display the transaction id.

What are you working on?
This is wordpress/woocomerce project

cursive heronBOT
#

@kindred plaza pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
```ts
const handleSubmit = async () => {
setIsLoading(true)
setError(null)

try {
  if \(!stripe \|\| !elements\) {
    setError\("Payment processing not ready. Please try again."\)
    return
  }

  await elements.submit\(\).catch\(\(err\) =\> {
    console.error\(err\)
    setError\(err.message \|\| "An error occurred with the payment"\)
    return
  }\)

```

Question
Im working on implementing the paymentElement with medusajs backend and nextjs frontend. I am having an issue where the payment for googlepay/applepay is being triggered when elements.submit() is called. What would be the correct/best practices for implementing the paymentElement to trigger googlepay/applepay when stripe.confirmPayment() is called instead of elements.submit()?

What have you already attempted?
I've tried following the docs below but there's nothing that references it triggering the collection of applepay/googlepay when called.

https://docs.stripe.com/js/elements/submit

https://docs.stripe.com/payments/payment-element/best-practices

What are you working on?
building an e-commerce site built using medusajs as the backend and nextjs as the frontend.

cursive heronBOT
#

@dreamy lantern pressed the πŸͺ Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
What's the best webhook event to get custom field data from a payment link and also be sure, that the payment was successfull

Related Event ID(s)
checkout.session.completed??

What have you already attempted?
Tried some events, but I'm not sure which is the best one for this case.

#

@old pebble pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I'm trying to find a way to tie the payments which show in Stripe Elements with the order records in our database. The Stripe payment element has a table with four columns: date, status, from & amount but the 'from' field appears to only be populated if the customer signs up to link.

Related Request ID(s)
req_ImMXJvTitgwous

What have you already attempted?
I've tried adding it when taking the payment with stripe-js, as stripe.confirmPayment({ ... confirmParams: ..., payment_method_data: { billing_details: {..., name: customerName, ...} }}), but that didn't do it, although it did appear in my Stripe dashboard.

What are you working on?
A platform using Stripe Connect for organisers to sell tickets to events.

cursive heronBOT
#

@manic flicker pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I am creating a new subscription plan for my service that is at a lower price.

This lower price includes a small amount of storage, 10gb. however we bill at increments of 250gb in our metering system (Usage based, per package)...

Is there a way to not charge the user until they go over the limit of 10gb? Do I have to manage this internally before metering? Or can I have stripe manage this logic?

My current approach has been to apply a coupon to the subscription to provide the included storage, but that works in part because the other storage plans line up with the 250 increments.

I remember creating something about Credit Burndown, which is now being named Billing Credit

Doc/Guide Links
https://docs.stripe.com/billing/subscriptions/usage-based/billing-credits

What are you working on?
SaaS Video Software

#

@maiden fulcrum pressed the 🀨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
Hi. I'm trying to refund payments that are transferred to connected accounts. I'm doing the refund using the payment intent ID. After doing the refund I can see a partially refunded tag in my transactions page, and I was expecting to some the same in the connected account's payments page

What actually happened?
The connected account's payments page is not showing any indication of a refund.

Reproduction Steps
- Create a payment intent with transfer data to connected account
- Complete payment
- Refund the payment

Question
I want to know who is charged when a payment intent with transfer to a connected account is refunded or how the process works

What are you working on?
A portal to manage ecommerce returns

cursive heronBOT
#

@hollow bay pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I'm looking to apply the following setup: I want users to receive a X % discount in their first year, and then only a Y % discount in subsequent years. Currently I'm applying a coupon code upon checkout, but I can only apply once and it has a fixed discount %. Is there a way to achieve this through the API at set up, or am I forced to run some kind of scripts afterwards that will adapt the coupon code? Thanks!

Doc/Guide Links
https://docs.stripe.com/billing/subscriptions/coupons

What are you working on?
An AI SAAS product

#

@merry urchin pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hello,

I'm attempting to apply taxes to an invoice with a response from Avalara for Communications (AFC, different from Avatax/normal Avalara).

I have some fixed-rate fees that I need to apply to some line items, I've been following https://docs.stripe.com/api/invoice-line-item/invoices/update-lines/bulk#bulk_update_lines-lines-tax_amounts-tax_rate_data-percentage for guidance here.

Everything works except `percentage` being 0 isn't setting it to flat rate, instead the invoice returns `0% on $XYZ` for these fees.

We also already have `pay_immediately` disabled and working on these

Related Request ID(s)
req_xoMyR6aukPkJaf

What have you already attempted?
I've attempted a few different taxable_amount changes, one to reflect the subtotal, and another to the quantity of what we're charging a fixed fee on.

Amount I haven't modified, leaving that still as the amount the tax/fee is (both for percentage or fixed)

What are you working on?
Working on implementing tax from a 3rd party into our existing billing service

cursive heronBOT
#

@broken crater pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We received an email from Stripe about the customer_consent_collected parameter being replaced with allow_redisplay.

Can we safely ignore this if we do not use these endpoints? Terminal.Reader#process_payment_intent.process_config or Terminal.Reader#process_setup_intent

Related Request ID(s)
n/a

What have you already attempted?
The email states this is for "Saving cards with SetupIntents", and "previously required on all SetupIntents transactions". This sounds like it would impact all setupintents, but it seems like this required change is only for a couple of endpoints in the Terminal namespace.

This article says it's specifically for terminal:
https://docs.stripe.com/changelog/acacia/2024-09-30/terminal-remove-customer-consent-require-allow-redisplay#what’s-new

cursive heronBOT
#

@ocean kayak pressed the πŸ“š Doc or Guide button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Link to the Doc/Guide in question
https://docs.stripe.com/api/payment_intents

Question
I am attempting to replace my current payment process which consist of creating a checkout session on a server and sending user to a webpage, to using a payment sheet which uses a payment intent.

Can payment intents create subscriptions?
Can I replace payment intents with checkout sessions?
Should the subscription be handled by my server using payment intent?

What have you already attempted?
I have payment intent setup

What are you working on?
I have a marketplace and am attempting to use payment sheets to improve user experience.

cursive heronBOT
cursive heronBOT
#

@crisp falcon pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Working on setting up subscriptions for existing customers who have limited time discounts. To account for the end duration of the discounts, do we need to setup coupons of varying durations for this purpose? Or is there a way to indicate that the subscription actually started on Date X and have the general coupon duration expire based on that start date?

Doc/Guide Links
https://docs.stripe.com/billing/subscriptions/billing-cycle#new-subscriptions

What are you working on?
Setting up subscriptions for existing customers

cursive heronBOT
#

@bright field pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
public function pay(array $data): array
{
$session = Session::create([
'payment_method_types' => ['card'],
'mode' => 'payment',
'customer' => $data['customerId'], // Pass the customer ID here
'line_items' => [[
'price' => $data['priceId'], // The price_id from frontend
'quantity' => $data['quantity'],
]],
'success_url' => $data['successUrl'],
}

Question
When payment is made, is a subscription automatically created?

What have you already attempted?
i have a laravel application, here i intregrate stripe using SDK.
in my application when user sign up then create a initial subscription with trial free plan,
then when user choose a plan and purchase, this time will be create a subscription, then when user again upgrade or downgrade plan, this time maintain proration for adjust bill. how do it

What are you working on?
i intregate stripe with SDK in application

#

@thick kraken pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I want to replicate a scenario where invoice is in processing state and trigger the payment failed or success at will. So that I can trigger a refund if the payment succeeded.

Doc/Guide Links
https://docs.stripe.com/api/events/types#event_types-invoice.voided
https://docs.stripe.com/testing#declined-payments

What are you working on?
I am building a Cloud based SaaS platform where users can create sites and spin up servers and they are charged on pro rata model

cursive heronBOT
#

@halcyon scarab pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
while reterving payment intent i m getting status of payment if it is failed i need a reason of failing also how to achive this

Related Request ID(s)
NA

What have you already attempted?
Session stripeSession = Session.retrieve("session id");

What are you working on?
i was integrating strip to my application

cursive heronBOT
#

@shut lotus pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
https://docs.stripe.com/elements/customer-sheet?platform=react-native

taking a look at this docs, i want the card being selected when i show the stipe UI to be the default payment method.
i can get the default payment method from my backend, is there any way i can set it to be the selected on the stripe UI from the docs above

Related Request ID(s)
none

What have you already attempted?
nothing

cursive heronBOT
#

@dark fox pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We are using stripe connect on our plugin to connect users to stripe. But i got a query from my user states that he want the connected accounts in his stripe dashboard to collect the payment instead of the main account. So what change we need to do for this.

Related Request ID(s)
no id

What have you already attempted?
Nothing

What are you working on?
Maintaining a stripe integration plugin for woocommerce

cursive heronBOT
#

@rocky canyon pressed the πŸ“š Doc or Guide button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Link to the Doc/Guide in question
https://support.stripe.com/questions/reusable-object-migration-from-sources-to-payment-intents?locale=en-US

Question
We are trying to have a test run migrating from Sources to Payment Methods. We are using Connect.
According to the support page, every connected account should be migrated using the migration tool in Workbench.
From what I understood, the migration tool is only available if there are actually sources to migrate. For some accounts it does show up, but doesn't find anything to migrate in test mode. For some, that definitely have Sources in test mode, it does not even show up.
Is the migration tool being available tied only to production data?

What have you already attempted?
Test migrating connected accounts where the migration tool is available (does not work, errors out with a message telling me there are no sources to migrate).

Getting the migration tool to show up on connected accounts in test mode that have active subscriptions with SEPA sources as payment options (a lot of these accounts only exist in test mode and the migration tool is not available there).

What are you working on?
Migrating from Sources to PaymentMethods

cursive heronBOT
#

@brave olive pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
const stripeElementsProps = () => {
const appearance = {
theme: 'stripe',
labels: 'floating',
variables: {
colorPrimary: theme.colors.content.primary,
colorBackground: theme.colors.bg.primary,
colorText: theme.colors.content.primary,
colorDanger: theme.colors.border.danger,
spacingUnit: '0px',
borderRadius: '4px',
gridRow

Question
I am using Payment Element for Bacs Bank transfer in UK with custom appearance, and it seems like the Mandate modal is not affected by the appearance

What have you already attempted?
Using https://docs.stripe.com/elements/appearance-api#rules

What are you working on?
Adding Bacs payment via Payment Element

cursive heronBOT
#

@fresh haven pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How can I disable automatic finalisation of invoices?

Doc/Guide Links
I am able to adjust the grace period before invoices are automatically finalised, but I am not able to disable it to my knowledge?

I can’t disable automatic collection entirely as that breaks some other processes within our system

What are you working on?
I am generating a draft invoice, finalising and paying the invoice manually. However a duplicate invoice is being created as draft, and then subsequently being finalised and sent automatically one hour later

#

@past aurora pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
Delete user - cancel subscription partially
Undo user deletion - resume subscription
Permanent user deletion - cancel subscription permanently

Question
Delete user - cancel subscription partially
Undo user deletion - resume subscription
Permanent user deletion - cancel subscription permanently

What have you already attempted?
$stripeSubscription = Subscription::retrieve($getsubscription['stripe_id']);
$subscription = \Stripe\Subscription::retrieve(
$getsubscription->stripe_id,
[]
);
$subscription->cancel();

What are you working on?
Delete user - cancel subscription partially Undo user deletion - resume subscription Permanent user deletion - cancel subscription permanently

#

@icy loom pressed the πŸ“š Doc or Guide button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Link to the Doc/Guide in question
https://docs.stripe.com/api/payment_methods/update

Question
Hello, we currently have a feature to update the cardholder's name and email for Visa credit cards. We want to use the API "Update a PaymentMethod" to modify billing_details.name and billing_details.email, but we don't have a bound customer. Is there any other way to modify the name and email?

What have you already attempted?
The message "system error, You must save this PaymentMethod to a customer before you can update it" indicates that you need to save this PaymentMethod to a customer before you can update it.

#

@halcyon scarab pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
For making payouts to my customers, I need their bank details. How can I achieve this using Custom Connect? I have some doubts:

What is the connected account ID?
Should I use different accounts for each country?
What is an AccountLink?
How will my customers provide their bank details?
what you will call for customer

Related Request ID(s)
NA

What have you already attempted?
I have referred to this document: https://docs.stripe.com/connect/custom/hosted-onboarding#info-to-collect.

What are you working on?
i was integrating strip to my application

cursive heronBOT
#

@balmy pebble pressed the πŸ“š Doc or Guide button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Link to the Doc/Guide in question
https://docs.stripe.com/webhooks#acknowledge-events-immediately

Question
> Your endpoint must quickly return a successful status code (2xx) prior to any complex logic that could cause a timeout

Is there a specific timeout value stripe uses?

What have you already attempted?
N/A

What are you working on?
Stripe integration to handle out of order events.

cursive heronBOT
#

@late sigil pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Attach PaymentMethod (Card) to the Customer got and error message (HTTP/1.1 402 Payment Required)

Related Request ID(s)
pm_1QhUdELdNm0utZ84r8lHRns1

What have you already attempted?
I have used the api v1 attach to attacht the pm to the customer, but keep getting error

#

@lime sierra pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hello, is there a way to create a subscription on the platform, but using a price from the connected account? I'm hoping to use destination charges, but where the connected account defines

Related Request ID(s)
https://dashboard.stripe.com/test/logs/req_QTwDFgrLx8FVqq?t=1736940260

What have you already attempted?
Executed request:

curl https://api.stripe.com/v1/subscriptions
-u "sk_test_β€’β€’β€’EzRm:"
-d customer="cus_Qsu4P2SDxB3EWd"
-d "items[0][price]"="price_1Na0YqCuTlNwk7yvq4LeV8nK"
-d "expand[0]"="latest_invoice.payment_intent"
-d "transfer_data[destination]"="acct_1NJJA7CuTlNwk7yv"

What are you working on?
Building out a platform with destination charges

cursive heronBOT
#

@rapid wave pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I've created a payment link via api with a 7 days free trial.

I'm using the python sdk latest version.

I'm trying to update the payment link and remove completely the trial, using the stripe.PaymentLink.modify() method:

I'm currently unable to remove the trial, as at every attempt i make the trial period remain unchanged.

Related Request ID(s)
req_pxJLuwIRv5y75L, req_0GpMn2giTiRAIK

What have you already attempted?
- I attempted to set the trial_period_days to 0 (but as stated in the api must be at least 1)
- I attempted to set that to None, but it results in an unchanged object, so with the trial still active.
- I attempted to set the trial_period_days to "null", but it requires an integer.
- I attempted to set the entire subscription_data to an empty dict {} but it was un-affected

I noticed in the developers logs that if i set the trial period days to None or {} in the request body nothing appears

What are you working on?
climbo.com

cursive heronBOT
#

@halcyon scarab pressed the πŸ“š Doc or Guide button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Link to the Doc/Guide in question
https://docs.stripe.com/connect/custom/hosted-onboarding?architecture-style=resources#info-to-collect

Question
what is the difference between strip connected accounts and customers inside that

i have collected payment from some one now i m want to make a payout to my customers by collecting there bank deatils and kyc how to do that

What have you already attempted?
checked that doc

What are you working on?
i was integrating strip to my application

cursive heronBOT
#

@autumn wasp pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
If I want the payer to bear the cost of Stripe fees (CreditCard Fee, Stripe Fee) on Payment, is that possible?

Related Request ID(s)
-

What have you already attempted?
-

What are you working on?
-

#

@frigid juniper pressed the πŸͺ Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
In my website, users can create affiliate accounts and go through Stripe's affiliate onboarding. After finishing onboarding and the required steps, we expect the "account.updated" webhook to be triggered so that we can check the values of charges_enabled and payouts_enabled and update our user in database.
In the test sandbox, the account.updated webhook triggers as soon as I finish the onboarding, but in live, it didn't even trigger once. and in api

Related Event ID(s)
webhook id: we_1QXsXEBiPtZMPQNFLrfSQiyg

What have you already attempted?
Nothing changed even if users provided id documents and eveything required

cursive heronBOT
#

@quick path pressed the πŸ“š Doc or Guide button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Link to the Doc/Guide in question
https://docs.stripe.com/api/checkout/sessions/create

Question
I would like to create a checkout session in subscription mode, and modify the invoice by passing account_tax_ids. Passing them in invoice_creation.invoice_data.account_tax_ids does not work, because the invoice_creation parameter does not seem to be supported in subscription mode. Is there any other way to pass the account_tax_ids to get them used in the invoice.

What have you already attempted?
Tried the described way from the documentation by using the invoice_creation Parameter, which unfortunately is not supported in our use case (susbcriptions).

What are you working on?
Website with a premium subscription service you can subscribe and pay for with stripe.

#

@plain mulch pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
if (lineItems.ShippingID == "") {} else {}

Question
I have multiple items that use multiple shipping IDs. Print copies use one shipping ID, PDF copies use another, and pay-what-you-want copies do not get one. What is the best way to handle/assign ShippingIDs?

What have you already attempted?
https://docs.stripe.com/payments/during-payment/charge-shipping?dashboard-or-api=api

What are you working on?
Better handling of shippingIDs.

cursive heronBOT
#

@devout drift pressed the πŸ“š Doc or Guide button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Link to the Doc/Guide in question
https://docs.stripe.com/api/events/object#event_object-request-id

Question
Using Stripe webhook connect events, I am trying to determine the source of an event (ie. if a `product.deleted` event was triggered by a user on the Dashboard, or via an API request)

What have you already attempted?
The `event` object only has this `request.id` field that is `nullable`, and the logs on the dashboard have the "Source" for the event there, but not in the API?

#

@lean girder pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
providing a returnUrl with java still throws the exception com.stripe.exception.InvalidRequestException: This PaymentIntent is configured to accept payment methods enabled in your Dashboard. Because some of these payment methods might redirect your customer off of your page, you must provide a `return_url`. If you don't want to accept redirect-based payment methods, set `automatic_payment_methods[enabled]` to `true` and `automatic_payment_methods[allow_redirects]` to `never` when creating Setup Intents and Payment Intents.; request-id: req_qPQOx93BaZdIcH

Related Request ID(s)
could not find

What have you already attempted?
tried to use automatic_payment_methods but that dose not work with .setConfirmationMethod(PaymentIntentCreateParams.ConfirmationMethod.MANUAL)

cursive heronBOT
#

@frigid juniper pressed the πŸͺ Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I was discussing this issue on another thread
A request was sent to setup a connect type webhook, but an Account type webhook was created instead

Related Event ID(s)
Request id: req_SOGDVSqwjnswoz

What have you already attempted?
The request had "connect": "true" but the webhook was created as an account webhook

#

@north sigil pressed the ❌ An Error button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Error Message
The error I have is that when I click on payment via Google Pay or Apple Pay, taxes are not included in the shipping price. I have a shipping cost of €6.90 and on sale it is €5.50, although it is included correctly in the total payment

Question
I would like the same shipping cost to be displayed and not changed when you are going to make a purchase with these options, this may cause confusion for customers

What have you already attempted?
I have changed these lines of code as this problem seems to be the same as mine. But still nothing has changed.
https://github.com/woocommerce/woocommerce-gateway-stripe/issues/1234

Reproduction Steps

  1. Enable Stripe Payment Request Button on a store with taxes and prices displaying with tax
  2. Click on the Pay Now payment request button for Google Pay
  3. You will see that the Shipping amount is displayed without tax, despite the store settings displaying prices including tax.

What are you working on?
I'm working in an online store as an administrator: https://shop.biljardi247.fi/

#

@topaz garden pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hi When creating a subscription using send_invoice as the collection method and setting a due date

I noticed there is a field automatically_finalizes_at I'm pulling this into my application so show the amount of time til an invoice will auto finalize problem is

My application is showing 3 days from now but inside of the stripe it shows 1 hour from the creation of the subscription

Related Request ID(s)
https://dashboard.stripe.com/test/logs/req_eKPuGCMefc4DRA

What have you already attempted?
I'm storing the UNIX time stamp provided then using

new Date(automatically_finalizes_at * 1000) to get a date object I can manipulate and use

#

@ashen flint pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We are having issues with our ApplePay integration with Stripe. The problem is that for express checkout we need to receive back the full postcode so that we can calculate the delivery costs and send them back to ApplePay for the customer to choose their preferred delivery method. It seems to be only pulling back the first part of the post code meaning we cannot calculate the delivery cost.

Related Request ID(s)
Unknown

What have you already attempted?
We have studied and followed the Stripe documentation, we cannot find a solution.

What are you working on?
ApplePay integration via Stripe for the Voracio ecommerce platform

cursive heronBOT
#

@limpid scaffold pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
While creating subscription I'm using `add_invoice_items` property to add one-time invoice on subscription creation (like setup fee)

And also I'm using global `coupon` property for subscription discount

Is there any way of using that global `coupon` property and not apply that coupon to `add_invoice_items`?

Related Request ID(s)
req_ZrpIYrWhUZyd6s

What have you already attempted?
I've tried / know about a possibility of applying coupon only for individual items during subscription creation, but I want avoid that case, and still use global `coupon` property

#

@shrewd crater pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I have a S700 terminal, can I select the amount of money over which I want to apply tips?

Related Request ID(s)
N/A

What have you already attempted?
I have configured the Configuration model for my terminal

#

@lime nacelle pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
// Stripe payment element options
defaultValues: {
billingDetails: {
email: this.customerEmail(),
address: {
country: this.countryISO().toUpperCase(),
},
},
},

Question
Following the recommended workflow for collecting payments with Payment Elements and building an integration where you can render the Payment Element prior to creating a PaymentIntent..

> Is it possible for the payment element with automatic payment methods to only display valid payment methods for the specified country and to hide any invalid methods.

i.e. Pay later method Klarna is available for GB, but not for US. However, the method displays even the country is US.

What have you already attempted?
I am providing some default values when the payment element is being requested by from stripe.js. This includes the amount, currency and country ISO in uppercase. However, it doesn't appear that the country is being evaluated when the available payment methods are being returned.

What are you working on?
Building a customer-facing order solution for our business

cursive heronBOT
#

@tender pawn pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Can't find PriceID. If changing the amount on the fly, does this create a new PriceID?

Related Request ID(s)
price_1Qh529DOnh5qjbu1rImnVCTR

What have you already attempted?
Stepping through code.

What are you working on?
Payment system.

#

@vivid burrow pressed the 🀨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
All stripe address element inputs are the same height

What actually happened?
Country dropdown is really tiny, not consistent look with the other inputs

Reproduction Steps
https://member.stag.echelonfit.com/en/signup_payment?offerGuid=d419bf60-2276-4fa9-9b38-efc0faa8b691

you can use this page as a test

Question
How do I get the input to format correctly?

What are you working on?
A stripe elements address panel

#

@gleaming tundra pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Is there a way to use Apple's native JS API for Apple Pay with a Stripe as the gateway instead of relying on Stripe Web Elements ?

Doc/Guide Links
https://docs.stripe.com/apple-pay?platform=web#web-integration-considerations

What are you working on?
My platform supports multiple payment gateways, and we're trying to avoid having multiple implementations of Apple pay for all our gateways on the front-end.

cursive heronBOT
#

@exotic warren pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Is it possible to get an extended_authorization for MCCs outside of the list in the docs? For example VISA only allows the extension for (Hotel, lodging, vehicle rental, and cruise line).

Doc/Guide Links
https://docs.stripe.com/payments/extended-authorization

What are you working on?
We're providing an FDA cleared, insurance approved sleep test. We would like to charge $0 up front and only bill for the copay or full amount after we've done an insurance verification of coverage.

#

@solid bloom pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We offer a 7 day free trial and have recieved a huge amount of cards failing due to insufficient funds. Is the correct way to do this to put a hold for the full subscription amount and then cancel it if the user un-subscribes? Will this lower the amount of insufficient fund failures and block the users up-front?

Doc/Guide Links
https://docs.stripe.com/payments/place-a-hold-on-a-payment-method

What are you working on?
SAAS

cursive heronBOT
#

@glacial raft pressed the 🀨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
Not able to track payments

What actually happened?
I have a stripe account associated with ZOHO invoicing software. But not able to track which account that was. I am receiving the payment but don't now where that all going.

Reproduction Steps
I want to know how i can check account associated with Stripe.

Question
Let me know how i can track which account associated with Zoho and where i can track payments.

#

@grizzled sinew pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
A significant number of transactions failing or being blocked, which were not initiated through our website or API calls. Upon reviewing Settings -> Installed Apps, we found a few apps connected previously. Could these apps be causing the issue?

Related Request ID(s)
Settings -> Installed Apps

What have you already attempted?
already removed the installed apps

cursive heronBOT
#

@weary coyote pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Force customer to pay for additional teams.

I have pricing per seat. Now if the customer subscribes to yearly payment with 1 seat, i want to force customer to pay immediately for additional seats.

What happens : the subscription is updated immediately but payment would be happen next year.

What should happen : force customer to pay immediately

Related Request ID(s)
should i give a subscription id?

What have you already attempted?
tried to update subscription via dashboard , didnt help

cursive heronBOT
#

@static sequoia pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I have a HighLevel account. When I create a One time payment product in HighLevel, does it automatically sync to stripe? With the Price ID? Cause it is not showing on my end

Related Request ID(s)
n/a

What have you already attempted?
I attempted creating various products but they all stayed the same.

What are you working on?
I need the price ID for the one time product to connect it to FirstPromoter for referral rewards to work.

cursive heronBOT
#

@twilit badge pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Is there a best way to mimic the subscription_item_change_events object in Sigma using records from the Events API?

Related Request ID(s)
N/A

What have you already attempted?
Using trial and error with a table of Events records to attempt to match the record totals seen in subscription_item_change_events

What are you working on?
Attempting to create a change log for subscriptions in order to track and categorize subscription changes outside of Sigma

cursive heronBOT
#

@shut beacon pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I want to enable a collect a terms of service agreement with Stripe Checkout, checkbox on my payment page when sending a customer an invoice. I followed the process but cannot seem to make it work.

Related Request ID(s)
consent_collection.terms_of_service='required'

What have you already attempted?
I followed the process but cannot seem to make it work.

#

@plain mulch pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
if (lineItems.ShippingID != "") {
params.AllowPromotionCodes = stripe.Bool(false)
params.ShippingOptions = []*stripe.CheckoutSessionShippingOptionParams{
{
ShippingRate: &lineItems.ShippingID,
},
}
}

Question
Stripe is telling me I cannot allow promotion codes if I'm using a custom unit price, but I am setting allowPromotionCodes to false.

What have you already attempted?
N/A.

cursive heronBOT
#

@grand mist pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We switched over to the Payment Intents API. Our dashboard shows we are still accepting ACH credit transfer. Do we need to migrate over our customers to use bank transfers?

Related Request ID(s)
N/A

What have you already attempted?
Our feature is behind a flag. New customers joining our platform are successfully on bank transfers and are making payments successfully as well. The question is about older customers.

What are you working on?
Migration to Payment Intents API

#

@mental creek pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I am working on Stripe Connect for a venture and I want to learn more about the best practices with it. Below are my questions:

For Stripe Connect, are there any fees that are separate from integrating other Stripe products?

(Please reference the "What are you working on?" for this) If I am working on a business that allows venues to charge customers for certain features and benefits, would it make more sense to collect funds to us or have venues directly handle funds? How would refunds, liabilities, and disputes operate? What would be ideal practice?

How are taxes handled with Stripe Connect for both payout methods (us as platform or venues)?

Thank you for the support!

Doc/Guide Links
https://docs.stripe.com/connect/collect-then-transfer-guide
https://docs.stripe.com/connect/enable-payment-acceptance-guide

What are you working on?
Project that allows venues (connected accounts) to offer services and benefits to paying customers

cursive heronBOT
#

@abstract light pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Looking to create a form that is hosted on the stripe platform where I can pass in the price instead of a product to charge a customer.

Related Request ID(s)
price_1QhGD1D5K0YnDvpC903ZusVa

What have you already attempted?
Potentially looking at creating products on the fly but wanted to know if there was a different way.

What are you working on?
Migrating payment gateways

#

@wet crescent pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I see that when user enrolls from plan to plan the customer balance is filled. Instead I dont want that to happen. I don’t want them to have a balance on stripe and pay with balance

Related Request ID(s)
-

What have you already attempted?
Tried subscribing to differenet plans with different prices

What are you working on?
subscriptions

#

@stray swift pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
const options = {
mode: "setup",
currency: config.stripe.presentment_currency ?? "usd",
paymentMethodCreation: "manual",
appearance: {
theme: "stripe",
},
};
if (stripeSession) {
options.customerSessionClientSecret = stripeSession;
}

[...]

<Elements options={options} stripe={stripePromise}>
<StripePaymentElement />
</Elements>

Question
Our goal is to allow using a saved payment method. I can see the two tabs [Saved | Card] but by default Card is selected. We'd like Saved to be the default.

What have you already attempted?
Tried to find if there is an option in the documentation but came out empty.

What are you working on?
a React widget that integrates Stripe Elements

cursive heronBOT
#

@quiet tide pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Γ‰ possΓ­vel oferecer parcelamento no cartΓ£o de crΓ©dito no Brasil?

Related Request ID(s)
don't have

What have you already attempted?
Estou tentando integrar o Payments (payment intent) da Stripe em meu SaaS

#

@quaint vapor pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
What is the best way to record a refund on an invoice that was paid out-of-band?

Doc/Guide Links
Suppose a customer paid an invoice and it was marked as paid out-of-band (cash). A few days later they are refunded (cash). How do I reflect this refund in stripe as the invoice cannot be marked as refunded?

What are you working on?
Using dashboard

#

@lusty bolt pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How should I update my Apple Pay Payment Processing Certificate, as it is expiring next month?

Doc/Guide Links
https://chatgpt.com/share/678824fe-e2a8-8010-88f3-6a4603c70cfb

What are you working on?
I am working on a Pickup mobile app for a Coffee Shop (Yummy Future), which is built using flutter and uses the `pay` and `flutter_stripe` packages in order to integrate payments.

cursive heronBOT
#

@broken crater pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We received an email about a change in saving cards with terminals. Can we safely ignore it?

This is a follow-up for a question I asked yesterday: https://discord.com/channels/841573134531821608/1328873926050316369

Related Request ID(s)
n/a

What have you already attempted?
In the last message, @/palamedes asked

"Are you using Terminal (card present) to collect card information to save and use later?"

I have an answer now: yes. We're using the Terminal's readReusableCard method to retrieve card information, then saving it for later use.

#

@grand mist pressed the 🀨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
The invoice.payment_failed webhook event should have fired with bank transfers

What actually happened?
The invoice.payment_failed webhook event did not fire with bank transfers

Reproduction Steps
I can provide the customer link

Question
How do we make sure that `invoice.payment_failed` webhook event gets fired and how to trigger it manually if need be?

What are you working on?
Migrating to PaymentIntents API.

#

@hard ridge pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hi

Is it possible for Stripe to not attempt to charge an unpaid subscription when user sets up a new subscription?

What we are noticing is that when a subscription goes into unpaid state, users create a new subscription and then Stripe uses the card details from that subscription to charge the previously unpaid subscription. We'd like for it to not do that.

Related Request ID(s)
None

What have you already attempted?
- I've tried setting auto advance to false, but that does not help.
- Tried voiding the unpaid invoice but that moved the subscription into "active" state since a previous invoice was paid.

cursive heronBOT
#

@grand grail pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
Looks like a bug with subscription cancel API

Question
https://dashboard.stripe.com/acct_1JN0BgIpgMLHzeA1/logs/req_IgwJyVffvtkEYo?t=1736978395

Cannot cancel a subscription for reason No such subscription: 'sub_1QAbFnIpgMLHzeA1mtXgxR62' however when performing a GET request to this ID it is available

What have you already attempted?
Looks like a bug with subscription cancel API

#

@unborn dagger pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I have a subscription sub_0QdL9N5QM0nABsUHqLtZEIml
It has this coupon: vzQi6agq "$240.00 off forever"
I have a new coupon gseW8mfh "$360.00 off forever"
I make a preview request: req_ISR1VhO1bHE315
in lines[0] it says "Unused time on 2 Γ— Professional Seat (with $120.00 off) after 04 Jan 2025" and the proration amount is missing $120.
It should be the $240 off coupon, not $120.

This was working before (see req_ImDyUpKSaQNDep)
The only difference was that I setup the subscription with this parameter " "payment_behavior: 'default_incomplete'" when I change that this error happens.

Related Request ID(s)
see question

What have you already attempted?
n/a

What are you working on?
I'm trying to improve the speed of our plan updates endpoint.

cursive heronBOT
#

@hollow plover pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
$data = [
'mode' => 'payment',
'success_url' => $successURL,
'cancel_url' => $cancelURL,
'line_items' => $lineItems,
'submit_type' => 'donate',
'client_reference_id' => $clientReferenceID,
'payment_intent_data' => [
'application_fee_amount' => $applicationFee,
],
];

Question
I'm working on a feature to allow my users to accept "pay-what-you-want" donations from subscribers. Normally I set our application fee at 10% when creating a subscription. However, when using a checkout session for a payment, I see I need to provide an integer for the application fee, but I don't know how much the total will be until after the donation is made. Is there any way I can use a percentage?

What have you already attempted?
Read through the docs on Checkout Sessions and didn't see the option. https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-payment_intent_data-application_fee_amount

What are you working on?
A platform that lets authors sell subscriptions to email newsletters, and accept donations.

cursive heronBOT
#

@dreamy terrace pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I'm using Stripe connect in test mode, how do I move time forward or mark the account balance as available without waiting multiple days for it to settle. I would like to test the balance.available webhook with my funds.

Related Request ID(s)
N/A

What have you already attempted?
See above.

cursive heronBOT
#

@hardy vessel pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
i sent an invoice to a customer , i sent to myself to see what it would look like and when i clicked the payment part there is no way to input payment method what is the issue?

Related Request ID(s)
n/a

What have you already attempted?
s

What are you working on?
invoice

cursive heronBOT
#

@delicate gorge pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We’re using Stripe in test mode and calling stripe.invoices.sendInvoice(). The API responds with 200 OK, but no actual email is sent, and there’s no record in the β€œSent emails” section of our Stripe Dashboard. According to the Stripe documentation: https://docs.stripe.com/billing/revenue-recovery/customer-emails?locale=en-US#test-your-configuration

Could you confirm if sendInvoice() is expected to dispatch emails in test mode (particularly to a verified-domain or team-member email), or if we must switch to live mode to test actual invoice emails?

Related Request ID(s)
N/A

What have you already attempted?
- We verified the email address is one of our team members or within our verified domain.
- We confirmed the account is in test mode.
- We looked at the β€œSent emails” section in the Dashboard and found no entries for these invoices.
- We reviewed the Stripe docs (link above) and saw references to certain notifications that are sent in test mode, but not specifically sendInvoice().
- We checked the Developer > Logs and found no errors or bounces.

What are you working on?
Invoice

#

@bleak fossil pressed the ❌ An Error button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Error Message
pending charge

Question
i have a charge $9.99 from today (01-15-2025) on visa ending in 3927. my bank shows additional $0.19 for international fee. the charge is not authorized. your website does not allow for submitting any disputes directly.

What have you already attempted?
I contacted my bank and they can not do anything because it is "pending". the company (webnovel aka cloudary holdings) can not do anything and says to contact you (stripe) because it is pending.

Reproduction Steps
go to your website and try to file a dispute without having any account

What are you working on?
nothing

cursive heronBOT
#

@quartz raven pressed the ❌ An Error button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Error Message
Email

Question
i have not signed up for Stripe.

What have you already attempted?
Getting to find an email to report this is like chasing your tail

Reproduction Steps
you are sending me emails who should be going to another person.

What are you working on?
stopping you sending me someone elses email

cursive heronBOT
#

@grave blade pressed the 🀨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
Customer complete payment

What actually happened?
In Production, customers tried to pay but failed. After i check the reason it failed is because invoice items not included in invoice.
But in Test, it work properly

Reproduction Steps
1) Create invoice item
2) Create Invoice <- Invoiceitems not exist in invoice lines
3) Finalize Invoice,

Question
Why in test work fine but in production not work properly. Last year everything is fine but recently it become problem

What are you working on?
checking the reason behind it

cursive heronBOT
#

@junior marsh pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
When creating checkout session with a connect account and requiring users to consent to TOS but api retuned error saying the URL is not set.

Related Request ID(s)
req_Tb1JTGbzedaIhQ

What have you already attempted?
There are no options to add TOS URL in the connect account dashboard (https://dashboard.stripe.com/<acct ID>/account/status), and the closet thing is in the parents dashboard (https://dashboard.stripe.com/connect/accounts/<acct ID>/profile) but still no options to add TOS URL.
Connected with live chat support and they said the account is an express account, the URL has to set on the parent, and when told it is set they claim that it is invalid (we are using a link to google drive). But the parent account has been working normally so am kind of lost here

cursive heronBOT
#

@dusky jasper pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hi all, I hope you're having a great day. just wondering what's the best solution to an issue we're currently facing:
We use the following piece of code to charge our connected accounts directly to their stripe account balance,
await charges.create({
amount,
currency,
source: stripeAccount,
});
This works well with the connected accounts we have in the same region as our platform account (Europe). The problem is when we want to do a charge in a connected account that's located in a different region (US) this code des not work. what can we do to resolve this? thanks

Related Request ID(s)
not available

What have you already attempted?
I have tried this documentation here and replace the charge with a transfer from the connected account to the platform but still the same issue
https://docs.stripe.com/connect/account-debits?locale=en-GB#transferring-from-a-connected-account

cursive heronBOT
cursive heronBOT
#

@steep summit pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I want to know the possibility of integration of implementing split payments in the stripe?

Related Request ID(s)
No Logs

What have you already attempted?
I think i can use subscriptions for this but needs to be sure.

What are you working on?
I am working on implementing a system where user can pay total amount in one payment or he can pay the total amount in 6 months by splitting the amount

cursive heronBOT
#

@shy cliff pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Am I right in reading that to simply increase the price of subscriptions I need to write custom code to loop through every customer and switch the price assigned to their subscription? There's no UI option to change this like there is on Apple Appstoreconnect etc?

Doc/Guide Links
https://docs.stripe.com/billing/subscriptions/change?locale=en-GB

What are you working on?
Increasing price of subscriptions

#

@surreal lotus pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
{
"error": {
"message": "The client_secret provided does not match any associated PaymentIntent on this account. Ensure the publishable key used belongs to the same account that created the PaymentIntent.",
"param": "client_secret",
"request_log_url": "https://dashboard.stripe.com/logs/req_OBZB9llcpq0qyl?t=1737016563",
"type": "invalid_request_error"
}
}

Implemented .net API with Angular front-end
front end applied Publishable key & backend applied
Secret key. The check out to page not display but I can see transaction Incomplete in dashboard

Related Request ID(s)
https://docs.stripe.com/payments/quickstart?client=html

What have you already attempted?
Many time attempt, go though you tube tutorial as well, look like my code fine

What are you working on?
building API for stipe payment

#

@cloud parrot pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
In our react app for payment we plan to use ExpressCheckoutElement for google pay, apple pay and amazon pay; and CardNumberElement for cards payment.
When using ExpressCheckoutElement, we create a confirmationToken which we send to backend. Our problem is that CardNumberElement does not support creation of confirmationToken. Did we miss something, what is the best practice for our case?

Doc/Guide Links
https://docs.stripe.com/payments/payment-element/migration-ct

What are you working on?
Online ordering app

#

@vocal wagon pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Why does 3ds popup stops appearing after several attempts despite the card saying 3ds required? Is this because it is a test card?
I am using 4000002760003184 test card which says always authenticate.

Related Request ID(s)
Invoiceid: in_1QhdsWJqE5f9ucQhBcvz5JYe

What have you already attempted?
Reading docs

cursive heronBOT
#

@severe forge pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
'mode' => 'payment',
'customer' => getCustomerID(),
'line_items' => [
[
'price' => $id,
'quantity' => 1,
],
],
'payment_intent_data' => ['setup_future_usage' => 'off_session'],
'saved_payment_method_options' => ['payment_method_save' => 'enabled'],
'allow_promotion_codes' => true,
'success_url' =>

Question
How can i test webhooks for pending payments, like if i make a payment with checkout, i am handling it for case 'checkout.session.completed':

how about if the payment goes in pending? how do i handle that . Do i only get checkout.session.completed
if the payment is deducted?

What have you already attempted?
N/a

cursive heronBOT
#

@stark atlas pressed the πŸͺ Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hi,
I just made an online payment via Stripe but the receipts are not automatically sent to the address provided during payment.
I have to go to my dashboard and send it manually.
I thought the receipt could be sent automatically.
Does this happen through my script code or through the dashboard?
Thank you

Related Event ID(s)
evt_3QhpsBGA06qAVL7E1XTEVUDi

What have you already attempted?
I looked in the dashboard but couldn't find the option.
Do I need to insert a line of code?

#

@astral owl pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
We currently only use recurring payments (subscriptions) to manage customers. But we want to offer Klarna. From what I can tell so far this seems to only become available via the express checkout if the charge is a one time charge. Is it possible to support Klarna with a subscription, perhaps via a schedule with an end behaviour to cancel and single payment?

Question
As above - no code block to provide

What have you already attempted?
n/a

What are you working on?
laravel / angular

#

@bronze kestrel pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
payment_method_types: ['card', 'klarna'],

Question
during the creation of a payment intent I have
payment_method_types: ['card', 'klarna'],
how can i choose the klarna options between the 4 choices?

What have you already attempted?
I'm trying to find the api parameter to pass the klarna options

What are you working on?
introducing klarna as a payment method

#

@past aurora pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
I have used stripe-php laravel package.
I have two types of subscriptions
1) Normal Subscription (\Stripe\Subscription)
2) Scheduled Subscription (\Stripe\SubscriptionSchedule)

Now I want to implement pause, resume and cancel subscription in stripe and laravel.

Question
I have used stripe-php laravel package.
I have two types of subscriptions
1) Normal Subscription (\Stripe\Subscription)
2) Scheduled Subscription (\Stripe\SubscriptionSchedule)

Now I want to implement pause, resume and cancel subscription in stripe and laravel.

What have you already attempted?
\Stripe\SubscriptionSchedule::update(
$subscription->schedule,
['end_behavior' => 'cancel']
);

What are you working on?
I want to implement pause, resume and cancel subscription in stripe and laravel.

cursive heronBOT
#

@wet crescent pressed the πŸͺ Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I want to manually trigger the subscription renewal webhook for testing purposes. I want the trigger to be fired for a specific subscription and customer

Related Event ID(s)
-

What have you already attempted?
I have created a subscribtion and subscribed a user to it

What are you working on?
webhooks

cursive heronBOT
#

@limber compass pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I have a logical question: We are a German based company and we have people paying directly e.g. via Credit Card. We are required by law to issue an invoice (not a receipt) for the transaction. In that case the invoice would be marked as "paid" already (since the customer paid already).

I obv process the transaction and create a separate invoice, mark it as paid and send it out to the customer.

My problem: I cannot find a way to connect the paid transaction to the (paid) invoice I created right after payment completion. This in turn means I cannot connect the transaction to the invoice...

Related Request ID(s)
not available

What have you already attempted?
I read through the entire Docs related to invoices but I cannot find a way to link both invvoices and transactions

What are you working on?
Ecom Platform in Germany

cursive heronBOT
#

@halcyon scarab pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
AccountCreateParams params =
AccountCreateParams.builder()
.setCountry("US")
.setEmail("jenny.rosen@example.com")
.setController(
AccountCreateParams.Controller.builder()
.setFees(
AccountCreateParams.Controller.Fees.builder()
.setPayer(AccountCreateParams.Controller.Fees.Payer.APPLICATION)
.build()
)
.setLosses(
AccountCreateParams.Controller.Losses.builder()

Question
No such property: CUSTOM for class: com.stripe.param.AccountCreateParams$Controller$StripeDashboard$Type

this error is comming

What have you already attempted?
https://docs.stripe.com/api/accounts/create

i have refered this doc here i need to get a custom connected account so instead of express i tried passing custom

What are you working on?
i was integrating strip to my application

#

@magic lance pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I have in my app one-time purchase using Stripe checkout. Client wants to add payment in installments in Stripe Checkout. I have enabled "Klarna" now in test dashboard. I am from Croatia (European Union) but I don't see on the list Croatia. I'll add image in thread.

Related Request ID(s)
x

What have you already attempted?
x

#

@waxen sluice pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
Not relevant for this question.

Question
Terminal availability in Poland was supposed to be released on the 15/1. Do we have any updates/news on this? We are still getting an error in sandbox mode stating that the country is not available with stripe terminal yet.

What have you already attempted?
Tried connecting a WisePad 3 to a terminal location with address in Poland.
Returns error:
The BBPOS WisePad 3 reader is not supported in Poland (PL) as determined by the Location this reader is registered to, tml_F4HyPASSKCwHIc. For more information about which countries each Terminal reader may be used in, see https://stripe.com/docs/terminal/choosing-reader-and-sdk#availability.

What are you working on?
Expanding our terminal product to Poland.

cursive heronBOT
#

@astral owl pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
We currently only use recurring payments (subscriptions) to manage customers. But we want to offer Klarna. From what I can tell so far this seems to only become available via the express checkout if the charge is a one time charge. Is it possible to support Klarna with a subscription, perhaps via a schedule with an end behaviour to cancel and single payment?

Question
I had a thread open but I forgot... and neglected to reply!

What have you already attempted?
n/a

What are you working on?
laravel and angular

cursive heronBOT
#

@bitter heron pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
https://support.stripe.com/questions/testing-apple-pay-with-stripe

Question
I am developing a checkout with payment elements. Want to enable apple pay. But for testing that I need Safari Browser. Would Safari on Windows or Linux would work? Or it has to be mac based?

What have you already attempted?
Exploring

What are you working on?
I am developing a checkout with payment elements.

#

@agile bone pressed the πŸͺ Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I am trying to deactivate the payment link, which was generated using Node.js. The payment made through the generated link goes to the connected account. Once the payment is completed, we are trying to deactivate the payment link via a webhook, but we are unable to deactivate it. The error being thrown is 'resource not found,' even though the payment ID is present in the Stripe account.

Related Event ID(s)
checkout.session.completed

What have you already attempted?
I have tried all possible ways to fix it.

cursive heronBOT
#

@hushed jasper pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I just finished implementing your payment system. I am not starting to test the error credit cards. I am getting a 402 response when using the first one 'generic decline' 4000000000000002. This is resulting in no response AND no redirect.

Related Request ID(s)
NA

What have you already attempted?
Everything I have read said I should get a response or a redirect. I'm not sure what I am suppose to do.

#

@main verge pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I can't get the payment methods on a related invoce. All my test return an empty data but I can see payments methods on the invoce in the dashboard.

Related Request ID(s)
req_BG6umcZbjwSrww

What have you already attempted?
I tried : /v1/payment_methods and /v1/customers/{customer_id}/payment_methods (request ID).

What are you working on?
I am implementing a list of invoices in my company app.

#

@hollow roost pressed the 🀨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
When my browser users create a payment intent with "setup_future_usage" set to "on_session" the verbiage added below the rendered card element shouldn't tell them that they're giving authorization for future charges. "off_session" should imply authorization for future charges, but on_session should mean the user will need to manually authorize any future charges.

What actually happened?
When a card element is rendered for a payment intent created with setup_future_usage = "on_session" the following verbiage is added by Stripe:

"By providing your card information, you allow BibleStudy.tools to charge your card for future payments in accordance with their terms."

Reproduction Steps
My backend generates a client secret as follows:

intent = await stripe.paymentIntents.create({
"customer": "cus_QXhZCXv1t7VbFk",
"payment_method_types": [
"card"
],
"amount": "300",
"currency": "usd",
"setup_future_usage": "on_session"
});

And then returns intent.client_secret to the browser, which renders the card element.

Question
How can I control the verbiage at the bottom of the card element? When the user confirms a setupIntent they're authorizing future automatic payments and in this case the generated verbiage is fine, but a paymentIntent with setup_future_usage="on_session" only for saving the card for future manual payments. How can I get different verbiage in this case?

#

@winter tulip pressed the 🀨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
If a user connects to Stripe through the system I am working on and logs into an already existing Stripe account that they have, then that account becomes the connected account

What actually happened?
Stripe created a new account for that users profile which is connected to our host account instead of using their already existing account.

Reproduction Steps
Connect to existing Stripe account

Question
Tyrying to confirm what the behaviour is here? Does Stripe always create a new connected account instead of using the user's existing account?

What are you working on?
Connected Accounts

cursive heronBOT
#

@agile fractal pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I want to configure manual payouts for a stripe connect express account.
Does delay_days define how long new payments are held in reserve before they’re available for payout?
If I use the following configuration:
await stripe.accounts.update(
connectedAccountId,
{
settings: {
payouts: {
schedule: {
delay_days: 14,
interval: 'manual'
}
}
}
}
);
Will funds only become available for manual payout after 14 days?
Is this the correct way to set up manual payouts with a delay?

Related Request ID(s)
...

What have you already attempted?
...

What are you working on?
Platform using stripe connect

#

@tribal salmon pressed the ❌ An Error button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Error Message
I want to login but I can’t

Question
I want to login but I can’t, could you help me

What have you already attempted?
I want to login but I can’t, could you help me

#

@leaden leaf pressed the 🀨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
One of my customers submitted a payment through Checkout and that payment does not appear in her Customer account.

What actually happened?
The payment is present in Stripe with her email, but associated with a different Customer ID (starting with gcus_ instead of cus_).

Reproduction Steps
Here are the payment IDs: pi_3QfXgGH1Z1K59F9K1SM6wTLp, pi_3QeQn4H1Z1K59F9K1Z4Sp8pE

Question
Is there a way to (1) force future Checkout transactions to land in the same customer and (2) migrate this transaction to the same customer?

#

@uneven plover pressed the ❌ An Error button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Error Message
"error": {
"advice_code":
"try_again_later",
"code":
"processing_error",
"decline_code":
"processing_error",
"doc_url":
"https://stripe.com/docs/error-codes/processing-error",
"message":
"An error occurred while processing your card. Try again in a little bit.",
"network_advice_code":
"Decline, invalid transaction",
"network_decline_code":
"9-902, 12",
"param"

Question
por que ocurre este error? el cvv es digital

What have you already attempted?
El pago debe reintentarse. Si aun asΓ­ no se puede procesar, vuelve a intentarlo mΓ‘s tarde.

What are you working on?
developer

cursive heronBOT
#

@gleaming linden pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Can email be omitted during a custom checkout SEPA payment if I already have a custom way to communicate with customers?

Related Request ID(s)
stripe.confirmSepaDebitSetup()

What have you already attempted?
I tried to remove the email field creating a full custom SEPA checkout page but the API requires the email. Is that email really necessary even if I disabled stripe communications to my customers?

What are you working on?
A checkout page for old people products that often don't have an email

#

@grand mist pressed the πŸͺ Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
The `invoice.payment_failed` webhook event is not getting triggered with Bank transfers.

Related Event ID(s)
I can provide the customer ID

What have you already attempted?
We tested this in our staging environment last month and the `invoice.payment_failed` event was getting triggered

What are you working on?
Migrating to PaymentIntents API.

#

@warm locust pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Is there a way for me to get a count of all active subscribers and replicate this data on the Stripe dashboard?

Related Request ID(s)
Dashboard > Active Subscribers

What have you already attempted?
I can pull active subscriptions and create a count that way, but that doesn't use Stripe's already-built logic for active subscribers leading to inaccurate results.

What are you working on?
We want this data to empower our analytics for marketing.

#

@lean girder pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
why some times the next action for payment intent be null and other times it is
"redirect_to_url": {
"return_url": "example.com/confirmpayment,
"url": "https://hooks.stripe.com/
},
i'm using a card payment and i don't redirect the user to any page but it still for some clients for me send the next action as null and the payment will success and other times it will be redirect to url and will fail

Related Request ID(s)
nothing

What have you already attempted?
tried to enable all the payment types on my test key and it did not help at all i got null as the payment type
since i'm working with clients and i don't maintane their stripe accounts i can't tell what stripe payment they accpects

#

@honest vale pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
<Elements stripe={stripePromise} options={myOptions} />

Question
I am adding an option in stripe that is passed to the options prop in React. Unfortunately this feature is only intended for some users. The particular feature is NOT supported by the elements.update() function. Is there some way to update myOptions based on the user's state?

What have you already attempted?
Tried passing the property to the update function, tried rerendering <Elements>
I noticed in the typing file in stripe-js that
```
* Once the stripe prop has been set, these options cannot be changed.
```

cursive heronBOT
#

@karmic kernel pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How do I get the unit amount here per currency? I'm currently doing: stripe.Price.list(product=product_id, active=True, currency=currency, limit=1, expand=['data.currency_options'])

Related Request ID(s)
req_0EpyabWANaHX5f

What have you already attempted?
Reading docs, trying different things with the API

cursive heronBOT
#

@rigid flame pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Are there *any* ways that a fully authorized `PaymentIntent` can fail to capture as long as we haven't had a delay causing an expiration and we don't cancel the `PaymentIntent` ourselves in between the auth and the capture?

Related Request ID(s)
n/a

What have you already attempted?
n/a

What are you working on?
We are building a partial auth + capture flow, and we are concerned with identifying potential error cases we need to handle in our capture step.

cursive heronBOT
#

@honest vale pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
just a follow up from https://discord.com/channels/841573134531821608/1329493272208474183

<Elements stripe={stripe} options={myOptions}>

Question
Is there any solid drawback to mounting <Elements> in more than one place? IIRC it is recommended to wrap the entire app in the <Elements> provider for fraud prevention and performance. If i rendered it in more than one place, does anythign bad happen?

What have you already attempted?
see earlier conversation

cursive heronBOT
#

@lunar forge pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Via affiliate links- We want to give 50% of the revenue generated by the sub to the affiliate's Connect account for the first 6 mo.

It doesn't seem possible to configure a sub via the API to pay part of it to a Connect account only for 6mo. Knowing this, we used a webhook to create a transfer of 50% of the amount of a subscription. That is when we ran into an error saying that we cannot transfer funds to a Connect account this way. The msg mentioned using the "recipient" service agreement but that seems to be only available outside the US, we want to cover all possible countries including US

Related Request ID(s)
req_YQbf1M2vGWcRoC

What have you already attempted?
We've reached out to the support team a few times, but it seems that they aren't fully understanding.

What are you working on?
A referral/affiliate program for our users with Stripe Connect. (Similar to Beehiiv)

#

@cold ridge pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We're creating an internal system where people can generate requests to Return Terminal Hardware orders to our internal Support team. Our team then uses the Stripe Portal to initiate these returns as per your documentation. What we're wondering is, is there a way to track the status of these returns through the API? We'd like to display things like Return Initiated, Return Processed, etc on our end.

We particularly want to know exactly when the return is received and exactly which SKUs/Devices were returned. Any ideas of how to achieve this?

Related Request ID(s)
N/A

What have you already attempted?
We use the Terminal Hardware Orders API to initially create the orders so we have a lot of the information stored in our UI. This is where we're placing a REQUEST RETURN form.

Our goal is to disable Readers from being used in our UI if they've been Returned and show our end users the status of the Return they've initiated.

cursive heronBOT
#

@rapid holly pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We run a Stripe platform account. Our merchants, become standard connected accounts.
We have a potential customer who already has a business with their own stripe platform account and many connected accounts. They want to use our product but still be able to help manage their existing connected accounts. I don't see any documentation on this scenario where two platform accounts connect.

  1. What happens if their platform account connects to our platform account? Are their connected accounts migrated to ours, remain on theirs, or something in between?
  2. Is there any API to manage connected accounts?

Doc/Guide Links
https://docs.stripe.com/connect/dashboard/viewing-all-accounts

What are you working on?
I work at ThriveCart and we build checkout page builder software.

#

@lunar forge pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Can't open old ticket: https://discord.com/channels/841573134531821608/1329516944042233989

Follow on from that: creating an account using the "recipient" service agreement asks us to only make the "transfers" capability available, but only assigning the "transfers" capability requires Stripe to whitelist us. Apparently, they whitelisted "Ireland" only but we would need to be able to do the same for all countries available.

Related Request ID(s)
req_YQbf1M2vGWcRoC

What have you already attempted?
https://discord.com/channels/841573134531821608/1329516944042233989

What are you working on?
A referral/affiliate program for our users with Stripe Connect. (Similar to Beehiiv)

#

@versed fjord pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
import type Stripe from 'stripe';

export async function getTotalAvailableCredit(stripe: Stripe, customerId: string) {
try {
let totalAvailableBalance = 0;
let currency: string | null = null;

// Step 1\: List all credit grants for the customer
const creditGrants = await stripe.billing.creditGrants.list\({
  customer\: customerId,
}\);

if \(!creditGrants.data \|\| creditGrants.data.length === 0\) {
  console.log\('No credit grants found for the custo

Question
Hi, I am trying to figure out how to get the customer's available (unspent) billing credits. I can get the total amount of billing credits granted to them but I can't figure out how to get the amount they have spent on usage (metered usage). Currently, I am getting the amount spent from upcoming invoice but it turns out that the invoice is not updated very frequently, there seems to be big latency between the 'metered usage event' and when the invoice is updated.

What have you already attempted?
I have tried using the `billing.credit_balance_summary.balances.available_balance` but it does not take into account any usage that hasn’t yet been invoiced for a customer.

https://docs.stripe.com/api/billing/credit-balance-summary/object#billing_credit_balance_summary_object-balances-available_balance

What are you working on?
I am building SaaS where user can purchase in app credits and spend them while using the app. Similar to the alpaca tokens example in docs (credit burndown).

#

@terse whale pressed the πŸ“š Doc or Guide button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Link to the Doc/Guide in question
https://docs.stripe.com/billing/subscriptions/upgrade-downgrade#see-also

Question
Hey Stripe team.

I have a question about prorations - specifically about the credit line item for unused time. When would this line item not be applied to an invoice? We noticed in two of our prorated invoices (IDs: in_1Qhbn4LBCOYLGWIcvYx0i5wc and in_1QhbkDLBCOYLGWIcFSdeO7xe), the test customer was charged but not given the unused credit. I did notice that the latest recurring invoice was set to "past due" (ID: in_1QSEUxLBCOYLGWIcYUivVOep) and another was just open (ID: in_1QdTHRLBCOYLGWIcR5HKSTHW). Could either of these invoices affect crediting the customer for unused time?

What have you already attempted?
I tried to test out what happens when a subscription fails a payment on an invoice (using a test card that always declines), which leaves the subscription to past due. However, I can't seem to mimic the behavior because of the test card I'm using, and when I update the test card to a valid one, it automatically pays the invoice, setting the subscription's status to active again.

#

@untold cedar pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
{
"description": "....",
"statement_descriptor_suffix": "....",
"metadata": {
....
},
"currency": "usd",
"off_session": "true",
"payment_method": "pm_1QhyUEBSaOfzvth3dS4SqPPo",
"confirm": "true",
"amount": "5175",
"payment_method_types": {
"0": "card"
}

Question
We are attempting to build a guest checkout flow where no customer will be passed into the paymentIntent. When trying to confirm the paymentIntent with a paymentMethod specified (which was created via a setupIntent), we get the error "The provided PaymentMethod cannot be attached. To reuse a PaymentMethod, you must attach it to a Customer first." The request here is req_oC3fSSkEk7bTk5.

What have you already attempted?
I've reviewed the Setup Intent & Payment Intent docs and I believe that the passing of a customer in the paymentIntent is optional, but I've been unable to get past this error when trying to use the credit card payment method that was obtained through the setupIntent.

#

@steep slate pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How to take payment for previous unpaid invoices when customer buys new subscription?

Related Request ID(s)
Unpaid previous invoices

What have you already attempted?
Tried to select all open and uncollectible invoices but nothing was found for mu customer. I tried something like this:
1) Customer buys subscription through checkout
2) He paid at the end of billing period
3) After payment I deleted his payment method so he failed in next.
4) Now he has unpaid subscription for which he should paid me because i take payment at the end of billing period
5) But cant his sub with status uncollectible or open.

#

@west otter pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I'm trying to create mappings for addressElement 's state/province to iso code we need for our backend apis to calculate tax. Can you tell me which countries have this field visible ?

Related Request ID(s)
NA

What have you already attempted?
Tried to look for each country but it is too many.

What are you working on?
Integrating Address element to One page checkout

#

@dreamy terrace pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I am using the Payment Element and would like access to the country value in the frontend so I can power some other parts of the UI with it. Is this possible?

Related Request ID(s)
N/A

What have you already attempted?
See above.

#

@craggy wadi pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How to make my checkout session being populated with previous payment details of the customer ?

Related Request ID(s)
evt_1QhtF2BRXZXYRgX315AYEYWz

What have you already attempted?
I provide customer ID to the checkout session API and I see in the Stripe customer dashboard payment details are there, but when initiate new session there is empty card details, only email populated. Am I missing some other parameters ?

#

@agile fractal pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How to charge a connected account which is in another country. I am getting this error: Account debits are not supported from... XXX

I am using Stripe Connect Express for my users and i have manual payments.

Related Request ID(s)
req_VuQAd7u2qvxbqn

What have you already attempted?
I already attempted using the charges and transfers endpoints

What are you working on?
A platform with stripe connect

#

@steady knoll pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
When doing a transfer I hit an insufficient funds error but dashboard said we had plenty. When checking balance API I saw the balance was a total of the source types (card, bank account) and realized we were always using the default source type in the transfer which was card and the available balance was all in bank_account.
I am planning to check the balance before making transfer and was going to update the source type but was not sure if I can simply check for one with a positive amount or if I should always choose the same as payment method? And why? Does the source type map to how the funds were payed or do they map to a bank/card we have registered somewhere?

Doc/Guide Links
https://docs.stripe.com/declines/codes

https://docs.stripe.com/connect/separate-charges-and-transfers

https://docs.stripe.com/api/transfers/create#create_transfer-source_type

https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types

What are you working on?
My application accepts payments from vendors and transfers to worker accounts once the payments are successful.

cursive heronBOT
#

@woven heron pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hi Guys, i'm trying save payment method, but i'm receiving the error in my sub-account using stripe Connect.

all informations is right, but i don't know what's happen.

This Connect account cannot currently make live charges. The `requirements.disabled_reason` property on the account will provide information about why this account is currently disabled. If you are a customer trying to make a purchase, please contact the owner of this site. Your transaction has not been processed.

Related Request ID(s)
https://dashboard.stripe.com/acct_1QhzI6BUkSmiwoVk/events/evt_1Qi0CVBUkSmiwoVkQMG71HXE

What have you already attempted?
I try do all the methods.

What are you working on?
I'm building on system of signatures.

#

@frigid imp pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How can we reuse payment method tokenized in platform account after copying it to connect account?

Related Request ID(s)
req_SvMtrMuaqa1dSU, req_7UUTJ824kDVCIY

What have you already attempted?
I tried attaching the platform payment method to a customer and ran into an error.

What are you working on?
Hello, we tokenize a payment method in platform account and then copy it over to a connect account by creating a new payment method and supplying the platform account's payment method as source.

#

@abstract nimbus pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
When converting a free trial to subscription via the API how do you handle if the user's credit card is declined? I need them to be charged immediately or else get a simple response that the payment was declined

Related Request ID(s)
No idea what this means

What have you already attempted?
I done everything but pull the hair out of my head. This has to have a simple answer and not be so complicated

What are you working on?
Existing project that is just adding free trial now

#

@torn halo pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
For a prospective partner who already uses Stripe, we want to process payments for them on our platform. They are already generating stripe tokens on the front end and they want to be able to pass us stripe tokens to deal with payments. Would the best practice be to give them a restricted access key with appropriate permissions such that the tokenization could be done under our identity and then once we get the token, we process it into a Payment/SetupIntent? Would that even work?

Doc/Guide Links
https://docs.stripe.com/api/tokens
https://docs.stripe.com/stripe-apps/api-authentication

What are you working on?
For a prospective partner who already uses Stripe, we want to process payments for them on our platform. We have a Stripe account as well.

cursive heronBOT
#

@stuck tundra pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
I'm trying to implement BACs Direct Debit. Once the payment is completed by the customer we fetch customer details using stripe API and then take out the payment method id using following keys: stripeCustomer?.invoice_settings?.default_payment_method to sell an upsell product.

Question
For SEPA Direct debit, card and other payment methods, this field is populated and there is no worries in making upsell payment for the customer. But in case of BACs Direct Debit, this field is coming empty and we are unable to proceed with the upsell product transaction.

What have you already attempted?
Initiating stripe payment intent using stripe web sdk as we have been doing for other payment methods and then confirming payment using confirmPayment method. By doing this with other payment methods, inside customer details invoice_settings.default_payment_method gets populated which can be used to sell upsell product. But in case of BACs Direct debit, it is not getting populated and hence couldn't retrieve payment method id to do further transactions for the customer.

#

@vale quail pressed the ❌ An Error button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Error Message
A new issuing authorization was created and declined due to your spending controls.

Question
This keeps happening for our connected accounts even after they have updated their spend limits. There is also plenty in the issuing balance.

What have you already attempted?
Having them update limits, wait 10 minutes after the update and declined transactions.

Reproduction Steps
Card is declined and updating spend limits and still declined.

What are you working on?
Issuing plus Connect

cursive heronBOT
#

@reef token pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I'm getting stuck at the Verify Personal details SSN field when attempting to do onboarding for a Connect account in Test. This has worked last week, but today, it is not working. The Continue button spins for a secon and then just comes back.

Related Request ID(s)
n/a

What have you already attempted?
I have checked dev tools, looked for events, the only event I see is the AccountLink create event, that we create when a user goes to click on the "Setup your account" link in our app. The redirect does work. Also on the dev box, I get captcha excessively now. Annoying. I have taken the link and tried on another browser on my local pc, vs DevBox and it too got stuck at same spot.

What are you working on?
Adding Affiliate program to our site and using Connected Accounts. Goal is to determine what event is fired when a user completes onboarding, so I can flag the user as ready to receive payments.

cursive heronBOT
#

@grand mist pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Converting ACH credit customers to bank transfer. How to achieve that?

We migrated to bank transfers last week. New customers onboarding our platform are successfully using bank transfers.

We have some old customers still on ACH credit transfer.
How do we migrate them over to Bank transfers and make sure that if they have any cash balance, that transfers over too.

Related Request ID(s)
N/A

What have you already attempted?
Working on testing this in the test mode.

What are you working on?
Migrating to PaymentIntents API.

cursive heronBOT
#

@exotic wigeon pressed the πŸ“š Doc or Guide button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Link to the Doc/Guide in question
https://docs.stripe.com/billing/testing/test-clocks/simulate-subscriptions

Question
Is it possible to use test clock on customer with scheduled subscription?

What have you already attempted?
I noticed there is no test clock present on the scheduled subscription. Upon reading on the attached link, it seems scheduled subscription is ineligible for simulation.

Is there a way to test this scenario?

cursive heronBOT
#

@turbid locust pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Meter event summaries do not reflect immediately? Is this normal?
When I report the event it is immediately reflected on the dashboard but querying the same summary for the same period the metered event doesn't show until 5 minutes later.

Doc/Guide Links
https://docs.stripe.com/api/billing/meter-event-summary

What are you working on?
Custom tool that consumes 1 credit per use.

#

@glad acorn pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
can I get payment methods object using payment intent id?

Related Request ID(s)
payment methods id

What have you already attempted?
I am working with webhook to verify the payment and want to get payment methods object I am listening to checkout.session.completed but there is no payment methods there only payment intent or customer id

#

@rocky nimbus pressed the ❌ An Error button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Error Message
On client: There was an error sending your transaction. Please try again or contact support.

In stripe dashboard: PaymentIntent status:
requires_payment_method, despite it having a payment method

Question
When trying to complete a crypto payment, I'm running into some errors. I'm getting 200 responses in my backend, but I'm getting an error message on the Stripe hosted link page. When I check the transaction in the stripe dashboard, it say's it's missing the payment method, despite it being set. I'll attach screenshots

What have you already attempted?
Followed the crypto demo guide on how to setup an integration

What are you working on?
Simple web app that accepts crypto payment

cursive heronBOT
#

@trail beacon pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
we are unable to get email address field to show up in our stripe payment elements implementation. there are only two modes for it "auto and never" how to make it show up

Question
we are unable to get email address field to show up in our stripe payment elements implementation. there are only two modes for it "auto and never" how to make it show up

What have you already attempted?
gone through you documentation

cursive heronBOT
cursive heronBOT
#

@severe leaf pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
"Content-type" => "application/x-www-form-urlencoded"

Related Request ID(s)
This content-type used for the header in my laravel api project for strip

What have you already attempted?
When I put this content type on the header of my Laravel API project.
This content-type supports the correct version of the strip or not

What are you working on?
I need a solution about this content-type supports or not

cursive heronBOT
#

@halcyon scarab pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
AccountCreateParams params =
AccountCreateParams.builder()
.setCountry("US")
.setEmail("chandan+1234321@gmail.com")
.setType(AccountCreateParams.Type.CUSTOM)
.setCapabilities(
AccountCreateParams.Capabilities.builder()
.setTransfers(
AccountCreateParams.Capabilities.Transfers.builder().setRequested(true).build()
)
.build()
)
.build();

	Account account = Account.create\(params\);

Question
what all other params i can set whole creating a connected account example i need to pass phone number which i have alreay verifed from merchant and i need to pass there businness url and other also

What have you already attempted?
i checked doc didnt find right one

What are you working on?
i was integrating strip to my application

cursive heronBOT
#

@jovial grove pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
stripeι’ζΏζ”―δ»˜ζ–ΉεΌε·²ζΏ€ζ΄»google payοΌŒδΈΊδ»€δΉˆζ”―δ»˜ι‘΅ι’δΈζ˜Ύη€Ίε‡Ίζ₯

Related Request ID(s)
111

What have you already attempted?
1111

What are you working on?
111

#

@quartz owl pressed the πŸ“š Doc or Guide button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Link to the Doc/Guide in question
https://docs.stripe.com/payments/bank-transfers/accept-a-payment?payment-ui=direct-api#collect-payment-method-options

Question
Hi, I want to know, is there a way, we can store customers bank account number, routing number, branch number. Without charging. The purpose of storing is just to display them later in a screen.

What have you already attempted?
I have used Stripe Element with idEAL bank element but it seems to only work with an amount.

What are you working on?
We want to store the bank account numbers and list them later.

cursive heronBOT
#

@vivid nacelle pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Is there async functionality for the Python Stripe API?

Related Request ID(s)
None

What have you already attempted?
Example:
session = stripe.checkout.Session.create(
mode="subscription",
line_items=[
{
"price": price_id,
"quantity": 1,
}
],
My whole codebase is async (DB calls, GPT calls, etc) but fetching / generating checkout links takes a few seconds cause i generate multiple at a time.

My alternative would be to await asyncio.to_thread(generate_checkout_link).

What are you working on?
Coco AI personal assistant on WhatsApp

cursive heronBOT
#

@cunning citrus pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
So I am using java and this is my dependency:
<dependency>
<groupId>com.stripe</groupId>
<artifactId>stripe-java</artifactId>
<version>28.2.0</version>
</dependency>

I am using this code and it is not working
BankAccount resource = BankAccount.retrieve(customer.getId(), bankAccountToken.getId());

It is giving me this error: Cannot resolve method 'retrieve' in 'BankAccount'.

Related Request ID(s)
It is compilation error

What have you already attempted?
I tried updating the library to latest but still not working

What are you working on?
I am creating a bank account and then verifying it by doing microtransaction against it

#

@vocal aurora pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
const elements: StripeElements = stripeJs.elements({
mode: 'payment',
currency: 'eur',
payment_method_types: ['card'],
amount: Math.round(amount * 100),
setup_future_usage: 'on_session'
})

Question
Hello ! Hope you're fine :)

I have a question about the property "future_usage" in the payment intent object.
I'm not sure of the consequences of this property...
What really happens when I use `on_session` or `off_session` ? And what if I remove this line and use nothing ?

What have you already attempted?
I tried to remove it, and read the docs (https://docs.stripe.com/api/payment_intents/object#payment_intent_object-setup_future_usage)

What are you working on?
I wanted to add the bank transfers, and `setup_future_usage` isn't handled for this method. So I'm trying to figure out what happens when I remove it.

cursive heronBOT
cursive heronBOT
#

@ashen flint pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Our ecommerce platform has an issue with ApplePay on Safari Desktop. When Apple pay button is clicked, it is showing the Apple Pay window, initially with the Processing icon, but then that disappears and nothing happens. This page shows a visual of how it should work, it should get to a point that says confirm on phone, but it isn't https://docs.stripe.com/apple-pay?locale=en-GB Thanks you

Related Request ID(s)
none

What have you already attempted?
We have studied the APi docs but not found a solution.

What are you working on?
Voracio SaaS eCommerce platform. www.voracio.co.uk

cursive heronBOT
#

@spark ridge pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I created payment method with type "us_bank_account" and did not attached it to any customer. It got created but when i list it using the payment methods list api, its not coming in response. basically i want to get all un-attached methods with type = "us_bank_account". How can i achieve this.

Related Request ID(s)
req_WrpBs27kaj8ME6, req_x3eOJStqlQrwtw

What have you already attempted?
I have added and listed payment methods through c# sdk and postman also

What are you working on?
For one set of customers, I want to store bank account numbers of customer without verifying account number because it will be used for display purpose only but not involve any money movement.

#

@balmy hedge pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hi our client is looking to offer Applepay as an option in addition to the Stripe Hosted checkout. They want Applepay to be a shortcut for customers who don't want to sign up for an account, but is this possible if the website isn't fully PCI compliant, i.e does Applepay send sensitive information through the clients website in order to do this? Thanks!

Doc/Guide Links
https://docs.stripe.com/payments/accept-a-payment?platform=web&ui=stripe-hosted

What are you working on?
e-commerce website

cursive heronBOT
#

@balmy pebble pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
```
// checkout-session-fixture.json
{
"_meta": {
"template_version": 0
},
"fixtures": [
{
"name": "checkout_session_john_doe",
"path": "", // not sure what the path should be
"method": "post",
"params": {
// not sure what the required params are
}
}
]
}
```

Question
Is there a way to create a stripe cli fixture for `checkout.session.completed` event?

What have you already attempted?
I tried looking at the docs for fixtures https://docs.stripe.com/cli/fixtures but couldn't understand what the `path` param for `checkout.session.completed` would be, and the param it requires.

What are you working on?
Automation tests using stripe fixtures

cursive heronBOT
#

@magic cloud pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
the code doesn't fit here. it is too large

Question
the checkout page is based on livewire. stripe payment elements are not loading we go from /cart to /checkout.

What have you already attempted?
tried to let the payment elements load

What are you working on?
ecommerce store

cursive heronBOT
#

@vocal aurora pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
(will be sent in the created thread)

Question
I'm trying to test back transfers in my test environment.
But for unknown reasons, the bank transfer choice doesn't appear. Can you help me find out why please ?

What have you already attempted?
I tried to set the payment method in the frontend application using `payment_method_types: ['card', 'customer_balance', 'sepa_debit']` but it changed nothing.
I don't know where I can search for more information.

What are you working on?
Trying to add the bank transfer payment method.

#

@plucky thicket pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hi, my account on stripe got closed and i can not understand it, i still have a lot of money on it and i really need help, support only answers with automated answers and no possibility to answer, my account mail is buttkesonni11@gmail.com I would really appreciate your help and that you cashout my funds today. I really dont know how to help myself and i need the money really really bad

Related Request ID(s)
xx

What have you already attempted?
I tried email support, website chat. I couldnt get a real person to help me, please help

What are you working on?
Im working on getting my funds back

#

@unique saffron pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
await this.stripe.checkout.sessions.create({
payment_method_types: ['card', 'us_bank_account'],
mode: 'subscription',
line_items: [
{
price: 'price_1QhqNp05RSWSgJH7Tha2ilou',
quantity: 1,
adjustable_quantity: {
enabled: true,
minimum: 1,
maximum: 10,
},
},
],
success_url: `${process.env.FRONTEND_DOMAIN_TEST_SERVER}?session_id={{CHECKOUT_SESSION_ID}}`,

Question
We are using stripe hosted check page for recurring payment (as subscription /user/month plan), and we are able to make the transaction also using two different payment methods i.e, cards, us bank account, but what all changes we need to do on our side to handle the user flow who has subscribed to any plan. Do we need to setup any webhooks to listen to the events also

What have you already attempted?

  1. I have tried all the possible 3 ways to handle the payment, but now we are using the stipe hosted checkout page, but i'm not having any idea how will i handle the userflow now. How would i check handle a single user payment can access the same account
  2. Once the user makes the payment for any plan, does the stipe handle all the future payments itself, and tell us using the webhooks

What are you working on?
I am working on the stiper hosted adjustable_quantity payment workflow.

#

@opaque harbor pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
Terminal.getInstance().listLocations(
ListLocationsParameters.Builder().apply {
limit = 100
}.build(),
locationCallback
)

Question
This fails for my client who is in Canada (S24), but it works fine for me (im in Taiwan S22). why is listLocations not working for him?

What have you already attempted?
been debugging for hours but we cant see any reason

What are you working on?
app

#

@ripe aurora pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Do you have plans to add Stripe Sandboxes API to be able to create new Sandboxes on-the-fly during E2E tests as well as restricted API Keys and be able to retrieve those keys as well? This could facilitate the automation of E2E tests and "reduce" hitting API rate limits in bigger teams running parallel E2E tests.

Related Request ID(s)
NA

What have you already attempted?
Creating a pool of Stripe Sandboxes. This is error prone, because one needs to copy-paste permissions, configure Tax and Products and time-consuming because, as the number of tests increase the chances are we need to create new Sandboxes in the future.

What are you working on?
E2E CI Tests

cursive heronBOT
#

@opaque harbor pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
result.body()!!.secret is always null on release apk but not on normal apk.

Question
why is the secret null on release apks but not non release ones?

What have you already attempted?
many things, finally tried release apk see same issue as client.

What are you working on?
app

cursive heronBOT
#

@balmy pebble pressed the ❌ An Error button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Error Message
```
Trigger failed: Request failed, status=400, body={
"error": {
"code": "resource_missing",
"doc_url": "https://stripe.com/docs/error-codes/resource-missing",
"message": "No such price: 'REPLACE_VIA_CLI'",
"param": "line_items[0][price]",
"request_log_url": "https://dashboard.stripe.com/test/logs/req_Unme2EPH1frfOC?t=1737121693",
"type
```

Question
Can't get the stripe cli fixture to override values with param.

What have you already attempted?
I tried running a fixture and overriding values using stripe cli. More details in thread due to text limit.

Reproduction Steps

  1. Create a stripe customer and attach `pm_card_visa` payment method
  2. Run the fixture (in thread) with stripe cli and use --override flags.

What are you working on?
Automation tests using stripe fixtures

#

@sullen willow pressed the πŸͺ Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Facing error :Webhook Error: Webhook payload must be provided as a string or a Buffer (https://nodejs.org/api/buffer.html) instance representing the _raw_ request body.Payload was provided as a parsed JavaScript object instead. \nSignature verification is impossible without access to the original signed material. \n\nLearn more about webhook signing and explore webhook integration examples for various frameworks at https://docs.stripe.com/webhooks/signature\n

Related Event ID(s)
evt_1QiF0iDGvZDYklSNAFaOAS1m

What have you already attempted?
I have added a middlware to enable the raw parser. But it still didn't work.

What are you working on?
I am working on SAAS project

#

@mellow axle pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Please is there a way to create a payment intent for card payment without using the statement_descriptor_suffix but only statement_descriptor?

Related Request ID(s)
none

What have you already attempted?
none

What are you working on?
payment checkout

#

@warm aurora pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
If I create a setup intent will it be valid for ever?

Related Request ID(s)
-

What have you already attempted?
Docs

What are you working on?
Implemeting SEPA Direct Debit into the ERP I'm building for my client

cursive heronBOT
#

@sharp wasp pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We have a automatic downgrade flow at end of trial backed by subscription schedules and a upgrade flow backed by customer portal. The thing is: there's a limitation on customer portal to update/cancel subscription when a subscription schedule is present. Is there any way to implement both flow in a non conflicting way? Like, can I have an automatic downgrade flow without relying on subscription schedules that don't leave "unpaid invoices" nor "cancelled subscriptions" on customer history?

Doc/Guide Links
https://docs.stripe.com/customer-management#customer-portal-limitations

https://docs.stripe.com/billing/subscriptions/subscription-schedules

What are you working on?
A medical scribe application that leverages stripe to control access to features.

cursive heronBOT
#

@reef token pressed the πŸͺ Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I'm trying to track account.updated and/or capabilities.updated events for connected accounts to know if they have completed onboarding and checking for transfers e.g. capabilities.transfers = active. account.updated and capabilities.updated is enabled for events to my web hook, but I'm not seeing anything come across.

Related Event ID(s)
n/a

What have you already attempted?
The only thing I can see is that it looks like the Stripe dashboard UI polls/checks manually after or during onboarding to retrieve data.

What are you working on?
Building an affiliate program and using Connect Accounts for the payouts.

cursive heronBOT
#

@dull jungle pressed the πŸͺ Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I have a webhook that's failing because of some bad business logic. I have fixed it moving forward but need the webhook to stop retrying this one specific request. How can I stop it?

Related Event ID(s)
sub_1QhauyA231bzpnwRzvxdUAnG

What have you already attempted?
I tried looking for a button in webhooks that says "stop reattempting" but there is none

What are you working on?
godelterminal.com

#

@deft scarab pressed the πŸ“š Doc or Guide button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Link to the Doc/Guide in question
https://docs.stripe.com/billing/subscriptions/build-subscriptions?ui=elements

Question
Could you please clarify how I should finalize my subscription flow in this scenario?

What have you already attempted?
Implementing a subscription using the Stripe UI Elements and have encountered an issue. My subscription includes a 7-day trial period, and I’m not receiving the client_secret value in the response.
```subscription?.latest_invoice?.payment_intent?.client_secret;```

It results in the error:
Property 'payment_intent' does not exist on type 'string | Invoice'.

From my understanding, during the trial period, no immediate payment intent is created, which prevents me from obtaining the client_secret. However, I need the client_secret on the frontend to proceed with stripe.confirmPayment.

cursive heronBOT
#

@safe cape pressed the πŸͺ Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Why am I not receiving tax.form.updated webhook events in my retrieve_tax_forms_beta enabled Event Destination for Connected Accounts

Related Event ID(s)
None

What have you already attempted?
I have made a new event destination with the API version set to "2024-12-18.acacia; retrieve_tax_forms_beta=v1" in order to listen for "tax.form.updated" events on our Connected accounts. We have Filed some of our 1099k documents for our connected accounts and can see their status updating to "Accepted", yet there are no events deliveries at all under this new Event Destination. According to this documentation: https://docs.stripe.com/connect/deliver-tax-forms#:~:text=To receive tax.,is accepted by the IRS. The tax.form.updated event should fire when filing statuw moves to accepted

What are you working on?
Sending Emails after receiving tax.form.updated webhook events

#

@bold meteor pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
eCreateParams.builder()
.setAmount(1099L)
.setCurrency("usd")
.setSource(ACH")
.build();

        Charge charge = Charge.create\(params\);

Question
Need help on how to implement a payment type for Kuwait, Lesotho and Philippines that is similar to of ACH in USA

What have you already attempted?
Above is the code snippet for USA ACH Payment type that is already implemented.

What are you working on?
We are building a payment gateway on our Springboot application using Stripe

cursive heronBOT
#

@gilded hull pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Everything works fine with cards, but I am unsure how Apple Pay will work with our payment flow.

Is it possible to save Apple Pay as a payment method on the user's Stripe customer account so I can charge it when required??

Related Request ID(s)
-

What have you already attempted?
Current:

  1. User registers
  2. On the server, Stripe Customer is created for the registered user
  3. Using setup intent, the user adds new payment methods (cards)
  4. This saved payment method is used to charge the user off session
    When the booking is being created, as part of booking creation, the app presents to the user their saved cards (the last 4 digits are saved on the server), and the selected card's ID is sent in the booking payload to the server. For the selected card, we create a Payment Intent with capture_method set to manual. When the booking ends, the payment intent is confirmed.

What are you working on?
An Uber like ride booking system

#

@deft pond pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
import * as React from 'react';

function PricingPage() {
return (
<stripe-pricing-table
pricing-table-id=""
publishable-key=""
customer-session-client-secret="{{CLIENT_SECRET}}"
>
</stripe-pricing-table>
);
}

export default PricingPage;

Question
Adding customer-session-customer-secret to pricing table still creates a new customer Upon subscription. Users in our app will get a stripe customer Upon first login. We use that customer id to create customer session and append to pricing table. However, after subscribing, it creates new customer with same details, instead of using the provided by the secret. Users dont have prior subscriptions, this is shown Upon first login

What have you already attempted?
Docs, forums, youtube, debugging

What are you working on?
Saas product with subsriptions

#

@magic cloud pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
the code is too large to share right now

Question
placeholder text for payment option klarna is not showing

What have you already attempted?
tried t add it manually

What are you working on?
ecommerce store

#

@thorny sparrow pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I need to generate API keys for third party to use. They should be able to edit coupons and apply them to upcoming invoices of specific subscription of selected customers. How should I set the access permission for the API key (Read/Write)?

Related Request ID(s)
N/A

What have you already attempted?
Docs about coupons

#

@abstract nimbus pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Were do I set confirm: true for payments? My customer signed up for a free trial (credit card was collected) but when a user clicks the buy button in my app the response is always "requires_confirmation"

Related Request ID(s)
req_SvWLfEhxcbVCtM

What have you already attempted?
Everything seems to work but they have to go to stripe and update their payment information for every purchase while in my web app.

What are you working on?
web app using API c# .net library

#

@sand hawk pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hey, i have stripe and supabase and in test mode when my trial subscription ends i don't get any event nor is a new invoice issued and payments are made with a test stripe card. Any ideas why this is? When i manually change the subscription date the event comes out and changes my data in the supabase database.

Related Request ID(s)
It's not in the logs

What have you already attempted?
I searched the stripe documentation, searched the forums, even asked AI and nothing...

#

@weary crescent pressed the πŸ“š Doc or Guide button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Link to the Doc/Guide in question
https://support.stripe.com/questions/testing-apple-pay-with-stripe

Question
How can we test apple pay and google pay with automated tests?

What have you already attempted?
These work with manual tests after adding payment methods to wallets, but how can we run automated tests on them in our pipeline?

What are you working on?
Apple & Google Pay at checkout

#

@lofty halo pressed the πŸͺ Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We use metadata to store customer information for downstream consumption via stripe webhooks.

We're noticing odd behavior with a subset of users that after their subscription renewal is processed the metadata is gone causing the webhook to fail. The impacted users participated in a coupon / promotion event about a month ago.

What could cause a user's metadata to be cleared out?

Related Event ID(s)
evt_1Qi0HBAKTR8DgLwrhjZQWO9r

What have you already attempted?
1) Reviewed webhook code to ensure we're not writing empty metadata
2) Reviewed user accounts of promotion participants. They seem to have the correct metadata before the renewal is processed.

What are you working on?
SAAS application

#

@oak umbra pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I cannot enable google pay for connect accounts in payment intents - even while testing.

Related Request ID(s)
req_wxdvlj3VNmepFe, req_HBMG2cZ0ITvF9M

What have you already attempted?
I have enabled google pay for the connect account and my account. It works immediately for amazon pay or cashapp but google pay (and apple pay) it doesn't even while testing. I have tried serving over ngrok while testing but no matter what when I have automatic payment methods google pay isn't recognized and when I try to manually set google pay as a payment method it says it is not enabled in the dashboard even though it clearly is.

What are you working on?
building an e-commerce marketplace

#

@balmy pebble pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
Sharing in thread, due to text limit.

Question
What is the correct way to construct `raw body` / `stripe signature` in request for testing webhook endpoint in automation tests.

What have you already attempted?
I tried creating a mock request to my webhook endpoint with raw body of webhook event (details in thread)

What are you working on?
Automation tests with stripe integration

cursive heronBOT
#

@misty fern pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hey Stripe,
I was directed here by our account manager.
We are looking into an issue in our system, where when we attempt to charge customers, ocassionally we are getting a bad CVC or bad card number error. We were under the assumption that when we created a Stripe::SetupIntent, that a preauth was occuring that would validate that we could charge this card, using cvc/card number.
Stripe::SetupIntent creation attributes:
confirm => true
usage => 'off_session'
We are trying to identify
Is there a way to verify that preauth/auth 0/1$ charges are occurring during setup_intent creation?
Is there a

Related Request ID(s)
Not specific to a request

What have you already attempted?
Described in the question above, our currently implementation

What are you working on?
Payments platform to handle refunds

#

@deft pond pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
Images of code will be in thread.

Question
Previous thread was locked for some reason, didn't address the actual issue. Basically, after a user signs up into our Platform for the first time, we also create a stripe customer for them. Then, they are directed to the pricing table since they dont have any prior subscriptions as their new customers. We create the customer session in our backend, and the Frontend appends the client secret to the pricing table. To my understanding, shouldnt this now

What have you already attempted?
Discord, forums, debugging, google

What are you working on?
Saas platform with subscriptions

cursive heronBOT
#

⛔️ Stripe developers aren't currently available on Discord

We're not around on weekends, holidays, and (rarely) other times, but we should be back during regular business hours! In the meantime you can contact Stripe support for help.

cursive heronBOT
#

βœ… Stripe developers are currently available on Discord!

cursive heronBOT
#

@clear spear pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Our account manager has approved/enabled showing the BIN via the API, but I'm unsure where to see it (I'm guessing should be on the payment_method_detail.card.bin)

I'm aware that it's not in the SDK/docs

Related Request ID(s)
Dashboard > transactions > payment_intent.amount_capturable_updated

What have you already attempted?
Tried calling different endpoints, can't see BIN

What are you working on?
BIN is required for our own fraud management

cursive heronBOT
#

@rocky nimbus pressed the 🀨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
When trying to do a test crypto transaction, it asks for link information. After giving info, it says sending code to phone number, but the code never comes. The code comes for the same email/phone on production though

What actually happened?
Text code never comes

Reproduction Steps
Going through link transaction on test net - try to get text code

Question
I will add Screenshot below - the text code never comes

#

@flint zinc pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hello, our platform now needs a function to monitor the user balance. If it is less than 50, it will automatically deduct the money using Stripe, that is, recharge to our platform. Which API should I use?

Related Request ID(s)
null

What have you already attempted?
null

#

@warm condor pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
collectCancelable = terminal.collectPaymentMethod(paymentIntent, collectConfig: collectConfig, completion: { collectResult, collectError in
if let collectError {
completion(.failure(collectError))
return
}
guard let collectedIntent = collectResult else {
completion(.failure(NSError(domain: "PaymentError", code: 0)))
return
}

Question
[Tap to Pay] Unable to handle the "Payment Timeout" dialog

What have you already attempted?
When the user has not tapped after 40 seconds, the "Payment Timeout" dialog will be shown, But my TapToPayReaderDelegate was not called, and it could not be closed even if Cancelable was used.

cursive heronBOT
#

@urban burrow pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
subscription = native_stripe.Subscription.create(
customer=user.stripe_customer_id,
items=[{
"price": os.getenv("STRIPE_PRO_YEARLY_PRICE_ID"),
}],
trial_end=int(trial_end.timestamp()),
cancel_at_period_end=True,
metadata={
"subscription_type": "reverse_trial",
"extended": extended
}
)

Question
This function is used in two places, when creating a user I call this and when extendning their trial by creating a new one. Why does this one send a invoice when the trial_end = time now + hours, but when I initially create it with a 14 day free trial it doesn't send an invoice. Both are created with cancel_at_period_end=True, so why does one send an invoice and the other doesn't. Is it because the extended trial has a shorter trial <2 days?

What have you already attempted?
This should not send an invoice when set to true:
cancel_at_period_end=True,

What are you working on?
User immediately gets a subscription created and is on trial

cursive heronBOT
#

@ashen kindle pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hello I want to develop a subscription feature for my website. how to integrate stripe with my website. what things that i should save in my database

Related Request ID(s)
sub_1QjBPvKxUzgEvuWhm77oVgC8

What have you already attempted?
I attempt to create and cancel an subscription via API

cursive heronBOT
#

@frosty void pressed the πŸͺ Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Stripe exception: The webhook cannot be processed because the current timestamp is outside of the allowed tolerance. I get this error in my stripe webhook and the payments made wont get updated.It shows a 400 error code.The web hook was working fine until last friday this issue started to occur since friday.Here is one of the event id which the issue occured :evt_3QjJNzRvW6Yc17tk1gMlGPlw.How can I get this fixed.

Related Event ID(s)
evt_3QjJNzRvW6Yc17tk1gMlGPlw

What have you already attempted?
I tried resending the delivery attempts in the stripe dashboard but didnt work.

#

@light pelican pressed the πŸͺ Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We have been using Stripe webhooks for updating ACH direct debit payments in our database. But since a year we are noticing a problem. When ACH payments are fulfilled by the Bank and the payment is updated in Stripe to "Successful", we recieve a webhook event and we read that call the update-payment API on our end. But since a couple of months now we are seeing some weird behaviour on our server. Only 30-40% of the "charge.succeeded" events go through, rest our server fails to register.

Related Event ID(s)
pm_1PtbCfIoChmUfsNAQcZSqfvi, py_3Qgz1AIoChmUfsNA2QWOqUlp

What have you already attempted?
We are not really able to get a lot of insights on what is going on. From Stripe dashboard, it doesn't look it is a Stripe problem, we tried putting more logs on our end to understand what happens when those evens are recieved but nothing significant yet. I tried reading webhook documentation to see if i am missing anything in the code,. But nothing really looks promising.

cursive heronBOT
cursive heronBOT
#

@heavy jasper pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Does payment_failed webhook after confirming a payment intent mean the card was declined?

I'm trying to prevent card testing here, so I was going to ban after a few payment_failed, but don't know if this is a good idea?

Related Request ID(s)
na

What have you already attempted?
I read these docs but it's not totally clear

https://docs.stripe.com/payments/payment-intents/verifying-status

#

@summer oxide pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hi Devs, I am trying to implement a functionality of "backup-card" to retry failed payments when default payment source fails for that particular renewal .

In order to achieve that I am using the checkout.js legacy code to get the card details from the user and then adding the card using the "Create card" https://docs.stripe.com/api/cards/create

As per the docs this card C2 is set as default in Customer object afterwards, I want to make sure that this card is never charged on its own, given that the primary card (set during checkout C1) is either active or disabled.

Related Request ID(s)
This is fore test env. If needed I can share.

What have you already attempted?
I have tested the renewals are still getting through with C1 even though C2 is set and is set as default now, which is what I need.
But in future if C1 is not active then I am not sure whether C2 will be used on its own for further renewals (This is I don't want as I want this card to act as a backup-card only)

Also whats the difference between setting the default_source in customer object and default_payment_source in subscriptions object?

As unless and until I update the susbcriptions_object with the new card info the renewals go through with the card set at checkout during first payment.

What are you working on?
I am trying to build a retry mechanism using the pre-written legacy code, where whenever any renewal charge fails from the primary card lets say C1 , I want to retry that charge with backup-card.

#

@grave heart pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
Creating token:
curl https://api.stripe.com/v1/tokens
-u "sk_test_β€’β€’β€’xxxx"
-d "card[number]"=4242424242424242
-d "card[exp_month]"=5
-d "card[exp_year]"=2026
-d "card[cvc]"=xxx

Creating card method:
Stripe::Customer.create_source(customer.stripe_customer_id, { source: card_token })

Question
Hi, is tokenization of card still supported by stripe or is it deprecated? If not deprecated, will it be deprecated anytime soon? I am using stripe gem 11.7 and trying to create and attach a card method to an EXISTING customer using tokens. So wondering if this is the right way or should I go with setup intents?

What have you already attempted?
I have two options: create methods using tokens and using intents. Intents works fine I am not sure about tokenization

#

@halcyon scarab pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
i have a connect account id from that id how can i retrive a merchants bank details i,e there bank account and number

Related Request ID(s)
NA

What have you already attempted?
i tried Account accounts = Account.retrieve("acct_1QjIs2C6bUlLdpCa");
but here getting external bank object but in there i didnt find account number and in that routing_number what this mean

What are you working on?
i was integrating strip to my application

cursive heronBOT
#

@exotic wigeon pressed the πŸ“š Doc or Guide button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Link to the Doc/Guide in question
https://docs.stripe.com/billing/revenue-recovery/customer-emails?locale=en-US#test-your-configuration

Question
Does an invoice not sent to the customer email when stripe is in test mode?

What have you already attempted?
My email used for the customer is an active team member as stated on the docs. However, it does not send an invoice to that email.

I just manually send the invoice through dashboard.

cursive heronBOT
#

@clear spear pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How do I get the card BIN (my account has been approved to see the BIN). Sorry this relates to a previously closed discord conversation: #dev-help message

Related Request ID(s)
Dashboard > transactions > payment_intent.amount_capturable_updated

What have you already attempted?
I can't see in the API docs:
https://docs.stripe.com/api/payment_methods/object?lang=node#payment_method_object-card

the previous link given by support doesn't work: https://docs.stripe.com/api/payment_methods/object#payment_method_object-card-iin (I tried seraching for BIN and I don't get any results)

cursive heronBOT
cursive heronBOT
#

@livid owl pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
when we do hold and charge - if the actual cost is $0, i am assuming we wont be able to do a charge and release with $0 charge, so should we just cancel the payment intent and would that do the release automatically?

Related Request ID(s)
None

What have you already attempted?
hold and charge

What are you working on?
Hold and Charge implementation

#

@spring plover pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
When I created PaymentIntent, I specified that I would use Alipay to pay, but I cannot use USD. The development document shows that Alipay supports USD. I want to know why. The error message is as follows:
Invalid currency options `usd`. The payment method `alipay` only supports the following currencies: `cny`, `hkd`

Related Request ID(s)
req_i9GtDqFs8HlVDN

What have you already attempted?
none

#

@ashen kindle pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I want to create a subscription feature on my website. my website allows users to post their services. 1 service post made he must subscribe to our website for 30 dollars per year. what is the best practice?

Doc/Guide Links
https://docs.stripe.com/api/subscriptions?lang=dotnet

What are you working on?
I want to create a subscription feature on my website. my website allows users to post their services. 1 service post made he must subscribe to our website for 30 dollars per year. what is the best practice?

cursive heronBOT
#

@sly brook pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How Can I get Line items from customer Charge object if there is no invoice?

Related Request ID(s)
x

What have you already attempted?
I already tried to call stripe.Charge.retrieve(...)
but if there is invoice i have line items if there is no invoice I cant see the product that was paid for

#

@lean jacinth pressed the ❌ An Error button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Error Message
LOG ANALYTICS: fraud_detection_data_repository.api_failure - [(key: "error_type", value: "com.stripe.lib"), (key: "error_code", value: "40")]
LOG ANALYTICS: stripeios.payment_method_creation - [(key: "source_type", value: "card"), (key: "pay_var", value: "paymentsheet"), (key: "ocr_type", value: "none"), (key: "apple_pay_enabled", value: 1)]

Question
I'm trying to connect Apple Pay to my SwiftUI Appllication. However It never calls the didCreatePaymentMethod delegate method and thus the intent creation is never called leading payment not processing.

What have you already attempted?
I tried logging what steps the flow is reaching.
It is

  1. Handling payment authorization
  2. Created STPApplePayContext
  3. Presented Apple Pay sheet

but not

  1. create payment Intent
  2. get client Secret.
cursive heronBOT
#

@mystic mantle pressed the 🀨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
Hey, I've noticed a weird behaviour while using pause_collection. I have attached two examples.

The process is as follows:
- We set pause_collection to "void"
- A draft invoice of $0 is correctly created and finalized on renewal day
- A couple of hours later (but on the same day) unset pause_collection via the API

I would expect the payment to have been skipped.

What actually happened?
- The previous invoice gets updated, unfinalized and updated to the subscription fee
- Customer gets charged

This is problematic because, when we unset pause_collection we will typically also set trial_days to push the payment to a couple of days later.

Now the customer gets charged twice.

Reproduction Steps
Ways to reproduce listed above, here are two examples:

On 02/01: https://dashboard.stripe.com/acct_1NpSiqB0mqDM7kvn/events?related_object=sub_1OhULuB0mqDM7kvn9gFbsKW5&ending_before=evt_1Qcn5BB0mqDM7kvn3bBvHGeb

On 16/01:
https://dashboard.stripe.com/acct_1GeGzCEefV9my3r1/events?related_object=sub_1QU4v4EefV9my3r1HooemOq9

Question
Is there a way to prevent this?

What are you working on?
A coaching marketplace / Stripe Connect platform

cursive heronBOT
#

@potent hearth pressed the ❌ An Error button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Error Message
createCardWithSetupIntent Stripe Exception:The provided setup_future_usage (off_session) does not match the setup_future_usage from the provided confirmation_token (null). Try confirming with a Setup Intent that is configured to use the same parameters as the ConfirmationToken.; request-id: req_QGYS773dknMEPt

Question
We are integrating apple pay using express checkout element but getting above error

What have you already attempted?
tried adding setup_future_usage: "off_session" on front side while generating ConfirmationToken

#

@livid kernel pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I want to get a user's active subscription from their stripe customerId. I am making following API call to Stripe which returns a customer object:
`const customer = await stripe.customers.retrieve(stripeCustId);`
According to Stripe's documentation here:
https://docs.stripe.com/api/customers/object
Under "more attributes" I should get a subscriptions node which should give me a list of user's active subscriptions.
But when I make this API call I don't get a subscriptions node

Related Request ID(s)
req_aKxsBECLS9YYK9

What have you already attempted?
I have attempted API call to get customer object using:
`stripe.customers.retrieve(stripeCustId)`
I did get customer object but customer object doesn't contain subscriptions node

What are you working on?
I am working on getting a user's active subscription object from Stripe by Stripe customer id

#

@blazing nebula pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I'm trying to programmatically capture a delayed payment (card imprint) made with a checkout session

Related Request ID(s)
in message

What have you already attempted?
i tried to do these requests to no avail: req_KQA3HG3tLG26my to manually capture a payment, req_zxUJE1FJ5GAgns to try and retrieve the associated checkout session.
These should have been created by the following requests: req_8wvc6NOPilXzzz req_Hh8HGbVTRlb7tT

What's more is I have managed, on a payment created in the exact same conditons, to capture the funds from the platform dashboard. The associated request is req_pmCbZbmsmKaZdG

What am I doing wrong ? How can I capture the payment using the API ?

What are you working on?
Platform that allows users to pay individuals for appointments, with a card imprint made before the appointment to avoid no shows / no funds

#

@median moat pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Is there a way to know if card requires always authenthicate

Related Request ID(s)
req_CC0yROunYiExWM

What have you already attempted?
During card save with setupintent.create ,used a test card which is always authenticate, showed popup for 3ds authentication .Used this card for off session payment ,raises error that this card requires authentication,is there a way to know if card requires always authenthicate

What are you working on?
make payment with saved card in on-session and off-session

#

@balmy pebble pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Not getting cancelled_at timestamp after updating an immediately canceled subscription with cancellation details via API, but it works via customer portal.

Related Request ID(s)
req_0IDF768FqwSvTv

What have you already attempted?
I created a subscription via checkout session, visited the customer portal and cancelled the subscription, then provided a cancellation reason, it correctly sets cancelled_at data for subscription.

When i do the exact same thing via stripe SDK, the cancelled_at date gets reset after updating the cancelled subscription, but the subscription remains in cancelled state.

What are you working on?
Automation tests for stripe

cursive heronBOT
#

@cloud parrot pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We are using PaymentElement to render payment methods in our react/next web app. Is it possible to get the cvc token (cvctok_xxxxxxxx...) from PaymentElement before creating payment intent? We know that there is a method:
stripe.createToken(cardCvcElement))
but that method does not take PaymentElement as an argument right ?
Is there any other way to get the cvc token ?

Doc/Guide Links
https://docs.stripe.com/payments/build-a-two-step-confirmation

What are you working on?
Online ordering web app

#

@mystic mantle pressed the 🀨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
Hey, I've noticed a weird behaviour while using pause_collection. I have attached two examples.

The process is as follows:
- We set pause_collection to "void"
- A draft invoice of $0 is correctly created and finalized on renewal day
- A couple of hours later (but on the same day) unset pause_collection via the API

I would expect the payment to have been skipped.

What actually happened?
- The previous invoice gets updated, unfinalized and updated to the subscription fee
- Customer gets charged

This is problematic because, when we unset pause_collection we will typically also set trial_days to push the payment to a couple of days later.

Now the customer gets charged twice.

Reproduction Steps
Ways to reproduce listed above, here are two examples:

On 02/01: https://dashboard.stripe.com/acct_1NpSiqB0mqDM7kvn/events?related_object=sub_1OhULuB0mqDM7kvn9gFbsKW5&ending_before=evt_1Qcn5BB0mqDM7kvn3bBvHGeb

On 16/01:
https://dashboard.stripe.com/acct_1GeGzCEefV9my3r1/events?related_object=sub_1QU4v4EefV9my3r1HooemOq9

Question
Is there a way to prevent this?

#

@humble surge pressed the πŸͺ Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How to set up discord webhooks when someone buys to get notified & how to give them automaticly role & automaticly to join in our discord, and send them automaticly msg after buying on email

Related Event ID(s)
idk wdym

What have you already attempted?
i checked the docs and nothing there :d

cursive heronBOT
#

@restive crest pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I am working on Stripe Connect for a client with the following model:
A Provider pays via a payment link on behalf of a building Owner.
Products are one-off or recurring with 60-day free trial.
The subscription should be created against the Owner.
The Owner creates a Connected Account. Tenants pay invoices to Owner.
Issues:

  1. The payment method captured on the payment link belongs to the Provider, so it should be removed.
  2. The subscription should be paid from the balance of the Owner's Connected Account.
  3. Tenant invoices should have the payment option of a bank transfer to a Swiss IBAN per connected account. How should we handle that?

Doc/Guide Links
https://docs.stripe.com/api/subscriptions/update
https://docs.stripe.com/api/charges/object#charge_object-refunds-data-destination_details-customer_cash_balance
https://docs.stripe.com/connect/account-debits
https://docs.stripe.com/treasury/account-management/working-with-balances-and-transactions

What are you working on?

  1. Updated the subscription customer data to the Owner's data. 2. Tried a transfer from a Connected Account to the Owner's Customer account but failed.
cursive heronBOT
#

@hollow marlin pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I want to get Transactions along with there respective products. Also Product wise Transactions

Related Request ID(s)
API for NextJS

What have you already attempted?
Tried Products, Charges but I am not getting what I want

What are you working on?
A dashboard to show Product wise Transactions

cursive heronBOT
#

@visual steppe pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I have setup stripe connect , to payout manually, after charging a client and deducting the platform fee, i sent rest to connect account.

its been a week , its been a week the money are showing on `Available soon` but not `Available to payout` ... i can also see Instantly available to payout .

but i cant make a manual payout for connect account.

Related Request ID(s)
I cant make a API request.

What have you already attempted?
I waited for the money get available but its taking long.

#

@normal dust pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We are trying to use sources created in ACH Credit transfer using sources API and create a payment using intents API. We tried using payment method type as ach_credit_transfer, it is not working. It worked with payment method type as customer_balance.

However, in live mode, we have not enabled bank transfers and only enabled it in test mode. Wanted to confirm if the same will work in live mode without enabling bank transfers.

Related Request ID(s)
req_voUjAmA5HLUzFH?t=1737456545

What have you already attempted?

  1. Create payment intents using ach_credit_transfer as payment method type. - not working.
  2. Create payment intents using customer_balance as payment method type. - working.

What are you working on?
Migrating ACH Credit transfer from sources API to intents API

cursive heronBOT
#

@chrome quarry pressed the πŸ“š Doc or Guide button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Link to the Doc/Guide in question
https://docs.stripe.com/api/payment_method_configurations

Question
Want to know about the fields for each payment method like available, preference, overridable, value. We could update only preference field here. Can you please brief those fields and their values?

What have you already attempted?
Did a POC on fetching & updating PMCs. I could update only the display_preference.preference for any payment method.

What are you working on?
We're building Payment method Configurations management in our platform using Stripe PMC APIs.

#

@last anchor pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
Has issue regarding stripe react AddressElement been resolved?

Question
On 25/10/2024 we reported a bug regarding react stripe AddressElement. The issue was as follows: β€œPre-defining " defaultValues: { firstName: state.user.first_name, lastName: state.user.last_name }" disables Stripe country auto-detection.” It was confirmed by Stripe developers, that this indeed is a bug.

What have you already attempted?
I just wanted to follow up if this issue has been resolved since?

#

@shell sail pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
import { type Appearance, loadStripe } from '@stripe/stripe-js';

// Frontend Client
export const stripeClient = await loadStripe(
`${process.env.NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY}` || 'api_key_placeholder'
);

const appearance: Appearance = {
theme: 'stripe',
};

export const StripeElements = ({

Question
So i did an implementation with StripeElements and load stripe from stripe/stripe-js on NextJS15
Version 17.5.0 stripe
Version "@stripe/stripe-js": "^5.4.0",

In local everything is working fine, no problem but in dev at least the frontend is generating an error.

"1517-ce223107f03468c8.js:1 IntegrationError: It looks like you're using an older Stripe key. The Address Element is only available for use with a modern API key, which is prefixed with 'pk_live_' or 'pk_test_'."

What have you already attempted?
Deploy several times, check the keys to see if it's correct. Backend is working in Dev
This deployment is done with dokku to a machine and from what i can see in the machine the keys are there

What are you working on?
It's a subscription implementation, using stripeelements for a custom modal

cursive heronBOT
#

@muted willow pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hi team! We start to see our invoices being created with a 72-hour window to automatically finalise instead of 1-hour window since we upgrade our API version from 2024-06-20 to 2024-12-18.acacia. We do have a default settings in our account to set the window as 1 hour. Can you help look why this setting is being ignored now? Thanks!

Related Request ID(s)
evt_1QjgTAByUW5gLVs3GXZpZ0Q9

What have you already attempted?
- Checked the default setting in our account, and it says 1 hour.
- Checked changelog which might be related to this issue. The most related looks like this one but I cannot find how exactly it's affected. https://docs.stripe.com/changelog/acacia/2024-10-28/schedule-invoice-finalization
- I have included an event ID above because our invoices are created automatically via subscription, instead of a request specifically

What are you working on?
We are upgrading our Stripe API versions.

#

@honest prawn pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
<PaymentRequestButtonElement className={smartPayButton}
options={{
paymentRequest,
style: {
paymentRequestButton: {
height: '48px',
},
},
}} />

Question
Hi. We are using the legacy Payment request button and we've adding link as a new payment method. However on testing on android or apple devices, link option is not appearing in the browser, instead google pay or apple pay is appearing. Our assumption was both link would appear in all the devices.
Can you help in understanding why link is not supported here?
FYI: disableMultipleButtons prop is not set to true

What have you already attempted?
Tried using multiple instances of the payment request button to display link along with other payment methods

cursive heronBOT
#

@elfin flame pressed the 🀨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
A website is selling video game cheats using stripe this is illegal and must be blocked by the team. Stripe gives no response to this illegal activity

What actually happened?
A website is selling video game cheats using stripe this is illegal and must be blocked by the team. Stripe gives no response to this illegal activity

Reproduction Steps
A website is selling video game cheats using stripe this is illegal and must be blocked by the team. Stripe gives no response to this illegal activity

Question
A website is selling video game cheats using stripe this is illegal and must be blocked by the team. Stripe gives no response to this illegal activity

What are you working on?
https://lemoncheats.net/ the website that is selling cheats

#

@hushed jasper pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How do you handle confirmation with subscriptions?

Related Request ID(s)
?

What have you already attempted?
With paymentIntent + setupIntent you have confirm() which handles auth on the client side. How does this get handled with subscriptions?

cursive heronBOT
#

@boreal root pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Did "nickname" for product prices get deprecated?

I believe you use to be able to edit the display "nickname" for a price, such that if you had 3 prices for a "Membership" product -- 6 months, 12 months, 24 months -- the checkout session and invoice would show the product alongside the nickname / description, like "Membership 6 months"

It is only displaying the product name "Membership", and not the price.

Related Request ID(s)
n/a

What have you already attempted?
I have looked at the settings the product price's in the dashboard, but see no place to edit the "nickname"

#

@light knot pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
My team is trying to arrange a migration from a third party provider for subscriptions with ACH and there's the option to import as payment_method or bank_account. I'd like to understand better those 2 objects:
- What are the differences between a payment_method object(pm_...) and a bank_account object(ba_...) for ACH?
- In case of bank_account objects, can they be used to charge users in subscriptions? Also, can they be confirmed with SetupIntent?
- For new ACH users subscriptions(after the migration process), is it recommended to create payment_method or bank_account?

Related Request ID(s)
.

What have you already attempted?
.

What are you working on?
Subscription based service

#

@quiet fractal pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How can I create a recurring subscription using Apple Pay, ensuring that the subscriptions are handled on Stripe's side, similar to other payment methods like cards and ACH payments?

Related Request ID(s)
Subscriptions

What have you already attempted?
https://docs.stripe.com/apple-pay?platform=ios#recurring-payments

I tried following the documentation at Stripe's Apple Pay guide, but the payment appears as a one-time charge on Stripe's end, not a recurring subscription. I believe the recurring functionality is managed on Apple's side.

What are you working on?
We are currently building a platform to help charities In US

#

@idle orbit pressed the ❌ An Error button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Error Message
Appeal In Review

Question
My appeal is in review since September and I can't submit another review.

What have you already attempted?
I've been trying to reach the support multiple times but no one reply me back

cursive heronBOT
#

@neon venture pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I call the transfers API to get a list of recent transfers. Based on the used payment method, we want to charge our customers fees based on the credit card type (if the card is rated premium or not by Stripe). I've tried to find out, if there is an attribute on the Stripe API, telling me, if the card is premium or not.

Related Request ID(s)
req_usZLzw0mikCYGL

What have you already attempted?
Extended different child-objects, tried to find out the attribute in the dashboard.

What are you working on?
Invoicing fees to our customers.

cursive heronBOT
#

@modern sonnet pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Refer a friend - what is the best way to grant my users with extra credits and discount their monthly/6 months/ 1 year billable subscription. The discounted amount should be per referral. So far I read about coupons and billing credits (articles) - if i understand correctly coupons cannot stack (for example for the yearly billable subscription), for billing credits I am not sure what might need and am I eligible for it.

Doc/Guide Links
https://docs.stripe.com/billing/subscriptions/usage-based/billing-credits
https://docs.stripe.com/billing/subscriptions/coupons

What are you working on?
Refer a friend campaign

#

@deft plume pressed the ❌ An Error button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Error Message
i do verifications many time but the dont accept i am providing them right verification but they dont accept there is an eror

Question
what should i do ? cause i am tired of it i am not launching my bussiness because they had paused my payments and payouts

What have you already attempted?
i have done many times but they are saying contact support

cursive heronBOT
#

@hollow roost pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How do I change the font size of a payment element after it's mounted and ready? I'm able set the initial font size using the appearance API when I create the element, but I don't know how to change this on a rendered element.

Related Request ID(s)
NA

What have you already attempted?
I tried element.update({ appearance: {...} }) but got an error that "appearance" isn't recognized here.

What are you working on?
All pages on my site offer buttons for the user to increase or decrease body.style.fontSize. I want the rendered paymentElement to follow along if the font size is changed.

#

@north pollen pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I want to add "apple_pay" to "payment_method_types" in a Checkout Session.

Related Request ID(s)
Contacted Support

What have you already attempted?
Docs state "apple_pay" is not an option but Support told me to add "apple_pay" as an option "payment_method_types. Tried the following error: "message": "Invalid payment_method_types[0]: must be one of card, acss_debit, affirm, afterpay_clearpay, alipay, au_becs_debit, bacs_debit, bancontact, blik, etc....."apple_pay" is not in the list.

#

@open jay pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We'd like to be able to upgrade our "Stripe App" in a non-breaking way when we add a feature that requires new permissions.

Since our users do get upgraded automatically but they still won't have the updated permissions until they explicitly approve them (https://docs.stripe.com/stripe-apps/versions-and-releases), we would like at least to be able to have an endpoint where we can query for "which" permissions our connected accounts have accepted so far, so we can craft our app to not just break.

How are the best practices around this?

Doc/Guide Links
https://docs.stripe.com/stripe-apps/versions-and-releases#:~:text=Stripe users who install your,where the permissions scope changes.

What are you working on?
An IAP subscription management software

cursive heronBOT
#

@mellow axle pressed the πŸͺ Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How can I set a default to a specific api version list on the developer section of my dashboard? so my webhook request can come with that api version

Related Event ID(s)
none

What have you already attempted?
none

#

@peak cloak pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
import { StripeCardElementChangeEvent, StripeCardElement } from '@stripe/stripe-js';
import { useStripe, useElements, CardElement } from '@stripe/react-stripe-js';

Question
We have an application that is basically a webview for a react web app, and only on ios we are having an weird problem, when we open the screen that have the mentioned imports, the browser opens in the following url: newassets.hcaptcha.com. So I'm trying to understand why this might be happening and why only on ios.

What have you already attempted?
I tried updating the stripe libs to their latest version, and I also tried setting the advancedFraudSignals to false. but it didn't work

cursive heronBOT
cursive heronBOT
#

@kind solar pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
"message": "The `setup_future_usage` value on the ConfirmationToken you provided was null.

"setup_future_usage": "off_session",

Question
I'm getting the above error but when I look in the Stripe payment intent request, i have it set correctly. Am I missing something else from this error?

What have you already attempted?
nothing - as it appears what comes back is correct

What are you working on?
correcting stripe gateway errors

#

@haughty dagger pressed the πŸͺ Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I am trying to listen to account balance changes for connected accounts but the webhook never gets triggered when the balance changes

Related Event ID(s)
No event ids

What have you already attempted?
Reading docs, making a new webhook endpoint, upgradiing webhook api version

#

@frank kayak pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
const intent = await stripe.setupIntents.create({
customer: stripe_customer_id
});

Question
How can I get the Contacts objects from a customer in order to retrieve the billing adresses?

What have you already attempted?
stripe.customer.retrieve

What are you working on?
Using elements to get the billing address in the customer's dashboard on my website

#

@charred ledge pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We’re preparing to offer Alipay and WeChat Pay in the coming months.
Our setup uses Stripe’s PaymentIntents API with a custom-built checkout UI wrapper. We understand that these payment methods require an authenticated flow for customers to complete their purchase.

To ensure accurate pricing for our customers, we’d like to determine whether Stripe will apply an international fee or currency conversion fee during checkout.

What’s the recommended way to identify these fees during the PaymentIntent process so we can display them to the customer in real-time?

Related Request ID(s)
NA

What have you already attempted?
Looked through numerous Stripe docs and the payment intent API docs. I have also contacted my Stripe AE who has directed me here.

What are you working on?
Building out a payment flow to support AliPay and WeChat Pay

#

@sonic fulcrum pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
<?php
ini_set('display_errors',1);
error_reporting(E_ALL);

use Slim\Http\Request;
use Slim\Http\Response;
use Stripe\Stripe;
use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\Exception;
use GuzzleHttp\Client;

require 'vendor/autoload.php';
require 'PromoMiddleware.php';

session_start();

$dotenv = Dotenv\Dotenv::create(__DIR__);
$dotenv->load();

require './config.php';;

$app = new \Slim\App;

$app->add(function ($request, $response, $next) {
Stripe::setA

Question
i am reciving error on my website https://www.bigdunestours.com/dubai-desert-safari-experience?ref=web2
i cant view stripe checkout although test mode was working fine
error is
<br/>
<b>Fatal error</b>
: Uncaught TypeError: Dotenv\Dotenv::create(): Argument #1 ($repository) must be of type Dotenv\Repository\RepositoryInterface, string given, called in /home/oglt7plffw65/public_html/index.php on line 21 and defined in /home/oglt7plffw65/public_html/vendor/vlucas/phpdotenv/sr

What have you already attempted?
i have attemted to update my composer.json as i thought dependencies are creating issues but going deep i saw on network tab of inspect view i found this error

#

@digital geyser pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I am resolving an issue where our clients cancel their subscription using the billing portal after the retry mechanism has started.
The problem is that the new billing cycle starts and the subscription is due to be canceled at the end of the billing cycle, not right away. This results in the retry mechanism continuing to occur even though the subscription has been canceled. If the retry mechanism does not succeed the subscription is canceled, however in those days (7 in our case) there is a possibility that the client will be charged when their subscription has already been canceled.
Here is how I am handling it so far:
On the subscription.updated event I am checking for:

Doc/Guide Links
https://docs.stripe.com/billing/subscriptions/overview

What are you working on?
subscription service for sports data

cursive heronBOT
#

@thick mulch pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We would like to manually request 3DS authentication during confirmation of a SetupIntent. Currently, we are calling the following:
```
stripe.confirmCardSetup(clientSecret, {
payment_method: paymentMethodId,
});
```

Related Request ID(s)
req_QZgR7yTjULOi53

What have you already attempted?
```
stripe.confirmCardSetup(clientSecret, {
payment_method: paymentMethodId,
payment_method_options: {
card: { request_three_d_secure: 'challenge' },
},
});
```
We've tried adding `payment_method_options[card][request_three_d_secure]` to the optional `data` parameter of `confirmCardSetup`, but this returns the error "Received unknown parameter: payment_method_options[card]".
Docs suggest this method should accept the parameter.
- https://docs.stripe.com/js/setup_intents/confirm_card_setup
- https://docs.stripe.com/api/setup_intents/confirm

What are you working on?
Performing 3DS authentication when setting up a card for future payment.

#

@obsidian dove pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hi, I had a couple questions for setting up a new subscription product in our application:

  1. We want to offer a once-per-customer discount/coupon on a specific product that is applied automatically when a user either signs up for that product or updates their subscription to that product. I didn't see an easy way to accomplish the once-per-customer behavior. Is there something set up for this on the Stripe side? We currently have all sign-up handled with Checkout, and are using the Customer portal to have users self-manage their subscription to upgrade/downgrade/cancel.
  2. To be continued..

Related Request ID(s)
NA

What have you already attempted?
Browsed coupon and Checkout docs. I know how to apply a coupon to a subscription but since these are licensed-price products (user pays a flat fee to activate the subscription) I wasn't sure how/if we could accomplish this while using Checkout and Customer portal for subscription management on the user side

cursive heronBOT
#

@last yew pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Do SetupIntents decline payments the same as PaymentIntents? For instance, would a SetupIntent verify CVC while attempting to create the intent just as PaymentIntent would? Do they both perform the same verification (sufficient funds, correct cvc, name... etc)? I would like to know how confident I can be while saving payment method details (via SetupIntents) to be charged later (via PaymentIntents).

Doc/Guide Links
SetupIntent api: https://docs.stripe.com/payments/setup-intents
https://docs.stripe.com/api/setup_intents?lang=curl
Declined payment examples:
https://docs.stripe.com/testing?testing-method=card-numbers#declined-payments

What are you working on?
Saving payment method details to be charged later

#

@mint lily pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hello, I sent a question regarding integrating 3 stripe enviroments on 1/10/24. I need to get back to that topic, I have two different and separated stripe accounts, as they keep finances for services separate, is there any way to connect them or create a bridge? Hanzo mentioned stripe connect, is there any way to put these 2 enviroments under stripe connect? we want to aim to a person inputting payment details once and be attached to the 2 customers in the different enviroments at the same time. If not possible only option is customer only entering payment details twice? open also to other approaches that might recommend, thanks!

Doc/Guide Links
https://stripe.com/es/connect

What are you working on?
want to connect two different stripe enviroments, and want to keep flow of a user adding only one payment method

cursive heronBOT
#

@light knot pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Do creating a Setup intent with "payment_method_options.us_bank_account.verification_method" automatically starts a verification process for ACH? Or is it required to somehow start this process manually?

Related Request ID(s)
.

What have you already attempted?
We tried creating it, but the micro-deposits take some time to appear in the bank account.

What are you working on?
Subscription based service

#

@round geyser pressed the 🀨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
Attempting to create an ach_credit_transfer method_type on a subscription should work on dev account as it does on testing/production account.

What actually happened?
"message": "Invalid payment_settings[payment_method_types][0]: must be one of <redacted for space>. (Hint: The feature you are trying to use is deprecated.)"

Reproduction Steps
stripe subscriptions create
--customer="<CUS>"
-d "items[0][price]"="<PRICE>
--collection-method=send_invoice
--days-until-due=1
-d "payment_settings[payment_method_types][0]"=ach_credit_transfer

Question
I am trying to test changes for ach_credit_transfer migration to bank_transfer. I am unable to enable this in our dev account, although I am in another account. Is there a way to enable this deprecated feature temporarily to test changes?

#

@golden bone pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hi, I am working on a stripe payment element. I am trying to implement a payment method save for future use. I created a payment intent and then I confirm the payment intent using confirmation token but it is giving an error

Related Request ID(s)
NA

What have you already attempted?
NA

#

@serene prism pressed the πŸͺ Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
code is working perfect on localhost, while production it is showing this error.

Webhook Error: Webhook payload must be provided as a string or a Buffer (https://nodejs.org/api/buffer.html) instance representing the _raw_ request body.Payload was provided as a parsed JavaScript object instead.
Signature verification is impossible without access to the original signed material.
Learn more about webhook signing and explore webhook integration examples for various frameworks at https://github.com/stripe/stripe-node#webhook-signing

Related Event ID(s)
evt_1Qj4LUHTxsLPmt2xDKENLAWJ

What have you already attempted?
app.use(
express.json({
limit: "10mb", // Adjust based on your needs
verify: (req, res, buf) => {
if (req.originalUrl === "/api/printjob/stripe-webhook") {
req.rawBody = buf.toString();
}
},
})
);

// Use raw body parser for Stripe webhook
router.post("/stripe-webhook", express.raw({ type: 'application/json' }), async (req, res) => {
let event;

try {
// Verify the webhook signature
const signature = req.headers['stripe-signature'];
event = stripe.webhooks.constructEvent(req.body, signature, process.env.STRIPE_WEBHOOK_SECRET);
} cat

#

@normal prawn pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Can I pay the people in my stripe organization directly from the customer's attached payment method(cards) to their stripe attached bank? or I must pay to my organization, then initiate stripe balance to people in my stripe organization

Related Request ID(s)
no reqs

What have you already attempted?
I searched over for the same, but didn't find any infos.

#

@twin kernel pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
If I have recurring/one-time price ids on ctx.stripe.checkout.sessions.create `line_item` field, how can I add subscription_data? if there is both recurring/one-time in `line_items`

Related Request ID(s)
None

What have you already attempted?
I have attempted it with mode: subscription, but i want to be able to purchase both types of charges.

#

@obsidian dove pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Quick question about the Customer portal:
We have two different types of subscriptions that we offer: one is purely usage based, and another gives access to our services on a monthly basis. We'd like for customers to be able to manage both their subscriptions in the customer portal and I was wondering if it is possible to specify different cancellation behavior for each subsription?

E.g. purely usage-based subscription should cancel immediately, licensed subscription should cancel at the end of the billing period

Related Request ID(s)
NA

What have you already attempted?
Browsed docs and looked at customer portal settings

cursive heronBOT
#

@rigid thistle pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Is it possible to look into transaction history of a Customer's bank account, both on Stripe dashboard as well as via API?

Related Request ID(s)
none

What have you already attempted?
It is part of our customer due diligence where we need to validate their financial standing by looking into the history of transactions in their bank account.

cursive heronBOT
#

@kind solar pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
"The provided PaymentMethod was previously used with a PaymentIntent without Customer attachment, shared with a connected account without Customer attachment, or was detached from a Customer. It may not be used again. To use a PaymentMethod multiple times, you must attach it to a Customer first."

"capture_method": "manual","confirm": "true","currency": "usd","customer": XXXXXXXX,

Question
I'm getting the above error and I believe it occurs when a customer places an order (thus generating a payment method ID) and then places another order with the same card (generating a NEW payment method ID) and then stripe fails to authorize the new one due to the previous order on file. I'm not sure if this is correctly working as intended or if I need to alter something here.

What have you already attempted?
Attempting to manually put the old PM ID back into the new orders.

What are you working on?
Stripe API Log errors

cursive heronBOT
#

@obsidian dove pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We recently had some unexpected behavior with how a 3-month coupon interacted with a usage-based subscription which has its billing cycle anchored to the 1st of each month.

The coupon was applied part way through a billing cycle, and worked as intended for the first 3 invoices. However, in the middle of the 4th billing cycle, the coupon was deleted from the subscription (since the 3 months had expired), and this triggered a large, unexpected bill for the customer (a subscription_threshold invoice was created since the amount exceeded their billing threshold).

Related Request ID(s)
NA

What have you already attempted?
I'm wondering what a better/cleaner way to handle this would be? I guess I would expect a coupon falling off mid-cycle to generate an invoice with the usage from the covered period, and then only usage outside of the coupon coverage would be charged as normal from that point forward. Is this a scenario where a subscription schedule would be appropriate?

#

@brisk relic pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
In Node.js I am calling:
const response = await stripe.oauth.token({
grant_type: 'authorization_code',
code: code,
});

The code has worked fine for the last 2 years and has just stopped working sometime in the last 2 weeks.

I am getting this error:
{ Error: An error occurred with our connection to Stripe. Request was retried 2 times.
at req.then.catch (/workspace/node_modules/stripe/lib/StripeResource.js:519:15)
at process._tickCallback (internal/process/next_tick.js:68:7)
type: 'StripeConnectionError',
raw:
{ message:
'An error occurred with our connect

Related Request ID(s)
Can't find one

What have you already attempted?
Difficult to test

What are you working on?
Attaching connected Stripe accounts to a platform Stripe account

#

@dull jungle pressed the πŸͺ Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Facing an odd problem with the percentage rate of failure for my webhook. I had one event fail and retry 5-6 times. All the other ones are succeeding but the % error rate is going up not down as new events succeed. How could this be possible?

Related Event ID(s)
evt_1QhlxTA231bzpnwRWKM0cidY

What have you already attempted?
Fixed the webhook

What are you working on?
godelterminal.com

#

@ocean needle pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
stripe subscription_schedules create
--customer=cus_GBHHxuvBvO26Ea
--start-date=now
--end-behavior=release
-d "phases[0][items][0][price]"=price_1GqNdGAJVYItwOKqEHb
-d "phases[0][items][0][quantity]"=1
-d "phases[0][iterations]"=12

Question
I know we can manually modify individual subscriptions per customer, but I need to know how to update a payment link so that all subscriptions created through that link have a limited number of iterations

What have you already attempted?
I am limited to basic CLI understanding and cannot find an example of this being done

What are you working on?
We have customers who want to split up payments for a large purchase, so we are looking to set up a monthy subscription that only bills for 2 iterations

#

@honest vale pressed the 🀨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
Google, apple, and amazon pay all show consistently in the payment element

What actually happened?
Sometimes, rarely, only card/link is shown and a page refresh successfully shows all options

Reproduction Steps
This is very very intermittent. I have not figured out precise steps to reproduce but I have an idea of why, see below

Question
I hope to hear whether there is any known reason for this. The only explanation that i have thought of is that its possible that there is a race condition or something where <Elements> is passed a config at the root of the react app, but when we have the cart available, we call elements.update() with the updated cart and all.

#

@sand bay pressed the πŸͺ Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
webhook not getting hit in test mode

Related Event ID(s)
we_1QjnBT08kUV9cm7vjfaDNiI5

What have you already attempted?
i set it local but i am randomly getting some event which i wasn't even listening to

What are you working on?
startup, live marketplace like whatnot

#

@honest oriole pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Using finalize payments on server approach apple pay is not processing

Related Request ID(s)
sco_RaiX0Rrxvug1CV

What have you already attempted?
Using intentConfiguration instead of paymentIntentClientSecret leads to apple pay failure

What are you working on?
We are switching from paymentIntentClientSecret to intentConfiguration in order to simplify logic

cursive heronBOT
#

@frank kayak pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
const intent = await stripe.paymentIntents.create({
amount,
metadata: {
userId,
},
receipt_email: locals.user?.email as string,
currency: 'eur',
setup_future_usage: 'off_session',
description: `MyService - ${amount}`,
payment_method_types: ['card'],
...(selectedMethodId ? { payment_method: selectedMethodId } : {}),
...(stripe_customer_id ? { customer: stripe_customer_id } : {}),
...(confirm ? { confirm: true, return_url: `${env.ORIGIN}/` } : {})}

Question
I've been using paymentIntents instead of products, prices, invoices etc... How can I transition?

What have you already attempted?
I've tried using stripe.invoice.create or stripe.checkout.sessions.create but I struggle to get the same instant payment functionality, especially since I use the intent's client_secret in order to perform payments with elements and apple/google pay on the frontent

What are you working on?
News content paywall

#

@ebon turtle pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
<ExpressCheckoutElement
onConfirm={() => console.log('confirm')}
options={{
paymentMethods: {
googlePay: 'always',
},
}}
/>

Question
I'm curious why this is rendering a basically empty div. I have <Elements> loaded in the parent. I also render <CardElement/> in the same form which works fine. In the express checkout element demo I see the google pay option.

What have you already attempted?
Changing the options, googling for similar problems but I've not found any.

What are you working on?
Ecommerce

#

@jade plinth pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
too long for this place

Question
I was running stripe locally and it was working, but when i changed to prod, I only receive status 400 for invalid signature

What have you already attempted?
I already tried getting the webhook secret from the new endpoint I created, but it's not working

What are you working on?
integration to my testnig app

cursive heronBOT
#

@lament hollow pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Is it possible to edit a draft invoice that is associated to a usage based subscription? I have the grace period set to 3 days after invoice creation before charging. During those 3 days I would like to update the usage amount on the invoice that is in draft mode. Is it possible to update the invoice, or get it to regenerate the invoice based on the new usage values?

Related Request ID(s)
none

What have you already attempted?
I've tried revising the invoice, and updating the invoice line items. Neither of these are permitted with subscription based line items.

cursive heronBOT
#

@flint granite pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I'm trying to get some help setting up a test mode payments checkout. I have a project from 2022 and I know the API has changed.

Related Request ID(s)
I'm on Workbench and see my local webhook listener, api version of 2024-12-18.acacia, failing request id: req_YncNLLJ23bIDrG, 3 failed request logs

What have you already attempted?
I set up a self-hosted Supabase database to handle a prisma schema. It uses react and react day picker to select available dates to book then the information sent to Stripe.

What are you working on?
I think my keys are working because I can see database activity, but not sure if my webhook is set ok and need help to get to the end.

cursive heronBOT
#

@long drum pressed the ❌ An Error button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Error Message
Payouts paused

Question
Received 1 payment and got paused

What have you already attempted?
I’ve verified everything on the account

Reproduction Steps
Filled out all required stripe info

What are you working on?
Simply trying to run my shop and stripe locks me out

#

@sonic fulcrum pressed the ❌ An Error button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Error Message
[22-Jan-2025 00:56:35 UTC] PHP Deprecated: Return type of Pimple\Container::offsetExists($id) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/oglt7plffw65/public_html/vendor/pimple/pimple/src/Pimple/Container.php on line 133

Question
on test enviorment everything is working fine but as soon as i bring it to my website server i am getting this errors , and that too when i check network tab

What have you already attempted?
no idea whats brings this error tried checking stripe keys as thats the only thing i have changed

What are you working on?
need help on this

cursive heronBOT
#

@rocky nimbus pressed the 🀨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
When trying to do a test crypto transaction, it asks for link information. After giving info, it says sending code to phone number, but the code never comes. The code comes for the same email/phone on production though

What actually happened?
Text code never comes

Reproduction Steps
Going through link transaction on test net - try to get text code

Question
I think Link texting the code to a phone number isn't working properly in Stripe's test environment

cursive heronBOT
cursive heronBOT
#

@spring plover pressed the πŸͺ Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
When creating a payment, I use the checkout session to manage it, so I don't have paymentIntent-related information locally. I only store the sessionId and put the orderNo in metaData when creating the session.
When the payment fails and triggers the "payment_intent.payment_failed" event, I can't associate the data in the callback with my order. Is there any solution or can I listen to other events to solve this problem?

Related Event ID(s)
none

What have you already attempted?
none

cursive heronBOT
#

@ashen kindle pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I want to change subscription payment method for the user. how to achieve that?

Related Request ID(s)
sub_1QjBPvKxUzgEvuWhm77oVgC8

What have you already attempted?
I already create api for the user to add new payment method using the setupIntent

cursive heronBOT
#

@visual steppe pressed the πŸͺ Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Are there any webhook for , when connected account Available to payout balance is updated or Available to instantly payout is updated.

Related Event ID(s)
Nothing

What have you already attempted?
Searched on stripe doc but coudn't find one.

What are you working on?
A freelance market place.

cursive heronBOT
#

@silver marsh pressed the ❌ An Error button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Error Message
Payment method missing and card not working

Question
Our European (Specifically Belgium issued cards) credit and debit card does not work. The error message shows "uncaptured" OR "insufficient funds" or "captured but not authorized". We concluded (but please confirm this) that it is because the 3DS did not pop up? But we did enable the 3DS on the dashboard and in the code, but 3DS still did not pop up. Refer below to t

What have you already attempted?
Everything honestly

Reproduction Steps
Help! Please? We use payment element

What are you working on?
E commerce website

#

@scarlet finch pressed the πŸ“š Doc or Guide button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Link to the Doc/Guide in question
https://docs.stripe.com/connectors/salesforce-billing/install

Question
We are following the instructions in this document but are unable to find the 'Stripe for Salesforce Billing' managed package anywhere. Does anyone have any ideas on how we can install the 'Stripe for Salesforce Billing' managed package in our Salesforce org?

What have you already attempted?
Looked into the app exchange apps for "Stripe for Salesforce Billing" but didn't able to find that.

What are you working on?
Need to build payment and transaction services through stripe in salesforce billing.

cursive heronBOT
#

@halcyon scarab pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Through the API, I enabled my merchant to link their bank account to a Stripe connected account by creating a new custom connected Account. How can I identify which API response object confirms that the steps are completed and the external account is successfully verified and attached? and how do u know steps are pending

Related Request ID(s)
NA

What have you already attempted?
i tried by retriving account using
Account.retrive

What are you working on?
i was integrating strip to my application

cursive heronBOT
#

@spring plover pressed the πŸͺ Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
In my local service, I only handle the creation of the checkout session. In this case, when I receive the "payment_intent.payment_failed" event, is there any way for me to associate the failed paymentIntent with my local order? I put the orderNo in the metadata when I created the checkout session, but it is not included in the callback information. I don't have the corresponding paymentIntentId locally, so I can't associate it.

Related Event ID(s)
none

What have you already attempted?
none

cursive heronBOT
#

@exotic wigeon pressed the πŸ“š Doc or Guide button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Link to the Doc/Guide in question
https://docs.stripe.com/billing/revenue-recovery/customer-emails#failed-payment-notifications

Question
Scenario: Bank transfer payment failure
Given the user initiates a bank transfer payment,
When Stripe fails to process the payment,
Then the system should:

Receive the failure notification from Stripe via a webhook.

Save the failure status in the system database.

Notify the user of the payment failure.

Basically, this feature is not possible right?

This is in connection to my previous question/thread about how emulating bank transfer failure as well as using payment_failed.

What have you already attempted?
- no mention on this one docs

cursive heronBOT
#

@boreal mantle pressed the 🀨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
We expect minimize the efforts for registering each state individually and calculating taxes.

What actually happened?
Got $0 tax amount with reason "not_collecting", if the given address's state is not explicitly registered.

Reproduction Steps
We did a tax registration from the stripe’s dashboard for one of the US states, then we tried to generate some taxes on a taxable amount in our development environment with the user’s address in some other state and the tax calculation API returned a $0 tax amount with reason as β€œnot_collecting”. Using the same state and its postal code as the one we registered works

Question
Calculating tax for my customers in US, Canada requires have a tax registration across all of its state / regions.

Is there a way using which I can minize the efforts of registering across all the US states individually, but rather have 1 registration that works across the whole country?

What are you working on?
Calculating tax for our service-based product across all states of US and Canada which is the targeted market audience

#

@grave heart pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I created a stripe card token using https://api.stripe.com/v1/tokens and when I am retreiving using https://api.stripe.com/v1/tokens/tok_xxxxxx , but it throws an error "message": "No such token: 'tok_xxx...'"

Related Request ID(s)
req_C9YA4esxApU0K6?t=1737530941

What have you already attempted?
Checked public and secret keys, tried with multiple cards

#

@earnest moth pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
we use Payment Element and set automatic_payment_methods: {enabled: true}
our currency code is eur and we turn on Ideal / Bancontact via Dashboard but it is not display

Related Request ID(s)
N/A

What have you already attempted?
It is worked for test mode

cursive heronBOT
#

@twilit viper pressed the πŸͺ Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Is there a way to mock a account.application.authorized event for a Stripe App? We are building in test mode on our account and want to mock the behavior of a Stripe Account installing our app when we publish it.

Related Event ID(s)
n/a

What have you already attempted?
I tried triggering the event with Stripe CLI, but it seems to not be supported (The event `account.application.authorized` is not supported by Stripe CLI. To trigger unsupported events, use the Stripe API or Dashboard to perform actions that lead to the event you want to trigger). Is there an API call we could make that could provide the same data that an account.application.authorized event could? As far as I understand, with the API we won't be able to get the same data it won't be about a Connected Account

What are you working on?
subscription bundling stripe app

#

@granite valve pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Does Link by Stripe support recurring payments (Merchant Initiated Transaction) ?

Related Request ID(s)
NA

What have you already attempted?
Tested CIT flow

What are you working on?
Trying to offer Link by Stripe for first transaction (sign-up) and recurring transactions

#

@peak steeple pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I’m building a community platform where users subscribe to communities. Users provide payment info and fill out a form, but since admission depends on the admin’s approval, we authorize (but don’t capture) the payment using a payment intent. Once approved, we capture the payment and create a subscription.

The issue is that Stripe generates a first invoice when creating the subscription and charges the user again. I need to link the captured payment intent to the subscription’s first invoice (marking it as paid) while ensuring future renewals are charged automatically. How can I achieve this?

Related Request ID(s)
PaymentIntent, Subscription

What have you already attempted?
I have tried the following approaches without success:

- Creating the subscription with payment_behavior: 'allow_incomplete': I retrieved the subscription's latest invoice and tried to mark it as paid using the captured PaymentIntent. However, the .pay() method does not accept payment_intent as a parameter.

- Setting payment_behavior: 'allow_incomplete' without additional steps: This results each time in extra charges because the first invoice is still processed separately from the captured payment.

What are you working on?
I’m building a community platform where users subscribe to communities. Users provide payment info and complete a form set by the community creator. Admission depends on the creator’s approval

cursive heronBOT
#

@frosty rune pressed the ❌ An Error button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Error Message
Something went wrong error in CustomerSheet from android sdk

Question
I'm using the Stripe Android SDK (21.3.2). During adding the card using the CustomerSheet I see error Something went wrong.

What have you already attempted?
Changing version and reinstalling the sdk.

What are you working on?
App for marketplace. Android.

#

@ashen kindle pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How to update subscription payment method?

Related Request ID(s)
sub_1QjBPvKxUzgEvuWhm77oVgC8

What have you already attempted?
I have setup intent for the new payment method.
actually this is related to previos thread but already closed

#

@knotty locust pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
is it possible to prevent foreign countries as billing address for checkouts? It looks like with stripe radar it is possible to prevent cards from some countries, but im not sure if this is the right thing for our case. We use destination charge for stripe connect and want, that the connected accounts can deside if they allow foreign customers. So we have to configure depending on the destination account if the billing address of the customer is allowed or not. This is not to prevent fraud, but to simplify some tax rules for the connected accounts

Doc/Guide Links
https://docs.stripe.com/radar/rules#block-rules

What are you working on?
a marketplace where user can sell extentions of a larger system

cursive heronBOT
#

@stuck tundra pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
I'm passing this to create setup intent through nodejs but I'm not able to confirm setup intent from stripe sdk on client side for BACS Debit.
customer: 'cus_RcgWxU1uACYv8h',
payment_method: undefined,
automatic_payment_methods: { enabled: true },
usage: 'off_session',
description: 'Authorization - GBP Recurring',
metadata: { fp_skip_tracking: 'true' },
payment_method_configuration: 'pmc_1M95aRFpU9DlKp7ReIqqY0PP',
payment_method_options: undefined

Question
This is tried for recurring with trial product. I've 2 questions. 1. Do we support 0 transaction for BACS using stripe payment element?
2. Do we support subscription with trial for BACS using stripe payment element?
I'm now able to achieve both when transaction amount is 0.

What have you already attempted?
For onetime product with 100% coupon applied, stripe sdk payment element mode is set to setup and BACS is not loading although captureMethod is set to automatic. For recurring product with trial, mode is set to subscription and BACS is loading but since the amount is 0 initially, create setup intent works but confirmSetupIntent doesn't work for BACS. I'm getting this error although I'm passing: automatic_payment_methods: { enabled: true }, while creating PI.

What are you working on?
Error received in above scenario:

#

@ocean cradle pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I am creating a subscription for a customer. The customer is available on stripe with its details like address, phone etc.

When creating new subscription, I need to set different billing address. So that the invoices on that subscription will show that address as the billing address.

Related Request ID(s)
123

What have you already attempted?
I am creating a subscription for a customer. The customer is available on stripe with its details like address, phone etc.

When creating new subscription, I need to set different billing address. So that the invoices on that subscription will show that address as the billing address.

How can we achieve it ?

What are you working on?
creating subscription with another customer billing address

cursive heronBOT
#

@lone marten pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hello, what is the best practice and the API to use when I want to charge a client multiple times automatically ?
My platform will automatically place orders for my clients and I need to charge them at order placement. It can be multiple times per day and over months.
The ideal flow would to ask only once the card to the client at signup.

Doc/Guide Links
stripe doc about preauthorization

What are you working on?
Platform which automatically place order on behalf on my clients

#

@nimble vessel pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
can I enable floating labels on all forms using the appearance property?

Question
```
import { Appearance } from '@stripe/stripe-js';

export const appearance: Appearance = {
theme: 'flat',
labels: 'floating',
};

```
I want to keep floating enabled on all labels by default without focus

What have you already attempted?
looked through the types. didn't find anything.

What are you working on?
outpaint.io

cursive heronBOT
#

@next basin pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
When creating a product for a one-off purchases (books, etc.) via the API. Should I always create a Price using the default_price_data parameter or can I get away with not doing it and setting the price at Checkout?

Am I setting myself up for trouble if I don't include the Price info on the product?

Doc/Guide Links
https://docs.stripe.com/api/products/create

What are you working on?
Creating a marketplace, where customers can create Products in my interface.

cursive heronBOT
#

@long jungle pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We’ve implemented Direct Charges and confirmed the destination parameter is used in transfer_data and on_behalf_of in the PaymentIntent. The transfer appears correctly in the connected account, and transactions process successfully. However, connected accounts can’t see donor metadata (e.g., name, email, address), which is visible in the platform account. Is there an additional step needed to display this data in the connected accounts’ Dashboard?

Related Request ID(s)
acct_1QjgKPGaXe5d9XgQ,

What have you already attempted?
I’ve implemented Direct Charges and confirmed that the destination parameter is being used in the transfer_data and on_behalf_of in the PaymentIntent. The transfer appears correctly in the connected account, and transactions are processed successfully. However, the connected accounts can’t see important transaction details like donor metadata (name, email, address). I’ve reviewed the related documentation and checked the integration settings, but the issue persists.

#

@slate maple pressed the 🀨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
I disabled ACH credit transfers for invoices, I am expecting users to be able to pay for invoices using cards and bank transfers

What actually happened?
Users are still paying for invoices using ACH credit transfer even though I disabled it in October

Reproduction Steps
Check this transaction over here: https://dashboard.stripe.com/payments/pi_2QT6lynfCxLkSG4V1W0vgooh

Question
How are users still able to pay for invoices using ACH credit transfers even though I disabled it?

#

@wooden idol pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I have got a web developer team making a website for me and are trying to set up stripe, they keep asking me to get in touch with customer services to resolve this error:
This intergration surface is unsupported for publishable key tokenisation
When I am looking for ways to resolve this, I don't know enough to what they might have already tried, so cannot problem solve it

Related Request ID(s)
.

What have you already attempted?
I have given them the PK and SK in live and test mode

What are you working on?
stripe payments

#

@earnest moth pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
when i set "capture_method": "automatic", i got error
"This PaymentIntent could not be captured because it has already been captured.",

Related Request ID(s)
N/A

What have you already attempted?
so how to avoid it

#

@grand ravine pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I have created one off invoices using auto_advance. But the customer does not have any payment method saved. Which means the invoice transitions to incomplete. It doesn't look like stripe has sent any email to the customer with the invoice and stripe hosted link to pay. When I try manually send the invoice through the api (stripe.Invoice.send_invoice(invoice['id'])), I get this error: "error_code=None error_message="You can only manually send an invoice if its collection method is 'send_invoice'." error_param=None error_type=invalid_request_error message='Stripe API error received'"

Related Request ID(s)
req_9RfWthguiysLnU

What have you already attempted?
as above

#

@jade plinth pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
too long for this place

Question
I was running stripe locally and it was working, but when i changed on an endpoint, I only receive status 400 for invalid signature

What have you already attempted?
I already tried getting the webhook secret from the new endpoint I created, but it's not working

What are you working on?
integration to my testnig app

#

@bitter hornet pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I already stripe in my API code which is in ASP.NET and generates client_secret_key and this key i pass to frontend which developed in React and using String pages for payment

now i want when my end user do payments then user don't need to enter card details again and again
end user should directly see previously added card so that user will only click on pay button and will do the payment without adding card details everytime

Related Request ID(s)
.

What have you already attempted?
.

cursive heronBOT
#

@astral owl pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We are consolidating our products / prices. Previously we had duplicated our products, e.g. standard was identical to team, but we would someone to team if they needed team members. This was purely so we could see who was on teams. Our new price tiers are standard, enterprise, enterprise_annual. The invoice only references the product. Is it possible for us to amend the invoice or do something to indicate someone is on a team plan when they are billed?

Related Request ID(s)
n/a

What have you already attempted?
n/a

What are you working on?
laravel

#

@steep summit pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I want to configure few things about the schedule subscriptions. I am creating the product and then making customer to able to do either complete payment or split the payment using schedule subscription. My question is, what happens to the existing schedule subscriptions if we update or delete the product detail specially name and price. Is there any restricion on this kind of behaviour in stripe?

Related Request ID(s)
No

What have you already attempted?
I implement the products api for now.

What are you working on?
Implement schedule subscriptions

cursive heronBOT
#

@cold forge pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hi, I am trying to add a checkout page to my frontend. Using the following dependencies in my React Project.

"@stripe/react-stripe-js": "^3.1.1",
"@stripe/stripe-js": "^5.5.0",

When I try to initiate a CheckoutProvider it fails with the message "stripe.initCheckout is not a function". This is correct, since the stripe object only exports the initEmbeddedCheckout function.

I was following this guide: https://docs.stripe.com/checkout/custom/quickstart. However I cannot use the "ui_mode='custom'" flag, since the API library only supports "ui_mode" either being "hosted" or "embedded".

Related Request ID(s)
None

What have you already attempted?
I tried using the ui_mode custom and I tried changing the package versions without success.

What are you working on?
A frontend checkout page

cursive heronBOT
#

@loud brook pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Why is the stripe create payment intent api failing suddenly?

Related Request ID(s)
Customer ID: "cus_QRujam3dUGHYbj", Payment Method ID: "pm_1PGcdCDWklh8LgDYENO7FOZz"

What have you already attempted?
I am getting this error on payment intent create api
"The provided PaymentMethod was previously used with a PaymentIntent without Customer attachment, shared with a connected account without Customer attachment, or was detached from a Customer. It may not be used again. To use a PaymentMethod multiple times, you must attach it to a Customer first."
Although i can see it is attached to the customer

What are you working on?
Stripe Create payment Intent api

#

@stray mist pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
While using stripe.elements with setup_future_usage = 'off_session', I am getting a message saying "By providing your card information, you allow Merchant to charge your card for future payments in accordance with their terms. Is there a way to hide this message?

Related Request ID(s)
req_F8JXAQDXisoAgU

What have you already attempted?
Tried to hide the message via jquery but not working.

cursive heronBOT
cursive heronBOT
#

@brave kelp pressed the 🀨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
I expect to download invoices via invoice.pdfUrl, which always worked until now.

What actually happened?
I have a customer with an invoice that has a pdf url which returns 404 when requesting it.

AccountId: acct_1Qj0veGfPbcctygE
InvoiceId: in_1QjPiVGfPbcctygErq9Psfhh
InvoiceNumber: 2C3D55A7-0001

Reproduction Steps
Request this url:
https://pay.stripe.com/invoice/acct_1Qj0veGfPbcctygE/live_YWNjdF8xUWowdmVHZlBiY2N0eWdFLF9SY2YydEZ3bVNFSGcxWWRJQXpOOFZnS21PZUdzNUtpLDEyODA5NTQzMw0200q0yMliws/pdf?s=ap

Question
Is this a valid case? if yes, why?

What are you working on?
I develop an application that syncs invoices from Stripe into a German accounting tool.

#

@rustic geode pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I am using Payment Elements in js. I have enabled google, apple and amazon pay on stripe dashboard, but on my Payment Element i want to show only option to pay normally with a card. How can i do that?

For google, apple and amazon pay i would separate that and use Express checkout element because of my UI design needs.

Doc/Guide Links
https://docs.stripe.com/js/elements_object/create_without_intent#stripe_elements_no_intent-options-paymentMethodTypes

What are you working on?
i am trying to build separated payemnt for card and google, apple and amazon pay

#

@median echo pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Is there any way to send a discount code to the Customer Billing Portal when creating it through the API? We're using the Billing Portal for customer subscription upgrades and I see where we can enable promo codes but if we wanted to run a discount across products, could we pass that to the billing portal to apply to the session?

Related Request ID(s)
NA

What have you already attempted?
I've looked at these docs.
https://docs.stripe.com/customer-management/configure-portal
https://docs.stripe.com/api/customer_portal/configurations/object

What are you working on?
A SASS subscription/account application.

#

@trail crypt pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
What is the risk (on payment authorization and Stripe Radar scoring) of having the name being collected as part of Address Element as passed when confirming PaymentIntent NOT match the actual name linked to the payment method? Context is that in our multi-step current checkout form, we collect name in two steps (billing details and payment details). The name collected in the payment details step is part of Stripe's card element and is the one being passed to the PSPs, while the name collected in billing details is stored separately and it is possible that these two do not match.

Now we are building a single page checkout and can only collect one name field.

Doc/Guide Links
https://docs.stripe.com/elements/address-element/collect-addresses#web-retrieve-address
https://docs.stripe.com/js/payment_intents/confirm_payment#confirm_payment_intent-options-confirmParams-payment_method_data-billing_details

What are you working on?
Building a new checkout page for a software subscription service using Stripe's Payment and Address elements

#

@sand pond pressed the ❌ An Error button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Error Message
Payment Failed, Apple/Google Pay, Stripe hosted checkout.

{
"error": {
"code": "more_permissions_required_for_application",
"message": "This application does not have the required permissions for this endpoint on account 'acct_1GahjmFTaUa4FcDm'. Having the 'read_write' scope would allow this request to continue.",
"request_log_url": "https://dashboard

Question
Using WooCommerce with Stripe hosted checkout option.

In inspector I can see this error after failed payment.

It does not show any errors or failed checkout in stripe dashboard.

What have you already attempted?
Tried using express checkout button on a website checkout directly, it works. But when switching to hosted checkout option in Webtoffee Stripe Plugin, apple and google pay checkouts fail.

Reproduction Steps
Completing checkout flow on https://mustbee.eu/ and selecting stripe option

What are you working on?
Woocommerce Ecommerce Website.

#

@pure mica pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Are customer ids unique across all stripe accounts we own? Or are they only unique accross the same stripe account

Doc/Guide Links
In your docs (https://docs.stripe.com/api/customers/object#customer_object-id) you state that the id is a unique identifier, but we need to be sure that customer ids created through the api are unique accross all our accounts

What are you working on?
We are working on multiple accounts support for our stripe billing system.

#

@hushed jasper pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
When creating a new subscription do I have to worry about attaching the payment to the account (ie. setupFutureUsage)?

Related Request ID(s)
NA

What have you already attempted?
$subscription = [
'customer' => $account_code,
'items' => [['price' => $payment_price_code]],
'default_payment_method' => $payment_method_code,
'payment_behavior' => 'default_incomplete', // this lets us confirm the payment later
'payment_settings' => ['save_default_payment_method' => 'on_subscription'],
'currency' => $currency,
'expand' => ['latest_invoice.payment_intent'] // provides secret for us to add to response
];
if (!empty($source) or !empty($token)){
$subscription['

cursive heronBOT
#

@long jungle pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I’m experiencing an issue with the destination_payment field in the transfer object when working with a PaymentIntent that includes connected account transfers.

Related Request ID(s)
acct_1QjgKPGaXe5d9XgQ,

What have you already attempted?
A lot of things

cursive heronBOT
#

@west otter pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
When creating a customer the address, we are sending sub-division as part address line1 for few of the countries. Would it affect the payment authorization ?

Related Request ID(s)
NA

What have you already attempted?
We tried testing this on test environment but we cant test address validation

What are you working on?
Integrating address element to One page checkout

#

@analog sandal pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
@app.route("/webhook", methods=["POST"])
def stripe_webhook():
print("Webhook received!") # Add this line
payload = request.get_data(as_text=True)
sig_header = request.headers.get('Stripe-Signature')
# Make sure to replace this with your actual webhook signing secret from Stripe Dashboard
endpoint_secret = 'whsec_wY2uhf6QopLHf14tIV3UZi9cGbDRTAjY'

try\:
    event = stripe.Webhook.construct\_event\(
        payload, sig\_header, endpoint\_secret

Question
Everything works but i can t get the promo code the client used to know where to instert the affiliate stats i ve been trying for days i don t know how do retrive the promo code the client used, the promocodes are created inside a cupon

What have you already attempted?
i ve tried every pice of research, AI, forms nothing works

What are you working on?
A webiste that uses stripe payment links to buy my products and an affiliate program that if the client uses a code of an affiliate that affiliate to get 15%

#

@civic smelt pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We are using React Native Terminal SDK for Tap to Pay and are getting the following errors for iOS: Failed to connect to mobile reader: Unable to communicate with the reader while the app is in the background. Try again. code: ReaderNotAccessibleInBackground

I thought this was fixed in this PR: https://github.com/stripe/stripe-terminal-react-native/issues/595

Would something else be causing this? Does it also require us to add onDidReportUnexpectedReaderDisconnect callback.

Related Request ID(s)
N/A

What have you already attempted?
Upgraded to latest version

#

@radiant carbon pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Does the country spec api support to get some identifier for the free settlement currencies?

Related Request ID(s)
NA

What have you already attempted?
Right now it returns the full list of settlements currencies and there is no way to identify which currencies are free, which ones have fees

#

@livid root pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How can I create an account token from my react-native app?
I had tested it in staging by creating on the server.
However, in prod I got this error:
"Error: When not in test mode, account tokens may only be created using your application's publishable key."

Thanks

Related Request ID(s)
req_VZyn2Yk58MwT59

What have you already attempted?
Well I tried looking at the react native sdk doc but couldn't find the correct method for it. Does it exist? And if not is there an alternative?

What are you working on?
My users receive a reservation request. If they want to accept and eventually receive payment, they need to create an account with an external account.

cursive heronBOT
#

@dire night pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I am trying to do extended hold in my Stripe integration, following this guide: https://docs.stripe.com/payments/extended-authorization?platform=web&ui=elements
but it appears that Im getting this issue: `This account is not eligible for the requested card features`.
When visiting suggested page I dont find additional information. Is this limitation of my account and something needs to be enabled on it or is my integration wrong ?

Related Request ID(s)
Payment intent ID: pi_3Qk70URv4eUpKOwP1GNhkFY6

What have you already attempted?
Tried executing following request:
```
"url":"https://api.stripe.com/v1/payment_intents",
"body":"off_session=true&confirm=true&payment_method_options%5Bcard%5D%5Brequest_extended_authorization%5D=if_available&amount=4021&currency=eur&customer=cus_***&capture_method=manual&payment_method=pm_***&description=da6a0be2-d8df-11ef-bc62-8203d3792353%2040.21%20eur"
```

What are you working on?
Adding extended holds to our Stripe integration due to the flow potentially taking a lot of time because of external vendors, but reserve needs to be done before issuing real resources to customer.

#

@young carbon pressed the πŸͺ Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Is charge.refunded the correct event to listen to when a Connected Account initiates a refund? I want to create a transfer as soon as the account presses the Refund button in the dashboard.

Related Event ID(s)
stripe trigger --help command

What have you already attempted?
'charge.refunded' does not trigger when the Refund button is pressed.

#

@limber compass pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
So we have a weird problem:
We are an ecommerce B2B shop and we have the following flow:

  1. Customer clicks "buy now"
  2. We create the customer in stripe
  3. We create a new invoice
  4. we add the items to the invoice
  5. we finalise the invoice to receive the payment intent
  6. we pay the payment intent with the chosen payment method from the customer
  7. we placeOrder in our shopsystem and redirect to "Order has been successful".

Now the problem is: We cannot show the Order ID (generated by the store) on the Invoice ID because the order id is generated AFTER stripe generates and PAYS the invoice

Related Request ID(s)
not found

What have you already attempted?
We need to update the PAID invoice with our store order ID for the customer but cannot edit the invoice after of course. We could of course simply update `metadata` but that does not show on the invoice...

Seems like a crazy chicken egg problem

#

@flint granite pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I asked yesterday & got help in dev-help silvanet_api from @Rebeus ... I'm trying to follow up after following his suggestions. My code that worked before in relevant part looks like this:

const stripe_session = await stripe.checkout.sessions.create({
payment_method_types: ['card'],
line_items: [
{
name:
'Purchase nights from ' +
new Date(req.body.from).toDateString() +
' to ' +
new Date(req.body.to).toDateString(),
amount: amount,
currency: 'usd',
quantity: 1,
},
],
success_url: ...

Related Request ID(s)
I provided all the related IDs in the silvane_api thread.

What have you already attempted?
Everything already explained, plus I read the documentation @Rebeus gave me. I checked the API docs on retrieving session code, which seems to be where my project is failing. I also looked at the mapping of elements between the old line_items api and the new prices one. The mapping on here, https://docs.stripe.com/payments/checkout/migrating-prices#mapping-table-server-one-time

from the sample node.js code for building a checkout page, https://docs.stripe.com/payments/checkout/migrating-prices, I am trying to figure out what changes I need to make in my code (that used to work in old API).

What are you working on?
This was a simplified project for booking an Airbnb type rental apartment.

#

@misty fern pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We are provisioning SetupIntent's, w/ confirm=true.

We were under the impression this would force preauths at setup time to validate the accounts.

We are receiving failures when charging attempting to run purchases for our customers

We have failures
- CVC checks (this shouldn't fail if a preauth occured)
- transaction not allowed, which we would also like to understand

Related Request ID(s)
Sample charges:

What have you already attempted?
Documents, we've reached out to our account manager who directed us here.

#

@rustic swallow pressed the 🀨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
A customer record can be searched by metadata attribute once created.

What actually happened?
At times, the search cannot find an existing customer and results in multiple customers record representing the same user.

Reproduction Steps
Occurred on https://dashboard.stripe.com 1/14/25

1:04:52 PM
Searched for customer with /test/logs/req_CxPBKIQQ8sWVO3 and resulted in /test/customers/cus_RaSCg7PL4mlHsk being created.

1:04:59 PM
Searched for customer with /test/logs/req_CxPBKIQQ8sWVO3 and resulted in /test/logs/req_vM51ZBsgYeni5g being created.

Question
Why was the customer record created on 1:04:52 PM not searchable by 1:04:59 PM

#

@cinder niche pressed the 🀨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
I purchased physical test cards to test with and simulate these scenarios https://docs.stripe.com/terminal/references/testing#physical-test-cards, for example I want to test PIN entry and I expect the test cards to work with TTP on mobile devices.

What actually happened?
I have it all up and running and can simulate taking payments by pressing the "Tap to Simulate Payment" button, but when I tap one of the cards on the device nothing happens, like the card is not recognised.

Reproduction Steps

  1. Initialise TTP in test mode
  2. Create payment intent
  3. Collect payment and tap physical test card on phone.

Question
I have tried turning "isTest" to false in the initialisation step but that did not work. Is there anything else I have to do to get the test cards to work?

What are you working on?
I am integrating Tap to Pay for iPhone and Android in my Ionic/VueJS mobile app.

cursive heronBOT
#

@young carbon pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
When creating a connected account using controller properties with all properties set as a Standard account, except that dashboard type is 'none', will that still be a Standard account?

When retrieving the created account it says 'none' as the type.

Related Request ID(s)
-

What have you already attempted?
https://docs.stripe.com/connect/migrate-to-controller-properties#standard

cursive heronBOT
#

@upper fulcrum pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
After developing against the sandbox we are attempting to rollout a stripe issuing integration on production. When creating a connected account we are receiving an error indicating that the "treasury" capability is unrecognized.

Related Request ID(s)
req_1SgWNhWzDiVyhh

What have you already attempted?
This works properly in the sandbox.

What are you working on?
A card program for the beverage alcohol industry

cursive heronBOT
#

@sand bay pressed the πŸͺ Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Webhooks "account.updated" is not getting called, i created a new connect account and went through the onboarding process and the status is complete but i dont see any webhook events triggered

Related Event ID(s)
we_1QjnBT08kUV9cm7vjfaDNiI5

What have you already attempted?
i completed the connect onboarding multiple times did not work

What are you working on?
we are building a marketplace like whatnot/groupon

#

@grizzled storm pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We're implementing Stripe Payment Element (and Express Checkout Element). Reading the docs, there are 2 approaches mentions in the flow:

- collect payments before creating an intent, and
- create an intent before rendering Elements

They seem to both work but I can't find documentation about comparing the 2 approaches. The Express Checkout Element doc recommends to collect payment details before creating an Intent, but doesn't explain why. Can you please help me understand pros/cons or limitation of each approach? Thank you!

Doc/Guide Links
https://docs.stripe.com/payments/accept-a-payment-deferred

What are you working on?
Payment Element and Express Checkout Element.

#

@ancient steeple pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
<script id="promotekitscript" src="https://cdn.promotekit.com/promotekit.js" data-promotekit="6f28a0f2-50a6-4447-bd07-50ed9aa8a5d7"></script>
<script id="stripescript" src="https://js.stripe.com/v3/pricing-table.js"></script>

<stripe-pricing-table
pricing-table-id="prctbl_1QA7kARwGYpj2LQGsYIiZpxN"
publishable-key="pk_test_51Q68hIRwGYpj2LQGMbijTxPyVEH8Z5G7Y3oRAcUDtfYtxiudY3aZOgWKvgEyPHhCvK86hL4vntkKbOfvjE4y7oSO00I0c1oy87">
</stripe-pricing-table>

Question
Hi, its possible to integrate promotekit with stripe, using stripe-pricing-table, instead of create events described on https://docs.promotekit.com/affiliate-links-setup/stripe-api? We only have the following code to embed in our landing page: pricing-table-id="prctbl_1..."
publishable-key="pk_test_...7">

What have you already attempted?
Tried to set client-reference-id, but not sure if is the same as promotekit_referral in metadata during stripe.checkout.sessions.create

What are you working on?
Stripe and Promotekit integration

#

@pallid vault pressed the πŸͺ Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I am getting frequent issues for the webhook call for missing client_reference_id. I can see clearly that the payment call includes it, but somehow it does not get propagated to the webhook. Not all webhooks fail, just some of them, and appears to be pretty random. Most probably there's an issue with the pricing table, as that is the place where I am sending the customer-reference-id.

Related Event ID(s)
evt_1Qk9ReGesZuzMkZwfvVWcbze

What have you already attempted?
I increased log verbosity to check if I am sending the client_reference_id every time, and there's no issue with my client application.

What are you working on?
https://headsnap.io. It's a live service and we have sales, but it's really frustrating to have to update the credits for certain users where the client ref id is being lost.

#

@misty plinth pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I need to build an .Net Maui app, which uses C#, to process subscription payments. I only found docs for Android, iOS, React Native and Web. Is there a way to do all the process (including sending card number, cvv...) via API so I can use on my Maui App?

Related Request ID(s)
API

What have you already attempted?
I tried to do the whole process via API but I get stuck when sending the card data because I don't know which endpoint or if it's possible to do this. I can't find the endpoint that receives the card number and cvv, for example.

What are you working on?
I'm working on an app that processes annual and monthly subscriptions.

cursive heronBOT
#

@tranquil panther pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How can I get the invoice preview to appropriately show my desired outcome: $0.00 due now, after trial, $XXX will be billed for 1 year? I am creating a preview for a monthly subscription changed to a yearly subscription (the current monthly subscription is currently in a 30 day free trial (with 20~ days left), which I am allowing to carry over). I will attach images to illustrate what's going on

Related Request ID(s)
test subscription id: sub_1Qi1LkLSnwxNkMW9fj5EjNIB

What have you already attempted?
I have attempted this when going from monthly to monthly plan and it works as expected

#

@livid root pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hi, I can't create an account token for my users from my React Native application since the only tokens available are for cards or bank accounts.

Related Request ID(s)
req_WKMZmpDYOt5ynZ

What have you already attempted?
I tried the following method that was recomended by one of your colleagues : https://stripe.dev/stripe-react-native/api-reference/index.html#createToken but the params only work for bankaccount or card tokens. I want to create an account token for my user so that I can later make transfers to them.

#

@magic solstice pressed the πŸͺ Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I'm attempting to use Stripe Checkout and during a successful checkout, I get this invoice.payment_failed event evt_1Qk8cAB8wovMzpKJh5jzwZS6

Can you explain why?

Related Event ID(s)
evt_1Qk8cAB8wovMzpKJh5jzwZS6

What have you already attempted?
We're trying to understand why we have this event and what we should do when we receive it. We are currently canceling user subscriptions when we get this event, but this seems to be happening actually when there was a successful payment.

#

@fickle narwhal pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I'd like to create a subscription via subscription schedule, however, I don't want to charge automatically or send invoice. The goal would be to set payment_behaviour to allow incomplete on the initial invoice. Is this possible or is there an advisable workaround?

Related Request ID(s)
None

What have you already attempted?

  1. Create subscription with payment_behaviour = allow_incomplete
  2. Create subscription schedule using from_subscription

This errors as "You cannot migrate a subscription that is currently in the `incomplete` status. It must be in `active, past_due, unpaid, trialing` status to be released."

What are you working on?
Enterprise solution for a customer that collects payment and applies it to a subscription after sub is created.

#

@honest vale pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
<PaymentElement
onChange={onPaymentChange}
options={{
layout: {
type: "accordion",
defaultCollapsed: false,
radios: true,
spacedAccordionItems: false,
},
applePay: getApplePayOption(recurringBillingDetails, activeCart),
}}
/>

Question
On express checkout, we pass the line item details to the <ExpressCheckout> component. On a separate checkout flow we use Elements such as the <PaymentElement>. Users paying can choose Apple pay or Google Pay. We would like to pass the line item details so that users can see what they are buying in the respective third party interfaces. Is this possible?

What have you already attempted?
I looked for where i can pass line items into the options prop for PaymentElement and it is not apparently available

#

@haughty sentinel pressed the πŸͺ Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I'm trying to enable promo codes for one of our products. how can i achieve this? i'm not able to enable it through the dashboard it seems.

Related Event ID(s)
Promo Codes

What have you already attempted?
I've attempted enabling it through the shell/developer environment but it is prompting me about required parameters that i'm not sure of how to set up.

What are you working on?
A Product Offering.

#

@pallid vault pressed the πŸͺ Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I am getting frequent issues for the webhook call for missing client_reference_id. I can see clearly that the payment call includes it, but somehow it does not get propagated to the webhook. Not all webhooks fail, just some of them, and appears to be pretty random. Most probably there's an issue with the pricing table, as that is the place where I am sending the customer-reference-id.

Related Event ID(s)
evt_1QjS86GesZuzMkZwRxnxhWpw

What have you already attempted?
The client app definitely sends the correct user ID as customer-reference-id as props in the pricing table:

<stripe-pricing-table
pricing-table-id="prctbl_1O5CcnGesZuzMkZwMIJlj9hg"
publishable-key="pk"
client-reference-id={user.id}
customer-email={user.email}
>
</stripe-pricing-table>

Email seems to be there, but sometimes user.id is null, and that's critical info for the webhook to succeed.

What are you working on?
https://headsnap.io. It's a live service and we have sales, but it's really frustrating to have to update the credits for certain users where the client ref id is being lost.

#

@cobalt monolith pressed the πŸ“š Doc or Guide button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Link to the Doc/Guide in question
https://docs.stripe.com/connect/cross-border-payouts#supported-countries

Question
Had a question about Connect supported countries – on this doc [1] it says that US platforms can send payouts with separate charges and transfers to 118 countries, but on this doc [2] only 40 countries are included. Which one is correct here?

We’re a US platform using separate charges and transfers without the on_behalf_of param, does that mean we can send payouts to the 118 countries in the first doc?

[1]: https://docs.stripe.com/connect/cross-border-payouts#supported-countries
[2]: https://docs.stripe.com/connect/separate-charges-and-transfers

What have you already attempted?
Was able to created connected account for a user from India, was wondering if it's indeed possible to send payouts that way.

#

@craggy crater pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
New to Stripe, having a hard time understanding which events will be fired for my main subscription use cases and then also which fields I should reference. In my testing, I've created a pricing table with customer session, selected product, purchased subscription. However, in my latest log capture I get:

"checkout.session.completed"
"customer.updated"
"customer.subscription.updated"
"checkout.session.completed"
"customer.updated" (again)
"payment_intent.succeeded"
"customer.subscription.created"
"payment_intent.created"

It's difficult to know which fields of each event I will need.

Related Request ID(s)
afd

What have you already attempted?
Created webhook, receive events, created test products, created customer, created pricing table for customer session, purchased test product with test card

What are you working on?
SAAS - node backend

cursive heronBOT
#

@hushed jasper pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I'm sending the exact same request to your subscriptions->create() enpoint over and over. I am alternating between getting payment_intent back and not. Literally, back and forth, once yes, once no. No errors that I am aware of. Can you help me figure out why?

Related Request ID(s)
d

What have you already attempted?
d

#

@languid geyser pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Is there I can link to a given Connect account at a specific place in the user's dashboard - for example, a particular transfer - rather than to the main page of the dashboard?

Doc/Guide Links
https://docs.stripe.com/api/accounts/login_link/create - this doesn't seem to provide a way to do so, nor does it provide a way to specify a URL to redirect the user to once they've confirmed their identity.

What are you working on?
I'm working on a platform where users can resell their tickets to various kinds of live events. We're using Stripe to transfer money to users when their ticket sells on a secondary market.

#

@modest trout pressed the πŸͺ Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Our clients use connected accounts that connects to our platform's stripe account, if clients add payments to their connected accounts manually using the stripe dashboard app and tap2pay option, will a webhook setup on the platform account (to listen to connected account events) receive the events for those tap2pay payments including the invoice.payment_succeeded event in case of a subscription? We have no way to test these as the stripe dahboard app does not work with test mode accounts.

Related Event ID(s)
evt_1Qj8BzLe7pRzAmpUDXTySzY3

What have you already attempted?
I checked manually adding payments (by entering the card details) via the connected account's dashboard in test mode, and the webhook setup on the platform account seems to be receiving the events for it.

What are you working on?
We want to be able to use the stripe dashboard app to collect tap2pay payments (on the connected account) and have it be registered on/added on our platform via webhook events

#

@livid lantern pressed the 🀨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
I expected the billing period to remain the same after updating the price on a subscription line. See reproduction steps for more notes.

What actually happened?
The billing period updated to the current date plus 1 month out vs keeping the existing billing period after updating the price on a subscription line. See reproduction steps for more notes.

Reproduction Steps
I created a subscription for a customer with a default price. Then I created a new contract rate pricing, removed the existing subscription line item, and added a new subscription line item with the new price. The only difference being the $ amount per unit.

Question
I am trying to figure out why this behavior is happening b/c it didn't use to happen.

What are you working on?
I am supporting subscriptions setup for invoicing based on usage data reported.

#

@magic solstice pressed the πŸͺ Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Working with invoice.payment_failed. I want to know when attempt_count will be zero. I would like to ignore these events when they are related to checkout events that required a captcha

Related Event ID(s)
evt_1Qk8cAB8wovMzpKJh5jzwZS6

What have you already attempted?
Stackoverflow tells me that attempt_count will increment when the attempt was automatic. My interest is in ignoring these events when our users have not completed the checkout flow. @bismarck had earlier suggested that we expand the payment_intent and look at the next_action to see if this was captcha related, but I am worried that there could be other cases that behave similarly to captcha being required. Is that possible? Or is a payment_failed event only going to be sent at this point during captcha?

#

@crisp falcon pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Can you clarify what the max trial_end date can be for a subscription?

According to https://docs.stripe.com/api/subscriptions/update#update_subscription-trial_end
...
> Can be at most two years from billing_cycle_anchor.

I'm interpreting this to mean that I can set a subscription to have a billing cycle anchor to be 1 year from today, and then set the trial end to be at most 2 years from that billing cycle anchor (meaning max 3 years from today).

Related Request ID(s)
req_v9rcu3YzmheIgW

What have you already attempted?
Tried to set a trial_end that is > 2 years from today, but within 2 years from billing_cycle_anchor.

What are you working on?
Setting up subscriptions for existing customers

cursive heronBOT
#

@indigo orchid pressed the πŸͺ Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
When setting up a webhook for tax.form.updated, will the my webhook endpoint be given a URL where my clients can download their tax forms?

Related Event ID(s)
None

What have you already attempted?
https://docs.stripe.com/connect/deliver-tax-forms#notifications

The docs for the beta tax API above says "To receive tax.form.updated webhooks, you need to create a webhook endpoint with the Tax Forms API beta Stripe-Version header."
But it doesn't say what info my endpoint will be given - most importantly I just need to know if I can expect that link to a downloadable form or if I'll need to send the user to our own tax forms dashboard & download it from there.

If stripe is delivering the email, then it will contain a button to download the tax form.

What are you working on?
We're building our own Tax Forms dashboard, e-delivery consent form, and handling email delivery.

#

@carmine lintel pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Why is the limit on the expanded balance transactions not being followed? I am limited to 100 txns no matter how high I set the limit.

Related Request ID(s)
req_ei6cfdYSnHMs24

What have you already attempted?
```
$txns = $stripe->balanceTransactions->all([
'payout' => $payout->id,
'type' => 'charge',
'limit' => 9999999, // this isn't working
'expand' => [
'data.source',
]
], [
'stripe_account' => $cafe->stripe_act
]);

```

This only returns the first 100 txns even when I have more than 100.

cursive heronBOT
#

@halcyon rune pressed the 🀨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
I expect Tip options to be shown on our merchants' Stripe terminals using the terminal JS SDK.

What actually happened?
For some merchants, tip options are not shownβ€”the terminals goes directly to prompting for swipe/tap.

The merchants have tried rebooting the terminals, as well as uninstalling them from our system and reinstalling them.

For some merchants, this was happening, and then the tip options suddenly started showing without any changes on our end.

Reproduction Steps

  1. In our Web-based POS system, our merchant goes to collect payment for a service via Stripe terminal.
  2. Using the terminal JS SDK, our system passes tip configuration options in the terminal "collectPaymentMethod" call.
  3. The terminal does not show tip optionsβ€”it directly prompts for swipe/tap.

Question
What could cause the terminal to not show tip options for some merchants when the correct tip configuration data is being passed to the terminal, and the merchants' Stripe accounts have been set up correctly with tip configurations?

What are you working on?
Web-based POS system

cursive heronBOT
#

@proper arch pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I’m trying to do a version control with the payment intent so that it is always the latest cart/pricing across multiple tabs and even multiple devices (i.e. we have a save/retrieve function for our checkout journey)

At the moment i’m cancelling down the payment intent and saving the latest one in our API which we use to retrieve.

This seems a little messy at the moment and don’t really like having all the cancels potentially appearing in our dashboard as would just like to use payment intent update as that is more cleaner.

I suppose the question is, what is the best way of updating the web element client side if the payment intent has been updated (i.e. timestamp)

Doc/Guide Links
Payment intent API and JS docs

What are you working on?
Payment page using web element

cursive heronBOT
#

@brisk fable pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Prices A and B are linked to Meter M. I create Subscription X with Product A and log 50 units of usage. The meter summary API returns 50, and the upcoming invoice reflects this. I then replace Product/Price A with Product/Price B in Subscription X.

The upcoming invoice resets usage to 0, but the API still shows 50. I then log 27 units for Product B, and the invoice updates to 27, but the API shows 77.

Is the API or invoice correct? Is metered usage meant to persist across product changes within a subscription? If not, how do I reconcile usage for subs which change products midway?

Related Request ID(s)
Meter Identifier: c103912a-6541-48df-859e-22727da40947, Sub X: sub_1QkDP3QUG2aWaqxypqwRmmN0, Price A: price_1QiOU2QUG2aWaqxyy2GxeBfE Price B: price_1QiOU8QUG2aWaqxyU4ZwPJZK

What have you already attempted?
I've checked the docs, and ran this scenario several times.

What are you working on?
Tracking app usage based on tiered plans.

cursive heronBOT
#

@merry urchin pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I'm appending a $0.00 line item per unit to a subscription, with the intention of applying taxes to this line item from a 3rd party.

Updating the subscription is fine, and I see my correct quantity and item added. However the `invoice.created` event does not include this new line due to it being $0.00 as a subtotal. I couldn't find a way to always force this $0.00 item to exist, which I need in order to properly apply taxes in response to the invoice.created webhook

Related Request ID(s)
req_ffalNpwhLzOHdQ is the update, evt_1QkEQxCEQnHi4E9WcNMEs1KU is the event

What have you already attempted?
I confirmed that setting the price per unit to $0.01 works as intended, but this doesn't fit our use case of only needing this line item for taxes from Avalara; we don't intend to actually charge for this line item outside of that.

What are you working on?
Taxes on our invoices

cursive heronBOT
#

@sleek pine pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
ΒΏHay alguna manera de hacer downgrade al final del periodo de facturaciΓ³n al actualizar la subscripciΓ³n desde el portal de cliente?

Related Request ID(s)
Downgrade subscription

What have you already attempted?
I am using the customer portal, and I have the option of Upgrading to a cheaper subscription plan = wait until the end of the billing period to upgrade, but updating the subscription from the portal does it immediately, or wait a month to do it

What are you working on?
Bubble.io

cursive heronBOT
#

@peak steeple pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
1- Styling the Card component in React: I am using the CardElement component in React from @stripe/react-stripe-js. I want to style it so that the border color changes (e.g., to primary) when the component is focused. Adding className directly doesn’t work as expected.

2- Custom Receipt URLs: After I capture a payment, when I retrieve the charge in the webhook, the receipt_url points to pay.stripe.com, even though I added and had my domain name approved for both emails and URLs. How can I make the receipt URL use pay.mydomainname.com instead?

3- Receipt emails not sent after payment capture

Related Request ID(s)
CardElement, PaymentIntent, Charge

What have you already attempted?
1- For Card Component Styling: I looked into the Stripe documentation and tried adding className directly to the CardElement, but it didn’t work. It seems the focus styling must be handled differently since it's 2 layers of div before the input.

2- For Custom Receipt URLs: I added my domain name to the Stripe settings for both emails and hosted URLs, and both were approved. However, the receipt URL still defaults to Stripe's domain.

3- For receipt emails: I verified that the customer object is created with a valid email field, but no receipt email is sent after the payment is captured.

What are you working on?
I’m building a community platform where users subscribe to communities. Users provide payment info and complete a form set by the community creator. Admission depends on the creator’s approval

#

@gloomy arrow pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hi there. I am wondering if you guys have an api or guides on how to setup or if you have a payment for pay as you go for my customers?

Related Request ID(s)
Don’t have any(question)

What have you already attempted?
How to build tutorials

cursive heronBOT
#

@spring plover pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
When I use the checkSession method to process payment orders, is it necessary for users to fill in information such as email/address/cardholder name/zip code?

Related Request ID(s)
none

What have you already attempted?
none

#

@glossy totem pressed the πŸ“š Doc or Guide button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Link to the Doc/Guide in question
https://docs.stripe.com/api/disputes/object

Question
I am trying to appeal a dispute involving the Klarna payment method. However, I noticed that sometimes I am unable to submit evidence for certain disputes.

Could you please guide me on how to check within the dispute object if evidence submission is allowed for a specific case? Additionally, any clarification on the conditions or limitations for submitting evidence with Klarna would be greatly appreciated.

What have you already attempted?
I have retrieved a dispute object but could not find any attributes related to evidence submission.

cursive heronBOT
#

@halcyon scarab pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
when my merchant added external bank account in his connected account from api when api hits success url then Account.retrieve("${accountId}");
here i m getting externalBank.status is coming as new when stripe will verifiy then it will become validate ? when this will become validate how much time it will take stripe to verifiy

Related Request ID(s)
NA

What have you already attempted?
created a account link and asking my merchant to complete the steps for creating a connected account and add a external bank account

What are you working on?
i was integrating strip to my application

cursive heronBOT
#

@daring garnet pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
elements = stripe.elements({
locale: pay_lang.value || 'es',
appearance,
clientSecret: clientSecret.value,
})
const paymentElement = elements.create('payment', {
layout: 'accordion',
fields: {
billingDetails: 'never',
},
})
paymentElement.mount('#payment-element')
paymentElement.on('ready', (e) => {
showBtn.value = true
})

Question
Paymentintent payment method, if Google and Apple Pay are enabled and configured, will it be automatically displayed?

What have you already attempted?
Enabled Google Pay and Apple Pay, configured certificates and domain names

What are you working on?
Enabled Google Pay and Apple Pay, configured certificates and domain names

cursive heronBOT
#

@dark fox pressed the πŸͺ Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Our user is getting this error message while creating new webhook from our plugin

`Last webhook call was 55 years ago. Status : Failure. Reason : No signatures found matching the expected signature for payload`

Related Event ID(s)
no id

What have you already attempted?
This how we are doing webhook creation

	$payload    = file\_get\_contents\( 'php\://input' \);
	$sig\_header = isset\( $\_SERVER\['HTTP\_STRIPE\_SIGNATURE'\] \) ? sanitize\_text\_field\( $\_SERVER\['HTTP\_STRIPE\_SIGNATURE'\] \) \: '';
	$event      = null;

	try {
		$event = \Stripe\Webhook\:\:constructEvent\(
			$payload,
			$sig\_header,
			$endpoint\_secret
		\);
	} catch \( \UnexpectedValueException $e \) {
		// Invalid payload.
		Logger\:\:error\( 'Webhook error \: ' . $e\-\>getMessage\(\) \);

What are you working on?
Stripe Api maintenance for a wp plugin

cursive heronBOT
#

@civic smelt pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We have integrated Stripe Terminal React Native SDK and have a bug where reader disconnects when user locks screen and puts app in background. It throws this error: Failed to connect to mobile reader: Unable to communicate with the reader while the app is in the background. Try again. code: ReaderNotAccessibleInBackground
We are on 0.0.1-beta.23 version. I am hoping adding onDidReportUnexpectedReaderDisconnect will fix it. Would that be the case? Also does this method automatically trigger reconnect or do we need to implement further logic in code?

Related Request ID(s)
n/a

What have you already attempted?
n/a

cursive heronBOT
#

@chrome quarry pressed the πŸ“š Doc or Guide button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Link to the Doc/Guide in question
https://docs.stripe.com/api/payment_method_configurations/list

Question
Im using payment method configuration APIs for fetching PMCs. Here, I want to differentiate the account's Billing Payments config from any other config. In stripe account, I was able to create a PMC named Billing Payments and one I created and the account's Billing Payments config looks same. How can I get the default Billing Payments config object for the stripe account?

What have you already attempted?
In stripe account, I was able to create a PMC named Billing Payments and one I created and the account's Billing Payments config looks same except the id.

What are you working on?
We're building Payment method Configurations management in our platform using Stripe PMC APIs.

cursive heronBOT
#

@keen coral pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How do I integrate the Stripe Virtual Terminal into my Windows .Net application so that users can accept MOTO payments?
I am not a Stripe user - but my application users are.

Related Request ID(s)
0

What have you already attempted?
I've looked at https://stripe.com/gb/resources/more/what-is-a-virtual-terminal which states "Adding a virtual terminal on your Stripe account requires an API, which we can help set up for you"

What are you working on?
It's a Windows .Net 4.8 application

#

@turbid cedar pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Can a webhook event provide expanded object?

Related Request ID(s)
https://connect.stripe.com/test/events/evt_1QkNAVK5Jxl3vjtiuIWF0G6B

What have you already attempted?
Added expand for the call.

stripe.terminal.Reader.confirm_payment_intent('tmr_F4weTwF2XcnXuH', payment_intent='pi_3QkNA9K5Jxl3vjti1cqLw7at', expand=["action.confirm_payment_intent.payment_intent"])

#

@foggy mural pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
A customer's payment method was detached without generating a log for the API request as we have for other cases.
What can trigger the 'payment_method.detached' event?

Related Request ID(s)
I don't have a request ID but here's the event ID: evt_1QWiDLL6x5zHDLJP6Q1oE6Np

What have you already attempted?
I looked at the logs to find a possible API request that could have caused this.

#

@old ermine pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
stripeElements = stripe.elements(stripeOptions);
paymentElement = stripeElements.create(
'payment',
paymentElementOptions,
);

Question
On our backend we are blocking Amex payments based on some specific requirements.
Is there any way to hide the Amex card logo if we do not want to accept Amex payments?

What have you already attempted?
Looked around the API and I couldn't find anything at all.

#

@ocean cradle pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I have a subscription - https://dashboard.stripe.com/test/subscription_schedules/sub_sched_1QkN5PIE5Vvk0efGYwymyZ97

I have updated the subscription and passed end date for a phase to Feb 27 but somehow it is showing Mar 27 in next invoice.

I am not able to identify how it set to Mar 27. Can you please help.

Related Request ID(s)
123

What have you already attempted?
I have a subscription - https://dashboard.stripe.com/test/subscription_schedules/sub_sched_1QkN5PIE5Vvk0efGYwymyZ97

I have updated the subscription and passed end date for a phase to Feb 27 but somehow it is showing Mar 27 in next invoice.

I am not able to identify how it set to Mar 27. Can you please help.

What are you working on?
updating subscription

#

@dark fox pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
$payload = file_get_contents( 'php://input' );
$sig_header = isset( $_SERVER['HTTP_STRIPE_SIGNATURE'] ) ? sanitize_text_field( $_SERVER['HTTP_STRIPE_SIGNATURE'] ) : '';
$event = null;

	try {
		$event = \Stripe\Webhook\:\:constructEvent\(
			$payload,
			$sig\_header,
			$endpoint\_secret
		\);
	} catch \( \UnexpectedValueException $e \) {
		// Invalid payload.
		Logger\:\:error\( 'Webhook error \: ' . $e\-\>getMessage\(\) \);
		$error\_at = constant\( 'self\:\:CPSW\_' . strt

Question
Our user is getting this error message while creating new webhook from our plugin

`Last webhook call was 55 years ago. Status : Failure. Reason : No signatures found matching the expected signature for payload`

What have you already attempted?
nothing

What are you working on?
Maintaining a stripe integration plugin for woocommerce

cursive heronBOT
#

@urban trout pressed the πŸ“š Doc or Guide button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Link to the Doc/Guide in question
https://docs.stripe.com/billing/subscriptions/billing-cycle#:~:text=To reset the billing cycle,Stripe immediately sends an invoice.

Question
How can I set a trial end date if it is after the billing anchor set to 1st date of each month? As the trial end is being set to 14 days dynamically when a subscription is created.

What have you already attempted?
I tried to create a subscription first with billing anchor set to 1st of each month and proration_behavior: 'create_prorations'. Then update the subscription with the dynamic trial end of 14 days. But it removed the proration and showed that next invoice will be from trial end date till same date of the next month after trial ending month

What are you working on?
I want to provide a 14 days trial in my app and set billing anchor to 1st date of each month on subscription creation.

#

@teal coral pressed the 🀨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
No more charges on the subscribers side

What actually happened?
A subscriber forgot to cancel his subscription. Therefore a charge attempt happend which failed (good so far). After that he cancelled the subscription and still receive charge attempts. Usually I expect the charge attempts to stop after the cancellation.

Reproduction Steps
Create a subscription, get it past due and then cancel. It still tries to recharge

Question
We are using the customer portal where the user can cancel and manage his subscription. Is there any setting to prevent the charge attempts after the first attempt failed and the user canceled?

cursive heronBOT
#

@scenic swallow pressed the πŸ“š Doc or Guide button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Link to the Doc/Guide in question
https://docs.stripe.com/js/payment_intents/confirm_card_payment

Question
Can we re-attempt confirmCardPayment with same client secret after aborting first time?

What have you already attempted?
when calling confirmCardPayment from client-side JS SDK it loads 3DS challenge, but if we cancel the 3DS modal and re-trigger the confirmCardPayment with the same client secret, API call throws error `payment_intent_incompatible_payment_method`.
Comparing the payload it's exactly the same. So is it like that Stripe only loads 3DS for the first attempt only.

request: https://dashboard.stripe.com/test/logs/req_wnmqT35A9953L4

cursive heronBOT
#

@chrome sable pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We have recently started to create subscription schedules, for now we create schedules only to schedule an change of plan in subscription, and its always set to change at next billing. But I now encountered an unexpected behaviour with one of the subscription that had the schedule, seems like it was upgraded immediately as soon as schedule was created. Can you please let me know why it could have happened.

Related Request ID(s)
req_0bTmpkdfQXc6yj, https://dashboard.stripe.com/acct_1POhBMDLYpftGlEY/events?related_object=sub_1Q5BfkDLYpftGlEYkkMRtUpd

What have you already attempted?
Nothing so far

What are you working on?
Subscription upgrade downgrade

cursive heronBOT
#

@candid kernel pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We want to charge the customer for monthly subscription at the time it is created. Simply, the user needs to pay for the cost of subscription in advance and then the payments are adjusted at end of billing cycle according to metered usage reported.

Doc/Guide Links
https://docs.stripe.com/billing/subscriptions/usage-based

What are you working on?
We are building a web hosting business where user can rent servers.

cursive heronBOT
#

@vocal wagon pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I am trying to link my stripe account to Wordpress, so I can accept payments. It is asking for my Published key and my Secret Key, but I am not able to copy my secret key. I then created a new key to try and use but it is not working and I have no idea how to work this at all. When I tried looking it up it told me I could copy my secret key if it was a live key, but there is no toggle to allow me to make it a live key so I am so confused on what to do. Please help.

Related Request ID(s)
API Secret Key

What have you already attempted?
I have tried looking it up and it told me I would be able to copy my secret key but I am not able to. I don't know what any of these "secret key" or "API" things mean so I am very confused on how I am able to link this account with Wordpress for my webiste and what I need to do.

What are you working on?
Trying to make payments possible on my webiste.

#

@lyric iris pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Platform account. Payments working, balance not reflecting. Support team says with tech team. 2 weeks no answers.

Related Request ID(s)
https://dashboard.stripe.com/payments/pi_3QkPVmAsUHpP4Znk004vAnWi

What have you already attempted?
Investigated thoroughly. Spoke to Karlekko 2 weeks ago and he recommended raising a ticket. We've done that, escalated, and in 2 weeks they have told us what we already know, and every day said the tech team is on it but still looking. Around $10k missing right now and growing each day.

cursive heronBOT
#

@tepid crow pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hi. We're receiving the wording 'too many attempts' when a user is onboarding to their express dashboard. They are getting the message on the 1st attempt.

Related Request ID(s)
N/A

What have you already attempted?
Nothing - there is nothing that stands out. We are investigating if it's the users end or ours. We have run experiments on our end and can't recreate the error i.e. creating a new user and then onboarding as that user. Nothing in our stripe account is flagging - we can't see anywhere why it's a problem.

What are you working on?
We have built a platform for a franchise dance school. We have 45 teachers who we are onboarding. We have onboarded 8 smoothly but 3 are receiving the error and no work around.

#

@sweet dagger pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I'm trying to buil a report for the finance team where I have the payout reference and amount and then the list of charges (payments) that are linked to it. I cannot find a way to get to that list of charges

Related Request ID(s)
Payouts and charges

What have you already attempted?
I have tried looking at the payout object and see if there is a list of charges or trnsactions there but nothing. I have also tried to look at an specific charge or payment intent and see if those objects have the payout reference, but nothing...

#

@cloud pawn pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Can I get the information displayed on https://dashboard.stripe.com/connect/accounts/acct_xxxxxxxx/tasks/astask_xxxxxxx?backTo=activity.actionsRequiredExpanded

Via the api

Related Request ID(s)
https://dashboard.stripe.com/connect/accounts

What have you already attempted?
Read api documents -retrieved the account number

What are you working on?
System to collected membership fees

#

@gloomy kite pressed the πŸ“š Doc or Guide button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Link to the Doc/Guide in question
https://docs.stripe.com/api/billing/meter/create

Question
Ho to avoid duplicate usage record to send stripe meter event.
Current stripe method stripe.billing.meterEvents.create is adding usage values not overwritting, how to overwrite values instead of adding,

What have you already attempted?
const meterEvent = stripe.billing.meterEvents.create({
event_name: eventName,
payload: {
value: payValue,
stripe_customer_id: stripeCustomerId
}
});

cursive heronBOT
#

@sturdy cobalt pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
stripeEvent.Type == Events.CustomerSubscriptionUpdated

Question
I have upgraded from v41.2 to v47.2 But I am not able to find all these events

What have you already attempted?
Not able to find Events class there

What are you working on?
upgradation

cursive heronBOT
#

@turbid sail pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How do I test manually capturing payment during a checkout session?

Related Request ID(s)
req_7WbpsXO072wOYM, req_jSoojxFBM6x039

What have you already attempted?
I have tried `Stripe::Checkout::Session.create({payment_intent_data:{ "manual"}})`, then `Stripe::PaymentIntent.capture(id)`

That gives the error:
"This PaymentIntent could not be captured because it has a status of requires_payment_method. Only a PaymentIntent with one of the following statuses may be captured: requires_capture."

Then I've tried
Stripe::PaymentIntent.update
to add a payment method, and also
Stripe::Payment.confirm
both of which raises errors about not being able to do so on PaymentIntens created by Checkout.

What are you working on?
Testing checkout flow using minitest in ruby on rails

#

@long jungle pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
We are a fundraising platform that collects donations on behalf of non-profit organizations. Our workflow involves receiving funds from donors, retaining a percentage as our platform fee, and transferring the remaining amount to our clientsβ€”the non-profit organizations.

We are currently implementing Destination Charges for this process and want to ensure that our implementation is correct.

Question
I would like to share the relevant part of our code with you so you can review it and confirm if we are following best practices

What have you already attempted?
The code is implemented already but I'm not sure if it's correct or not

#

@summer mural pressed the πŸͺ Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Following [this thread](https://discord.com/channels/841573134531821608/1328384247999758408), I now have to process the webhook notification. I've noticed I've to create a PaymentIntent or SetupIntent depending if the booking deposit was 0 or not. What is the proper way to check this from the JSON payload?

Related Event ID(s)
evt_1Qk1PM4YGGLg55xf4onAifXB

What have you already attempted?
I've tried to create a PaymentIntent with a try catch and if it fails create the SetupIntent but I don't think that's a correct approach

#

@neon venture pressed the 🀨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
I expected to get the card product category from the API (card is flagged standard or premium).

This information is available when I create a default pricing scheme in my platform accounts connect settings.

What actually happened?
This information is not available.

Reproduction Steps
Go to connect setting in the Stripe Dashboard and create a default pricing scheme. Add a conditional rule and select "Card product category" as condition.

Question
Is it possible to get this information via the API from a stored payment method?

What are you working on?
A custom platform fee integration in the context of Stripe Connect. We want to implement a custom platform fee logic.

#

@icy cradle pressed the 🀨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
I wanted to refund subscriptions but it lapsed the 180 day payment period so I cant refund anymore

What actually happened?
I need to refund some payments but the 180-day refund period has been exceeded so I cant do refunds on the dashboard or the API

Reproduction Steps
I used the refund API.

Question
Can I manually do a payout from the dashboard to the customer? What are my possible options?

#

@dire night pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Related to this thread: #dev-help message
I was wondering if there's an additional way to perform an extension of original authorization. For example, paypal offers something like this: https://developer.paypal.com/docs/api/payments/v2/#authorizations_reauthorize
Is there a similar concept in Stripe ?

Doc/Guide Links
In the original thread

What are you working on?
Migrating features from Paypal to Stripe integration

cursive heronBOT
#

@summer mural pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
```php
$session = $stripe->checkout->sessions->create([
// ...
'mode' => $order->amountAsInteger() > 0 ? 'payment' : 'setup',
]);
```

Question
This is giving me an error, `Mode cannot be `setup` when using prices.`, but the price is zero. I guess I need to remove some other information regarding prices, like the `line_items.*.price_data.unit_amount`? But not sure what is mandatory

What have you already attempted?
Read the docs for Payment Intent and Setup Intent but I'm sure I missed something :(

What are you working on?
Hotel reservation system

#

@scarlet terrace pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How can I add the Apple Pay method for recurring payments in my React Native application?

Related Request ID(s)
req_aohoKOyjTeOtZq

What have you already attempted?
I’ve looked into Stripe documentation regarding Apple Pay and recurring payments but haven’t been able to integrate it fully yet. I’m unsure how to set it up in React Native for subscriptions specifically.

What are you working on?
I'm building a mobile app offering a service-based subscription model, and I need to set up Apple Pay as a payment option for recurring billing.

cursive heronBOT
#

@tepid crow pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hi. We're receiving the wording 'too many attempts' when a user is onboarding to their express dashboard. They are getting the message on the 1st attempt.

Related Request ID(s)
N/A

What have you already attempted?
Nothing - there is nothing that stands out. We are investigating if it's the users end or ours. We have run experiments on our end and can't recreate the error i.e. creating a new user and then onboarding as that user. Nothing in our stripe account is flagging - we can't see anywhere why it's a problem.

What are you working on?
We have built a platform for a franchise dance school. We have 45 teachers who we are onboarding. We have onboarded 8 smoothly but 3 are receiving the error and no work around.

cursive heronBOT
#

@kind path pressed the πŸͺ Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
There's a conflict between 2 different websites and webhooks. I need to know that stripe on my current website is up and running properly

Related Event ID(s)
look in webhooks

What have you already attempted?
I tried to change the webhook, but I don't really know what I'm doing.

What are you working on?
my website is gillianlazanikart.com

cursive heronBOT
#

@lament hollow pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Is it possible to have a monthly subscription set up on the first day of the month. Lets say Jan 1. That uses usage based billing. But then set it up somehow so that the invoice for Jan 1 - Jan 31 doesn't get created until we tell it to on Feburary 3rd? The the following invoice still covered the usage amounts for Feburary 1 - 28. What is the best way to go about this situation?

Doc/Guide Links
I've looked at several. Considering doing one off invoices but that doesn't seem like it would work well for this situation.

What are you working on?
The system I'm working on isn't ready for the invoice to be created until 2-3 days after the end of the billing cycle.

#

@umbral saffron pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Adding stripeJS to a nuxt 2 app, and want to use the NPM module for cleaner initialization through await loadStripe. While also using the script tag in the head globally for fraud prevention.

Does importing loadStripe on the pages where I need it, while include the script tag globally follow best practices. Or should I be using stripe/pure?

Doc/Guide Links
https://github.com/stripe/stripe-js?tab=readme-ov-file#manually-include-the-script-tag

What are you working on?
Nuxt 2 app

#

@hushed jasper pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Can I ask the recommended way to ensure that subscription is active?

Related Request ID(s)
3

What have you already attempted?
I was planning on going through all subscriptions and retrieve() and then checking status.

cursive heronBOT
cursive heronBOT
#

@somber forge pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We’re looking for guidance on simplifying the presentation of sales tax on our customer invoices to reduce confusion.

Key Areas to Address:
1. Tax Column on Line Items:
β€’ Remove the β€œTax” column from the line item section as it adds unnecessary detail for customers.
2. Invoice Total Section:
β€’ Simplify the tax breakdown in the total section, replacing detailed calculations with a single tax amount.

Related Request ID(s)
?

What have you already attempted?
Reached out to support and account manager who have not been able to assist.

What are you working on?
We are implementing sales tax through our partner Avalara for Communications via an API.

cursive heronBOT
#

@faint kindle pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
For a 7-day free trial it looks like stripe has limited support for free trials. It appears that we have to set up our custom webhook code to send extra parameters to Stripe when we create every subscription. We cannot do it at the product level?
Is this correct?

Related Request ID(s)
N/A

What have you already attempted?
Using the dashboard to set a free trial option at the product level.

What are you working on?
Web App with subscriptions.

#

@potent haven pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Sellers collecting payments directly, can I setup a fixed fee ? I'm new and bit anxious as I'm seeing a message which says once selected is not changeable.

Related Request ID(s)
Payouts

What have you already attempted?
Read few pages, I'm 80% sure of what I think just looking for a quick second opinion.

What are you working on?
Setting up connect.

#

@scarlet terrace pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
const { error } = await initPaymentSheet({
applePay: {
cartItems: [item],
merchantCountryCode: 'US',
request: {
...requestObj,
type: PlatformPay.PaymentRequestType.Recurring
}
},
customerEphemeralKeySecret: ephemeralKey,
customerId: customer,
merchantDisplayName: en.stripe.merchantDisplayName,
returnURL: 'xxxxxx',
setupIntentClientSecret
});

Question
I would like to know why the payment made with Apple Pay on dashboard and invoices shows as visa .... 4242 on test mode.

What have you already attempted?
Paid with Apple pay

What are you working on?
Subscription based service with React Native

#

@sleek pine pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How can I change the features[subscription_update][enabled] = true ?

Related Request ID(s)
Downgrade subscription, features[subscription_update][enabled] = true

What have you already attempted?
I configured the customer portal, with these settings,

features[customer_update][allowed_updates][] value email
features[customer_update][allowed_updates][] value tax_id
features[customer_update][enabled] value true

features[invoice_history][enabled] value true

features[subscription_update][enabled] value true

features[subscription_update[schedule_at_period_end] value true

and the response that I received was the subscription update = false

What does not allow me to edit the subscription from the customer portal

What are you working on?
Bubble.io

#

@covert slate pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
const stripeAccount = await stripe.accounts.create({
email,
capabilities: {
transfers: {
requested: true,
},
},
settings: {
payouts: {
schedule: {
interval: "manual",
},
},
},
business_type: "individual",
type: "custom",
});

Question
Can we somehow create a link for a user for it's connect express dashboard when we use `type: "custom"`?

https://dashboard.stripe.com/settings/connect/stripe-dashboard/branding

What have you already attempted?
Read docs/api

#

@covert gulch pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
My api requests are being timed out in my production environment. I'm using the stripe node sdk in the backend and I all of the requests hang. This does not happen with my sandbox environments

Related Request ID(s)
Making calls with stripe

What have you already attempted?
I am using the correct keys with the stripe client in the backend. We have always used this

#

@blazing badger pressed the πŸͺ Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
My subscription is already expired on the same day it is due to expire. It should be expired after the expiration date.

Related Event ID(s)
evt_1QkQXIDvdi2NnMNcuJqkcc4v,

What have you already attempted?
Change status change triggers on subscription and invoice

What are you working on?
Updating my product status based on billing

#

@unique saffron pressed the πŸͺ Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We have intergrated the stripe checkout out hosted page for the subscription monthly recurring payment. Now i want to know, if the payment get declined on the first monthly only, will i get the webhook response, how should i handle that

Related Event ID(s)
invoice.payment_Failed

What have you already attempted?
i need to intergrate the webhooks now

#

@frank canopy pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hey, can I retrieve BIN info / PAN of a transaction (payment intent) via Stripe's API? I can't find it.

Related Request ID(s)
?

What have you already attempted?
Looking at your documentation

#

@steep summit pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I have a question related to schedule subscription and a simple payment.

Related Request ID(s)
No

What have you already attempted?
Could not implement. Tried

What are you working on?
Implement a system to allow user to pay the complete amount or pay using schedule subscriptions.

cursive heronBOT
#

@jagged linden pressed the 🀨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
I enabled cashapp as a payment method for connect accounts when a user connects to stripe. So when a user goes through the process of connecting, they can choose cashapp as a valid payout method instead of choosing a bank.

What actually happened?
After enabling cashapp on the stripe dashboard and then trying to connect to stripe myself, I got this error when trying to choose cashapp (see attached screenshot).

Reproduction Steps

  1. Go to the connected account payment methods and enable cashapp (On by default)
  2. Use API to navigate to create stripe account (connect.stripe.com), then get to the step for selecting an account for payout and search for cashapp.
  3. Will redirect to flow which will say cashapp is temporarily unavailable.

Question
I would like to get help on getting cashapp to work as a valid payout payment method.

What are you working on?
We allow our customers to create and connect to a stripe account to use it for payouts for their events.

#

@tribal flax pressed the πŸͺ Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We're working on implementing a SaaS version of our product (LogZilla) and are using Stripe for billing. Here's our current setup:

- Using Stripe Pricing Table JS for plan selection and checkout
- Successfully handling checkout.session.completed webhooks
- Provisioning customer instances after successful payment

Our challenge is with subdomain validation during checkout:

  1. We allow customers to choose their subdomain (e.g. customer.logzilla.cloud) during the checkout process
  2. We need to verify if their requested subdomain is already taken in AWS Route53 BEFORE they complete payment
  3. Cu

Related Event ID(s)
evt_1QkDqlBjYBeFaZwPRqkVMkNF

What have you already attempted?
We've reviewed the Stripe Checkout documentation and implemented custom fields to collect the subdomain during checkout. We've also explored:

  1. Using the customer_creation_failed webhook event, but this occurs after payment
  2. Checking the Stripe Elements documentation for pre-submission validation
  3. Looking into the checkout.session.created event, but this also happens too late
  4. Reading through the custom field validation docs, which mainly cover format validation

None of these approaches allow us to validate subdomain availability before payment completion.

What are you working on?
Building a SaaS platform that provisions isolated LogZilla instances for customers. Each customer gets their own subdomain (customer.logzilla.cloud) with a dedicated EC2 instance.

cursive heronBOT
#

@jagged blade pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Do you guys have ability in your API to automatically calculate Sales tax in USA, without us manually entering different regions and tax rates in Stripe dashboard etc? We are building a web portal, and there will be a checkout page with collecting credit card info and billing address. And based on zipcode, we want to know if Stripe can auto-calculate the tax. In a API screenshot on your website, we see an option called "auto-tax-enabled=true" or some sort, and wondering if this will work. Also bit confused about how its different than the "Stripe Tax"?

Related Request ID(s)
We are not yet a full customer yet, we have account but not implemented or used.

What have you already attempted?
Could not find the exact details, we talked to a Stripe rep and he suggested to ask our question here.

What are you working on?
A web portal with a checkout page for Credit Card

cursive heronBOT
#

@tranquil panther pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
<ConnectComponentsProvider connectInstance={instance}>
<ConnectAccountOnboarding
onExit={completedOnboarding}
...
onStepChange={(stepChange) => {
console.log(`User entered: ${stepChange.step}`)
}}
/>
</ConnectComponentsProvider>

Question
How can I adjust the padding of my ConnectAccountOnboarding react component? I'm able to adjust a good amount of the visual UI from the instance -> appearance.variables param, but there's no way to adjust any padding / margin from this

What have you already attempted?
I've tried wrapping these components, adding custom styles, etc. No lulck

cursive heronBOT
#

@tepid crow pressed the 🀨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
For any user using the stripe express dashboard to be able to change their country.

What actually happened?
We have set up a stripe express dashboard where we are onboarding users. However, a user can't change their country from the United Kingdom to Ireland. Can you help please?

Reproduction Steps
Not applicable at the moment.

Question
How does she change her country please? It's currently greyed out as the united kingdom and doesn't let her change it. Here's her account ID - acct_1QkWmVR8ewtk4VpY

cursive heronBOT
#

@placid flicker pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How to execute a payout from an specific connected account

Related Request ID(s)
https://dashboard.stripe.com/test/logs/req_UKk2uq8ZuLl3BI?t=1737662496

What have you already attempted?
I tried to add destination key as connected account id but is not what works, I think is needed to pass as second parameter on create function, this is what I did

payoutParams := &stripe.PayoutParams{
Amount: stripe.Int64(totalAmount),
Currency: stripe.String(string(stripe.CurrencyUSD)),
Destination: stripe.String(meetup.CreatedBy.StripeConnectId),
StatementDescriptor: stripe.String("Meetup payout"),
}

\_, err = payout.New\(payoutParams\)

but I cant found where pass exactly stripe connect id

What are you working on?
Im trying to execute a golang request to send a payout from an specific connected account to the bank account of that connected account

#

@manic flicker pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Trying to wire up a upgrade and downgrade flow for our various subscription plans. However the subscription in question has metered objects attached to it...

Even though I have enabled the change subscriptions to be a part of the Customer Portal those buttons are not showing up. And trying to load the subscription_update flow throws an error.

I would like the customer to see the price change, proration, etc before continuing.

Is there a way to achieve this? Ideally with the customer portal, but at least a checkout session of sorts?

Related Request ID(s)
req_2drYktJGhNN7M3

What have you already attempted?
I have already tried using the update api directly this works but does not offer the UX I want.

I have also tried creating the portal flow (see request id)

What are you working on?
SaaS Video Software

cursive heronBOT
#

@faint dome pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I am getting intermittent error: The remote name could not be resolved: 'api.stripe.com'

Related Request ID(s)
Is there any issue with Stripe DNS ?

What have you already attempted?
I have tried flushing DNS on server

What are you working on?
The Payment API stops working intermittently today

cursive heronBOT
#

@carmine lintel pressed the ❌ An Error button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Error Message
Stripe is incorrectly calculating some of the fees associated with a payment. Two examples:

  1. pi_3QjqMjBa78RJy0Vn0yh9yLu1
  2. pi_3Qjp8SBa78RJy0Vn1zteQbwz

For #1, it says the origin in Poland and charged an extra 1.5%. But it was an in-person terminal transaction in Pennsylvania.

Question
For #2, I'm not sure why the fee is $0.08. It thinks the transaction came from Puerto Rico (again, it was Pennsylvania). But that should be the same 2.7% + $0.05 because PR is in the USA. And that should come to $0.06. These errors are making it impossible to correctly balance my sales.

What have you already attempted?
Reading the pricing docs

Reproduction Steps
Run a terminal payment. Unsure how to recreate the Poland origin from USA

#

@leaden mantle pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I need to collect sensitive user information including datetime of birth to personalize the product. Where would be the best place to store this since it's discouraged in checkout custom fields or session metadata.

Doc/Guide Links
https://docs.stripe.com/payments/checkout/custom-fields and https://docs.stripe.com/api/metadata

What are you working on?
I need to keep track of personalization of product variant that collects sensitive PII, date of birth

cursive heronBOT
#

@bold jewel pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Following up on an earlier question (https://discord.com/channels/841573134531821608/1261089828313894963):

We now have a 60 second grace period configured for finalizing all invoices, and in code we are finalizing the invoice immediately after we create it. Once created, Stripe is still waiting an hour before attempting the first payment. I'm struggling to find documentation on this behavior. I'd like to start using invoice.pay() after finalizing the invoice. Are there any risks I should be on the lookout for with this change? Could this change which webhook events are firing, or when?

Related Request ID(s)
req_jJbMMfDnHl9kZO

What have you already attempted?
https://docs.stripe.com/api/invoices/pay
https://docs.stripe.com/api/invoices/object
https://dashboard.stripe.com/test/settings/billing/invoice

cursive heronBOT
#

@blazing spade pressed the πŸ“š Doc or Guide button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Link to the Doc/Guide in question
https://docs.stripe.com/invoicing/overview#invoice-lifecycle

Question
About stripe recurring subscription with collection_method=send_invoice.
Does invoice will always be created or issued by the time of renewal of the subscription?

What have you already attempted?
Goal is to issue an invoice and sent it to customers email 1 month ahead before the subscription renews.

What are you working on?
An app with subscription features.

#

@hollow bay pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hi, I'm trying to understand how I can customize the memo or the description on an invoice that will be generated by adding a subscription item to an existing subscription (this will generate a prorated charge, and I need to be able to add detail to that invoice to explain why). I have tried finding but I am not able to. The idea is that I would want to update the description that would come on the general invoice (the regular cycled invoice, once a month) dynamically, but also update the description for the pro rated invoice that will be generated for the new subscription item.

Doc/Guide Links
https://docs.stripe.com/api/subscriptions/update

What are you working on?
B2B Saas product

cursive heronBOT
cursive heronBOT
#

@real fog pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hi, good day! I tested the "Create a PaymentMethod" API callout, and I provided an invalid test card number (4000000000000127). I noticed that it will create a Payment Method. If that's the case, when I use a live card number with an invalid CVC, will it be validated, or will it still create a Payment Method?

Related Request ID(s)
None

What have you already attempted?
None

#

@indigo orchid pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How can I test account updates?

Related Request ID(s)
none

What have you already attempted?
I have a method where I'm trying to update the connected account's settings that might be pertinent for taxes. (sample below). The response I get back is: Only live keys can access this method. So how can I be sure that it will work if I can't use it against the test account

Stripe::Account.update(
company.stripe_account_id,
{
email: email,
settings: {
tax_forms: {
consented_to_paperless_delivery: consent
}
},
address_key => {
address: address_data
}
},
stripe_version: '2019-12-03'
)

cursive heronBOT
#

@rancid parrot pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
var intentConfiguration: PaymentSheet.IntentConfiguration {
return .init(mode: .payment( setupFutureUsage: nil,
captureMethod: .manual),
confirmHandler: { [weak self] ..., ..., intentCreationCallback in
self?.onCreatePaymentIntent(... callback: intentCreationCallback)
}
}

Question
intentCreationCallback doesnt throw an error in this scenario.

I create a paymentIntent on the server which succeeds. PaymentSheet attempts to confirm it on the client but fails showing me an error message on the paymentsheet which is fine but why doesnt intentCreationCallback throw me the error in the so I know to cancel my payment intent?

Currently many payment intents are being creating which I want to cancel if they fail confirmation but i get no error callback.

What have you already attempted?
I thought it was a memory leak and that the intentConfiguration property was going out of scope so I tried having a strong reference but no luck.

cursive heronBOT
#

@thick raven pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I use Stripe Connected accounts for my platform. In Sweden (maybe EU?), we need to collect and send information about sellers to our IRS.

As we get some of the information due to the KYC step in the onboarding of Connected accounts. I wonder if I can add or choose what is required information to fill in as a user.

For example, we need to collect the corporate form and that is something that Stripe asks during the KYC. But I can't find that information in the dashboard for a specific connected account.

We also need the TIN number, and some other details.

Is there a way for me to collect more information during the KYC step, and perhaps chose what is mandatory?

Doc/Guide Links
https://support.stripe.com/questions/know-your-customer-obligations?t

What are you working on?
Platform for selling health services.

cursive heronBOT
#

@livid kernel pressed the πŸ“š Doc or Guide button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Link to the Doc/Guide in question
https://docs.stripe.com/api/customers/object

Question
In Stripe customer object document, there is an expandable field "subscriptions" and documentation says that this filed returns user's current subscription.
My question is what does "current" subscription means, documentation doesn't specify subscription status that are counted as user's current subscription.
Does this means that customer.subscriptions will return all non cancelled subscriptions or does this mean that customer.subscriptions will return only user's subscription with status "active" or "trialing"?

What have you already attempted?
I have attempted following code to get user's customer object:
`
const customerObj = await stripe.customers.retrieve(
stripeCustId,
{
// this gets expanded field subscriptions, because subscription in Stripe customer object is an expanded field
expand: ['subscriptions'],
}
);
`
Then I get subscription object as:
`const subscription = customerObj.subscriptions?.data[0];`

What are you working on?
I am trying to get user's active subscription using their Stripe customer id

cursive heronBOT
cursive heronBOT
#

@halcyon scarab pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
i want to pay out to my merchant to his external account which api i need to use ?

Related Request ID(s)
NA

What have you already attempted?
i checked payout doc there it is there payout will happening only for self acccount i,e owner account

What are you working on?
i was integrating strip to my application

#

@daring garnet pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
elements = stripe.elements({
locale: pay_lang.value || 'es',
appearance,
clientSecret: clientSecret.value,
})
const paymentElement = elements.create('payment', {
layout: 'accordion',
fields: {
billingDetails: 'never',
},
})
paymentElement.mount('#payment-element')
paymentElement.on('ready', (e) => {
showBtn.value = true
})
const options2 = {}
const expressCh

Question
I want to show Google Pay and Apple Pay

What have you already attempted?
Test end test

What are you working on?
Google Pay and Apple Pay are enabled, and the certificate domain name is configured

cursive heronBOT
#

@stone otter pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I have implemented the subscription using stripe checkout session to buy or upgrade payment. Purchase subscription is fine, but I am getting issue while upgrading the plan. I have bought $99 at first time and then upgrading to $199 (price_xxxx), but getting issue with amount adjustment. I am trying to upgrade at the same day after 2 minutes but it is showing "$0.27 and $199 starting from the same day". Might be doing something wrong.

Related Request ID(s)
req_IG8u7nY75b9HaU

What have you already attempted?
I am using proration behaviour in checkout session on upgrade, which is showing $0.27 and $199 starting from the same day.
'subscription_data' => [
'proration_behavior' => 'create_prorations',
'billing_cycle_anchor' => strtotime('+1 hour')
],

What are you working on?
Subscription platform where user can subscribe a plan and upgrade the plan.

#

@charred ice pressed the 🀨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
I expect a customer's payment method to be attached after successful payment in a sandbox.

What actually happened?
Payment method isn't attached to the customer and no payment_method.attached events were emitted.

Reproduction Steps

  1. Create a payment intent with setup_future_usage "on_session" and a customer id in a sandbox.
  2. Confirm this payment intent.
  3. Go to sandbox dashboard. Payment is succeeded, but no payment method attached to the customer.

Question
Python:
params = {
"amount": to_cents(amount),
"currency": "usd",
"payment_method_types": ["card"],
"customer": customer_id,
"payment_method": payment_method_id,
"setup_future_usage": "on_session" if save_card_to_stripe else None,
}
payment_intent = self.client.payment_intents.create(params)

What are you working on?
I'm integrating saving payment methods for future use

cursive heronBOT
#

@calm wave pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Background:

  1. We're the platform, and actual merchants are connected accounts. We use Custom connected accounts, in our PaymentIntents we set on_behalf_of to the connected account's ID.
  2. Our current fund flow is Separate Charges and Transfers.
    When a buyer pays (e.g., using a credit card or Apple Pay), that transaction does not appear under the connected account's Dashboard, it only shows up in the platform's Dashboard.
    Question: Is there any integration mode that allows us to see the connected account's transactions in both the platform's Dashboard and the connected account's Dashboard.

Related Request ID(s)
N/A

What have you already attempted?
We previously reached out to Support, and they mentioned this isn't currently possible.

#

@willow yoke pressed the πŸͺ Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We have multiple developers working on the development and testing of Stripe-related features locally. To facilitate this, we have created separate webhooks (WH1, WH2, WH3, etc.) for each developer within the same Stripe account. However, when a specific event (e.g., payment_method.attached) is triggered, it sends requests to all the registered webhooks (WH1, WH2, WH3, etc.). This results in an "object not found" issue when a webhook triggered from one developer's machine is received on another developer's machine.

How can we effectively handle such scenarios during the local development.

Related Event ID(s)
evt_3Qki9kJdQBWj4T9r1GtkNI3K

What have you already attempted?
Tried by verifying signature for respective webhook secret but it does not invalidate it

#

@quartz aspen pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hi I have 2 questions,
1) If a user is on trial and he completes a new purchase when on trial then how can I ensure it starts after the trial ends?
2) I have a exclusive tax enabled but the issue is when the user creates a checkout the tax is not getting applied when the country is correct, Ex when the checkout is in INR it should apply the tax but for some reason it is not.

Related Request ID(s)
NA

What have you already attempted?
NA

cursive heronBOT
#

@digital geyser pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
```
if (subscriptionStatus == SubscriptionStatus.pastDue && cancelAtPeriodEnd && latestInvoice != null) {
assertString(latestInvoice)
await this.stripe.invoices.voidInvoice(latestInvoice)
await this.stripe.subscriptions.cancel(stripeSubscriptionId, { invoice_now: false })
}
```

Question
I am looking into the best way to manage the situation when the customer tries to cancel the subscription through the billing portal, but the subscription invoice has had retries and the new billing cycle has started. The customer expects that the subscription is canceled, however subsequent retries are successful, and they are charged. I am running the provided code on the `subscription.updated` event and I am wondering if this is the best course in this situation.

What have you already attempted?
So far only the `subscription.updated` event

What are you working on?
sports data subscription service

cursive heronBOT
#

@arctic aurora pressed the 🀨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
I have created coupon and assigned it to product.
I also created a user faced coupon
I expected to be able to use it.

What actually happened?
When user try to use it it says Invalid coupon

Reproduction Steps
Create acoupon in dashboard dev

Question
How cna i make it work? I will provide screenshots and hope for the best :)

#

@jade plinth pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How do I notify users on exceptions that happen on the webhook? Since they come from stripe not my server

Related Request ID(s)
not one specific

What have you already attempted?
I tried getting the email or user the onFailure redirect, but they don't seem to work

#

@balmy hedge pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hi, is it possible to not show the actual items in the line_items of the embedded checkout form? It's just I already have the "cart" with all the products and prices showing on the right side of the website itself, so don't really want this info repeated within the Stripe form? Thanks!

Doc/Guide Links
https://docs.stripe.com/payments/checkout/customization/appearance?payment-ui=embedded-form

What are you working on?
ecommerce website

#

@finite mango pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hello :) I have the following flow for my application in mind:
1.customers can create a custom order of products for review.
2.at checkout they save their payment displayed but dont chargeimmediately
3.that order is then displayed in another application for admins, where they review it and can change products depending on the stock.
4. when they click approve, ONLY THEN the user is charged off-session, and mb with a different total amount.
what is the maximum amount of time the order can be in review for payment to come through?
is it possible to also use stripe invoice api with this approach?

Related Request ID(s)
none

What have you already attempted?
i’ve seen that you can setup intents, but not using invoices api. is that possible?

What are you working on?
building an application

#

@uncut saffron pressed the ❌ An Error button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Error Message
We couldn't verify your identity

Question
I am trying to change my bank account and it is saying I need to send verification email to my account

What have you already attempted?
I have tried getting the email but then it leads me to an error message

cursive heronBOT
#

@lofty tusk pressed the πŸ“š Doc or Guide button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Link to the Doc/Guide in question
https://docs.stripe.com/webhooks

Question
Can you provide more detail about using cli to test all subscription cycle like new subscription -> renewal -> error payment

What have you already attempted?
I already implemented create subscription process and webhook. I tried to test the webhook what will trigger when subscription renewal or it fail. But I don't know how to test it quickly without waiting subscription expired

#

@thick raven pressed the πŸ“š Doc or Guide button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Link to the Doc/Guide in question
https://support.stripe.com/questions/merchant-account-number-or-merchant-id-for-sellers-permit-applications?t

Question
We use Connected accounts when companies sign up to use our platform.

We are now working on connecting our platform with another platform and they need MID to connect users.

Can I get MID for Connected accounts on our platform?

What have you already attempted?
No tried anything.

#

@cloud drum pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Our app was rejected stating that Apple Pay is not showing as an option on some devices. Judging by the screenshots, they are running our iPhone app on an iPad. Did you have similar cases before? Why wouldn't Apple pay show on some devices?

Related Request ID(s)
pi_3QhopqK8RYfweLYT16eYci7K

What have you already attempted?
We've tried reaching out to Stripe through support and they haven't really been helpful. We asked Apple for any tech details on which device/OS version they're testing on (they didn't provided anything)

What are you working on?
iOS app

#

@willow oriole pressed the ❌ An Error button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Error Message
Getting Nullpointer Exception while trying to add card to customer

Question
When trying to add card to a customer getting nullpointer exception because customer.getSources() is null

What have you already attempted?
Customer customer = Customer.retrieve(customerToken, requestOptions);
Map<String, Object> params = new HashMap<>();
params.put(StripeConstants.SOURCE, token);
card = (Card) customer.getSources().create(params, requestOptions);
Here customer.getSources() is null, due to which im getting Nullpointer Exception. How can I add card here

#

@earnest stream pressed the πŸ“š Doc or Guide button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Link to the Doc/Guide in question
https://docs.stripe.com/api/payment_methods/create

Question
What is the correct way of associating billing address with a payment card? I can see that Stripe API allows attaching and updating an address at both the customer level and the payment method level. If I attach an address at the customer level, will it be automatically propagated to all their payment methods?

What have you already attempted?
If we want to process payments via debit/credit cards, what would be the consequences of only attaching the address to the customer object, but not to individual payment method objects?

#

@shadow laurel pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Is it possible to set "automatic tax" to all Stripe subscriptions by default?

Related Request ID(s)
I don't think that I'm allowed to give any of our data out

What have you already attempted?
Our tax settings have "automatic tax" enabled by default, but this doesn't seem to be applied to our subscriptions.

If we try to create or update a subscription with "automatic tax" enabled, it'll throw an error unless our shipping info is correct. Which isn't always the case in our current system.

What are you working on?
We have a website with thousands of customer subscriptions, and we're trying to tax our subscriptions. Not all of our users have provided us shipping info, but we're collecting it.

#

@mossy vault pressed the πŸ“š Doc or Guide button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Link to the Doc/Guide in question
https://docs.stripe.com/api/payment-link/create?shell=true&api=true&resource=payment_links&action=create

Question
Hi there team! I have a question regarding achieving a specific behavior with PaymentLinks and Connect.

We need to create Payment Links on behalf of our connected accounts (express connected accounts) and destination charges, using on_behalf_of. Our structure is to take 1.60% of the total amount + 10cent per transaction. When creating the payment link I found out you cannot specify both params, application_fee_amount (for the flat rate) and application_fee_percent. How can we achieve the needed pricing structure?
Is something to be handled out of Stripe?
Thank you in advance!

What have you already attempted?
I've tried to create a payment link specifying both params and I get the following error message:

{
"error": {
"message": "You may only specify one of these parameters: application_fee_amount, application_fee_percent.",
"param": "application_fee_amount",
"request_log_url": "https://dashboard.stripe.com/test/logs/req_90QhoKMLlCxWqf?t=1737716073",
"type": "invalid_request_error"
}
}

#

@high locust pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Can we get amount pad and transaction fee back in salesforce via api once client makes payment using stripe.

Related Request ID(s)
Can we get amount pad and transaction fee back in salesforce via api once client makes payment using stripe.

What have you already attempted?
Can we get amount pad and transaction fee back in salesforce via api once client makes payment using stripe.

What are you working on?
Can we get amount pad and transaction fee back in salesforce via api once client makes payment using stripe.

cursive heronBOT
#

@bronze kestrel pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
hello, we're using @stripe/react-stripe-js
my question is about what to do in the page with the form for a setup intent that has already been saved. so I mean, when is not saved => the form is empty
when is saved => the form shows that the value is already there. I expect something like passing some parameter to the component PaymentElement

Doc/Guide Links
https://www.npmjs.com/package/@stripe/react-stripe-js

What are you working on?
a webapp where the user can save its payment information

#

@jade plinth pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
I know that this is depracated
val dataObjectDeserializer = event.dataObjectDeserializer
val stripeObject = dataObjectDeserializer.getObject()
Imagem

Question
How can i get data from the object not using the depracated one on kotlin

What have you already attempted?
when I tried using the new one theobject is always null

#

@wind echo pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hello,

I am building a platform using Stripe Connect where users can purchase subscription-based products offered by multiple vendors (connected accounts).

I would like to know if it’s possible to bundle two subscription products (one from each vendor/connected account) into a single checkout flow, so that the user can pay for both subscriptions at once but still have individual active subscriptions linked to the respective vendors.

If this is possible, what would be the best approach to implement it? Are there specific APIs, best practices, or considerations I should be aware of?

Thanks

Doc/Guide Links
https://docs.stripe.com/api/subscriptions/create

What are you working on?
Stripe Connect And Subscription bundling

#

@crystal aspen pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hello,
Is there an API endpoint or embedded component available to retrieve the payment list for a specific client? My goal is to display the payment list for each client individually.

Thank you!

Related Request ID(s)
https://docs.stripe.com/connect/supported-embedded-components/payouts-list

What have you already attempted?
I was using the payout list embedded component, but it displayed payout information for all clients instead of a specific one.

What are you working on?
Medical website

#

@open edge pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I have subscription with startData 23.01.2025 & endDate 25.02.2025 How I can Prolong my sub to one month? I want that next upcoming invoice will be at 25.03.2025 for example. I can't find information about it. ProratationDate can't set higher than current endDate

Related Request ID(s)
1

What have you already attempted?
1

#

@heavy warren pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hi, I want to test our production data + create setup/teardown scripts for our E2E test. The only missing pieces areβ€” is a way to:

  1. Clone live connect express, subscription, and invoice data into test mode? I can do my best replicating with test clocks but it’s not ideal.

  2. Create verified connect express accounts in test mode without manually going through the onboarding form?

I see it’s possible to clone live products. But nothing else. Are sandboxes a viable option?

Doc/Guide Links
Test Mode related docs and product/prices

What are you working on?
Prod cloning + e2e tests

#

@midnight iris pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I'm building a SaaS application with a Pay-as-you-Go / On-Demand pricing model.

My customers can explore the service's functionality before providing their payment details. Once they're ready to start using the service, they need to add a payment method to their account. I'm using Stripe Elements to render the payment form.

I want to avoid polluting my Stripe Customers database with all users and limit it to only those who have added a payment method. Therefore, during the Stripe Elements setup process, I don't pass a Stripe Customer ID to the SetupIntent object since it hasn't been created yet.

Is there a way to automatically create a new Stripe Customer when the Stripe

Doc/Guide Links
https://docs.stripe.com/payments/save-and-reuse

What are you working on?
I'm building a SaaS application with a Pay-as-you-Go / On-Demand pricing model.

#

@limpid scaffold pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How to properly handle 3DS for trialing subscription?

Related Request ID(s)
req_eTxLDFgGsN4ZUU, seti_1Qknq3KbHTyAU2ATEs3WTRPu, sub_1Qknq2KbHTyAU2ATmw1gsgS4

What have you already attempted?
Earlier we give user 3DS prompt based on newSubscription.pendingSetupIntent, and after it's confirmation - trial conversion was fine. But now I'm getting past_due subscription for some reasons

#

@radiant carbon pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We are using account link to onboard our customers to stripe. For Canada platform, the customers are able to add multiple payout bank accounts (usd and cad) and change it anytime, is there a way to limit this to allow them only onboard to one and only one preselected settlement currency?

Related Request ID(s)
NA

What have you already attempted?
Tried use default_currency when create the account, that doesn’t have any impact on what bank account they can add

cursive heronBOT
#

@balmy hedge pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
Uncaught ReferenceError: clientSecret is not defined

Question
I cannot get the embedded components checkout to work at all from following the docs. I am using PHP and html/JS version. I think there is a lot of info missing from the snippets in the doc

What have you already attempted?
copied every bit of code from the docs

What are you working on?
ecommerce website

#

@native cloud pressed the πŸ“š Doc or Guide button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Link to the Doc/Guide in question
https://docs.stripe.com/tax/custom#calculate-tax

Question
How to calculate taxes correctly when platform setup is used and so I would need to choose connected account as the vendor (not use - the platform), customer (the purchaser) and the product (tax category)?

What have you already attempted?
I don't see any connected account reference when sending tax calculation request.

#

@tender pawn pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I need to combine discounts with a promotion code. I'm getting the following error: You may only specify one of these parameters: discounts, promotion_code.. Please check your card or try another.

Related Request ID(s)
None

What have you already attempted?
I haven't tried anything yet.

What are you working on?
Checkout for website: multiple products + subscription

cursive heronBOT
#

@signal berry pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
if (subscriptionStatus == SubscriptionStatus.pastDue && cancelAtPeriodEnd && latestInvoice != null) {
//void invoice
//cancel subscription
}

Question
I have a problem when the customer tries to cancel the subscription through the billing portal, but the subscription invoice has had retries and the new billing cycle has started. The customer expects that the subscription is canceled, however subsequent retries are successful, and they are charged. I am running the provided code on the `subscription.updated` event and I am wondering if this is the best course in this situation.

What have you already attempted?
I tried changing the billing portal settings to `Cancel Immediately` but it is not what I want. I still want customers to be able to have their subscriptions last until the end of the billing cycle but in this case I would like to cancel immediately.

What are you working on?
subscription service for sports data

cursive heronBOT
#

@umbral musk pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hello,
i'm using SEPA Debit payment method with Source / Charge API.
I'm working on a migration to PaymentIntent.

I intend to create PaymentMethod object instead of Source object but the doc says "
Instead of creating a PaymentMethod directly, we recommend using (...) the SetupIntent API to collect payment method details ahead of a future payment"
I send several thousands of payment a month with batch. I loop and create Charges.
I don't understand the real benefit of SetupIntent API.
Am I not concerned ?
Thank you for your help

Related Request ID(s)
N/A

What have you already attempted?
nothing yet I'm trying to figure out what the best use of API Paymentintent to replace Source / Charge.

What are you working on?
Migration SEPA DEBIT and SEPA TRANSFER from Source / Charge to PaymentIntent

#

@digital geyser pressed the πŸ“š Doc or Guide button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Link to the Doc/Guide in question
https://docs.stripe.com/billing/subscriptions/coupons

Question
I am wondering how to achieve a similar functionality to the Limit by first time order, but not actually be the first order only, but to be applicable to a customer only once. I am looking into turning on the `Retention Coupon` and trying to prevent a user from abusing this feature, that is, just repeating it again after the coupon ends. But I have a similar problem with regular coupon usage using the billing portal where if I check on the Eligible for first-time only customers end up using it on their free trial and canceling the free trial, and then they can't add the coupon when they sub.

What have you already attempted?
Not really sure what to do so no attempts made.

What are you working on?
subscription based sports data

cursive heronBOT
#

@crystal aspen pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hello, Is there an API endpoint or embedded component available to retrieve the payment list for a specific client? My goal is to display the payment list for each client individually.

Related Request ID(s)
https://docs.stripe.com/connect/supported-embedded-components/payouts-list

What have you already attempted?
I was using the payout list embedded component, but it displayed payout information for all clients instead of a specific one.

What are you working on?
Medical website

#

@clear gale pressed the ❌ An Error button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Error Message
As cobranΓ§as estΓ£o suspensas.
Fale com o suporte para obter mais informaΓ§Γ΅es.

Question
When accessing my Stripe platform, a red error message appears stating that charges are suspended, and it only says to contact support.

What have you already attempted?
I contacted Stripe support via email, but it’s taking a long time to resolve the issue, and I believe my customers are unable to make payments.

Reproduction Steps
Nothing was done on my part other than sending a screenshot of the error message to Stripe support.

What are you working on?
I am monitoring the Stripe platform for a movie platform owned by the company I work for.

cursive heronBOT
#

@lament hollow pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I'm working with a draft invoice for a subscription that has meter events and tier pricing based on usage amounts. I need some way to view all the possible tiers for the subscription meter events. How can I view this through the api?

Related Request ID(s)
none

What have you already attempted?
I have attempted looking at the draft invoice and can't view all the tiers only am able to view the prices for invoice line items. I tried fetching the price object and the product object but neither of those shows all the possible pricing tiers.

What are you working on?
I'm trying to account for usage changes on the meter event after the invoice has been created but not yet finalized.

cursive heronBOT
#

@primal sentinel pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hi I would like to extend the current billing period in your subscription by 10 days.

Related Request ID(s)
evt_1QkrpMDLkyBvca6o5pARKEqe

What have you already attempted?
await stripe.subscriptions.update(subscriptionId, {
pause_collection: {
behavior: "keep_as_draft",
},
trial_end: resumeDate.unix(),
});

I do it in webhook: invoice.paid (only for subscription)

What are you working on?
I try to add extra days to current attempt

#

@rocky nimbus pressed the ❌ An Error button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Error Message
"This app doesn't support smart wallets.

If you're the developer of this app, the issue is that window.opener is inaccessible. Check out our COOP Policy doc for how to fix it"

Question
When using crypto to checkout, there is an error when you try using the coinbase wallet. Other wallets seem to work fine. I will post screenshot of error in comments

What have you already attempted?
I tried using the coinbase wallet for crypto checkout, but it doesn't work. Other wallets work fine. Coinbase wallet seems to work in non prod test environment

Reproduction Steps
Go through the crypto checkout flow in production and try to use coinbase wallet.

What are you working on?
Simple web app that accepts crypto payment

#

@sullen willow pressed the πŸ“š Doc or Guide button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Link to the Doc/Guide in question
https://docs.stripe.com/invoicing/payment-plans

Question
I am buildin a website where a user has to pay 50% payment at the booking and the remaining 50% should be paid 2 days earlier before the due date.

What have you already attempted?
I have attempted nothing.

What are you working on?
I am working on a booking web application

#

@rustic swallow pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
limit := int64(1)
loop:
listParams := &stripe.SubscriptionListParams{
ListParams: stripe.ListParams{
Limit: &limit,
Status: stripe.String("ended")
},
Customer: &customerId,
}

i := subscriptionClient.List(listParams)
for i.Next() {
sub := i.Subscription()
createdCursor = sub.Created
if filter(sub) {
return sub, nil
}
}
if i.Meta().HasMore {
goto loop
}

Question
The code above materialized into
https://dashboard.stripe.com/test/logs/req_IDr5T0VXLic9N2

The customer https://dashboard.stripe.com/test/customers/cus_RdlAwE1oE1GNmQ has 8 "ended" subscription record. I was expecting and testing each list result should contain just 1 sub and then i.Meta().HasMore would be executed 8 times.

But instead, i.Meta().HasMore is never run. It would seem "limit" does not seem to take effect.

What have you already attempted?
Please see above

#

@tender pawn pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Promotion code not found - when I enter an expired promotion code it responds "expired promotion code", but when I enter a valid promotion code, it responds "no such promotion code"

Related Request ID(s)
req_0nEtc10d4mX7eb, req_GBERPCaXnYIQ8k

What have you already attempted?
I've been stepping through code trying to solve this

#

@lunar surge pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
i need to retrive list of invoices. Is there any way to get list of invoices, passing invoice ids in parameter other than making X request to retrive each single invoice?

Related Request ID(s)
heven't found

What have you already attempted?
i could retrive invoice one by one, but i'm looking for better solution

What are you working on?
I have list of invoice ids, i need to ask api for invoice details, to retrive payment intent id or charge id so i can make refund for all of those invoices

#

@tropic spear pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hi, we're trying to check our database against the stripe balance to make sure everything is working as it should. Therefore, we sum all of our payments in the database, subtract the transaction fees and compare that against the stripe balance. However, the difference is not 0 as expected, but instead fluctuates a bit. I believe that is has to do with async sepa payments. It seems like they only appear in the stripe balance somewhere between the payment initiation and its success.
- When exactly are payments available? Does 7 days mean exactly 604.800s after payment?
- Is there a webhook once a payment intent is ready to be paid out?
- Do you have any other idea / input?

Doc/Guide Links
https://docs.stripe.com/payouts#standard-payout-timing

What are you working on?
an online ticket shop

cursive heronBOT
#

@distant temple pressed the ❌ An Error button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Error Message
Your card was declined. Your request was in live mode, but used a known test card.

https://ezrak.sg-host.com/book-a-session/

Can you please test and see if you get the same error?

Question
I'm trying to test my stripe payment for my calendly but it keeps saying your card was declined when I try a test. It says Your request was in live mode, but used a known test card.

What have you already attempted?
I tried to switch it to test mode but its not working. Its in test mode but im still getting the same error.

What are you working on?
im trying to get a booking calander working with stripe.

#

@fallen shoal pressed the ❌ An Error button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Error Message
The provided payment_method_types (["card"]) does not match the expected payment_method_types (["us_bank_account", "card"]). Try confirming with the same parameters in both the API and Stripe Elements.

Question
I've setup payment elements and done the necessary configuration to have wallets showing. Apple pay is working but google play returns the above error.

What have you already attempted?
I haven't been able to test much, im really stuck on the root cause.

Reproduction Steps
Use the server confirmation flow.

On the frontend we have:

if ( selectedSource === 'apple_pay' || selectedSource === 'google_pay') {
elements.update({
onBehalfOf,
paymentMethodTypes: ['card'],
});
}

const { error\: submitError } = await elements.submit\(\);

stripe.createConfirmationToken({
elements,
});

What are you working on?
make google pay work with payment elements

cursive heronBOT
#

⛔️ Stripe developers aren't currently available on Discord

We're not around on weekends, holidays, and (rarely) other times, but we should be back during regular business hours! In the meantime you can contact Stripe support for help.

cursive heronBOT
#

βœ… Stripe developers are currently available on Discord!

cursive heronBOT
#

@junior marsh pressed the 🀨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
One click apple pay button to appear on top of the page under the product in a checkout session

What actually happened?
apple pay is included as an payment method in the radio button group

Reproduction Steps
create a checkout session normally

Question
How can we show the one click apple pay button

cursive heronBOT
#

@latent oak pressed the 🀨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
Show saved payment method in stripe checkout page

What actually happened?
The saved payment method isn't showing in checkout

Reproduction Steps
I am passing the existing customer with their default payment method existed into the Pricing table and also the payment method card allow_redisplay has been set to be shown as 'always'.

Question
I am using stripe pricing table component provided by stripe for checkout, on there I am passing the existing customer with their default payment method, and also the payment method card display has set to be show as always. Even though all done, the checkout.stripe.com isn't showing saved card for the customer

cursive heronBOT
#

@formal remnant pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
public function createCheckoutSessionforMultipleOrphan()
{
\Stripe\Stripe::setApiKey(env('STRIPE_SECRET'));

    $userId = auth\(\)\-\>user\(\)\-\>id;

    // Retrieve cart items
    $cartItems = DB\:\:table\('carts'\)
        \-\>where\('user\_id', $userId\)
        \-\>join\('orphans', 'carts.orphans\_id', '=', 'orphans.id'\)
        \-\>select\('carts.\*', 'orphans.orphan\_code'\)
        \-\>get\(\);

    $lineItems = \[\];
    $orphanId = \[\];
    $orpha

Question
The above code is in laravel, I want if I get subscription munthly or yearly in a single checkout. is this possible?

What have you already attempted?
I have attempted this scenario but I got an error

#

@swift hinge pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I have a backend setup in AWS that uses EventBridge to receive API data (working as expected). However, it relies on the API passing the customer email.
When passing test subscriptions/payments in Stripe, I'm receiving the following output:

"billing_details": {
"address": {
"city":
null,
"country":
null,
"line1":
null,
"line2":
null,
"postal_code":
null,
"state":
null,
},
"email":
null,
"name":
null,
"phone":
null,
},

Email being 'null' is causing my backend not to trigger. How do I rectify this? My test user has email defined.

Related Request ID(s)
https://dashboard.stripe.com/workbench/logs/req_AUm9vr9S5UdsVl

What have you already attempted?
Doc Review

What are you working on?
Use of Stripe API to create a subscribed user in AWS Cognito upon charge.succeeded call.

#

@rugged yacht pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Why 'IDR' product subscription status became paid immediately

Related Request ID(s)
product id: prod_Ren7wZvH9fKSeR & subscription id: sub_1QlmvGD3eW4CYo1pGjtUJ4NY

What have you already attempted?
I have two products "prod_Ren7wZvH9fKSeR" this one currency is "IDR" and "prod_Rc61fGzEjq32fN" this one currency is "USD"

Here is my code to create an incomplete subscription
const payload: RemoteStripe.SubscriptionCreateParams = {
customer,
items: [
{
price: priceId
}
],
payment_behavior: 'default_incomplete',
payment_settings: { save_default_payment_method: 'on_subscription' },
cancel_at_period_end,
expand: ['latest_invoice.payment_intent']
};

I got the response with status "open" for USD but "paid" for "IDR"

#

@crisp falcon pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How do I remove a discount coupon from a draft invoice?

I'm looking at the API docs, but I'm not clear on how to specify the request to remove a particular coupon but not affect potentially other coupons applied to the invoice.

Related Request ID(s)
(none)

What have you already attempted?
Looked at API docs: https://docs.stripe.com/api/invoices/update#update_invoice-discounts

What are you working on?
Removing discount from invoice

cursive heronBOT
#

@fallow bobcat pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I'm integrating Stripe API into my Nest.js project, specifically utilizing the Stripe Subscriptions API. My current workflow involves:

  1. Creating a customer
  2. Creating a subscription
  3. Sending a pending_setup_intent with the customer ID

Next, I use stripe.confirmCardSetup() with the clientSecret obtained from the Stripe pending_setup_intent.

However, I'm encountering an issue. While this process works perfectly most of the time, some users enter dummy card information. By the time the card is declined, I've already created the customer and Stripe subscription. How can I handle this scena

Related Request ID(s)
1

What have you already attempted?
na

What are you working on?
na

cursive heronBOT
#

@soft smelt pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We are considering using Stripe Connect to manage our clients payments directly (so they don't need their own Stripe account to use our Marketplace PaaS service, and can just give bank details). If we did this, we'd want to set up their details in our Stripe account ourselves, as opposed to exposing our clients to the Stripe Connect interface. Are we able to do this without having to embed the Stripe Connect integration in our site? We may want to give clients access in the future but that would be decided later.

Doc/Guide Links
https://docs.stripe.com/connect/onboarding
https://docs.stripe.com/connect/how-connect-works
https://docs.stripe.com/connect/onboarding/quickstart
https://docs.stripe.com/connect/required-verification-information

What are you working on?
A Marketplace PaaS offering where caterers can provide quotes to customers and take orders/payments for these quotes

#

@oblique mango pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
When a user upgrades their subscription and is out of trial, I would like to immediately charge them the difference between the two price points, without proration. But I can't figure out what's wrong with my code.

Related Request ID(s)
N/A

What have you already attempted?
Read the docs

cursive heronBOT
cursive heronBOT
#

@late sigil pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Processing Payments with Mastercard Card using moto, fails: "Your card was declined. This transaction requires authentication"

Related Request ID(s)
charge": "ch_3Qlp2yKN6kYQt9Mu0oM6ny2e

What have you already attempted?
Verified the address AVS and it has pass..

#

@dire ivy pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How to set an active subscription to unpaid for testing purpose?

Doc/Guide Links
-/- tried stackoverflow etc.

What are you working on?
Hi, Iβ€˜m trying to set a subscription to unpaid for testing purposes to implement it to my frontend. I canβ€˜t find any plausible way to perform this to an active subscription.

#

@molten rock pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
API Account V2 Preview no access. (I have the invitation but doesn't work)

Related Request ID(s)
em_4wukwhmr3bkew9hqdvuazxibyijvtm

What have you already attempted?
I want to try the preview of your API Account V2 but i can't have access for my tests account: acct_1QjleyKD3bhHk4lR

cursive heronBOT
#

@stuck tundra pressed the 🀨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
Canadian Pre Authorized Debits payment method should load in stripe payment element.

What actually happened?
Canadian Pre Authorized Debits payment method is not loading in stripe payment element.

Reproduction Steps
Go to this url: https://link.staging.fastpaydirect.com/payment-link/679575e2ac93dcffd507fcd1
Canadian Pre Authorized Debits is already enabled on stripe test account: acct_1QlIVJGIVRsmkB72
Using Canadian dollar as currency.

Question
Since we are using captureMethod = true in stripe options to load payment element, then why stripe is not returning Canadian Pre Authorized Debit payment method although it is enable on stripe dashboard.

#

@manic arrow pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Metadata is not showing on the subscription or in the transaction, even if the user completes the payment.

Related Request ID(s)
in_1QlpQuGNR9W9OfNm9W4kSRwf

What have you already attempted?
Did searches on docs but nothing there, it says add metadata as I'm doing.

What are you working on?
Subscription service

cursive heronBOT
#

@polar abyss pressed the ❌ An Error button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Error Message
"Could not retrieve elements store due to unexpected error"

Question
(sorry that this is so vague) We've had this come up in production for a single customer trying to use a PaymentElement genned from a SetupIntent on our site; are there any obvious avenues of investigation to follow to diagnose and fix the problem?
(I haven't found the raw error data because of monitoring problems on our side)

What have you already attempted?
Investigated any possible differences between the normal flow and what our customer was doing, but couldn't find anything amiss

Reproduction Steps
This is my problem - I'm unsure how to reproduce so would like advice on the types of dev-buggery that can cause this to occur, to aid investigation

What are you working on?
Already-live form for customers to add payment methods for existing subscriptions

#

@sage stag pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Did anything change in the GET PaymentIntent API endpoint?
We are now getting around 9/10 requests failing as it doesn't expand the latest_charge.balance_transaction object

Related Request ID(s)
No request Ids for a GET

What have you already attempted?
When debugging the object is always expanded successfully

#

@craggy junco pressed the πŸͺ Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We use the Stripe API version `2020-03-02`. We do the transfer with the parameter `source_transaction`. should we listen to the `transfer.failed` webhook event(Try again the transfer)? Does the transfer fail asynchronously after the successful create transfer request?

Related Event ID(s)
N/A

What have you already attempted?
N/A

cursive heronBOT
#

@limpid pike pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How can I activate the payment method "customer_balance" for a connected standard account?

Related Request ID(s)
none

What have you already attempted?
I tried calling the update payment method config, but one cannot "activate" it. The only thing one can set is the display preferences.

What are you working on?
Qourses - course management SaaS

cursive heronBOT
#

@heavy berry pressed the πŸͺ Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How can we restrict a webhook URL and its events only if the request comes from a particular application?

Related Event ID(s)
evt_3QkpeVFsy1Qna4k31jS3j5hw

What have you already attempted?
The provided event ID associated with the webhook URL (https://abc.com/stripe-webhook) is now disabled. There are multiple products and associated prices in the account. A few are being used from https://abc.com, and others are from https://xyz.com. Here checkout session API has been used and required events are being triggered.
The requirement is to use webhook only for https://abc.com not for https://xyz.com.

#

@leaden cedar pressed the ❌ An Error button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Error Message
Payment declined by customer's bank
The bank returned the decline code authentication_required

Question
Payment declined by customer's bank
The bank returned the decline code authentication_required

What have you already attempted?
Logging out and in, happened to 5 different customers this morning all with different banks, they have had no authentication from their banks to accept

What are you working on?
Please help asap as this is impacting sales which could be detrimental to the company

#

@floral stag pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
```kotlin
val config: ConnectionConfiguration.HandoffConnectionConfiguration = ConnectionConfiguration.HandoffConnectionConfiguration(
this.handoffReaderListener
)

    Terminal.getInstance\(\).connectReader\(foundReader, config, this.readerCallback\(call\)\)

```

Question
I followed the documentation on how to discover and connect to a reader when the app is installed inside the stripe S700. The code seems able to discover the reader but have an issue connecting to it. What does this error mean? ` Reference to the app's current Activity is missing. Did you call TerminalApplicationDelegate::onCreate before calling initTerminal?` I'm pretty sure the init is already configured since I'm already contributing to this open source plugin.

What have you already attempted?
Still figuring out the cause of the issue.

What are you working on?
I'm contributing to `@capacitor-community/stripe-terminal` . I'm adding a new feature to enable handoffDiscoveryConfiguration.

#

@rare kernel pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Using the live secret key to https://api.stripe.com/v1/accounts/{accountId/external_accounts throws more permissions error. I've created a secret key giving all access. How to surpass this error?

Related Request ID(s)
https://dashboard.stripe.com/logs/req_mvGgN7rVLvQegq?t=1737980886

What have you already attempted?
Tried creating a new secret access key. But it still throws the same error

#

@shadow laurel pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
What is the cleanest way to update phases in subscription schedules, to enable automatic?

Details:
Our current system creates stripe subscriptions and subscription schedules, before the shipping address. Because we cannot enable automatic tax without a shipping address, and "validate_location" isn't an optional parameter with stripe subscription schedules, we cannot apply "automatic tax".

We noticed just now, that our initial subscription payments "remove automatic tax" via the subscription schedules, because we do not have it enabled.

So we have to add "automatic tax" to our phases

Related Request ID(s)
No specific request IDs

What have you already attempted?
When updating our customer address, we can pull & duplicate the phases. Then add in the "automatic tax" to each phase. But we get several error messages about the data when duplicating phases, which I'm handling 1 at a time, it feels sloppy and I feel like there has to be a better solution than this.

What are you working on?
Applying tax to our website's subscriptions.

#

@golden iron pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hi @ynnoj!
I posted a question on Stripe's GitHub and they have replied to me to discuss my issue in the discord, but I'm facing some issues to add my question in the discord.
Can you help me, please?
Here is the reply from @seanzhang-stripe.
Reply: "Hi @cswaqaas it seems like your question isn't directly related to stripe-node SDK.

You can visit the Stripe discord server to discuss your integration with a Stripe engineer, or reach out to Stripe support for a 1:1 chat."

Related Request ID(s)
seanzhang-stripe

What have you already attempted?
I got this reply from GitHub support:

"Hi @cswaqaas it seems like your question isn't directly related to stripe-node SDK.

You can visit the Stripe discord server to discuss your integration with a Stripe engineer, or reach out to Stripe support for a 1:1 chat."

What are you working on?
Stripe Connect for Express Account's Integration.

cursive heronBOT
#

@ivory edge pressed the 🀨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
We confirm a small portion of our payment intents with the `payment_method_options.card.moto` flag and up until late last week this has exempted these payments from SCA

What actually happened?
Starting at around 19:00 UTC last Friday (2025-01-24) we started to see some of these return with `authentication_required` errors, has there been a change that could be causing this?

Reproduction Steps
Confirm a payment intent with the `payment_method_options.card.moto` boolean set to true.

Question
Example request ID of a failed payment from today: `req_n1CWOawSJKJAPB`

#

@dreamy mauve pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hello, I provide a service to clients that have end users. I would like to implement a pricing model usage based on monthly active end users. With the deprecated usage based billing it's quite straightforward to implement in a safe way, just send stripe the usage record with the total MAU of the customer with the aggregation last_during_period. With the new billing meters it's much harder since it doesn't do monthly aggregation (just daily) I have 2 questions :
1) will the deprecated API be removed in the future ? (approx 1 year, 5, or 20)
2) What is the best practice to handle this use case with the new billing meters.
Thanks !

Doc/Guide Links
Usage based docs, both legacy, new and migration docs

What are you working on?
A saas where my customers are billed based on their app's MAU

#

@jovial kestrel pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hi, for now I have a React Native app where I handle payments through "@stripe/stripe-react-native": "^0.40.0"
I have one entry point for stripe payment sheet with various payment methods inside. The point it, I need to add another entry point for Stripe payment sheet, called PayPal. When I click on it I need to open stripe payment sheet only with Paypal option inside. The other option will contain all other payment methods. The stripe intent in my case is generated in backend. Is it technically possible to achieve this?

Doc/Guide Links
https://docs.stripe.com/payments/paypal

What are you working on?
React Native app that uses stripe for payments (card payment, amazon pay, bancontact, google pay, apple pay)

#

@knotty locust pressed the πŸ‘ Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I need to change the defaultFooter for the invoices for a connected account via API. (we are using stripe connect).
I've seen that inside the dashboard that's not a problem within the dashboard but for whatever reason only in live mode, but we need to do this for every new connected account if they affected by german small scale entrepreneur law. So we need to do this by some automation

Doc/Guide Links
https://dashboard.stripe.com/settings/billing/invoice

https://stripe.com/de/resources/more/small-scale-entrepreneur-germany

What are you working on?
a marketplace where user can sell extentions of a larger system

#

@sleek stream pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I am trying to use stripe API to generate Virtual card for users. I got this message
message: 'Your account is not set up to use Issuing. Please visit https://dashboard.stripe.com/issuing/overview to get started.',
request_log_url: 'https://dashboard.stripe.com/test/logs/req_58oYxG3P2oZezf?t=1737983886',

Related Request ID(s)
58oYxG3P2oZezf

What have you already attempted?
Submit form for ability to generate virtual card

What are you working on?
API to genearete virtual card

cursive heronBOT
#

@deft scarab pressed the πŸ“š Doc or Guide button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Link to the Doc/Guide in question
https://docs.stripe.com/js/elements_object

Question
I'm setting up a flow using Stripe Elements to create a subscription with a 7-day free trial. When using a credit card, everything works fine. However, when using Apple Pay, it displays the subscription amount instead of showing a $0 charge since the user will be in the free trial period.

Could you help me understand how to resolve this issue?

What have you already attempted?
I'm setting up a flow using Stripe Elements to create a subscription with a 7-day free trial. The current flow is:

Create the customer.
Create the subscription with expand: ["pending_setup_intent"].
Retrieve the setupIntent.client_secret.
Initialize the Elements component with options={{ clientSecret }}.
This works fine with a credit card, but when using Apple Pay, it displays the full subscription amount instead of showing a $0 charge, even though the user is in the free trial period.

#

@muted escarp pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
According to the docs, a Refund may result in a status of `requires_action`, what action might be required and by whom? For payments it is clear that this is about 3D Secure, but it's not clear what would happen for a refund?

Related Request ID(s)
N/A

What have you already attempted?
I haven't seen this status before, but I noticed in the docs and wanted to make sure the case was covered.

What are you working on?
https://www.withflex.com/

#

@drifting cargo pressed the πŸ“‘ API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
When we have a Product with multiple Prices, and we create a Subscription with each of those Prices, the generated Invoices are hard to understand. It is not clear which line corresponds to which Price. It is particularly difficult to understand when a Price has different tiers.

With a One-Time Price, it generates an InvoiceItem, on which we're able to edit its Description. However, with a Recurring Price, it only generates an InvoiceLineItem, on which we can only update tax-related fields, but not its Description.

Is there a way to make the InvoiceLines more descriptive? Thanks in advance!

Related Request ID(s)
Could not find any!

What have you already attempted?
From the Stripe docs (https://docs.stripe.com/invoicing/integration/workflow-transitions), I understand that an Invoice is only editable when in Draft. I also tried disabling the AutoAdvance option, to test whether InvoiceLineItem's Descriptions would be editable then (they weren't).

I also tried explicitly assigning InvoiceItems on the Subscription (on top of the Items), but it's not supported for Recurring Prices.

The last solution would be to create multiple products, each with one price only, but this is not ideal in terms of administrating them.

Is there other solutions? Thanks!

#

@zenith vault pressed the πŸ§‘β€πŸ’» Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
await this.stripeService.transferToConnectedAccount(
String(delivery?.acceptedJobs?.biddedAds?.ad?.amount),
delivery?.acceptedJobs?.mover?.companyId?.stripeAccountId,
delivery?.acceptedJobs?.biddedAds?.ad?.id,
delivery?.acceptedJobs?.biddedAds?.ad?.transactions[0]?.chargeId,
);

Question
the issue is that i am using test cards and receiving this error on transfer that is:

You have insufficient available funds in your Stripe account. Try adding funds directly to your available balance by creating Charges using the 4000000000000077 test card.

What have you already attempted?
i have tried and researched but didn't know the issue

What are you working on?
stripe connect

#

@ivory fjord pressed the πŸͺ Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I was wondering how I should setup my environments. It seems like stripe does not allow eventbridge in test mode

Related Event ID(s)
N/A

What have you already attempted?
I have connected my live account to my prod environments and I use a sandbox for dev

What are you working on?
I’m trying to get my environments set up