#dev-help

1 messages · Page 94 of 1

cursive heronBOT
#

@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/billing/subscriptions/overview

Question
When I create a subscription using the customer's default payment method and save that payment method to the subscription, can we remove the customer's default payment method from Stripe? Once we remove the customer's default payment method from Stripe, will the auto-renewal process still occur?

What have you already attempted?
not attempt need a guide, please.

#

@ashen hemlock pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
In the stripe dashboard there's a button to "Download confirmation of account ownership". This PDF generated by Stripe is very handy to us, since a lot of our customers ask for it, however it's very tedious to have to do it manually. Is there any API that offers a way to programatically generate it?

You can find this button in
https://dashboard.stripe.com/customers/$CustomerID/cash_balance_transactions/$currency

Related Request ID(s)
Not logged unfortunately

What have you already attempted?
I've looked in the docs, checked stackoverflow and checked the request that's coming out of the client, but it uses dashboard.stripe.api

What are you working on?
Automating the generation of the account ownership PDF

#

@tiny escarp pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hello,
I would like recommendations on the best use case for Stripe to hold funds from connected accounts:
I run a service marketplace and in the case of a canceled reservation, I have no guarantee that I can recover money from the seller to refund the customer. I therefore have 2 solutions:

Doc/Guide Links
https://docs.stripe.com/connect/accounts

What are you working on?
Service marketplace

#

@twilit viper 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/multiple-products

Question
Hey, this guide doesn't explicitly mention anything about collection_method but am I correct to think that if I offer a monthly recurring product "A" (which is charged automatically) and a monthly recurring product B (which is charged manually), I should be creating two separate subscriptions?

As far as I can tell from the API, it seems that collection_method is set in the subscription object, not the subscription_item object and therefore, I will need to have 2 different subscriptions for each collection method, right?

What have you already attempted?
Checked out the subscription and subscription item docs which seem to confirm the above.

What are you working on?
Stripe Marketplace App to connect to a platform for digital subscriptions

#

@modest hill 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 don't want to create new customer for my `subscription` mode
I have tried `payment` mode and it is not creating new customer based on email

What have you already attempted?
I have already tried passing different parameters

What are you working on?
i don't want to create new customer for `subscription` mode when `checkout.session.completed` webhook is called

#

@proud scroll pressed the 🤨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
I am expecting paypal payment method to work.

What actually happened?
When we are trying the buy with paypal we had encounter with this code ( I will provide ss) it says the provided payment methods dont match the expected types but It is matcing.

Reproduction Steps
When you try with the paypal payment method you can encounter wtih this problem in this link https://q.mindguru.life/tr/plans?id=256

Question
How can we solve this problem?

What are you working on?
Adding paypal as a payment method

cursive heronBOT
#

@vale plume pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I'm generating checkout sessions via API. How can I force the receipt to be automatically sent once the payment is done?

Related Request ID(s)
Receipts

What have you already attempted?
I have enabled the email notification in the dashboard but it is not getting sent. Also in the test environment I can see the invoice.sent event but I'm not receiving anything. Email address is correct there

cursive heronBOT
#

@fierce forge pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Do we support multiple email with billing receipts?

Related Request ID(s)
Billing Email

What have you already attempted?
Integration with stripe for payment transaction is done.

What are you working on?
Integration of stripe for payment transaction.

#

@fierce sphinx pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hi

I have a problem with scheduled subscription cancel. When I cancel subscription by setting cancel_at attribute during modify subscription api, last invoice is never automatically paid. I would expect it to be paid after an hour as usual. How can I fix this.

Related Request ID(s)
sub_1QRag0HJgsdx4qPxpvbdXqad

What have you already attempted?
Testing via teat clock and without it

What are you working on?
Scheduled subscription cancel

cursive heronBOT
#

@tidal bramble pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
I'm trying to implement the express checkout element.

When confirming the payment, I use the code as shown in the docs:

```
const { error } = await stripe.confirmPayment({
elements,
clientSecret,
confirmParams: {
return_url: 'https://myurl.com',
},
redirect: 'if_required',
expand: ["on_behalf_of"]
});

```

Question
I'm getting the following error:

```
The provided on_behalf_of (acct_*****************) does not match the expected on_behalf_of (null). Try confirming with the same parameters in both the API and Stripe Elements.
```

What have you already attempted?
I've scoured through the docs to figure out where else can I pass the on_behalf_of property. It's nowhere to be found.

I know that we're passing it when we create the payment intent on the server. Why on earth is it not getting captured here, I just don't understand.

#

@junior forum pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
stripe.handleNextAction({
clientSecret: response.payment_intent_client_secret,
}).then(function(result) {

Question
I have set manual confirmation, but was wondering that it seems that 3DS redirects and "then(function(result){" part is never caught with any of the test cards mentioned on the Stripe website, any information that would "then" be executed and under which circumstances and are there any test cards that would simulate this.

What have you already attempted?
Tried all the cards, but I get redirected to test 3DS site

What are you working on?
Payments for SaaS Scheduling service

#

@paper spruce pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Should i be using payment_intent.succeeded webhook or checkout.session.completed? I know that if I use checkout.session.completed i also need to use checkout.session.async_payment_succeeded, but payment_intent.succeeded might just cover both?

Related Event ID(s)
payment_intent.succeeded, checkout.session.completed, checkout.session.async_payment_succeeded

What have you already attempted?
.

What are you working on?
E-commerce Store for virtual products

cursive heronBOT
#

@foggy swallow pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I'm integrating stripe link on my website through Stripe payment element. We are passing all parameters and it's not prefilling the email and other details. Below is the payload we are passing to stripe payment element
{
"mode": "payment",
"amount": 40000,
"currency": "usd",
"captureMethod": "automatic",
"payment_method_configuration": "pmc_1OaAR1FpU9DlKp7RH0HHU4xH",
"defaultValues": {
"billingDetails": {
"email": "testusernode+link1@gmail.com",
"phone": "01234 554 664",
"name": "Abhansh Giri"
}
}
}

Related Request ID(s)
NA

What have you already attempted?
Tried going through documentation and this is how it's suggested to be done.
https://docs.stripe.com/js/elements_object/create_payment_element#payment_element_create-options-defaultValues

What are you working on?
Saas platform, We have a Platform stripe account as well.

#

@spring light pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How can I test if the level3 data I have added to the payment intents achieve L3, L2 or L1 costs? Is there any way to find this out on Stripe's test environment?

Related Request ID(s)
pi_3QRuXHHxNT300n1J1Lu1i2Xp

What have you already attempted?
I have added all non-optional fields to achieve level 3 network costs. Ship from/to zip is excluded. Is it mandatory to reach L3?

cursive heronBOT
#

@timber phoenix pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I am trying to build an app that moves Stripe customers to my mailchimp account but I realised that guest customers cannot be moved.

I know that guest customers are created when a customer is not attached to a checkout session
But what is the business logic/decision as to why Stripe creates guest customers and not just create a real customer directly? Because the information used in creating a guest customer is sufficient in creating a real customer. So what is the logic behind it and also is there an issue in moving this data over?

Doc/Guide Links
https://docs.stripe.com/payments/checkout/guest-customers

What are you working on?
An app that moves Stripe customers to my Mailchimp account

cursive heronBOT
#

@vale plume pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How can I send a product description via API so it is has the formatting that I need. It is basically line breaks what I need

Related Request ID(s)
product->description

What have you already attempted?
I have tried <br>, \r\n, \n\n but nothing works. Is there any workaround for this? Description of the product look rubbish without different paragraphs

#

@astral owl pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Is it possible to update the default currency for a connect account via the API? I am getting an error on post. (see other section)

Related Request ID(s)
req_hAWpbNhtV8JOyW

What have you already attempted?
[2024-12-03 13:19:45] production.INFO: Error sending request to Stripe: (Status 403) (Request req_hAWpbNhtV8JOyW) This application does not have the required permissions for the parameter 'default_currency' on account 'acct_1O4mLkKCc0YxVqNU'.
Stripe\Exception\PermissionException: This application does not have the required permissions for the parameter 'default_currency' on account 'acct_1O4mLkKCc0YxVqNU'. in /Users/benmartin/Projects/webapp/vendor/stripe/stripe-php/lib/Exception/ApiErrorException.php:38
Stack trace:

#

@spare pasture 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/testing

Question
I am trying to test 3D secure cards with an authentication flow of "frictionless" but I am not being able to, is there a specific test card I can use for this end?

What have you already attempted?
I've tried doing best practices and making sure all billing data was coherent and correct to improve the changes of having a low-risk transaction and trigger the frictionless flow.

What are you working on?
We've had the stripe integration working for our app, but recently during the integration of GA4 we noticed that a lot of orders going through with a frictionless authentication flow were not tracked.

cursive heronBOT
#

@somber tusk pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I'm having trouble to create a Subscription with Boleto as payment method and setting its due date for 3 days, not today. Currently after creating the Boleto, and the Subscription, it's "due_date" on the PDF is always today.

Related Request ID(s)
req_t2yyDVZXIsRVmn, req_mMojzZv8GhjU2l, req_s5oYi1JhM6W7SO, req_hkVSqsaFpSSlO4, req_nVa6fpz8sJu2kF, req_mnypuZnfYq9avf

What have you already attempted?
What I currently do: I create the Boleto payment method beforehand and attach it to the customer (the prop expire_after_days cannot be passed at this time). Then I create a Subscription using collection_method: 'charge_automatically', so it creates a payment intent. Then using the first_invoice.payment_intent, I try to update it setting the boleto.expire_after_days prop to 3. Then only after that, I confirm the payment intent (this makes the PDF available)
But the boleto is still generated with a due date of today. (Attached are all the requests in order)

What are you working on?
My scenario is: user is at checkout page, selected a subscription plan, fills the necessary info, select the payment method (boleto). At this moment I do all the steps mentioned above.

cursive heronBOT
#

@undone rain pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hi! I'm writing my first Stripe integration and I'm a bit confused about the need to add products in the stripe backend. Is that a requirement, or can I create a payment without a product in the backend? If it's a requirement, would I be right in thinking I need to sync the products to stripe to get the Id if I'm keeping the products locally?

Doc/Guide Links
https://docs.stripe.com/products-prices/how-products-and-prices-work
https://docs.stripe.com/products-prices/getting-started#import-products-prices
https://docs.stripe.com/checkout/quickstart?lang=dotnet

What are you working on?
I'm writing an industry specific app which facilitates sales of products for clients, but most staff don't have access to the stripe account.

cursive heronBOT
#

@ebon inlet pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
`type` = 'customer.subscription.updated'
`data_object_status` = 'unpaid' AND `data_previous_attributes_status` = 'past_due'

Question
I am currently using Stripe Events data to pull out what companies involuntarily churned. It seems that since September, the events data may have changed how we track Involuntary Churn events. What would you use from events data to look at when a company when from unpaid to past_due?
I am looking at `type` = 'customer.subscription.deleted' for voluntary churn.

What have you already attempted?
I have looked at the events data to try to decifer what else would qualify as an involuntarily churned company

What are you working on?
Calculating my companies Churn

#

@waxen socket pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Can i get 2 URL's whitelisted for Stripe's vault and forward service?

Related Request ID(s)
n/a

What have you already attempted?
I have emailed my stripe support team yesterday but have not had a response yet.

What are you working on?
Stripe Vault and forward

cursive heronBOT
#

@astral talon pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I need to extend the current billing cycle for a customer by some days. Is this possible?

Related Request ID(s)
Not applicable

What have you already attempted?
I looked at the options in the dashboard to update a subscription.

What are you working on?
Billing integration for a usage based product.

#

@umbral tartan pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
When an user creates its payment method i dont want it to be a "prepaid" card. There is a way to forbide a card type?

Related Request ID(s)
--

What have you already attempted?
I didnt attemped anything yet

What are you working on?
TripWip payment service

#

@merry echo pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I want to set the invoice billing interval to batch payments by day

Related Request ID(s)
N/A

What have you already attempted?
I have passed in:

```
pending_invoice_item_interval: {
interval: "day",
interval_count: 1,
}
```

to the `stripe.subscriptions.update` SDK but it seems like the billing is still happening instantly

What are you working on?
Entity management software

#

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

Code
No code asdfljasdouiasdof

Question
I am getting the following error "controller-e695c154268dbc9036d8204e832b1a2a.js:1 [Stripe.js] You have not registered or verified the domain, so the following payment methods are not enabled in the Payment Element:

- apple_pay"

What have you already attempted?
I have disabled apple pay from my account as a payment method and this error will not stop

#

@rugged vault pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
In the company element of the account object I see the `name` field which refers to the `legal business name`. Is there a way to also get the `business name` field in that account object or is the `legal business name` the only name that I can get for the company?

Related Request ID(s)
https://dashboard.stripe.com/webhooks/we_1PYQHYFMmU1871We9CuTq3lh

What have you already attempted?
Read the docs.

#

@ruby crag pressed the 🤨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
I expected that our customers from Puerto Rico can create connected accounts through Stripe connected onboarding.

What actually happened?
I got an error: "PR is not supported on Stripe".

Reproduction Steps
Create an account that is from Puerto Rico through Stripe embedded component.

Question
Are Puerto Rico customers able to create connected accounts through Stripe. I'm finding ambiguous info on the docs.

What are you working on?
Building a product that is connecting customers with sellers.

#

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

Code
{snip} t available"))})),a.addEventListener("error",(function(){n(new Error("Failed to load Stripe.js"))}))}catch(A){return void n(A)}else t(null)} {snip}

Question
We've been getting the "Failed to load Stripe.js" error on Sentry excessively (93k in the last 30 days), although Stripe seems to work fine. For what I've seen, there should be already a fix https://github.com/stripe/stripe-js/issues/26, but we still have it. It appears at first load.

What have you already attempted?
I've been trying to reproduce on dev but it hasn't been possible, I used this https://github.com/stripe/stripe-js/issues/26#issuecomment-1477716731 as a guide but still nothing. I wonder if I should use @stripe/stripe-js/pure?

What are you working on?
React Native, stripe/react-stripe-js: 2.1.1, stripe/stripe-js: 1.54.1, stripe/stripe-react-native: 0.37.2

#

@storm cave pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
const session = await stripe.checkout.sessions.create({
payment_method_types: ["card", "sepa_debit"],
automatic_tax: { enabled: true },
})

And when i create

const priceUpdated = await stripe.prices.update(
product.default_price as string,
{
tax_behavior: "exclusive",
},
)

// Update the product with the correct price
await stripe.products.update(product.id, {
default_price: priceUpdated.id,
})

Question
I have an issue with the stripe checkout, the user need to click on a method payment to see the TVA applied on the checkout, how i can fix it ?

What have you already attempted?
Modify the price tax_behavior link to the product

What are you working on?
Subscription with product

cursive heronBOT
#

@cinder tendon pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Do you have any API endpoints that can be used for health check (and maybe don't count towards our usage?)

Related Request ID(s)
n/a

What have you already attempted?
Asked the AI Bot

What are you working on?
We are working on standing up an integration with your sales tax API. Our setup includes a health check.

cursive heronBOT
#

@opaque sleet pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How can I apply VAT at checkout without having to rely on the user entering their billing information?

VAT appears at checkout when created via the API but I have to enter the billing info before the actual value and rate appears. As it stands, I am only supporting one country which is GB so I don't really need the customer to be selecting the country (it would be ideal to just even remove the country and region field if this is possible)

Related Request ID(s)
req_vKZoAfgh3ZNBks

What have you already attempted?
I have tried using the `shipping_address_collection` parameter and added the `allowed_coutries` to just be `GB` which works (kinda). It limits the shipping addresses to be GB (but I don't really need the shipping address as it's digital goods) but I am still able to untick the option of billing info is different to shipping and select a country outside of GB.

I have implemented a rule via radar to validate any cards and making sure that their address country is in GB, however, doesn't quite answer my question.

What are you working on?
Integrating stripe to a GB only (for now) web portal which uses the Stripe API for creating checkout and billing sessions, updating subscrtions, and creating subscription schedules.

#

@tacit pumice pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How do you know what Transactions are part of a Payout?

Doc/Guide Links
Here (https://dashboard.stripe.com/acct_1QPow6QHZ2cyZE3n/test/payouts/po_1QQf6TQHZ2cyZE3nQhK12CZ2) I can see a payout and it's corresponding transactions. But from the API I can not tell how you build this view, since I don't see how to reference transactions with a payout.

What are you working on?
Marketplace using Stripe Connect

#

@broken crown pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
The problem is that the amount under the overage is not showing up. I would expect that if I have the threshold of 200, and I used 199, then I would receive an invoice at the end of the month with quantity 199 * 0$ - however it is returning 0 quantity instead, and if I used 250, then it showed up as 50 , instead of one 200 with 0$ and 50 with the overage per unit price. Is there any way to make it behave like this?

Related Event ID(s)
evt_1QRyllGhDr1u9rxFRG8Vmtdw

What have you already attempted?
I haven't tried anything, because the event simply doesn't contain the information that I expect it should

What are you working on?
Hi, I am trying to implement the overage model, explained here: https://docs.stripe.com/billing/subscriptions/usage-based/pricing-models?dashboard-or-api=dashboard#fixed-fee-and-overage-model

#

@stiff sparrow pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hello, If I pin the API version globally in the app. Can we still override it in individual API calls that requires a different api version? Are there any side effects with that?

Related Request ID(s)
NA

What have you already attempted?
pinning API version globally

cursive heronBOT
#

@last kelp pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I need help setting up two services at the checkout. One should be a one-time payment, and the other should be scheduled to be paid on a specific date (e.g., February 15), regardless of when it is purchased before this date

Related Request ID(s)
nothing

What have you already attempted?
Set up a checkout with the two services. But I cant manage to get the other one to start at a specifik date

What are you working on?
memberhsip

#

@true bear pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How to generate a specific link through the API for our connected accounts to login?

We create standard connected accounts for our users, however some already have existing Stripe accounts. We provide the initial link but often times they will not complete the onboarding setup and lose track of which account they have connected with our platform.

We know the connected account id, is it possible to generate a specific link that we can surface to them in our app that will take them directly to their connected account login?

if so, how? if not, what can we provide?

Related Request ID(s)
req_kq7It4PbXpvij6

What have you already attempted?
Looked at the API docs here: https://docs.stripe.com/api/account_links

would the stripe.accountLinks.create endpoint get them to the right place?

* note the related req ID is not necessarily relevant but is for our connected platform

What are you working on?
We run a SAAS and part of our software facilitates our users (standard connected accounts) to collect payments through our stripe integration

#

@proper arch 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/express-checkout-element/accept-a-payment

Question
Im implementing both the express checkout element and payment element on the same page, but am now seeing two Apple pay buttons.

What have you already attempted?
Have tried changing the ordering of the doms and js

What are you working on?
Payment page which has a nice big Apple pay button

#

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

Code
No code to include here, but the verification ID is vs_1QS08sL7ilRdQXxEus5sbjl0

Question
Hello

A user reports the attached error after trying to scan their selfie during verification. The error does not really tell us much, so I'm not sure what to do here.

What have you already attempted?
Nothing yet

What are you working on?
ID verification

#

@modern flax pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Is there a way to allow customers to apply promo codes / coupons to their existing subscription via the billing portal?

Related Request ID(s)
N/A

What have you already attempted?
I can do this manually or using the API but I'm hoping there's a way to let the users to it themselves through a stripe flow so that they can see a preview of the next invoice and I don't have to build custom front-end components to handle this use case

What are you working on?
FinTech SaaS

#

@hexed mist pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I moved some products and prices around the other day, and something has gotten really weird with my prices. I have active products with active prices in my stripe dashboard, but when using the API, i'm not getting any of the active prices back.

Related Request ID(s)
req_sgz8THDo6DJm57

What have you already attempted?
One specific price i'm talking about is:
price_1PcFi8CAMZtSw1NMDkSKcFAF

The product is:
prod_PaVoCWyB98ymhi

I just went into the dashboard -> workbench -> shell, listed prices, and that price doesn't show.

#

@prime lark pressed the 🤨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
User had a subscription. They deleted the account, which we called stripe canceling the subscription for that user, and we didn't want to bill them for the next billing period.

What actually happened?
User had a subscription. They deleted the account, and we called Stripe's cancel subscription API, but the current subscription status was in a due state because payment had failed. As a result, Stripe kept retrying even though we called the cancel subscription method.

Reproduction Steps

  1. Purchase a subscription
  2. Create failure payment status
  3. Stripe will retry 8 times as that we have in the settings
  4. Now in the retry period we called cancel subscription API
  5. subscription doesn't get canceled and Stripe still keeps retrying
  6. If a subscription retry works and we charge the user then we continue with the next billing

Question

  1. How to force cancel a subscription if it's in the payment failed state?
  2. How to cancel a subscription and stop it from retrying again.
cursive heronBOT
#

@modern flax pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I've created a Billing Portal configuration allowing customers to input a promotion code. When I create a billing portal session with this config, I do not see the option to enter/redeem a promo code.

Related Request ID(s)
N/A

What have you already attempted?
I have tried generating a session and cannot see the option.

What are you working on?
Fintech SaaS

#

@cosmic pelican pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I am trying to group some payments using the transfer_group attribute, to be able to make just one transfer using the transfer_group as reference. It is not working. It is validating the Balance instead of using the transfer_group payments balance.

Related Request ID(s)
req_87APm6XXYeM6l2

What have you already attempted?
This transfer works fine when you refer to the one single payment_id.

What are you working on?
User wants to group transactions for one single transfer/payout.

#

@cloud sail pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
<form id="payment-form">
<div id="payment-element">
<!-- Elements will create form elements here -->
</div>
<div id="address-element">
<!-- Elements will create form elements here -->
</div>
<div id="error-message">
<!-- Display error message to your customers here -->
</div>
</form>

Question
Hi, I would like invoices to include the customer's name and address and tax id and for the customer to be able to update this information. If I use the hosted invoice portal, I can change the invoice information and also add the tax id here. Is this also available in Stripe elements?

What have you already attempted?
Searched for solutions in documentation.

#

@tawny zenith pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We have a use case where a customer will pay $50 down payment. Upon being vetted, the customer will pay the remaining balance. We're currently doing this through Stripe Connect Checkout. What is the best way to do this?

Related Request ID(s)
NA

What have you already attempted?
NA

#

@scenic yoke pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Is it possible to know that a payment was paid thru the stripe dashboard or through our platform?

Related Event ID(s)
pi_3QHpatRR4yBtyfvJ1dRc22M6

What have you already attempted?
Looking at the stripe dashboard

What are you working on?
We are wanting to update our system when someone pays the payment through the stripe dashboard with a credit card but unsure if its possible to know where something was paid

#

@lethal skiff pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
When adding a specific SubscriptionItem to an existing subscription, then applying a Discount to the Subscription, the Subscription gets updated to the 'past_due' state, even though I do not want that to happen. It is an iDeal subscription and this should remain active.

Related Request ID(s)
evt_1QS1IxDoSXTg0EpxpzvRaqXc, evt_1QS1IxDoSXTg0EpxpzvRaqXc, evt_1QS1IyDoSXTg0Epxlgcapg77

What have you already attempted?
I've tried using Laravel Cashier before but stepped away from that. Specifically event evt_1QS1IyDoSXTg0Epxlgcapg77 is causing the Subscription to go to past_due and not have the subscription active anymore, even though it should stay that.

cursive heronBOT
#

@autumn halo pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I need help understanding the different ways to create one time payments and recurring payments for checkout sessions and the pros and cons of each technique. I want to be able to use the best practices way if possible and stuff that would be good for reporting purposes.

Related Request ID(s)
N/A

What have you already attempted?
https://dpaste.org/DpZyR#L4,5,6,7,8,9,16,40,41,42,43,78,79,80,81,82

Creating Price IDs first then passing that into the checkout session line items price field.
Passing in recurring interval into the line items price_data
Passing in a product ID versus passing custom product_data.
Not creating a price ID at all and have stripe do it within the checkout session.

#

@warped crest pressed the 🤨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
When a renewal charge on a subscription fails, the subscription should be canceled. It's worked like this for years.

What actually happened?
In the last 3 weeks, I've seen 3 different subscriptions that were NOT canceled when a charge failed, even though the invoice was voided.

Reproduction Steps
I don't know how to reproduce this, but I can give you charge/invoice ID numbers.

Question
Why are failed charges not canceling subscriptions, which is a change in the behavior that has existed for years?

What are you working on?
A SAAS

cursive heronBOT
#

@crisp yew pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I have a customer loyalty app, we have many vendors on the app, their customers download our app and redeem promotions the vendors host on the app in person, we offer the promotions to the customers via a subscription, we want to use stripe as a payment processor for this in the app, we also have a new tool for our vendors, where their customers can pay via the app, the app will keep track of when they purchased last and give them discounts based on how long they take to come back, the sooner they return, better discount they get, we need a payment processor for this, we want to use stripe.

Related Request ID(s)
not sure what this is

What have you already attempted?
for the dynamic coupon (the frequency based reward tool described in the question) we previously integrated with moneris, but they did not approve our live account as they said they did not have the risk for us, they said we need Payfac services and they only offer payment processing services, they said they only work with merchants directly not via a party that would have many vendors under them,

What are you working on?
A customer loyalty app.

#

@solar marten pressed the 🤨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
When setting up Payment Elements with a Connected Account (using the pkey of the platform account, and the accountId of the Connected Account), and having a Stripe Connected Account configured to support Apple Pay, I should be able to display Apple Pay as a payment method in the Payment Element.

What actually happened?
I've been unable to get Apple Pay to display as a payment method option in the Payment Element.

Reproduction Steps

  1. Create a Connected Account for testing, and set up Apple Pay as a payment method
  2. Build a Payment Elements integration on a validated domain
  3. Note that the Payment Element WILL render Apple pay when using a direct integration but WILL NOT when using a connected account mode for Payment Elements

Question
How can I configure my integration to support the Apple Pay payment method for Connected Accounts using Payment Elements?

What are you working on?
A Connect platform integration to accept payments.

#

@thick cave pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We create a subscription on checkout and charge the first invoice immediately during checkout. This is to allow a user to pay via installments.

If a user enters their credit card and it declines (fails to charge the first invoice) and does not put in a successful card... we want to treat that whole checkout as failed. It is unclear to me if the subscription will continue to try to charge the failed card though or if any retries will just fail.

If the subscription will continue to retry the failed card, is there a recommended way to catch this and cancel the subscription (accounting for the case where someone may put a new successful card after the failure)

Doc/Guide Links
https://docs.stripe.com/billing/subscriptions/overview

What are you working on?
eCommerce with payments through installments

#

@upbeat panther pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
Stripe::SubscriptionSchedule.create({
customer: '{{CUSTOMER_ID}}',
start_date: 'now',
phases: [
{
items: [
{
price: '{{PRICE_PRINT}}',
quantity: 1,
},
],
end_date: 1690873200,
},
{
items: [
{
price: '{{PRICE_DIGITAL}}',
quantity: 1,
},
],
iterations: 11,
billing_cycle_anchor: 'phase_start',
},
],
})

Question
Can I use SubscriptionSchedule to just update the next invoice date?
I don't want to change subscription items or schedule anything for future.

What have you already attempted?
I can do it by adding the trial_end to the subscription but it has its limitations and I don't want to keep subscription in trial if I am changing it to a year in the future.

What are you working on?
stripe subscriptions integration

cursive heronBOT
#

@upper fulcrum pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I am attempting to attach the result of a FinancialConnections setup dialog as an external payment method in a Connected Account.

Whenever I attempt to tokenize the payment_method returned from stripe.stripe.collectBankAccountForSetup() I receive an error "resource_missing" for the supplied payment method ID.

Related Request ID(s)
req_RoGFQOPq93drwS

What have you already attempted?
I am following the documentation here:
https://docs.stripe.com/connect/payouts-bank-accounts?bank-account-collection-integration=direct-api&lang=go&shell=true&api=true

The difference is that I am not attaching the SetupIntent to a particular customer.

I create a SetupIntent for a connected account:

// psuedo-code
stripe.SetupIntentParams{
FlowDirections: in/out
PaymentMethodTypes: ["us_bank_account"]
}

Then run the financial connections UI in the browser:

stripe.collectBankAccountForSetup()

Then post the resulting payment_method to my server were tokenizing returns the error.

What are you working on?
Issuing/treasury application

#

@violet marlin pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Link payment method is being rejected, and I cannot figure out why. The fact that it even shows up in our Element form leads me to expect it to work (ie, as a valid payment method). But when the form is then submitted, we get this error:

The PaymentMethod provided (link) is not allowed for this PaymentIntent. Please attach a PaymentMethod of one of the following types: card, us_bank_account, cashapp. Alternatively, update the allowed payment_method_types for this PaymentIntent to include "link".

What am I missing, that's causing Link to show up as an available payment method, but then fail?

Related Request ID(s)
req_AyRNeGpy42Bnbj

What have you already attempted?
Tried adding automatic_payment_methods.enabled = true but it didn't seem to matter.

What are you working on?
Fundraising platform for non-profits, via Connect accounts.

cursive heronBOT
#

@cloud sail pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
paymentMethod, err := paymentHandler.StripeConnection.GetPaymentMethod(c, setupIntent.PaymentMethod.ID)
if err != nil {
return errors.New("payment method not found")
}
address := paymentMethod.BillingDetails.Address

Question
I create an setup intent for collecting a payment method. I also collect the address with stripe elements. On my backend I fetch the webhook "setup_intent.succeeded". I read from the setupIntent.PaymentMethod.ID. I then fetch the address: paymentMethod.BillingDetails.Address.

Somehow when I use the test credit card the address is filled with the informations from from the stripe elements. But when I select PayPal the address is empty?

What have you already attempted?
Searching for solution

cursive heronBOT
#

@pale abyss pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I have been fighting with overseas email support with this for the last 2 weeks as they refuse to escalate my ticket and keep linking me the same urls over and over again and I am at my wits end on how to get help. Support didn't used to be like this.

I am integrating https://docs.stripe.com/connect/deliver-tax-forms#file-deliver-embedded and want to allow our connected accounts to opt in or out of paperless delivery, however after adding the Account management connect embedded components I do not see anything about opting in or out of this feature on the component itself.

Related Request ID(s)
req_cwzRbJxIGnhDiN

What have you already attempted?
I made sure to enable 1099 misc capabilities on the connected account and it is located within the US. It has also processed over $1000 in test mode.

What are you working on?
Allowing connected accounts to self opt into paperless 1099 delivery through the Account Management connect embedded component.

#

@tender tundra pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I'm testing buying subscriptions. The way my current workflow is set up is that I listen for payment_intent.succeeded, create a customer, and lastly create the subscription. However, the create customer call always fails with 'This PaymentMethod was previously used without being attached to a Customer or was detached from a Customer, and may not be used again.' Payload looks something like this
baseObjectPayload = {
payment_method: paymentSource,
...mainData,
address,
metadata,
}
where paymentSource is event?.data?.object?.payment_method

Related Request ID(s)
req_LAgcVTv61fF4P5

What have you already attempted?
I tried different emails and credit card numbers but I always get the same error.

What are you working on?
Subscriptions

cursive heronBOT
#

@pale zodiac pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
For my Stripe Connect integration, I'm running into an issue with failed refunds when the balance transaction is in a different currency than the charge. The Transfer Reversal to our platform account is a different amount than the `balance_transaction` and `failure_balance_transaction` on the refund.

The part that is causing issues is when we need to create a new Transfer (from our account to the connected account) when the refund fails. I want to set the `source_transaction` field of the Transfer to the original charge, but if I transfer the amount of the refund it says the amount is more than the original charge.

How do I get the right amount to transfer?

Doc/Guide Links
https://docs.stripe.com/connect/destination-charges?platform=web&ui=stripe-hosted#failed-refunds
https://docs.stripe.com/connect/separate-charges-and-transfers?platform=web&ui=stripe-hosted#transfer-availability

What are you working on?
Processing refund failures in a Stripe Connect integration.

cursive heronBOT
#

@steep slate pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Can we receive name of bank where card belongs ?

Related Request ID(s)
checkout setup -> bank account

What have you already attempted?
Hello,
I have question. Lets say user changes his payment method through stripe checkout SETUP.

We can receive brand of card from payment method . Can we also receive name of the bank where card belongs ?

cursive heronBOT
#

@lilac smelt pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Is there any API call to reverse the transfer reversal?

Related Request ID(s)
Nothing

What have you already attempted?
I made a transfer reversal. I need to reverse that. I need to send the money back to connected account.

What are you working on?
While doing the refund, I am doing the transfer reversal, when the refund is not successful, I need to reverse the transfer reversal..

#

@tawny zenith pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Getting: StripeInvalidRequestError: 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.

We're using stripe.checkout.sessions with setup_future_usage: 'off_session'. How do we go about charging via API after?

Related Request ID(s)
NA

What have you already attempted?
NA

cursive heronBOT
#

@versed radish pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
nodejs / ts

const subscription = await this.stripeClient.subscriptions.update\(
  latestSubscription.id,
  {
    items\: \[
      {
        id\: latestSubscription.items.data\[0\].id,
        price\: providerConfig.customAttributes.stripePriceId,
      },
    \],
    trial\_end\: 'now',
    proration\_date\: Math.floor\(Date.now\(\) / 1000\),
    proration\_behavior\: 'always\_invoice',
    automatic\_tax\: { enabled\: process.env.STRIPE\_TAX\_EN

Question
When updating/upgrading/downgrading a user subscription using

his.stripeClient.subscriptions.update(

how can we handle the payment failed ?
Is there a specific status code

What have you already attempted?
look into the types and docs on the error codes

cursive heronBOT
#

@sonic prawn pressed the 🤨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
we expect Stripe payment to sync through from MongoDB on the EC2 instance.

What actually happened?
No data is being send from MongoDB to Stripe.

Reproduction Steps
We complete an order on the VTEX platform and get the order confirmation, however no payment data is getting synced to MongoDB and Stripe.

Question
How do we sync the data again, why is this happening?

#

@velvet bane pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Does the customer.subscription.updated event get created for every change on a subscription? Or only certain fields changing? For example, will this event get created if only the application fee is changed?

Related Request ID(s)
sub_1QDIUoHzKnT5HW5aeqRD2cA5

What have you already attempted?
Looking at documentation but can't find anything.

What are you working on?
Syncing object state as a marketplace platform

cursive heronBOT
#

@wary lantern pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
hi! i'm using the tax beta that links a payment_intent to a given tax calculation. i just implemented gift cards / the ability to pay for a transaction from a user's account balance. i'm calculating tax on the full value of the transaction, but only charging the user for the total — the applied balance. i'm trying to figure out the best practice for handling this in Stripe, for tax reporting, and in refund situations.

Doc/Guide Links
tax documentation, payment intent documentation

What are you working on?
peer to peer clothing rental marketplace

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/api/issuing/cards/object#issuing_card_object-spending_controls-spending_limits-interval

Question
I wanted to clarify that the all_time interval means if I set a limit to $500 for a card - that I can make several transactions but the total amount cannot exceed $500. So I can have. a $200 transaction and a $100 transaction and another $200 transaction?

What have you already attempted?
Reading the guide

What are you working on?
Stripe Connect + Issuing.

cursive heronBOT
#

@fresh solstice pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We integrate Stripe express checkout via web elements and we need to display some additional Information and ask for final approval after the user clicked PAY in the payment popup. Unfortunately the payment flow cannot be exited without confirming the payment intent with stripe.

Is it possible to modify the time range of a card payment authorization hold?

It defaults to 7 days but we want to decrease that to a minimum of let's say 30 minutes.

I found the "capture_before" property of the charge object but I am not able to modify this property via the API.

Can the authorization hold days(hours) can be configured somehow?

Doc/Guide Links
https://docs.stripe.com/api/charges/update
https://docs.stripe.com/payments/extended-authorization?platform=web&ui=embedded-form
https://docs.stripe.com/payments/place-a-hold-on-a-payment-method?locale=en-GB
https://docs.stripe.com/payments/accept-a-payment?platform=web&ui=stripe-hosted#auth-and-capture

What are you working on?
We want to minimize authorization hold for users who don't finally approve the order but already confirmed payment

#

@trail beacon pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
while using stripe elements, can the address element come after payment element?

Question
in order to reduce friction we are thinking of collecting addressses after payment info is entered and only if payment exceeds a certain value. in order to do this we want the address element to appear after payment element

What have you already attempted?
<AddressSection addressComplete={addressComplete} setAddressComplete={setAddressComplete} nextStep={nextStep} />
<PaymentSection error={error} setError={setError} stripe={stripe} elements={elements} processing={processing} />

right now we are just thinking of interchanging the two

cursive heronBOT
#

@rough citrus pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
https://connect.stripe.com/oauth/authorize?response_type=code&client_id=..........&scope=read_write

Question
I am currently integrating Stripe's OAuth feature into my application and came across the need for a client_id to use in the authorization URL:

arduino
Copy code
https://connect.stripe.com/oauth/authorize?response_type=code&client_id=..........&scope=read_write
Could you please guide me on how to obtain the client_id required for this integration? I have reviewed the documentation but would like further clarification to ensure everything is set up correctly.

What have you already attempted?
I have read this doc and tried to follow it, but I couldn't find any ID: https://docs.stripe.com/connect/how-connect-works

cursive heronBOT
#

@orchid solstice pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
what happens if i pay concurrently for a single payment link ?

Doc/Guide Links
it is not specified in stripe docs

What are you working on?
I have been testing payments using "payment link" feature, I have to make sure if a duplicate payment recorded for the link is refunded automatically.

cursive heronBOT
#

@zealous prism pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hi,
I'm trying the update my account throw the mobile app. but the stripe is not calling any webook to our server on test mode.
Can you please help with why the webhook not working in test mode?

Related Event ID(s)
I don't have any Event Id cause it's not calling the events. I'm sharing webhook id we_1OV5lUBGWudGAGFMv4CwdUyb

What have you already attempted?
I updated my account and also added the webhook signing secret correctly bu not getting any webhook call from stripe.

What are you working on?
I'm creating an mobile application for eccomerce website using MERN Stack and ReactNative

cursive heronBOT
cursive heronBOT
#

@gleaming void 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/charges#types

Question
When the fees are being deducted?

What have you already attempted?
We would like to know, when do we get money, when using direct or destination chargers, so when Application fee and Stripe Fee is being deducted.

What are you working on?
We are building marketplace-like platform.

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/subscriptions/billing-cycle#reset-the-billing-cycle-to-the-current-time

Question
For subscription with collection_method set to send_invoice, will the next billing date always be the creation of subscription? Is there a possible way to change the next billing date to the date when payment is confirmed and not sending an invoice?

ex.
November 1, 2024, creates subscription
November 4, 2024, payment is confirmed

Stripe behavior
next billing date will still be November 1, 2025 regardless of when payment is made

Target:
November 4,2025 as billing date

Note:
I only want this behavior on the first payment of the subscription.

What have you already attempted?
I attempted to change the billing_cycle_anchor to now and proration_behavior to none but it still send an invoice. I'm somewhat confused on this behavior.

What are you working on?
Change the next billing date of the first payment on the subscription with send_invoice

cursive heronBOT
#

@wet nebula 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://promptcraft-pro.neocities.org/promptcraft-pro

Question
I have added the Products on the Stripe Dashboard but how do I connect it to my website? I do have my HTML code and I have read the Developer's Doc but they're for testing API only. Sorry, I'm a Non-Coder and I need help.

What have you already attempted?
Have yet to try because the API Key given is for testing purposes only and I really don't know where to add the Connect Payment to my HTML codes.

What are you working on?
Since I've created my Products in my Dashboard which is aligned with my website but I don't know how to add the Payment Connect in it. I did read the Developer's tutorial but all for API Testing only.

#

@turbid cedar pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How to use the beta feature? Specifically need to use this API - https://docs.stripe.com/api/terminal/readers/collect_inputs?lang=curl&api-version=2024-11-20.acacia

Related Request ID(s)
https://dashboard.stripe.com/test/logs/req_6MwhsVpo8xRsoZ?t=1733304994

What have you already attempted?
curl https://api.stripe.com/v1/terminal/readers/tmr_F0pSUAiq8j3TG6/collect_inputs
-u "sk_test_•••xOIv:"
-H "Stripe-Version: 2024-06-20; terminal_collect_confirm_beta=v1;"
-d "inputs[0][type]"=signature
-d "inputs[0][custom_text][title]"=Signature
-d "inputs[0][custom_text][description]"="Please sign below"
-d "inputs[0][custom_text][submit_button]"=Submit
-d "inputs[0][required]"=true

#

@mental pilot pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We are using `bank_transfer` VBAN based payments. If the customer has two different VBAN created, is there any way to get which one they used when funding their balance?

Related Request ID(s)
ccsbtxn_1QFygLIH7tkx0TM8NvtnhOdu

What have you already attempted?
Checking `customer_cash_balance_transaction.created` webhook event of type `funded`, but there is only information about the origin bank account.

cursive heronBOT
#

@tacit pumice pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How do you build the "Overview" section of a specific Payout? The one with a summary of "payments" and "refunds" all added up. It doesn't seem to be part of any API response (?) I need to take that summary data and build a proper invoice for German clients.w

Doc/Guide Links
The view I'm referring to: https://dashboard.stripe.com/test/payouts/po_XXX

What are you working on?
Marketplace using Stripe Connect

#

@cedar isle pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
<div className={styles.addressContainer}>
<AddressElement
options={{ ...addressElementOptions, mode: "shipping" }}
className={styles.elementBody}
/>
</div>

Question
i am using the address element and i want to display the first name and last name in one line

What have you already attempted?
const addressElementOptions = {
display: { name: "split" as "split" | "full" | "organization" | undefined },
fields: { phone: "auto" as "auto" | "never" | "always" | undefined },
appearance: {
variables: {
colorBackground: "#EBEBEB",
},
},
};

What are you working on?
i am working on custom checkout page with address payment and express elements

cursive heronBOT
#

@sly dove pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Is it possible to show a specific amount when creating a setup intent for future use?
With Apple Pay, the modal shows "Amount Pending", but we do know which amount is going to be charged

Related Request ID(s)
req_6goDWb3PRnDuEH

What have you already attempted?
Looked through the documentation, and I only saw that an amount could be provided in the `single_use` property when creating the setup intent, but I think that would only work for SetupIntents that should only be used once ?

What are you working on?
We have our own subscription lifecycle management and use setup intents and payment intents to charge the customer recurrently

cursive heronBOT
#

@dusk gulch pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
https://billing.stripe.com/p/subscription/update_payment_method_link/CBcaFwoVYWNjdF8xT[…]fTlmdm9QsHRasTR4oimrOEz-mSITFVaHGAiCLUmRrGHThKg2R3ErOIpQZAE

I have updated my 3D secure card and authenticated my card but the test server for my recurring payment transaction has failed.

Related Event ID(s)
evt_1QRwZSIErBwOu8QAwu5empXh

What have you already attempted?
https://billing.stripe.com/p/subscription/update_payment_method_link/CBcaFwoVYWNjdF8xT[…]fTlmdm9QsHRasTR4oimrOEz-mSITFVaHGAiCLUmRrGHThKg2R3ErOIpQZAE

I have updated my card after my subscription recurring payment failed.

What are you working on?
Subscription recurring payment failed

cursive heronBOT
#

@covert nimbus pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
So I created a form to update my stripe user's address and I've seen that the country field needs to be in ISO3166-1 alpha 2 format. Does stripe provide a dropdown component with the list of countries and these codes? I haven't found one yet.

Doc/Guide Links
https://docs.stripe.com/api/customers/object

What are you working on?
An ecommerce website

cursive heronBOT
#

@jade glacier pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Stripe API:

  1. Case-sensitive emails when using the REST API/ python SDK
    On portal:
    Can we change emails to lower case for all members.

  2. Metadata for payment links to the embedded in the url
    Ability to find payments using metadata (linked to Checkout[point 2])

  3. When finding payments of a single email, it has multiple customer_ID’s which requires us to loop through all the customer_id’s transactions to find a payment

Checkout:

  1. Prevent Guest checkout for payment links

Subscription Migration:

  1. Migrate all existing users to a new subscription plan

Related Request ID(s)
None

What have you already attempted?
N/A

#

@dry bronze pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
export const publicStripeApp = new Hono().post('/api/stripe/webhook', async (c) => {
const rawBody = await c.req.text()
console.log('received webhook')
console.log(c.req.header())
const signature = c.req.header('stripe-signature')

....

Question
The stripe signature is missing in headers, i setup a webhook in the admin and I receive the call in my url https://domain.app/api/stripe/webhook

I got a 500, and no signature in the headers.

Here the headers

What have you already attempted?
- Log headers
- check secrets
- Use Stripe Cli

What are you working on?
Google Maps Lead generations

#

@dusk gulch pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
https://billing.stripe.com/p/subscription/update_payment_method_link/CBcaFwoVYWNjdF8xT[…]fTlmdm9QsHRasTR4oimrOEz-mSITFVaHGAiCLUmRrGHThKg2R3ErOIpQZAE

I have updated my 3D secure card and authenticated my card but the test server for my recurring payment transaction has failed.

Related Event ID(s)
evt_1QRwZSIErBwOu8QAwu5empXh

What have you already attempted?
https://billing.stripe.com/p/subscription/update_payment_method_link/CBcaFwoVYWNjdF8xT[…]fTlmdm9QsHRasTR4oimrOEz-mSITFVaHGAiCLUmRrGHThKg2R3ErOIpQZAE

I have updated my card after my subscription recurring payment failed.

What are you working on?
Subscription recurring payment failed

#

@misty orchid pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I am trying to send invoices via the Stripe API to multiple email addresses (e.g., the customer's main email and a CC email address for a contact person). In the Stripe Dashboard, I can add a CC email directly under the billing information. How can I replicate this functionality via the API? I couldn't find a specific field for CC emails in the API documentation. Is there a recommended approach for achieving this, such as a field I can use in invoice_settings or another method? Alternatively, how should I manage multiple recipients for invoices via the API?

Related Request ID(s)
req_8ZYpiWM8WK9RmH

What have you already attempted?
I reviewed the API documentation and tried using metadata and custom_fields in the invoice_settings, but neither of these seems to directly enable sending invoices to multiple email addresses. I also explored possible webhook solutions but would prefer a simpler, API-based approach.

What are you working on?
I am building a workflow to automate invoice creation and sending for B2B clients, where invoices should be sent to both the client's primary email and a secondary email for the contact person.

cursive heronBOT
#

@covert zodiac pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How can I test a Stripe webhook for payout.reconciliation_completed using curl or Stripe CLI? I need to simulate the event and send it to my webhook endpoint.

Related Request ID(s)
NA

What have you already attempted?
NA

#

@stoic ledge pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hello. I would like to remove capabilities from accounts. when I tried removing the "card payment" and "transfer" capabilities form th account but I get an error saying that I need atleast one of them in the account. the thing is, Im trying to do it so I can "disable" the account, Im able to do it through the dashboard but when I try doing it through the API I only get an error. help?

Related Request ID(s)
none

What have you already attempted?
mentioned above

#

@true forge pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
In the webhook event, apiVersion is null, so i cannot parse the event
connected account id - acct_1QRVbdQDvqbVpjc7

Related Event ID(s)
evt_1QSIDCQDvqbVpjc7Ohe4JtxD

What have you already attempted?
I tried updating the api version in the webhook to latest one

What are you working on?
I am trying to receive the checkout paymet updates using webhook

cursive heronBOT
#

@covert oracle pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Getting periodic timeout / "invalid_request_error" type errors using a terminal from my VB.NET app - need to know how to capture / return this issue

Related Request ID(s)
https://dashboard.stripe.com/logs/req_m3YmsV1OHxDBjB?t=1727905814

What have you already attempted?
I cannot replicate the issue, so I'm not sure how to get the info / handle it yet.

What are you working on?
custom VB.NET application using WisePOS E terminals

#

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

Code
No code needed for this post

Question
I am unable to generate a elements form because of the error "You have not registered or verified the domain, so the following payment methods are not enabled in the Payment Element: - apple_pay".

What have you already attempted?
Apple pay is disable on my account and I tried sending the paymentmethods via options and omitting it. Registering the domain is not an option.

What are you working on?
I did chat with your support, they converted me to a ticket which has been ignored/i have not heard anything back from them.

#

@twilit sapphire pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hey, I'm implementing Stripe Identity into our codebase. Since our service can only be offered to adults, I'm curious what happens if a teenager scans their ID card?

Does Stripe Identity just work normally with underaged users? Can I set the minimum required age in the verification session?

Related Request ID(s)
N/A

What have you already attempted?
I tried to find some information online and in Discord, but every attempt to find something related to "Stripe" and "age" just talks about the minimum age to open a Stripe account

What are you working on?
Online Group Therapy

#

@tawdry depot pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We want to create subscriptions for software that is payed yearly in 1 of May of each year. If a client starts subscribing in January we want to charge only 25% of the yearly fee, and then the full fee again in May. How would we do this best? Using proration or using discounts? Also is any of this possible using payment links? thank you!

Doc/Guide Links
https://docs.stripe.com/billing/subscriptions/prorations#preview-proration

What are you working on?
Setting up early subscription products for software

cursive heronBOT
#

@tropic wyvern pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
When an account connect becomes restricted due to information requested by Stripe, how can these information be provided? Right now, i've got an connect account in which the upload of a document is required. How can it be required? Through express dashboard?

In addition to this, how can i simulate the several situations in relation of incorrect information?

Doc/Guide Links
Actually, i've though to provide a link to get in an Express Dashboard when an account becomes restricted (https://docs.stripe.com/api/accounts/login_link/object?lang=node).

What are you working on?
Integration of webhook in relation of various situation of the connect account

#

@paper spruce pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hi, I'm testing my webhooks locally and I have using the endpoint secret but this mentioning is for testing my endpoint locally. But now if i want to convert this to an actual live webhook, what do i do about the endpoint because it's not changing.

Related Event ID(s)
Not applicable

What have you already attempted?
.

What are you working on?
Ecommerce Store

#

@random crest pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Cash balance payment intent API is not working in prod env.

We have informed to migrate our all SEPA credit transfer api to bank transfer API

So we did this impl in our end tested thoroughly in test environment and today we started to migrate our first production customer.

But we are getting error in prod env while try to create payment intent.
req id : req_w1H2jeJ0IAQnjt

But same request is success in our test environment without any issue.
req id : req_LGFgEodcdzAAqw

any idea why is this happening ?

Related Request ID(s)
.

What have you already attempted?
.

What are you working on?
.

#

@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/payments/checkout/adaptive-pricing#restrictions

Question
Adaptive pricing is not supported with Stripe Connect at the moment, is there a timeline for when this would be supported? And if they will be supported for subscriptions?

What have you already attempted?
Need Stripe Connect for connected accounts

cursive heronBOT
#

@azure canyon pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hi! I'm trying to build the report in my app that requires retrieving of payouts and transactions of particular reporting categories, like "network_cost", "fee", "dispute" and "dispute_reversal", that is belonging to particular payout.
Currently I see that it is possible only to retrieve all payouts and then retrieve balanceTransactions for this payout.
But it appears that so many unneeded data is retrieved..
Can I somehow retrieve only transactions of particular categories, or expand them inside of payout object, or get some payoyt stats/summary without retrieving all the transactions?

Related Request ID(s)
req_ZDJZlHRgj1KvTt, req_qcTKldHOedVGWS

What have you already attempted?
I've read Stripe docs for balance transactions (https://docs.stripe.com/api/balance_transactions/list), doc about payouts (https://docs.stripe.com/api/payouts/list) and tried to expand "balance_transaction" of payout object, but it contains only 1 transaction.

What are you working on?
App, that allows to sell movie tickets. Customers need proper reports including info about stripe payouts.

#

@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
Is there way to enable address element to return subdivisions iso code instead of long value (like US-NE instead of Nebraska)

What have you already attempted?
gone through the docs didn't find anything

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

#

@slow helm pressed the 🤨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
Using Stripe Financial Connection a customer should be allowed to select a distinct account to attach as a saved payment method

What actually happened?
Stripe Financial Connection for ACH debit not allowing to select individual account for Chase bank.

Reproduction Steps
Try to initiate a financial connection against a customer object for a Chase Bank account

Question
Is there a known issue in trying to integrate Chase bank accounts?

What are you working on?
B2B payments between our customer's and their partners. Our customers are the Payer's and having this issue.

#

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

Code
API error, not any code. See request req_efkrQZp9sCti99

Question
Hello
A new account is having trouble with mobilepay, which I've confirmed is enabled on their account, yet we see the error "The payment method type "mobilepay" is invalid. Please ensure the provided type is activated in your dashboard".

What have you already attempted?
Not sure what to do here.

What are you working on?
Ticketing system

#

@solemn vale pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
What does payment_method.automatically_updated (by network) mean?

Related Request ID(s)
evt_0Q8gX7OWj7lpTW51b9zi4yu1

What have you already attempted?
I just want to confirm that this is an automated process initiated by Stripe and not by use

cursive heronBOT
#

@tender tundra pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I'm following this guide to create subscriptions, https://docs.stripe.com/billing/subscriptions/build-subscriptions?platform=web&ui=elements, however this guide assumes buying one subscription at a time. How would this work if I can buy multiple subscriptions at a time? I understand I can get the payment intent from the subscription and pass that to the elements but which one should I pass if the customer wants to purchase more than one subscription with each subscription representing a different Price?

Related Request ID(s)
req_04CSDQlrK1RCt2

What have you already attempted?
I'm able to purchase one at a time but need to do this for more than one subscription at a time

What are you working on?
Subscriptions

#

@buoyant agate pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
What are the potential downsides or risks of using Sources with Setup Intents? Are there any known limitations or compatibility issues we should be aware of? And is there a recommended way to bridge this gap?

Related Request ID(s)
https://docs.stripe.com/payments/setup-intents

What have you already attempted?
I'm working on a Stripe Connect integration, but completing the full implementation with Payment Methods and Setup intents will require more time. For now, we're considering using Sources to create Setup intents as a temporary solution since our current project is built around Payment Methods and the project we want to integrate it with is built around Sources. We understand that Sources is deprecated, and we're planning to transition fully to Payment Methods in the future.

What are you working on?
I want to integrate 2 projects working on two different concepts, one uses payment methods to save card information and the other uses sources, I want to collect someone's card information only once.

cursive heronBOT
#

@visual star pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I have a question about the Stripe Connect API Using the Ruby 13.2.0 SDK, I managed to create an account and set it up in test mode using the Account API and the AccountLink API.

However, when i try to create an AccountSession with the SDK, i get the error

NameError: uninitialized constant Stripe::AccountSession

Would you know what can be causing the error ?

Related Request ID(s)
-

What have you already attempted?
I managed to create my account and my account link. Now, I would like to setup an account session to access the embedded content, but the SDK returns an error.

What are you working on?
A Stripe Connect integration

cursive heronBOT
#

@ashen kernel pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I hope you're doing well. I’m currently integrating Stripe with my website, which uses Tutor LMS for managing online courses. However, I am facing issues with setting up subscription payments, and I need your assistance to resolve this.

Here’s the issue:

Recurring Payments Are Not Being Collected: When a student enrolls in a course with a subscription plan, Stripe does not process recurring payments as expected.
It seems there might be a communication issue between Stripe and Tutor LMS during the payment confirmation process.

Related Event ID(s)
Webhook is already added

What have you already attempted?
Before my stripe account was added with Paid Membership Pro Plugin, it was working smothly with recurring payment. Now Tutor LMS has introduced subscription model. Now when I integrated Stripe with Tutor LMS, Stripe is just collecting ONE TIME PAYMENT and not recurring.

What are you working on?
Could you please help me: Ensure subscription payments are set up correctly in Stripe. Confirm that the integration settings for recurring payments are configured to communicate successfully

#

@tacit pumice pressed the 🤨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
Connected Component shows if passport is required for verification.

What actually happened?
It does not show. On my stripe dashboard I can see though that the account is blocked due to missing passport.

Reproduction Steps

  1. Enable Component for Notification banner (https://docs.stripe.com/connect/supported-embedded-components/notification-banner)
  2. Connected Account should have passport missing
  3. This will show in the stripe dashboard of the marketplace but not in the notification banner

Question
Why is the notification banner empty?

What are you working on?
Marketplace

#

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

Code
let intentConfiguration = PaymentSheet.IntentConfiguration(mode: .payment(amount: 1900,currency: "EUR", captureMethod: .automaticAsync), paymentMethodTypes: ["card"]) { [weak self] _, _, intentCreationCallback in
guard let self else { return }
Task {
do {
return try await self.fetchClientSecret()
} catch {
}
}
}

Question
When we try to confirm the payment using the FlowController.confirm(from:completion:) we get the following error:

```
Error Stack: domain: StripePaymentSheet.PaymentSheetError|code: 6|UserInfo: helpAnchor: |failureReason: |localizedDescription: An error occurred in PaymentSheet. Your PaymentIntent captureMethod (unknown) does not match the PaymentSheet.IntentConfiguration amount (automaticAsync).
```

What have you already attempted?
We tried using either automatic or automatic_async as capture methods in PaymentSheet.IntentConfiguration, but nothing worked. Also, we checked the developer logs on the Stripe console and ephemeral secret; payment intent is initialized correctly.

cursive heronBOT
#

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

Question
We have a donation module in which our non profits can connect their stripe account via connect and patrons can purchase donations without registering. We are seeing scripts cycle through credit cards, most of which stripe is blocking through high risk evaluation and Radar. But some are still getting through. We have rate limiting on but that just slows the scripts down. One thing I do notice is that they are mostly international - do you have ways to reject int'l cards or other ways to prevent these scripts?

Related Request ID(s)
req_XCMQNoLVW9CcIf

What have you already attempted?
Rate limit

What are you working on?
Our ticketing platform

cursive heronBOT
#

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

Question
We are attempting to migrate over from cryptocurrency subscriptions to Stripe, we are attempting to look into how to smoothly migrate existing subscribers to Stripe Billing without any friction. We are using Stripe Hosted solutions (billing portal and hosted checkout).

Related Request ID(s)
N/A, sorry if I chose the wrong category.

What have you already attempted?
One way we are considering is listening to billing info webhooks and when they add a card to their Stripe Customer profile, creating a trial subscription that ends when their old plan ends which in theory should automatically charge them for a real subscription on there thus automatically moving them over to Stripe smoothly. I asked ChatGPT about this and it did say it's possible, but obviously it can be wrong and could also be an inefficient way to do it, that's why I'm here to look for either a better solution or to confirm mine works.

What are you working on?
An e-commerce platform

#

@steel totem pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
What is the best practice for having hsa acceptance setup and what is the best practice for setting up multi card payment in the case that there is not enough money in the hsa account to cover the cost entirely. We have no current way to test an hsa card or what will happen in the case there are insufficient funds in the account.

Doc/Guide Links
I’m on my phone at the moment but I’ve looked into split payments has setup etc.

What are you working on?
We are coworking a health maintenance app that provides mmm medical services.

#

@tropic wyvern pressed the 🤨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
Through stripe listen --forward-connect-to, I didn't receive any event in relation to updating about the required information of the connect account.

What actually happened?
I didn't receive any events in relation to updating. But if i update the bank information, i receive the following events:
account.external_account.created
account.external_account.updated
account.external_account.deleted

And i didn't receive account.updated.

Reproduction Steps
After the creation of the connect account, go again on boarding connect account by performing an call to following API: create AccountLinks.

Question
Why didn't I receive any events about the following events: account.update when i update the information of the connect account inside onboarding?

What are you working on?
Updating the fields on the database through webhook

cursive heronBOT
#

@vocal stump pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I am uncertain why Express + Direct Charges is "strongly discouraged" in the Connect guide for the new "mix and match" system. Can you explain what the problem would be? This discouragement goes away if I select "None" to Dashboard, but I would prefer that users have the Express dashboard.

Doc/Guide Links
https://docs.stripe.com/connect/design-an-integration?connect-onboarding-surface=embedded&connect-dashboard-type=none&connect-economic-model=buy-rate&connect-loss-liability-owner=platform&connect-charge-type=direct#your-personalized-guide

What are you working on?
Migrating from Standard Connect to Express/Custom

cursive heronBOT
#

@safe yarrow pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
A subscription was updated from monthly to annual price, creating an invoice & resetting the billing cycle. I want to restore the original monthly price and resume the original billing cycle. I can change the price back to monthly & refund the annual invoice via the API, but when the price changes the billing cycle is reset again and a new invoice is generated automatically. How can I avoid that, so the new price is set on the subscription but only for the next invoice which follows the original billing cycle?

Related Request ID(s)
https://dashboard.stripe.com/workbench/logs/req_FXPm7vs9Nt7uiq

What have you already attempted?
Update subscription docs says when billing interval changes, you "immediately charge the customer using the new price, and reset the billing date. " Hoping there is a way to avoid that somehow.

It would be possible to refund the new invoice but I'd rather avoid it in the first place if possible.

Here is a user who has gone through this, but their most recent invoice is the one I want to avoid - https://dashboard.stripe.com/customers/cus_KqsiMjpo3mvaEI

cursive heronBOT
cursive heronBOT
#

@sacred gorge pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I am trying to get some help with stripe sigma. I want to do a cohort analysis on a specific price and get the same kind of retention chart that you get on the stripe dashboard, but only for a given price. I'm also trying to extend it annual subscriptions and do the retention by year and not by month and go beyond the 12 month default in the dashboard

Doc/Guide Links
Ive tried use the AI to generate the query but its not really working

What are you working on?
We have a subscription app

cursive heronBOT
#

@forest grail pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
When I create a custom connected account, and provide all the required info for the sake of activating the account, then all the info gets updated in stripe but not the SSN, When I send full SSN then I receive the error that only last 4 digits can be sent, and when I send only last 4 digits, it saves in stripe but account is not activated for payouts.

Related Request ID(s)
--

What have you already attempted?
(PHP)

$updateParams = [
'individual' => [
'ssn_last_4' => $ssn_last_4,
],
],

$updatedAccount = \Stripe\Account::update($current_user_connected_acc, $updateParams);

What are you working on?
I am developing a platform for my client, we are using Stripe Connect.

#

@quaint vapor pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
Does not fit will send

Question
I am migrating subscriptions into Stripe from an external system. The subscription price has an interval of 3 years.

I need to create a stripe subscription that will allow these subscriptions to run to a predetermined timestamp and then continue with billing

What have you already attempted?
Trial days

#

@dull python pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I want to set up Link to work with off session payments.

When the Link card is `4242`, setup succeeds, I get back a `pm_...` and I am able use this pm to create payment intents off session.

However, when the Link card is `3155` (i.e. "Authenticate unless set up"), setup also succeeds, I get back a `pm...`, BUT creating off-session payment intents using it fails with a `generic_decline` error.

For both `4242` and `3155` the dashboard says "This payment successfully set up pm_... for future off-session payments".

When using `3155` OUTSIDE of Link, off session payments succeed.

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

What have you already attempted?
Stripe CLI for pm set up via Link and `3155`:

```
❯ stripe payment_intents create
--amount=500
--currency=usd
--customer="cus_RL4V9yxewogBwP"
--payment-method="pm_1QSOXVGO3Swz33Up2i7Q00St"
--off-session=true
--confirm=true
{
"error": {
"code": "payment_intent_payment_attempt_failed",
"decline_code": "generic_decline",
...
}
```

What are you working on?
I want Link to work for subscriptions which have recurring, off-session payments.

#

@hybrid hemlock pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hello, my company uses Stripe Elements across a number of different web pages. I'm trying to determine if there is an easy way to do a regular audit to determine where payment cards are being collected by website/domain using Elements.

Related Request ID(s)
req_gJwW47Eq2o7Jzy

What have you already attempted?
I have looked through the Dashboard logs and determined that the /v1/setup_intents event identifies where some payment methods are being collected, but I'm not confident this covers all areas where payments could be collected.

What are you working on?
We are preparing for next round of PCI audit and want to make sure we have everything in scope.

#

@prime ember pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
const session = this.stripe.checkout.sessions.create({
mode: 'payment',
payment_method_types: ['card'],
customer: customer.id,
ui_mode: 'hosted',
currency: 'usd',
line_items: [
{
price: price.id,
quantity,
},
],
success_url: 'https://google.com',
invoice_creation: {
enabled: true,
},
saved_payment_method_options: {
allow_redisplay_filters: ['1','2', '3']

Question
Whenever I visit this checkout hosted link, I don't see the customer's saved card even though I supply the customer id on session creation.

How can I allow the customer to use their saved card so they don't have to re-enter all their card information?

I don't want to use link

What have you already attempted?
I checked the payment method for this customer and it's allow_redisplay is set to "always" as it should be.

stripe customers retrieve_payment_method cus_RKsHoq3BqPRDMO pm_1QSCWwRwZsexd3LvkUORArwi

"id" :"pm_1QSCWwRwZsexd3LvkUORArwi",
"object": "payment_method",
"allow_redisplay": "always"
"customer": "cus_RKsHoq3BqPRDMO"

stripe customers retrieve cus_RKsHoq3BqPRDMO

invoice_settings": {
"custom_fields": null,
"default_payment_method":"pm_1QSCWwRwZsexd3LvkUORArwi"
}

What are you working on?
I'm trying to use stripe hosted web checkout in a react native webview as part of my checkout process

#

@worthy osprey pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hi Stripe help team, I'm a developer for a startup, tasked with setting up our payment processing.

Our process currently looks like this: First, a user pays a one time fee to gain access to our product. Then, every month we bill them an invoice of a flat fee. Eventually, this will become usage based, but that is down the line. We're using the PaymentElement to integrate into our site.

Questions:
For that first payment, would that be a PaymentIntent created when the user goes to pay? Or could it be an invoice we create in anticipation of them paying?

For the monthly billing, we aren't thinking of this as a subscription service, so could these be invoices created manually?

Doc/Guide Links
This may be too broad of a question, since it doesn't relate to a single piece of documentation, but I want to make sure I'm thinking of these Stripe objects and how they interact correctly. Any advice for getting on the right track or creating the proper mental model for this would great.

I found the video on this page very helpful:
https://docs.stripe.com/payments-api/tour

What we've done so far:
We've already created a sandbox environment with a test customer, invoices, and we can pay those invoices using the integrated PaymentElement.

What are you working on?
Creating a payment process that starts with a one time fee to gain access, then a monthly invoice of a flat fee. Eventually, this will become usage based.

#

@tulip charm pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I need to add an ACH Transfer source to a customer in the test env.

I know Sources API is deprecated, but I need to test a scenario where customers that have this source attached to them doesn't throw an error in my code. (in the test we are removing the reference to the source, but I want to make sure it doesn't throw)

Is there a way I can have a customer in test env to have a source attached to them for testing?

I still have some production customers with source attached and I want to make sure these users don't get an error when they pay an invoice and I can properly disregard sources.

Related Request ID(s)
req_NibMw68iDaO9E7

What have you already attempted?
I tried adding a source via API and through the dashboard, but these options are disabled now.

What are you working on?
making sure invoice payments are working properly

cursive heronBOT
#

@quasi plume pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We are using Stripe Checkout and are processing the checkout.session.completed webhook event on our backend to complete orders. We have recently seen a few events come through that have the user's address line 1 populated in the name field for both the customer_details and shipping sections of the event. Does this mean that the user entered their address as their name or left it empty or something else wrong? We don't have any visibility into the Stripe Checkout form entry process, but we have been seeing more and more of these incorrect name fields coming through lately. Thanks!

Related Event ID(s)
evt_1QSQ0CJttsoT29ootP8tl4cr

What have you already attempted?
Reviewed webhook and event logs

cursive heronBOT
#

@dull python pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I asked a question earlier about Link with 3D Secure 2 authenticated cards, e.g. `4000002500003155`, not working for off-session payments even when we've done the setup part.

I was told that this was expected, and it behaves the same way with or without Link. I tested this -- with just card (no Link), and I was able to set up and use `3155` for off-session payments without problem.

It only becomes a problem when using 3155 through Link. Off-session payments are declined, even though the dashboard says "This payment successfully set up pm_... for future off-session payments" for the PM used

Related Request ID(s)
req_0sIex0DqBWbLja

What have you already attempted?

  1. SUCCESS: Link + 4242 card
  2. SUCCESS: No Link + 3155 card
  3. ERROR: Link + 3155 card

3155 specifically says "This card requires authentication for off-session payments unless you set it up for future payments. After you set it up, off-session payments no longer require authentication. However, on-session payments with this card always require authentication."

What are you working on?
Link for recurring, off-session payments

cursive heronBOT
#

@maiden trail pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How to get a list of supported countries for express dashboard by using API / Python SDK?
The list can be found in UI Settings -> Connect -> Onboarding options -> Countries

Related Request ID(s)
N/A

What have you already attempted?
I tried https://docs.stripe.com/api/country_specs?lang=python but looks like it is generic and not account specific

What are you working on?
I am building a website that only accept the end-users who come from particular country that I enabled in Stripe.

cursive heronBOT
#

@grim beacon pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
const cartItems: any = {
label: options.label,
amount: options.amount?.toString(),
...(source === 'subscription' ? {
paymentType: PlatformPay.PaymentType.Recurring,
intervalCount: 1,
intervalUnit: 'month', // 周期单位
} : { paymentType: PlatformPay.PaymentType.Immediate })
}
const { error } = await confirmPlatformPayPayment(clientSecret, {
merchantDisplayNam

Question
The review of the Apple App Store is currently not approved because there is too little merchant information in the Apple Pay payment pop-up window for my subscription. Apple has prompted us to add the merchant name, logo, and more payment information so that users can see it. How should we configure this configuration, client configuration or server configuration? I tried to configure it on the client side myself, but it didn't take effect. The merchant information and addit

What have you already attempted?
https://docs.stripe.com/payments/save-and-reuse?platform=android&mobile-ui=payment-element

cursive heronBOT
#

@lofty ice pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I am using stripe payments embedded component and the "FROM" column is missing details. How can we set the from column based on transactions.

NOTE: My stripe connect infrastructure: Funds flow from customer to platform to connected account via payment link. I was able to propagate details/metadata via https://support.stripe.com/questions/how-can-you-carry-over-the-description-or-metadata-to-the-payment-on-the-connected-account-for-a-destination-charge, but still unable to set this from column. Any help?

Related Request ID(s)
https://support.stripe.com/questions/how-can-you-carry-over-the-description-or-metadata-to-the-payment-on-the-connected-account-for-a-destination-charge

What have you already attempted?
I have tried propagating the details from the transaction to the platform by following the above link (retrieving the charge id with expanded transfer details, and using destination payment). Did not see any clear way to set this FROM column?

#

@thin ravine pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Is there an API request we can make to get all the stripe service fees and disputes that were deducted from a month's worth of payouts, without getting every balance transaction attached to each payout? There are thousands of payments as balance transactions on each payout, the requests are taking a very long time.

Related Request ID(s)
none

What have you already attempted?
Reading API documentation

What are you working on?
A monthly accounting report for our marketplace app, which uses Stripe Connect with standalone accounts

cursive heronBOT
#

@carmine jetty pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I am lost in the Stripe documentation for the purpose of one time payment link. The posting is completed but I am confusing on how to create a one time payment link for Mobile app/web user to bill in test mode.

Related Request ID(s)
No ID yet

What have you already attempted?
Registered account in test mode

What are you working on?
Web/Mobile App

cursive heronBOT
#

@finite tree pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Is that possible to retrieve a tax rate based on certain field. Example retrieve a tax rate that country = 'US'

Related Request ID(s)
N/A

What have you already attempted?
I try checking this API but not able to filter by country
https://docs.stripe.com/api/tax_rates/list

What are you working on?
I'm working on retrieving a tax rate based on country / currency

cursive heronBOT
#

@rancid yoke pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I am currently experiencing an issue with integrating Google Pay using Stripe, specifically with the Google Pay button not showing up on my site. I've taken several troubleshooting steps, including:

  1. Ensuring Google Pay is enabled in my Stripe Dashboard.
  2. Double-checking my integration code for any errors.
  3. Verifying the payment request configuration for country, currency, and total amount.
  4. Investigating console errors, particularly related to the payment manifest.
  5. Testing in different environments and browsers.

Related Request ID(s)
No Id

What have you already attempted?

  1. Ensuring Google Pay is enabled in my Stripe Dashboard.
  2. Double-checking my integration code for any errors.
  3. Verifying the payment request configuration for country, currency, and total amount.
  4. Investigating console errors, particularly related to the payment manifest.
  5. Testing in different environments and browsers.
  6. Confirming that my test account has all necessary details filled out.
  7. Reviewing the Stripe documentation and community forums for guidance.
#

@latent anvil pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Im working on a donation platform similar to Stripes partner DonorBox. We will provide donation forms for nonprofits to embed on their site. I understand how to do single charges, but what would be the recommended way to set up monthly donations? Is it using subscriptions? Just confused as subscriptions require an item right? But how would it work if the donation amount is random every time.

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

What are you working on?
Donation platform

cursive heronBOT
#

@autumn halo pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I have a bunch of stripe checkout session creation scenarios that I would like to determine if I am doing the correct thing and want to do what stripe programmers recommend.

Related Request ID(s)
N/A

What have you already attempted?
I will send you the scenarios and code for you to check.

#

@unique epoch pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
this.stripe.billingPortal.configurations.create({
business_profile: { headline: 'Manage Subscription' },
features: {
subscription_update: {
default_allowed_updates: ['price', 'promotion_code'],
enabled: true,
products: [{ product: stripeProductId, prices: stripePriceIds }],
},
payment_method_update: { enabled: true },
},
});

Question
Currently we are using this configuration in `stripe.billingPortal.sessions.create()` for flow type `subscription_update`. we are passing all prices created for the product in the configuration. so now users are able to upgrade and downgrade their plan for the subscription. Is there a way to disable downgrades here?

What have you already attempted?
we tried only passing the yearly price so users can only change plan to it. Is there a way to disable downgrades instead?

cursive heronBOT
#

@dusk gulch pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
https://docs.stripe.com/api/payment_intents

I have to use this API but cannot find the latest_invoice.payment_intent.status is requires_action how do I find this status

Related Event ID(s)
evt_1QSJ2TIErBwOu8QAmc9rRFY2

What have you already attempted?
how do I find the requires_action for recurring payment failed

What are you working on?
Find the status

#

@wintry olive pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
this.stripeInstance = await loadStripe(this.publishableKey);

  const appearance = {
    theme\: 'flat' as 'stripe' \| 'night' \| 'flat' \| 'none',
    variables\: { colorPrimaryText\: '\#262626' }
  };
  
  // 3. Create Elements with payment intent client secret
  const elements = this.stripeInstance.elements\({
    mode\: 'payment',
    amount\: this.total\_amount \* 100, // amount in cents
    currency\: 'usd',
    appearance
  }\);

Question
Hey, I'm having an issue with Apple Pay and Google Pay in the checkout element.

Google Pay works as expected and is visible on the checkout page. Apple does not when viewing on a safari desktop. There is a wallet loaded in that browser. Any help is greatly appreciated

sessions network return indicates that I have apple pay support

```
# GET https://api.stripe.com/v1/elements/sessions?deferred_intent
...
"ordered_payment_method_types_and_wallets": [
"card",
"apple_p

What have you already attempted?
Tested via ngrok
google wallet
safari desktop

What are you working on?
adding apple and google pay to checkout element

cursive heronBOT
#

@indigo radish pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hello, I am trying to set up ‘AFFIRM’ as a payment option on my payment link. Currently it is working and visible for USA clients but not CANADA. I have someone in Canada that needs this feature enabled to pay

Related Request ID(s)
req_qCWoz35hiqKeC8

What have you already attempted?
I’ve tried to enable this but I think it may need to be done manually which i need help with

What are you working on?
I need to build in the ability for Canadians to check out using AFFIRM- this is my payment link https://buy.stripe.com/28o8zfcbU07l920144

#

@inner torrent pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I have a vendor panel where vendors register, then they add their shops. After that, they add their products. In the user app, shops are displayed, and users can buy their products. However, when payment is made, it should go directly to the vendor's account. How can we implement this?

Related Request ID(s)
Payout

What have you already attempted?
No

What are you working on?
I am backend developer

cursive heronBOT
#

@loud vigil pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hi I m using stripe for payment gateway in my app.
I use customer.subscription.updated webhook events.
when I get this event, I use api for getting active subscription.
this api give me more than one subscription.
I checked this in stripe console and one of this result is incomplete or expired.
how can find active subscription from fetched list in my server.
I used this logic:
Subscription.list(SubscriptionListParams.builder().setCustomer(customerId).build());

Related Event ID(s)
evt_1QSLM1DNZsE8LVSa4ltCRW2c

What have you already attempted?
how can find subscription with active status. I need this customer has active subscription

cursive heronBOT
cursive heronBOT
#

@loud vigil pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I used multi instances of java server for backend. I create session checkout with load customer.
if user does not exist we create this customer and then create checkout session for him.
I checked stripe console and in some case we have two customers for an email.
this may be is related to that user that calling my server in multi tabs with same time.
how can handle this

Related Request ID(s)
cus_RKf8a8fCGoF6CW

What have you already attempted?
please help me for prevent create multi customers for a email

cursive heronBOT
#

@lone marten pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hello, I want to do pre-authorization on USA cards. And then do the real payment few days later.
Can I do the pre-authorization with a hosted page like Checkout or do I have to use Stripe API / Elements ?
thanks !

Related Request ID(s)
na

What have you already attempted?
I read some docs about preauthorization but I am not sure if hosted page can work

What are you working on?
A service for a company to take deposit from customer

#

@twilit viper pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Does having the subscription permission on my Stripe App mean that I will be receiving every subscription event from each of the connected accounts on my webhook?

I'm concerned with the load of events my servers will be receiving and the privacy implications.

Is there a way to limit the events emitted to my stripe app webhook? I suppose the answer is no but want to confirm.

For my app's logic, I only need to process subs with specific metadata. So I can check for that in my logic. But there's no way to avoid still receiving every single sub event correct?

Doc/Guide Links
https://docs.stripe.com/stripe-apps/reference/permissions

What are you working on?
b2b bundling platform for subscription

#

@covert nimbus pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
if (
paymentIntent.status === 'requires_action' ||
paymentIntent.status === 'requires_confirmation' ||
paymentIntent.status === 'requires_payment_method'
) {
//sends payment intent to the frontend
} else if (paymentIntent.status === 'succeeded') {
//sends a success message
} else {
// sends error
}

Question
Since all my code doesn't fit the first field. I will briefly explain my logic. My users can choose a saved payment method or use a new one. When the user chooses a saved payment method I am passing the paymentMethod id to the invoice creation, if he chooses to use a new payment method then I am not passing the paymentMethod to the invoice.
After retrieving the created payment method from the invoice I am checking for it's status

Is my approach correct?

What have you already attempted?
Well my code seems to work but I don't know if this will work with real life cards.

What are you working on?
An ecommerce website

cursive heronBOT
#

@true forge pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
in the oncoming webhook event, apiVersion is null, because of which event parsing fails

Related Event ID(s)
evt_3QSbJ0QDvqbVpjc700W1cq3c

What have you already attempted?
tried changing the api version while creating the event destination

What are you working on?
trying to get webhook events for the checkout payment transactions

#

@pale verge pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I created the cardToken and customer and now I want to attach that card into the customer.
Also the customer should have more then One card registered.

Related Request ID(s)
req_07deVouRg9aGWV

What have you already attempted?
I tried to create a paymentmethod, attach the customerId and the cardToken to the payment Method, but it gives ne an error.

#

@astral zealot pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I just did a live test payment for my app and on stripe everything looks fine but on my banking app its states pending only

If the merchant doesn't claim this payment by X date we'll automatically return your money

Doc/Guide Links
details in the above section

What are you working on?
stripe billing

cursive heronBOT
#

@fast flare pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hey stripe developers, I am working on integrating Link Payment method. I wanted to know if there is any lookup API available or available within the link element, which gives us information if user is on link or not?
I observe there is an internal lookup done by the link element, but is that info is made available to us, like if there is any prop?

Related Request ID(s)
NA

What have you already attempted?
Use the link element, there is a `on` prop given by the element, on changing the email id, but it does not give info of whether email is already on link or not?
https://docs.stripe.com/payments/link/add-link-elements-integration#retrieve-email-address

What are you working on?
Integrating Link as a Payment Method.

#

@solid blaze pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I have implemented the stripe payment gateway..but i got an issue with the ios version

Related Request ID(s)
1

What have you already attempted?
I have implemented the stripe payment gateway..but i got an issue with the ios version

#

@dusk gulch pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
$payment_intent = \Stripe\PaymentIntent::retrieve($invoice->payment_intent);
if(!empty($payment_intent->status == 'requires_action')) {
try {
$session = \Stripe\BillingPortal\Session::create([
'customer' => $invoice->customer,
'flow_data' => 'payment_method_update'
]);
log_message('error', 'Billing Portal Response'. print_r($session, true));
} catch (\Stripe\Exception\ApiErrorException $error) {
log_message

Question
I have tried to create a billing portal session in my test server but have not generated a way to create it.

What have you already attempted?
First Attempt

What are you working on?
Create billing portal session URL

#

@last anchor pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
App\ServiceModels\Billing\StripePaymentLink inside data Stripe\LineItem

Question
where is description coming from?

What have you already attempted?
I can't seem to find where I can update it from Stripe dashboard or where it is actually coming from?

cursive heronBOT
#

@ocean cradle pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I have a scheduled subscription, and an active subscription is attached with the scheduled subscription.

So when schedule is released, and if we update the subscription then will it create a new schedule on that subscription or will it just update the subscription?

What will be the behavior when subscription schedule is released and we need to update the subscription data ?

Related Request ID(s)
123

What have you already attempted?
I have a scheduled subscription, and an active subscription is attached with the scheduled subscription.

So when schedule is released, and if we update the subscription then will it create a new schedule on that subscription and new schedule will be attached to that subscription or will it just update the subscription and nothing related to schedule?

What will be the behavior when subscription schedule is released and we need to update the subscription data ?

What are you working on?
Updating subscription and subscription schedule

cursive heronBOT
#

@visual star pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I am integrating Connect embedde components in my Rails app with importmap and i cannot find a way to import the connect js file in order to call the function loadConnectAndInitialize.

Related Request ID(s)
-

What have you already attempted?
Adding the scipt tag <script src="https://connect-js.stripe.com/v0.3/connect.js"></script>
Adding the importmap pin
pin "@stripe/connect-js", to: "https://connect-js.stripe.com/v0.3/connect.js"

Either way, i cannot access the function from my stimulus file when i try to import it

What are you working on?
A stripe connect integration of embedded dashboards

cursive heronBOT
#

@astral owl pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
When creating a schedule via the API that also creates a subscription, the sub is not being charged immediately but instead appears to be in draft with a future scheduled charge date 3 days later. I cannot see why this might be. Can this be changed to charge immediately?

Related Request ID(s)
N/A

What have you already attempted?
N/A

What are you working on?
php

#

@distant gale pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I was advised that in order to activate ClearPay as a payment method this needs to be coded (API integrated) into the payment link. I am not a developer so I don't know how to do that, can someone please help me? Would appreciate it. I think that Stripe should have this solution as part of their offering (when activating the 'turn on' button in payment methods) and not for a paying customer like myself (solo entrepreneur without a tech team) to do.

Related Request ID(s)
ClearPay integration on payment link

What have you already attempted?
Stripe support send me a guide but there is a lot of code and i don't know where to put it, they said I need to pay premium for someone else to do it, which I don't think should be the solution.

What are you working on?
yoga business payment links

cursive heronBOT
#

@bleak rivet pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hello,

I’m experiencing an issue upgrading users from monthly to yearly subscriptions in Stripe.

Problem:
• Users upgrade by replacing the monthly plan with the yearly one, generating an invoice.
• If the payment fails (e.g., due to 3D Secure), the subscription is already updated to yearly, so users get access without paying.
• Reverting to monthly generates another invoice due to the billing interval change, possibly charging users again.

Related Request ID(s)
?

What have you already attempted?

  1. Saving and reverting subscription state, but this causes extra invoices when reverting.
    2. Using payment_behavior='pending_if_incomplete', but it doesn’t work when changing billing intervals.
    3. Creating a PaymentIntent before updating the subscription, but updating afterward still generates a new invoice.

What are you working on?
saas

#

@covert nimbus pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
const subscription = await stripe.subscriptions.create({
customer: customerId,
items: [{
price: priceId,
}],
payment_behavior: 'default_incomplete',
expand: ['latest_invoice.payment_intent'],
});

Question
Is it possible to use an already existing payment method for this subscription ? Instead of forcing the user to type a new payment method.

What have you already attempted?
I looked at the stripe subscriptions create api.

cursive heronBOT
#

@exotic tendon pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
All webhooks receive all events

Related Event ID(s)
no special event

What have you already attempted?
https://docs.stripe.com/get-started/account/multiple-accounts

What are you working on?
I have mulitple completely different products on Stripe, so i created 2 different webhooks for them. Now, i get all events from every product on every webhook. What is the offical way to solve this?

#

@sacred gorge pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Is there any way to get a webhook right before a trial ends and we are about to charge a user? We would like to perform a balance check for a user right before we charge to reduce the volume of ACH returns we see.

Related Event ID(s)
n/a

What have you already attempted?
There is the trial will end webhook, but that comes 3 days before.

cursive heronBOT
#

@jagged plume pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Is there an API that sends the email receipt after a successful subscription payment? and how to test in test mode ?

Related Request ID(s)
none

What have you already attempted?
Currently handling in-house

What are you working on?
I am trying Stripe to send email after successful payment

cursive heronBOT
#

@fickle trellis pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
A customer can subscribe to our app using Stripe, the subscription and payment occurs correctly. There are also some one-off paymentIntents that are executed. This normally works well, however a user with payment method link has failed when executing the paymentIntent.

Related Request ID(s)
req_guqtJJG8anag4f

What have you already attempted?
The error was that link was not accepted as a payment method. When enabling it via dashboard and via 'payment_method_types' in the API call the error changed to generic_decline and we are not able to see if this is an error on our side or on the customer's bank side.

What are you working on?
We are building a solution for a client to manage subscriptions to their services on a marketplace.

#

@spiral basin pressed the 🤨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
I expect to be able to login with Stripe Connect.

What actually happened?
I get redirected to Stripe Connect to login, but there is no place to put in password or to continue.

Reproduction Steps
Create account session in the BE:
```tsx
const session = await stripe.accountSessions.create({
account: stripeAccountId,
components: {
account_management: {
enabled: true,
},
payments: {
enabled: true,
},
balances: {
enabled: true,
},
},
});
```

Use embedded onboarding on FE:
(div iframe..)

Click on button that says "Sign in to see your account details"

Question
When I click on the button that says "Sign in to see your account details", we are redirected to connect.stripe.com - and I can correctly see the email address being locked in there.
However, there is no "login" button or password input.

What are you working on?
Adding tip functionality to a 1m user application

cursive heronBOT
#

@near ocean pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I have a stripe Checkout integration. I also use Connect. I have activated the buy now pay later payment methods (afterpay, klarna). I activated those payment methods both on the platform account and the connected account. However those payment methods dont show up in the checkout session. Example of checkout session : https://checkout.stripe.com/c/pay/cs_test_b1DlXCYZynx9x2mBb0rmSzNYq6lpwZeSt10D7I8jzBlU8923mDywXPOoQC#fidpamZkaWAnPydgaycpJ3Zxd2x1YERmZmpwa3EnPydkZmZxWjRPcVBVPDdNZmBTUTR0bkgnKSdkdWxOYHwnPyd1blpxYHZxWjA0TE5RUDVDcUFDT2Z1bD10bT1WQDdKQ0ZSSEBqfzFoaXNyXE9nSHNIUTBPNT10aUttQzc3Y11NVFJJS

Related Request ID(s)
https://checkout.stripe.com/c/pay/cs_test_b1DlXCYZynx9x2mBb0rmSzNYq6lpwZeSt10D7I8jzBlU8923mDywXPOoQC#fidpamZkaWAnPydgaycpJ3Zxd2x1YERmZmpwa3EnPydkZmZxWjRPcVBVPDdNZmBTUTR0bkgnKSdkdWxOYHwnPyd1blpxYHZxWjA

What have you already attempted?
Activated payment methods on both platform account and connected account

What are you working on?
An ecommerce integration

#

@wind dome pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
const { url } = await stripe.billingPortal.sessions.create({
customer: customerId,
return_url: process.env.NEXT_PUBLIC_SITE_URL,

// @ts\-expect\-error\('language not relevant'\)
locale\: localLanguage,

});

Question
Can i localize my subscription names?
for example I have Bussiness plan , Basic Plan, Free Plan, but when i send locale to the stripe api it doesn't translate them (all texts are translated except my subscription name)

What have you already attempted?
locale: 'de'

What are you working on?
FlyTask

cursive heronBOT
#

@loud garden pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Up to now, if I tried to create a domain using the "payment method domains" API, and had not yet uploaded the Apple "domain association file" to said domain, the response would indicate that Apple Pay is NOT active, as I would expect.

At some point recently, no matter random domain I try to create, the response always suggests that Apple Pay is active, even when I haven't uploaded the certificate. Surely this is not correct?

Related Request ID(s)
pmd_1QShaLKIiGkWSGkvLCRzuzFo

What have you already attempted?
If I POST to "https://api.stripe.com/v1/payment_method_domains", and provide a totally random domain, the response says Apple Pay is active, even though it surely is not?

cursive heronBOT
#

@summer cypress pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I want to know what's the best way that I can prevent my user to always insert an email prior to making payment at Stripe Checkout page. In the current user flow in my app, prior to them reaching the Stripe checkout page, they have to insert an email. I think that's unnecessary as my app would have a record on this. How can I remove this step?

Doc/Guide Links
https://docs.stripe.com/invoicing/send-email

What are you working on?
I am building an app that allows user to make payment via my app (via Stripe Checkout) and then once successful, it will trigger a booking request to a user in another app.

#

@dire night pressed the 🤨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
I expected confirmSetup to be invoked successfully from my frontend.

What actually happened?
I'm experiencing issues with confirmSetup with custom elements with these errors:
Invalid value for stripe.confirmSetup(): elements should have a mounted Payment Element or Express Checkout Element
IntegrationError: Invalid value for stripe.confirmSetup(): elements should be an Elements group. You specified: object

Reproduction Steps
Try confirming setupIntent with custom elements.

Question
Im doing createSetupIntent on server, and giving that setupIntent to frontend to fill in CC details with custom elements for payment method with these components:
StripeCardCvcElement,
StripeCardExpiryElement,
StripeCardNumberElement,
Is it possible to do confirmSetupIntent with these elements from FE, and if yes how ?

What are you working on?
Online payment integration with Stripe with off-session payments

cursive heronBOT
#

@rigid crater pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I have to build a subscription system which includes licence price and coupons discounts.

So, if I start a subscription with a certain license and apply coupons to it. And with that about 1,000 or 10,000 users purchase the same plan.

Now if the admin changes the license price (product price). What will be the best practice in stripe to update the subscription amount of all those 1,000 or 10,000 associated users. As the price changed and the admin did not want to continue with the same pricing. Does it have any Bulk support. Provide me the best possible way to handle this scenario in terms of skype.

Doc/Guide Links
I am using the stripe python module

What are you working on?
I am building a service system where users have to buy a license for using the service.

#

@slate dust pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How do you expire a checkout session that's in a 3ds state but not failed/complete?

For example, i create a checkout session, a user fills in their details and gets to a 3ds prompt, it neither fails nor completes. They leave come back and open a new tab try to subscribe again, they get the same checkout session url they then get to the 3ds prompt and this approve it on their phone but also see the old 3ds request and approve that, they now have two subscriptions.

Doc/Guide Links
https://insiders.stripe.dev/t/how-to-update-existing-subscription-when-creating-a-checkout-session/2786/10
https://docs.stripe.com/api/checkout/sessions/list

What are you working on?
A saas

#

@severe basalt pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How can i add a test webhook endpoint to stripe?

Related Event ID(s)
0

What have you already attempted?
checked documentation, and asked chat support

What are you working on?
trying to test payments on my dev website

#

@west otter pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
There is bug with AddressElement.onChange(event). The state returned is not a code but a literal name of the state. We following country list has states/subdivisions as names instead of iso-code or code. How to raise a bug for this ?

Related Request ID(s)
NA

What have you already attempted?
I have tried multiple countries. List below. The countries with issue have sub-division /state/province coming in as name instead of code
"AE", -issue
"AU", -works
"BR", -works
"CA", -works
"IE", - Issue
"IN" , -Issue
"JP", - Issue
"KR" - Issue
"NL", - No Sub divisons!
"UA" - Issue
"US" - works

What are you working on?
Trying to read address from the AddressElement and save in using our internal APIs

#

@tender tundra pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I'm creating a subscription by first creating a customer and then a subscription. However, during customer creations I don't have the actual customer's information so I'm adding placeholder data. I update the customer with actual information before finalizing the transaction. However, I'm noticing that the invoice created has the placeholder information. Is there a way to have the actual customer's information in the invoice?

Related Request ID(s)
req_NA68AZFbgq4hUG

What have you already attempted?
I tried updating the customer info before finalizing membership purchase but I still see the placeholder data

What are you working on?
Subscriptions

#

@tawny cave 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/import-subscriptions-toolkit

Question
I would like to upgrade/migrate users subscriptions for a new price, I was seeing the examples in the Migration documentation but I can't find the way to say: "for this customer, take the current active subscription with the Price A, and change to the Price B at the end of the current billing period". Is that possible?

What have you already attempted?
I attempted to put the current user price ID in the price row, and the new price into the items.x.price row

What are you working on?
i working in migrate users subscriptions

#

@modest creek pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hi! On a invoice object with status "Open", how can I differentiate between "Past Due”, “Retrying" or just "Open" like on the dashboard? Is there any other value from the invoice object I can use? Maybe the "attempted"? "attempt_count"? The subscription status itself (past_due)? Thank you

Related Request ID(s)
none

What have you already attempted?
Tried to look at the invoice object to find some parameter I could use.

cursive heronBOT
#

@hidden stratus pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
getPaymentIntent({
token: stripeToken,
payment: {
state: 'initiated',
new_payment_flow: 'true',
device_type: 'mobile',
automatic_payment_methods_enabled: 'true',
gateway_details: {
...(gatewayDetails || {}),
// success_url: `${Config.BASE_URL}/payments/complete?token=${stripeToken}`,
success_url: `https://staging-amber.com/payments/complete?token=${stripeToken}`,

Question
I'm using same backend for both web (react app) and mobile (react-native) app and I'm getting the correct response and payment methods in the response. But I'm only able to see one out of six payment methods on app but all the methods on web. Not sure what is causing this.

What have you already attempted?
I have made sure I'm on the latest react- native stripe sdk. I have checked if im sending correct currency and amount. I have checked stripe dashboard for enabled payment methods

#

@exotic sand 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/apple-pay

Question
Does Apple Pay work in Chrome/FireFox/etc. mobile applications, assuming they meet the "minimum iOS 9" requirement?

Put differently: do iOS web browsers (the chrome app, the firefox app, etc.) count as "the web" or "iOS applications" as they relate to the linked doc?

What have you already attempted?
I'm in the planning stage of a project, and so have been reading the documentation, but have not gotten a chance to integrate this into our platform.

#

@mighty vector pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
"On line 64 of StripeJSONEncoder.swift, the method encodeJSONDictionary:_:includingUnknownFields:() writes unvalidated input into JSON. This call might allow an attacker to inject arbitrary elements or attributes into the JSON entity. The method writes unvalidated input into JSON. This call might allow an attacker to inject arbitrary elements or attributes into the JSON entity.

Data enters a program from an untrusted source.
StripeJSONDecoder.swift on line 632."

Question
We use the Stripe core and Terminal SDKs for iOS in our iOS application and as part of our security process we run Fortify Static Code Analysis (SCA) on the code. It has reported a potential JSON Injection vulnerability in the Stripe iOS SDK's Encoder/Decoder.

Reviewing the open-source code, it is hard for me to tell, if it is actually a vulnerability or a false positive. Can anyone provide some insights into this?

What have you already attempted?
Attempted to review the code in question. It appears to be a JSON encoder/decoder for Stripe communication.

What are you working on?
Running Fortify scan on our app using Stripe SDK and Terminal SDK for iOS

#

@quiet eagle pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Is there a way to club multiple small transactions before posting on the credit card ? Our transaction amounts are very small like $1. So the Stripe payment charges of 30c + 2.9% are turning out to be very high for our client.

Related Request ID(s)
N/A

What have you already attempted?
We have gone through the API Docs and could not find a solution for it

What are you working on?
We are working on a tipping app for DJ's and Musicians, who get the tips (Small amounts , in multiple transactions). So we want to post all tips under one transaction for one tipper under his card.

#

@verbal cloud pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I am working on migrating from the deprecated charges API to the payment intents API in a staging environment. I am having issues with making payment intents requests on behalf of a connected account using a payment method held by a platform account. I get an error saying that it doesn't recognize the payment method.

Related Request ID(s)
req_nxJQSNH529UzxQ

What have you already attempted?
I have tried changing the Stripe-account flag to point to an account that is not in restricted mode. I have tried updating the API version to acacia. I have tried making a call to the charges API using a set up of token creation that I know works in production, but that same call fails in test mode (req_umO66mbdrzCig8).

What are you working on?
I am migrating our system of creating payments for customers from the charges API to the payment intents API.

#

@safe notch pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I'm integrating monthly payment functionality into my web plugin and considering two options:

  1. Creating a generic payment link from my Stripe dashboard and embedding it as a button in the HTML.
  2. Dynamically creating payment sessions via my backend for each transaction.

Which approach would be better in terms of security, and scalability?

Doc/Guide Links
https://docs.stripe.com/no-code/subscriptions

What are you working on?
I'm integrating payment functionality into my web plugin.

#

@hexed mist pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
My checkout session isn't showing some payment methods (or any except card for some locations)

Related Request ID(s)
req_tc9quo4bUqfHro, req_iwLf1krWnjNjmn

What have you already attempted?
I've added prices with multiple currencies, in this case I've done USD, EUR, and GBP. When I test an email with +location_GB in the address, it shows the currency in GBP, but i only get a credit card option.
If I test +location_US, I get Card, Amazon Pay, and Cash App pay.

Amazon pay says it takes GBP, so why isn't it listed? And Google Pay is accepted globally and doesn't say there's a currency restriction so why isn't showing up at all?

#

@analog perch pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Need to extract all columns in the stripe api report_type=activity.itemized.2, currently its only returning default values

Related Request ID(s)
NA

What have you already attempted?
optional parameters, but don't want to list each of them one by one

#

@mint echo pressed the 🤨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
[Usage-based billing] I expected that usage metered during a trial period would be charged on the first paid invoice generated at the end of the trial.

What actually happened?
Usage that was metered during a trial period is billed on the *second* paid invoice after the end of the trial, along with any usage that occurs during the first paid period.

Reproduction Steps

  1. Create a subscription in a trial period with a usage-based add-on
  2. Increment the meter during the trial period
  3. Observe that the usage is not billed for on the invoice generated at the end of the trial
  4. Observe that the usage is billed for on the next invoice after the first paid period, along with any usage metered during the first paid period.

Question
Is this intended behavior or an accident? In either case, would you consider changing it? It's resulted in us having to build and maintain a hugely complex essentially parallel usage-based billing system for use only during the trial period so that we can manually bill for usage during the trial on the first invoice. 🤞🏻

What are you working on?
Healthtech – billing members for prescriptions.

#

@hazy holly pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We occasionally run into an issue where subscriptions get wedged as "Past due" even though they have no outstanding invoices. Here's an example: sub_1O3SM3AegRHrUhUqBzIKulFD

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

What are you working on?
This happens in an edge case where we invoice a customer, then a newer invoice comes in (which we void), then the older invoice becomes past due. Once the older invoice is paid, Stripe doesn't automatically update the subscr.

#

@limber nymph pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I'm testing a direct charges flow, I'm trying to show the terms of use and consent to promo. But it keeps saying "You cannot collect consent to your terms of service unless a URL is set in the Stripe Dashboard"

If I use the Destination charges flow it works great. So I assume it's because I'm using the direct charge flow. But I can't figure out how to set the terms of use URL for the connected account. Here's my code:

await stripe.checkout.sessions.create({....,consent_collection:{
/*promotions: 'auto',*/
terms_of_service: '},{
stripeAccount: 'acct_1QS3YeRWFGzA0ibU',
});

Related Request ID(s)
EROR generating checkout.session

What have you already attempted?
looked around the UI, search high and low, I tired different types of connected accounts (express, standard, etc).

What are you working on?
Youth sports ticking application

cursive heronBOT
#

@vital anchor pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Question about the webhook. I'm trying to use `payment_intent.succeeded` but it requires endpoint so I go to the dashboard to create a new webhook but it need a URL that can publicly access but I didn't make any website. I'm making a Discord bot

Related Event ID(s)
unable to create

What have you already attempted?
Try to create a webhook but not working

What are you working on?
a Discord bot that notifies when someone made a successful transaction to me

#

@solar bay pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I'm using the Custom Checkout beta. It works very well, but I'm wondering when creating a session with the tax_id_collection property set to true will be supported. We have a lot of customers requesting this feature.

Related Request ID(s)
-

What have you already attempted?
I tried setting the property, but creating the session fails with an error message stating the tax_id_collection property is not supported.

What are you working on?
I'm working on an e-commerce platform for digital assets.

cursive heronBOT
#

@faint cove pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We are trying to implement Gift Card purchases using 'GiftUp' but our checkout page already contains a coupon code. How can we use a gift card that offers that needs to be redeemed with a promo code on a checkout page that already contains a coupon?

Doc/Guide Links
https://stripe.com/en-ca/resources/more/accepting-gift-cards-101

What are you working on?
Gift card integration

cursive heronBOT
#

@hexed mist pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I just spoke to you guys about not seeing Google Pay in checkout, and i ended up sending a dev support ticket since you couldn't figure it out. But since then i was playing around with checkout and noticed the checkout payment types when including payment_method_types doesn't include google?

Related Request ID(s)
N/A

What have you already attempted?
This is the payment method types:
"Invalid payment_method_types[1]: must be one of card, acss_debit, affirm, afterpay_clearpay, alipay, au_becs_debit, bacs_debit, bancontact, blik, boleto, cashapp, customer_balance, eps, fpx, giropay, grabpay, ideal, klarna, konbini, link, multibanco, oxxo, p24, paynow, paypal, pix, promptpay, sepa_debit, sofort, swish, us_bank_account, wechat_pay, revolut_pay, mobilepay, zip, amazon_pay, alma, twint, kr_card, naver_pay, kakao_pay, payco, or samsung_pay"

cursive heronBOT
#

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

Question
I'm looking at data in the summary report I'm getting from the v1/reporting/report_runs API endpoint (activity.summary.1), and in that report sometimes there is a reporting category called "connect_collection_transfer" that I'm not sure what it means and was hoping for clarification

Related Request ID(s)
n/a

What have you already attempted?
Searched online and Stripe docs but did not find anything.

What are you working on?
Paw Partner Payments

#

@rotund flame pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I have two different subscription plans where each has one flat price and a usage based, per tier, graduated price. If a user buys the cheaper plan in a checkout session with both the flat price and the usage based price, how can they then upgrade to the higher price plan where they can switch to both the new flat fee price and the new usage based price.

Related Request ID(s)
None

What have you already attempted?
I tried enabling the "Customers can switch plans" in the customer portal, but it only allows me to select the flat fee prices.

What are you working on?
A SaaS app

#

@bold jewel pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
What are the pros and cons to defining one price object with multiple currencies vs defining a separate price for each currency? What significance does the default currency have on a price with multiple currencies?

Doc/Guide Links
https://docs.stripe.com/products-prices/pricing-models#multicurrency

What are you working on?
moving price configuration into Stripe

#

@jagged plume pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Lets say user is subscribed to Basic Plan subscription. After 15 days they want to switch to Pro Plan. I want cancel the old plan carry over prorated plan to new subscription which created when they switch to Pro

Doc/Guide Links
https://docs.stripe.com/billing/subscriptions/prorations

What are you working on?
When user switch plan, I want to charge of new subscription minus the credit they got from cancelling old plan.

#

@next vessel pressed the 🤨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
We set `pause_behaviour` to `mark_uncollectible` for our users. The user had some credits and they were applied to the invoice. Ideally the invoice should be marked as uncollectible, credits applied and we should refund those credits back.

What actually happened?
The invoice got marked as paid instead. We found this to be happening with invoices after November 23rd or so. Before that, all invoices were being marked as uncollectible automatically by Stripe.

Reproduction Steps

  1. Mark a subscription of user as paused indefinitely through API.
  2. Add credits to the user's accounts (full price of the invoice).
  3. Then create a invoice.
  4. Invoice should be marked as uncollectible after 1 hour (even if credits applied set total balance to 0).

Question
Did Stripe make any changes to mark invoice as uncollectible when user has credits in account?

What are you working on?
Pause behaviour for subscriptions.

#

@leaden nest pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I am creating transfers in USD that are being converted to the connected account's local currency. When I transfer in USD, Stripe then automatically converts the funds to the local currency and then issues a 1% fee. How can I retrieve the final amount (after exchange rate and fees) from the Stripe API?

Related Request ID(s)
req_ftisoznorfz4Ei

What have you already attempted?
Looking through the docs

#

@solar marten pressed the 🤨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
Display Google Pay as a payment method option using Payment Elements

What actually happened?
Google Pay does not display as a payment method option using Payment Elements

Reproduction Steps

  1. Set up Payment Elements using a platform account pkey and a Connected Account acct_ id
  2. On a device and browser validated to support Google Pay, nav to the payment elements instance
  3. Observe whether Google Pay is a payment method option

Question
How can I ensure Google Pay is a payment method option?

What are you working on?
Payments platform

#

@hexed mist pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I have a coupon setup to be 100% off for 'multiple months', '1 month'. I've run a checkout session, and it's showing 100% off 1 billing cycle, which on a annual plan, is taking off the entire year cost. Is this a bug??

Related Request ID(s)
req_bJbhse2zslJBVR

What have you already attempted?
Promo code ID is promo_1QSmZYGaywuyFzhTXQ0bWahg

cursive heronBOT
#

@onyx wing pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Does Apple Pay create a Payment Method that can be associated with a user long-term? Or is each Payment Method created a one-time-use PM?

Related Request ID(s)
N/A

What have you already attempted?
Integration on iOS platform

cursive heronBOT
#

@primal plume pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
A while back we had an issue where every ACH payment our connect platform processed erroneously failed due to us being over our weekly ACH limit. The problem ended up being resolved on stripe's end, but ended up with some tickets in our backlog that are finally being worked on.

How can I simulate this error condition in my test environment in order to reproduce the issue? Is there some dummy account I can use with the PaymentIntent create endpoint that will cause it to fail with this same error code?

Related Request ID(s)
req_Qf1OVoo6fcgoIX

What have you already attempted?
Checked the ACH documentation here: https://docs.stripe.com/payments/ach-direct-debit#transaction-failures

and tried several of the failure accounts that show up in the ACH account selection dialog, but they all fail asynchronously after the initial PaymentIntent.create call succeeds, which does not reproduce the issue I'm trying to test.

cursive heronBOT
#

@hexed mist pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I'm looking up a price of mine that has multiple currencies attached, but i dont see the currencies in the object. Why not? I do see them on the dashboard.

Related Request ID(s)
price_1QST39GaywuyFzhT8LUPBVL0

What have you already attempted?
Here's the price from shell:
{
"id":
"price_1QST39GaywuyFzhT8LUPBVL0"
,
"object":
"price",
"active":
true,
"billing_scheme":
"per_unit",
"created":
1733358971
,
"currency":
"usd",
"custom_unit_amount":
null,
"livemode":
false,
"lookup_key":
"mid_yearly",
"metadata": {},
"nickname":
null,
"product":
"prod_QTASMEx8NysCvU"
,
"recurring": {
"aggregate_usage":
null,
"interval":
"year",
"interval_count":
1,
"meter":
null,
"trial_period_days":
null,
"usage_type":
"licensed",
},
"tax_behavior":
"unspecified",
"tiers_mode":
null,
"transform_quantity":
null,
"type":
"recurring",
"un

cursive heronBOT
#

@compact ice pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I have integrated account onboarding on android app through stripe can we show just dashboard page to users for some extra information.

Related Request ID(s)
none

What have you already attempted?
i have integrated account onboarding of users through apis.

cursive heronBOT
#

@simple summit pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I need assistance in creating billing for my SaaS.

I charge a minimum plan of $320 a month.
This comes with:
* 12 seats

Every additional seat costs an additional $20

Companies will have a variadic amount of seats, some may have just the 16 allocated, others will have 30+.

So pricing will be different per company.

But also a company may add or remove seats, which will change the prices per month per company.

I am entirely new to Stripe, and any attempts at implementing this fails.

How can I implement this. What should my database look like.

Related Request ID(s)
N/A

What have you already attempted?
N/A

What are you working on?
Developing a SaaS that assist home health care companies in creating clinical notes with AI.

cursive heronBOT
#

@vale quail pressed the 🤨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
Cardholder cannot add stripe card card to wallet

What actually happened?
We have a connected account and card holders w Rosie cards to. A cardholder keeps receiving an error that they cannot add the card to their wallet and to contact the card issuer. Card is activated and terms accepted. Our account has also been approved by apple. They are entering it manually

Reproduction Steps
How to resolve this error when adding card to wallet

Question
How do we have them resolve this?

What are you working on?
Stripe connect + issuing

cursive heronBOT
#

@uncut jacinth pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
i receive a webhook :invoice.payment_failed, i want to check the detail message about this payment intent .what should i do?

Related Event ID(s)
pi_3QMAAEIC1xDAOwlv0EmvI8gG

What have you already attempted?
retrieve paymentIntent by interface

cursive heronBOT
#

@rancid yoke pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I have integrated Apple pay and Google Pay but in the test environment when I enter details, it says not successful

Related Request ID(s)
No Id

What have you already attempted?
I have implemennted Express and payment checkout booth, now when I try apple apy ogoolge pay in test env it showed errorI have implemented Express and a payment checkout booth. Now, when I try Apple Pay or Google Pay in the test environment, it shows an error.

cursive heronBOT
#

@glad dust pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Can I use the Link Authentication Element with the Custom Checkout beta?

Related Request ID(s)
N/A

What have you already attempted?
I have tried using the createElement method but it doesn't have the link authentication element option.

#

@glad owl pressed the 🤨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
The merchant should have ability to connect their existing Stripe account/business

What actually happened?
The merchant can see the page `Creating your account`. I tried my testing account to connect in test mode and it shows to me old connection interface (but I assume it's not relevant as test mode)

Reproduction Steps
Try to connect existing account in production mode

Question
My platform uses Stripe Connect so merchant accounts must authorize my app. Platform redirects the merchant to authorize url so then merchants can choose their account

What are you working on?
Stripe connect platform

cursive heronBOT
#

@unique epoch pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
stripe.billingPortal.configurations.create({
business_profile: { headline: 'Manage Subscription' },
features: {
subscription_update: {
default_allowed_updates: ['price', 'promotion_code'],
enabled: true,
products: [{ product: stripeProductId, prices: stripePriceIds }],
},
payment_method_update: { enabled: true },
},
});

Question
above configuration is used for flow type `subscription_update`. we are passing allowed prices and the product in the configuration. After a user completed a flow they are given the option to go to their account and there they are able to see other product subscriptions and even update them. It allows users to switch a subscription from another product to the product price allowed in this flow.
is there an option to disable this switching between products behaviour.

What have you already attempted?
we have already disabled the allow switch plans in stripe dashboard and set return_url in `stripe.billingPortal.sessions.create`.
Is there a way to disable this switching between product for subscriptions behaviour globally or can we prevent users from going back to the dashboard.

cursive heronBOT
#

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

Question
I have setup stripe webhook, but I am unable to receive the events when the payment is successfull.

Related Event ID(s)
I don't have id, this is my client's key.

What have you already attempted?
I have added and removed the webhook url, changed key as well and it didn't work.

What are you working on?
I am building an AI saas, once the user pays for the credits he gets some credits in his account. With webhooks, I am sending the userId so the X number will be credited in his account and the db.

cursive heronBOT
#

@noble abyss pressed the 📚 Doc or Guide button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Link to the Doc/Guide in question
stripe tax invoice my shop

Question
I received Here's your PRICEZERO tax invoice for the period Nov 1, 2024 to Nov 30, 2024 by email.
This was my first sale through a shopify online store. Question: Do I have to go anywhere and pay any taxes or anything?

What have you already attempted?
Im new on stripe, just create my online stopre

What are you working on?
Dropshipping

cursive heronBOT
#

@violet 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/crypto/onramp

Question
how to add and manage custom fee for platform. each time user buys a crypto certain fee should be paid to platform.

What have you already attempted?
I didn't found the docs

What are you working on?
I am creating a crypto wallet and want to add buy sell feature. whenever a user buys/sells from my wallet certain fee should be charged by wallet.

cursive heronBOT
#

@fallen pulsar 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://markdoc.dev/docs/examples/react

Question
This is just a quick q tbh, but I love Stripe's rich documentation, and would like to create my own documentation which is similar.

I've looked around and it looks like Stripe uses Markdoc (which they've created and open source'd), but their guides seem quite biased towards React: https://markdoc.dev/docs/examples/react

So this is all to ask, would you think it's possible to use Markdoc using Svelte instead *without* sacrificing on any functionality (for example, functionality that would only be present in React and not Svelte).

That's all, thanks a bunch in advance!

What have you already attempted?
N/A; just a question.

#

@paper elm pressed the 🤨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
I am a developer from the UAE, and I am facing an issue related to payments.

What actually happened?
We have an app called "Core Direction." While testing Stripe payments, we encountered an unexpected issue. If the package price is 100 AED, it works without any problems. However, if the price is something like 100.39 AED, it doesn't work, and our backend throws an error: "amount does not have that value."
When users purchase a package, we charge an additional 5% as

Reproduction Steps
its alll about testing the app packages which linked with stripe to handle payments

Question
Does Stripe support decimal payments for AED (United Arab Emirates Dirham)? We are encountering issues where payments with decimal amounts (e.g., 100.39 AED) fail, while whole-number amounts (e.g., 100 AED) process successfully. Could you clarify if AED supports decimal transactions or if we need to handle this differently in our implementation?

What are you working on?
I am working as Back End dev for core direction

#

@warm heart pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
var paymentElement = elements.create('payment');
paymentElement.on('change', function(event) {
console.log(JSON.stringify(event));
});

Result:
{
"elementType": "payment",
"collapsed": false,
"empty": false,
"complete": true,
"value": {
"type": "link"
}
}

Question
I have implemented the PaymentElement and am trying to capture the payment method name by listening to the on('change') event of the PaymentElement. However, most of the time, the event data returns the method name as link even when the user has not provided their email or phone number to create a Link account.

https://docs.stripe.com/js/element/events/on_change?type=paymentElement

Screenshot: https://github.com/user-attachments/assets/d5ccb196-d4b7-4c63-87ac-6ea765542117

What have you already attempted?
I looked into what other events are present in stripe js repo apart from the ones that are listed in docs, not much luck here.

What are you working on?
I have an upsell page where i want to reuse the payment method.

cursive heronBOT
#

@winged gulch pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Is it possible to show "Use phone number" highlighted on top on the onboarding page instead of Google two-factor authentication? Our users are old age group and prefer phoen number verification. Is this customizable in express/standard Stripe connect?

Related Request ID(s)
2323

What have you already attempted?
Read the docs

What are you working on?
explained above.

#

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

Question
Im having a proplem with stripe automatically taking payment from my subscribers... Ive tried changing every setting I can think of but cant seem to stop this function without deleting the subscription for every subscriber every time they resubscribe

Doc/Guide Links
Ive used all of the help there is on Stipe about auto rebilling

What are you working on?
My ISPC website

#

@shell shadow pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I have a feature where there is a creator of a community, that creator has to pay $49/mo sub. to the platform and that cretor's community member will also pay subscription.
Main question is if the creator payment is rejected, how can I pause comm. members subscription?

Related Request ID(s)
Building this feature currently

What have you already attempted?
For pause:
```ts
await this.stripe.subscriptions.update(member.user.Stripe_customer_id, {
pause_collection: { behavior: 'mark_uncollectible' },
});
```

For Resume:
```ts
await this.stripe.subscriptions.update(member.user.Stripe_customer_id, {
pause_collection: null,
});

    await this.stripe.subscriptions.resume\(subscriptionId, {
      billing\_cycle\_anchor\: 'now',
    }\);

```

What are you working on?
A community creation platform where users can create community and other users can join communities. Just like facebook groups. The diff. is that this is paid

cursive heronBOT
#

@cedar isle pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
<AddressElement
options={{ ...addressElementOptions, mode: "shipping" }}
className={styles.elementBody}
/>

Question
I want to put the limit for the firstname and lastname is their any option to do it.

What have you already attempted?
useEffect(() => {
const addressElementFirstName = document.querySelector(
'.AddressElement .Input[name="firstName"] input'
);
const addressElementLastName = document.querySelector(
'.AddressElement .Input[name="lastName"] input'
);
const validateInputLength = (inputElement: any) => {
if (inputElement.value.length > 50) {
inputElement.value = inputElement.value.slice(0, 50);
}
};
if (addressElementFirstName) {

What are you working on?
custom stripe checkout page

#

@autumn wasp pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How to make Stripe connect use Payment method controller by main Stripe (who creating a child of Stripe connect)

Related Request ID(s)
-

What have you already attempted?
i want to know, How to do Stripe connect use Payment method template from main Stripe.

Do it with created account Stripe connect and new creating account Stripe connect.

Thank you.

What are you working on?
Payment method of Stripe connect account

#

@frosty coyote pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I have a log in the dashboard that shows a payment method being detached. The response field has a fingerprint, that doesnt match the fingerprint I am expecting for that paymentMethodId. Is there a way for fingerprints to change for the same payment method id?

`req_a0HiwkE2TQRvW7`
PM ID: `pm_1QDQSoDD3nZJlvMpf5tTKlHv`
fingerprint on req: `psaa`
fingerprint i have in database: `KHbh`

I am not srue if fingerprints are sensitive, so, ive only included the first 4 characters.

Related Request ID(s)
req_a0HiwkE2TQRvW7

What have you already attempted?
Ive been looking around the docs trying to explain why a fingerprint would change for the same payment method id

#

@echo coral pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
Integrated express checkout element

Question
GPay and apple pay is not visible even its enabled in dashboard!

What have you already attempted?
When I inspected the iframe loaded but the button not visible-
https://clarfurniture.co.uk/checkout/. - this is the site, please add any product and go to checkout page. Button should appear on the top. The container div id is eh-stripe-payment-request-button

cursive heronBOT
#

@ivory fjord pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hi I was wondering the correct way to setup connected accounts. I have a pricing sheet set up with stripe which redirects me to the payment form so I can collect a monthly fee from restaurants. I have a lambda function that stripe redirects to and I can see the logs in my AWS cloudwatch but I am not able to redirect back to my application from the success page of the stripe payment sheet form.

After redirecting back, I was thinking of using the embeddable UI so that the user can edit the plan and bank account info etc. I think next step is to onboard them through the connected account flow? I plan to limit the app based on the plan selected and until they setup the account

Doc/Guide Links
Stripe connected accounts documentation

What are you working on?
Building a mobile ordering system for restaurants

cursive heronBOT
#

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

Question
Why does an off_session card payment require a 3DS confirmation on subscription creation? I'm using the Already set up 4000003800000446 test card.

Related Request ID(s)
req_CBY7Ih4whdRpxz

What have you already attempted?
I have tried confirming the payment intent, but it still requires an action (`evt_1QSzYQF9R6Nkg8poJeWwH1eG`)

#

@mental hull pressed the 🤨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
Invoice a customer is not working

What actually happened?
An error "error loading invoice items".

Reproduction Steps
Go to the customers info:
cus_R6O6GOGSDAcND9

Under the pending invoice items, clicking the invoice now button. There is an invoice item below.

Question
Why does this error occur, it also occured in an api request
req_KvunEDs93fXZOB
but we dont know why

What are you working on?
An application to help people charge on public EV chargers. We use stripe to bill the users after the charging finishes

#

@foggy apex pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
PaymentIntentCreateParams.Builder createParamsBuilder = PaymentIntentCreateParams.builder().setAmount(amount)
.setCurrency("gbp").setConfirm(false)// .setConfirmationMethod(ConfirmationMethod.MANUAL)
.setCaptureMethod(alsoCapture ? CaptureMethod.AUTOMATIC : CaptureMethod.MANUAL)
.setCustomer(job.getCustomer().getStripeCustomerId()).setPaymentMethod(job.getPaymentMethodId())
.setReceiptEmail(job.getCustomer().getUser().getPersonalProfile().getEmail())
.setD

Question
Currently payment intent get expired after 7 days. Is there way this limit can increase. Or do we need to create new payment intent in this case.

What have you already attempted?
Refer to this document https://teams.microsoft.com/l/message/19:0f102aff-0ea6-4a66-9e57-4ec266bd9d9b_3dfbe656-5c23-468e-9634-12ea0888b2aa@unq.gbl.spaces/1733483169626?context={"contextType"%3A"chat"}

#

@flint grotto pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We would like to migrate some users to a new subscription product. We have tried using the codebase from the current doc link but not sure what the best practise is. Our objective is to auto migrate on their next billing cycle

Doc/Guide Links
https://docs.stripe.com/api/subscriptions/update

Codebase we used,

#python3
subscriptions = stripe.Subscription.list(customer=target_customer_id)
if subscriptions.data:
subscription_id = subscriptions.data[0].id
# Update the price of the subscription item
subscription = stripe.Subscription.modify(
subscription_id,
items=[
{
"id": subscription['items']['data'][0]['id'],
"price": new_price

What are you working on?
Migrating users to a new subscription product

cursive heronBOT
#

@iron solar pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Checkout Session: One payment method (german "Lastschrift") not showing for a particular customer. Whats the issue?

Related Request ID(s)
none

What have you already attempted?
checked discord for previous occurences - have not found any.

cursive heronBOT
#

@pure rose pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Creating a checkout session that allows the usage of promotional codes we are seeing an unexpected behaviour with invoices. The first invoice appears with the discount applied directly on the subscription item but in the subtotals section Discount is 0

Time on [Name of the Product] (with XX% off until 26 May 2025) from 26 Nov 2024 until 01 Dec 2024 -> $154.18 [Prorated amount with discount applied]

Subtotal $154.18
Discount name (XX% off) $0.00

But if I open a future invoice it's correct, the subscriptionItem shows the full price and there is a line like this
Discount name (XX% off) -$XXX

Related Request ID(s)
Invoices

What have you already attempted?
Check API docs, tested different configs, checked the coupon, promotional code and checkout objects

What are you working on?
A subscription flow

#

@warm heart pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
var paymentElement = elements.create('payment');
paymentElement.on('change', function(event) {
console.log(JSON.stringify(event));
});

# event result
{
"elementType": "payment",
"collapsed": false,
"empty": false,
"complete": true,
"value": {
"type": "link"
}
}

Question
I have implemented the PaymentElement and am trying to capture the payment method name by listening to the on('change') event of the PaymentElement. However, most of the time, the event data returns the method name as link even when the user has not provided their email or phone number to create a Link account.

https://docs.stripe.com/js/element/events/on_change?type=paymentElement

Screenshot: https://github.com/user-attachments/assets/d5ccb196-d4b7-4c63-87ac-6ea765542117

What have you already attempted?
I looked into what other events are present in stripe js repo apart from the ones that are listed in docs, not much luck here.

What are you working on?
I have an upsell page where i want to reuse the payment method. So i want to add save_payment_method flag if its card.

cursive heronBOT
#

@nova girder pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Im trying to integrate Alma as a payment method and after creating the Payment intent I get the actual error when trying to validate the payment :

status: "requires_payment_method"

Also Alma is already activated on my shop and account.

```
const { error } = await stripe.confirmPayment({
clientSecret,
confirmParams: {
return_url: `${PG_PAYMENT_URL}/redirect/status?lang=${params?.lang}`,
},
});
```

Related Request ID(s)
req_yJbojIenooXlUV

What have you already attempted?
I've already tried on multiple shops validated with Alma without success.

What are you working on?
Im integrating Alma for all our shops on Stripe as a payment method

cursive heronBOT
#

@frosty coyote pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I have a payment method, that seems to have been detached by the wrong accounts API key?

If I look at req_ZL2jv2IqAsgflr , I can see that it detached pm_1QRPz2DD3nZJlvMpxkRXhFqV . The API Key in use was for acct_1DW87gDRH1nN3Sur . However, that payment method doesnt exist on that account, it exists on acct_1Gin94DD3nZJlvMp. These are both accounts managed by us, but from what I can tell they aren't related to each other (ie, they arent a connected account of each other).

So how would another account api key detach a payment method from another account?

Related Request ID(s)
req_ZL2jv2IqAsgflr

What have you already attempted?
Looked at dashboard

#

@pliant pendant pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Can I display HTML in the product description that is shown on the Stripe Checkout page?

Related Request ID(s)
N/A

What have you already attempted?
I have looked at the documentation but it doesn't mention anything about HTML in descriptions.

What are you working on?
A plugin for a forum.

#

@astral owl pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We are testing in test mode, and are using a stripe account with connect that already existed and has been used in production. If we try and conenct to an existing eligable account, it throws some errors, e.g. the payouts array is missing and if we try and update the account it errors saying can only be done with a live key.

Is it simply not possible to do this type of test with a test mode stripe account?

Related Request ID(s)
n/a

What have you already attempted?
n/a

cursive heronBOT
#

@unreal bison pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How can I get all the payment methods includes verification pending account by customer id ?

Related Request ID(s)
How can I get all the payment methods includes verification pending account by customer id ?

What have you already attempted?
How can I get all the payment methods includes verification pending account by customer id ?

cursive heronBOT
#

@high ridge pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
https://docs.stripe.com/payments/accept-a-payment?platform=ios&ui=payment-sheet

Question
Using Stripe payment sheet ios sdk with recommended mobile payment intent + payment API. I need to purchase a subscription either with or without trial. :

What have you already attempted?
NodeJS - server side, i've created a subscription object, then collect the first payment intent of that subscription to generate the data required for the payment sheet for iOS. Works fine when there is no trial ( payment intent is defined ). However, when there is a trial, the payment intent is undefined ( null ). I need to be able to accept the payment, and also set the payment method as default so it auto collect the auto renewable subscription.

What are you working on?
Purchasing subscription for a 1 on 1 service product

#

@storm sonnet pressed the 🤨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
Paypal fees being charged by stripe

What actually happened?
being double charged the fee's by both stripe and paypal

Reproduction Steps
Order using paypal on the website using the stripe movdule

Question
we have been told by our accountants that we are getting double billed for paypal fee's when using stripe by being charged by stripe and paypal

#

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

Code
Not sure, trying to do a test donation for a widget on my company's website

Question
When i do a test donation for the widget, it does not work because it is not in test mode. I want to know how to test it

What have you already attempted?
Nothing yet

#

@jagged plume pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
When updating subscription to new item and pricing with billing_cycle_anchor: "now", proration_behavior: "always_invoice", if payment doesn't go through for any reason is there a way to revert it back rather than keeping having subscription state to "past_due"

Doc/Guide Links
https://docs.stripe.com/billing/subscriptions/upgrade-downgrade#metered-billing-with-usage-records

What are you working on?
Switching product by keeping the subscription.

#

@desert crow pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
im attaching a card to a user using setup intent. Is there a way to attach metadata to the payment method (card) in order to receive it in the body of the payment_method.attached event? or is there a way to receive the payment_method (card) details on the setup_intent.succeeded event and not just the payment_method id?

Related Request ID(s)
evt_1QSMAvERWZ2uwXezKlr62Tbg, evt_1QSMBLERWZ2uwXez4iKZKLfR, evt_1QSMBMERWZ2uwXezrpn5nz6V

What have you already attempted?
when i create the payment method with the setup intent i send in the metadata the card entity id from my db. The payment_method.attached doesnt return that card id on the metadata. And the following event that is setup_intent.succeeded brings the cardId in the metadata but it doesnt return the card details it just brings the id.

What are you working on?
saving credit cards for users for later subcription payments

#

@ebon shell pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
When creating a payment intent is it okay to store the clientSecret in local storage?

My goal is when a user gets to checkout it sees if the user already has a PI by checking for a CS in the local storage, and if so it will retrieve the PI and update the PI and cart associated with the PI in the database. Else, it creates a PI and stores CS in the local storage and creates a cart in the database associated with the PI.

I'm new to webdev and wanted to see if this was a secure practice and if not, what would be? I see online that you shouldn't store client secrets in local storage but they are referring to passwords. Thanks for any help given.

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

What are you working on?
Ecommerce website

cursive heronBOT
#

@indigo radish pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
<div id="paypal-button-container-P-1R3689808R834872HM5JTBLY"></div>
<script src="https://www.paypal.com/sdk/js?client-id=AZHQCoIQMjP9aiFfF3MILHaZFvg8epnFvmJcJNlc1tjOxU1zGTFzfiItFFgQsUd3nSKg7D5SGzZSdMDH&vault=true&intent=subscription" data-sdk-integration-source="button-factory"></script>
<script>
paypal.Buttons({
style: {
shape: 'rect',
color: 'gold',
layout: 'vertical',
label: 'subscribe'
},
createSubscription: func

Question
I need to add PayPal as a payment option to my checkout by coding this link in

What have you already attempted?
I have not tried to do it because i don’t know how to code

What are you working on?
https://buy.stripe.com/28o8zfcbU07l920144

cursive heronBOT
#

@astral owl pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I raised a ticket earlier around moving from oauth onboarding to API. We have a working POC and I am now trying to udnerstand how to disconnect or deauth.

Related Request ID(s)
n/a

What have you already attempted?
n/a

#

@limber garden pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I'm developing a Stripe app. I have accounts connected via OAuth. I want to perform an action in the backend when a checkout.session.completed is triggered for the specific user. How can I get the stripe account ID from events, so I can match it with the one obtained via the API during OAuth?

Related Request ID(s)
NA

What have you already attempted?
Looking at docs, on_behalf_of doesn't seem to exist when testing firing events locally.

What are you working on?
stripe app

cursive heronBOT
#

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

Question
Can Stripe Issuing generate individual virtual cards for users and a shared virtual card for group payments?

Are these virtual cards compatible with Apple Pay and Google Pay for NFC-based transactions?

Can Stripe Issuing cards be integrated directly into Apple/Google Wallet through the Stripe API? without the manual need to add them for each user?

Our developers are having a hard time understanding how to integrate everything. We have spoken with multiple representatives but haven't gotten any clear answers.

Related Request ID(s)
n/a

What have you already attempted?
n/a

What are you working on?
Our product is unique in we pool money from individual virtual wallets to group wallets and then handle the payments through nfc technology (our stripe virtual cards would be in apple/google wallets)

cursive heronBOT
#

@reef sand pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I am working on an iOS PaymentSheet and I noticed Apple Pay was not displaying, despite setting up in the Stripe dashboard and w/ Apple + XCode. I then noticed that on a sample payment intent, Apple Pay was not listed under the payment method types. I did not specifically specify the payment method types when creating the payment intent, and I thought it would automatically pick up the payment methods enabled in the dashboard. Is there something I am missing or misunderstanding?

Related Request ID(s)
pi_3QT6GQFKKJ5EQsly0ubHbq5B (test env)

What have you already attempted?
Here is my server-side code creating the payment intent:

PaymentIntentCreateParams.Builder builder = PaymentIntentCreateParams.builder()
.setAmount(amount)
.setCurrency("usd")
.putMetadata("paymentId", paymentId)
.setAutomaticPaymentMethods(
PaymentIntentCreateParams.AutomaticPaymentMethods.builder()
.setEnabled(true)
.setAllowRedirects(AllowRedirects.ALWAYS)
.build())
.setTransferGroup(order.getEntityId());

return PaymentIntent.create(builder.build());

cursive heronBOT
#

@narrow phoenix pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hi, i am developing stripe api for connected accounts. but on transfer amount to connected account api showing error. how can i add balance in stripe to test connected account.

>>>Stripe API error: You have insufficient funds in your Stripe account for this transfer. Your card balance is too low. You can use the /v1/balance endpoint to view your Stripe balance (for more details, see stripe.com/docs/api#balance).

Related Request ID(s)
req_OP4dyRWn2R0TEs

What have you already attempted?
Working on stripe api

cursive heronBOT
#

@brisk goblet pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
What's wrong with my subscription?
I've successfully created the following subscription (sub_1QRD2sRoOGAfpyRWkpWkYpAt available in test Mode).
It consist of PAD weekly payments on every wednesday. The subscription is "Past Due" because all recurrent payments are unsuccessfull.

Can you please check it with the given ID and see what's wrong?

Thanks in advance

Related Request ID(s)
Past Due Subscription

What have you already attempted?
After having created the subscription, I have advanced in time to see if its first payment whould be successfull. It failed and the payment is now in Retrying status

#

@onyx wing pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I'm unclear how Apple Pay should be handled in a 'finalized later' payment environment for regular customers.

Related Request ID(s)
N/A

What have you already attempted?
We have an existing integration for Cards and have started prototyping an Apple Pay integration.

cursive heronBOT
#

@vivid burrow pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I am observing different behavior when canceling subscriptions and would like to understand what factors could cause this.

In both cases, a DELETE call was made on a subscription. However:

In case one, Stripe responded by broadcasting the customer.subscription.deleted event.
In case two, Stripe responded with a customer.subscription.updated event.

Could you please clarify why these responses differ?

Related Event ID(s)
evt_1QK3IkCPHmUYMa5NQ8mm0kuX, evt_1QK3OCCPHmUYMa5NHR3y4FRP

What have you already attempted?
Cancelling a subscription, cancelling a subscription when a payment has failed via billing settings

What are you working on?
Inconsistent Behavior When Canceling a Subscription

#

@hoary scroll pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
await stripe.subscriptions.update(stripe_subscription_id, {
items: [
{
id: stripeSubscription.items.data[0].id,
price: new_price_id,
},
],
billing_cycle_anchor: 'now',
proration_behavior: 'always_invoice',
proration_date: stripeSubscription.current_period_start,
...(stripeSubscription.trial_end && { trial_end: 'now' }),
});

This used to work, but has suddenly stopped

Question
I want this function to:
1) update stripe subscription to the new price id
2) charge extra / refund the FIXED amount between the two prices (so no 'time based' prorations), just the fixed amount
3) This is for updating products of different cadenices

What have you already attempted?
Code above

#

@sacred gorge pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
const stripeCustomer = await this.createOrGetCustomer(user._id.toString())

        const bankAccount = await this.stripe.customers.createSource\(stripeCustomer.id, {
            source\: stripeBankAccountToken.stripe\_bank\_account\_token,
        }\)

Question
I connect a source for a subscription payment method using the old plaid APIs. Is it possible to enable two-day settlement for ACHs with this?

What have you already attempted?
We currently use ACH but with the longer settlement time

#

@wise vale pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Is there a way via the api to remove the user requirement of adding an address field to a checkout session? I'd also like to pre populate the email field

Related Request ID(s)
checkout_session

What have you already attempted?
I have looked through the docs

What are you working on?
I am working building a free trial checkout session

cursive heronBOT
#

@unreal bison pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
stripe.confirmSetup({
elements,
confirmParams: {
return_url: '@Url.Action(returnAction, ViewContext.RouteData.Values["controller"].ToString(), null, Context.Request.Scheme)?customerId=' + customerId + '&selectedAmount=' + selectedAmount + '&invoiceId=' + $('#hdnInvoiceId').val()+'&intent='+elements,

     payment\_method\_data\: {
         billing\_details\: {
             name\: firstName +' '+ lastName,
             email\: billingEmail,

Question
While confirming the setup intent, return url how can i add the setupintent object which data is confirming to return url ?

What have you already attempted?
Getting Setupintent object in confirm setup return url

What are you working on?
setup intents confirm

cursive heronBOT
#

@chilly spear pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We are on Custom Connect and some merchants want to pass through credit card surcharges. We can calculate the fees in a compliant manner, but Visa requires that value to be passed to them. However, I don't see a surcharge field anywhere on the payment intent. How do we pass the surcharge fee to Stripe so you can pass it to Visa etc?

Related Request ID(s)
Not ID specific

What have you already attempted?
I looked over the docs and went through our existing Stripe integration. I cannot find the field.

#

⛔️ 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
#

@grim beacon pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
let clientSecret = paymentIntentClientSecret;
let carItems: any = {
label: merchantName,
amount: options.amount?.toString(),
paymentType: PlatformPay.PaymentType.Immediate,
};
if (trialData) {
clientSecret = trialData?.setupIntent;
carItems = {
label: merchantName,
amount: '0',
paymentType: PlatformPay.PaymentType.Immediat

Question
React Native is creating a free 7-day trial subscription feature. I don't know how to configure this parameter for Apple Pay and Google Pay

What have you already attempted?
https://docs.stripe.com/payments/save-and-reuse?platform=react-native&mobile-ui=payment-element#apple-pay

cursive heronBOT
#

@lucid zodiac pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Is it possible to Display 3ds authentication flow for upgrade scenario?

Related Request ID(s)
N/A

What have you already attempted?
We have saved customer card details, And using those we are currently hitting subscriptions/update endpoint. For cases when 3ds is required is it possible to display 3ds authentication flow?

Currently the entire upgrade acceptance happens from backend, So i'm assuming if i wanted to do this we will have to integrate some sort of Intent based mechanism on frontend.

cursive heronBOT
cursive heronBOT
#

@hidden moss pressed the 🤨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
I expect card payments to be proceed immediately (at most 1-2 minutes delay)

What actually happened?
A payment was attempted 12 minutes after the initiation

Reproduction Steps
Make a purchase using a card. It gets processed after 12 minutes

Question
A customer initiated payment on Nov 28, 2024 at 7:05 PM local time. But the processing by stripe got triggered at 7:17 PM. Our system doesn't expect this much delay and as a result, our system has got stuck in an unexpected state. Can you let us know, if this kind of a delay is expected or not. Here's the customer ID for your reference - `cus_RIjLaLNwkU6Bgx`

cursive heronBOT
#

@lean girder pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
does creating a webhook using stripe java api requires enabling the webhooks on the stripe dash board?

Related Request ID(s)
1

What have you already attempted?
i'm trying to integrate some client with stripe webhooks for alipay but its not working and i'm not receving any events from stripe so i think the issue is that the client needs to enable the web hooks on their-end am i right here?

#

@halcyon scarab pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
need to know which api is required for stripe integration in my app

Related Request ID(s)
NA

What have you already attempted?
tried checking document not found a good doc

What are you working on?
integrating stripe to my appplication

cursive heronBOT
#

@modern geode pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Can we receive funds in our own stripe account (to serve as escrow) and pay to a group of individuals when they complete the task and refund the remaining amount to buyer.

Related Request ID(s)
nill

What have you already attempted?
Received funds from a restaurant in own account and onboarded creators using Stripe connect.
Want to transfer the amount to the creator for their work and refund the remaining amount to restaurant.

What are you working on?
I am working on integration where resturant pays the total amount of campaign in advance and upon the completion of campaign the creators who were part of campaign gets there payment.

#

@vernal lily pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Whey I receive updates on payment intents via the webhooks how can I distinguish on_session and off_session attempts? I would like to send emails to users when payments are failing, but not to bother them when they clearly can see the payment failing on the dashboard.

Related Event ID(s)
none

What have you already attempted?
Reading the docs and inspecting the objects

What are you working on?
Creating a subscription system

#

@grim beacon pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
let param: any = {
merchantDisplayName: merchantName,
paymentIntentClientSecret,
// 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: 'Jane Doe',
// },
};
if (paymentIntent?.ephemeralKey)

Question
Currently, the payment controls pulled up using initPaymentSheet and presentaPaymentSheet only display card and cash app payments without Google Pay and Apple Pay options. However, I can pull up the Google Pay payment control through ConfirmPlatformPayment

What have you already attempted?
https://docs.stripe.com/payments/save-and-reuse?platform=react-native&mobile-ui=payment-element#apple-pay

cursive heronBOT
#

@covert nimbus pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Should I only use customer.subscription.updated when checking if a subscription was renewed? Right now my webhook logic is the following.
On the invoice.payment_succeeded webhook I handle both my oneTimePayments and my subscriptions, the diffference is that if the invoice contains a subscription, I am using a different function
async function handleInvoicePaymentSucceeded(invoice) {
try {
if (invoice.subscription) {
handleInvoiceSubscriptionPaymentSucceeded(invoice);
return;
}
Is this a good approach? I read that a new invoice is created tho on every subscription renew.

Related Event ID(s)
customer.subscription.updated, invoice.payment_succeeded

What have you already attempted?
I have tried reading the docs but I don't know how to force a renewal from the dashboard.

What are you working on?
An ecommerce website

#

@dreamy karma pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
i created webhook using this url and i am using wordpress and function.php , in below function i can see error logs but on stripe it's showing failed

https://upthecatalogue.com/simpay/

add_action('wp_loaded', function () {

}

Related Event ID(s)
evt_3QU2NiB7MfMJnRAx0SHsuP3k

What have you already attempted?
i created webhook using this url and i am using wordpress and function.php , in below function i can see error logs but on stripe it's showing failed

https://upthecatalogue.com/simpay/

add_action('wp_loaded', function () {

}

#

@dusk gulch pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
I have to pass metadata in the charged object how do I do it?

Question
Meta Data passes in charge object

What have you already attempted?
I have create the subscription and meta data pass in charge object

What are you working on?
Meta data add

cursive heronBOT
#

@slow pagoda pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hello We connect Stripe into magento but now we facing error when we select the stripe payment methos can you please help us

Related Request ID(s)
https://www.vanel.tech/rest/ml/V1/stripe/payments/redirect_url?_=1733733550309

What have you already attempted?
"Sorry, the order could not be placed. Please contact us for more help."

What are you working on?
Magento 2

cursive heronBOT
#

@velvet drum pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I just wanted to know that if I'm making any payment under connect account from customer which I make in platform so after payment customer is guest customer and it is not fetching payment methods.

Related Request ID(s)
https://dashboard.stripe.com/connect/accounts/acct_1GbPeoLnxxBz9JyG/payments/pi_3QU1UBLnxxBz9JyG1qlR88NI

What have you already attempted?
https://dashboard.stripe.com/connect/accounts/acct_1GbPeoLnxxBz9JyG/payments/pi_3QU1UBLnxxBz9JyG1qlR88NI

#

@mighty grove pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
When user opens checkout page the tax is empty. It is calculated only when user choose payment method. Can tax be instantly calculated? I thought last week it was working ok. but recently tax is not calculating immediatly

Related Request ID(s)
Its not related to certain request

What have you already attempted?
I have this flag:
automatic_tax: {
enabled: true,
},

#

@nova girder pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I'm trying to integrate Alma via API and would like to know if there is a way to avoid the auto redirection after the confirmPayment and instead get an authentication_url ?

Related Request ID(s)
N/A

What have you already attempted?
I've already tried to get the Payment intent after the confirmPayment call but the redirection is just before I could get it

What are you working on?
Im trying to integrate Alma as a payment_method for a global PSP

cursive heronBOT
#

@midnight lance pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
```
phases: [
{
items: [
{
price_data: {
currency: priceData.currency,
product: priceData.product,
recurring: {
interval: priceData.interval,
},
unit_amount_decimal: priceData.unitAmountDecimal,
},
quantity: 1,
},
],
iterations,
}
]
```

Question
I'm on node js and I use typescript. I use this call ``this.stripe.subscriptionSchedules.create({})``
How can I add a price data, with data on our product, price etc.?

What have you already attempted?
I've read the doc in subscription schedules and I see that the children of phases.items don't contain a price_data object that we could use

What are you working on?
I've tried to create a function to make the call to create a schedule subscription but the params I want to set don't work. Via curl I can send the price_data

#

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

Question
I want to create payment intent with later payout to multiple connected account. For single connected account I can payout the amount later.

Related Request ID(s)
req_LIL4c9hfNNlOpi

What have you already attempted?
I have tried with single connected account with the "transfer_data" parameter while creating payment intent. But we can send only one destination there. I tried with create multiple transfer request, but it showing insufficient funds after capturing the payment. I have to capture and payout the fund on user's action.

What are you working on?
I have to capture and payout the fund on user's action. When the payment is done through card it should not capture to stripe dashboard and only payout on user's action

#

@uncut moth pressed the 🤨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
The stripe CLI creates products for me automatically which I dont want. In stripe product description it says "created by Stripe CLI". How do I disable this?

What actually happened?
I do stripe --listen, and it creates products for me..

Reproduction Steps
I do stripe --listen, and it creates products for me..

Question
How do I disable this automatic creation of products? I already have products in testing environment and dont want to be populated with test products

#

@empty night pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We are using Stripe Connect to create accounts and pre-fill most data. This mostly goes fine. But some merchants enter the Spanish version of a state, like `Nueva York` (Spanish version of New York).

Related Request ID(s)
req_tYTkCpgELNSbr2

What have you already attempted?
Some major languages are not supported, but there also seems to be no allow list for states in certain countries.

What are you working on?
Connect signup

#

@vagrant ibex pressed the 🤨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
customer payment belongs to another user

What actually happened?
customer payment belongs to another user

Reproduction Steps
we are not able to replicate it

Question
payment intent of the order completed by the customer, belongs to another customer

cursive heronBOT
#

@spiral bluff pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I'm creating an account link for a customer but everytime they click it they are redirected to the redirect url. Even when they click instantly

Related Request ID(s)
` stripe account_links create --account="acct_1QRRZmIdSDTXe2uD" --type="account_onboarding" --refresh-url="http://dashboard.web3auth.io" --return-url="http://dashboard.web3auth.io"`

What have you already attempted?
stripe account_links create --account="acct_1QRRZmIdSDTXe2uD" --type="account_onboarding" --refresh-url="http://dashboard.web3auth.io" --return-url="http://dashboard.web3auth.io"

What are you working on?
` stripe account_links create --account="acct_1QRRZmIdSDTXe2uD" --type="account_onboarding" --refresh-url="http://dashboard.web3auth.io" --return-url="http://dashboard.web3auth.io"`

cursive heronBOT
#

@slate slate pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
After creating a checkout session, it doesn't appear when fetching all checkout sessions via API, nor can I expire by ID. In case it helps, I am using sandboxes

Related Request ID(s)
POST -> req_UI6KcWEgLseLTT, GET -> req_GBmqa9anwfCyN1

What have you already attempted?
Checking the docs

What are you working on?
Reveni exchanges integration with stripe

#

@sullen jacinth pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
i cant make multi currency working using BRL frm Brazil

Related Request ID(s)
?

What have you already attempted?
i have let the Multi Currency on the settings, and plenty tests with different cards

What are you working on?
website for audio softwares

#

@rare tide pressed the 🤨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
I was expecting India to be listed in the "Business Location" dropdown on the page where users enter their business details after logging in to connect their account.

What actually happened?
India is not listed in the dropdown of countries for "Business Location." This prevents users in India from completing the process to connect their accounts.

Reproduction Steps

  1. Log in to the Stripe account setup process for Indian users.
  2. Proceed to the second page, where users need to fill in their business details.
  3. Check the dropdown list for "Business Location."
  4. Observe that India is missing from the list of countries.

Question
How can my customers in India connect their accounts if India is not listed in the "Business Location" dropdown? Is this a configuration issue or a limitation for Stripe accounts in India? How can this be resolved?

What are you working on?
I am trying to create a connect account in stripe for indian customers

cursive heronBOT
#

@lean depot pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hello, I'm trying to integrate the Multicapture service in my Flutter application, I have issues, when I send a request after creating a checkout session and paymentIntent, the payment appears in my transactions section and I capture some of it, the remaining part always gets refunded to the customer, I have tried setting allow_multicapture parameter to "if_available" and setting the payment parameter to "card", also setting the method parameter to "manual", when I try using the test card to create the transaction it tell me that This account is not eligible for the requested card, please help

Related Request ID(s)
req_wmgzLnoE7aUlc3

What have you already attempted?
I have attempted creating a checkout session through postman and Stripe's shell, I also tried injecting the requests through my Flutter application using Firebase Cloud Functions to create the checkout session, the paymentIntent and the capture payment functions, it all leads to the same error message

What are you working on?
I'm building a mobile app for hair stylists to provide their services for customers, I want to use Stripe to create a payment that I can capture multiple times

#

@bleak rivet pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
See this https://discord.com/channels/841573134531821608/1314227263746609254

One more issue about it : When I take my sub for example the 2 december and the 8 december an upgrade fails and I revert it, the next invoice will be 8 january and not 2 january, how to handle this?

Related Request ID(s)
no

What have you already attempted?
Updating sub with current_period_start and end to the past

#

@silk depot pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I did one transaction, in which api I want last 24 hours transaction data.

Related Request ID(s)
.

What have you already attempted?
I have applied, transaction api, balance api

What are you working on?
I want last 24 hours transaction data. and after on that charge id to get actual amount net amount and stripe fee list.

#

@gleaming void 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
Should we rather let PaymentIntent to be deleted by Stripe or should we cancel them manually?

What have you already attempted?
Let's imagine our customer in middle of payment left browser, because of whatever. We would create a new payment intent when he/she come back, to be sure, paymentIntent is correct (price, or whatever). Should we cancel those unwanted "manually" or should we let you to cancel them out in some time?

cursive heronBOT
#

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

Code
invalid_request_error : 'Program iprg_1QU42kQcv0WJLqfKJdkXsxdy does not support financial accounts.'

Question
I want to create an issuing physical card linked to a financial_account, but I get the error mentioned above. How can I make the creation succeed ?

What have you already attempted?
I followed https://docs.stripe.com/treasury/examples/financial-accounts

#

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

Question
having an issue with getting the checkout session up

Related Request ID(s)
"cs_test_c1fbTQQmHt2u6IA1xqPRB9dhFeKVj83ajMPldRDjEIOivobzbRJHSIfYYf"

What have you already attempted?
getting a session id

What are you working on?
a water chemistry website that accepts payments

cursive heronBOT
#

@lime sierra pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hello, we would like to collect the email addresses of customers created through checkout or payment links, but without creating a customer object.

Looking at the charge that results in such transaction, there is an email address in the billing_details.email property as well as recipient_email property, but we are not sure about the difference between the two. Could you explain?

Related Request ID(s)
ch_3QU7LXJ5CoSeGedK0LCT02mw

What have you already attempted?
We are just interested in the difference, as we get billing_details.email but not recipient_email, so we are curious about the difference.

What are you working on?
An integration app

#

@night fossil pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
const portalSession = await stripe.billingPortal.sessions.create({
customer: req.user.stripeCustomerId,
return_url: `${frontendBaseUrl}/subscription`,
});

Question
We currently have a working subscription process using stripe customer portal and now we are trying to add support for kakao pay and korean local cards payment methods. Initial subscription works fine, but when upgrading subscription in the portal we get this error:
"You must provide a `return_url` when confirming a PaymentIntent with the payment method type kr_card."

What have you already attempted?
also tried handling upgrade using stripe SDK instead, but getting this error:
"The PaymentMethod provided (kr_card) is not allowed for this PaymentIntent. Please attach a PaymentMethod of one of the following types: card."

cursive heronBOT
#

@marsh herald pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
Subject: Inquiry about Payment Gateway Integration for Dual-Purpose Transactions

Dear Stripe Team,

We are developing a mobile application and are exploring the integration of your payment gateway for the following use cases:

Payment Collection: Enabling customers to pay for services/products directly through the app.
Worker Payments: Facilitating the disbursement of payments to our workers/taskers who fulfill the services.
Platform Commission: Deducting a predefined commis

Question
Subject: Inquiry about Payment Gateway Integration for Dual-Purpose Transactions

Dear Stripe Team,

We are developing a mobile application and are exploring the integration of your payment gateway for the following use cases:

Payment Collection: Enabling customers to pay for services/products directly through the app.
Worker Payments: Facilitating the disbursement of payments to our workers/taskers who fulfill the services.
Platform Commission: Deducting a predefined commis

What have you already attempted?
Subject: Inquiry about Payment Gateway Integration for Dual-Purpose Transactions

Dear Stripe Team,

We are developing a mobile application and are exploring the integration of your payment gateway for the following use cases:

Payment Collection: Enabling customers to pay for services/products directly through the app.
Worker Payments: Facilitating the disbursement of payments to our workers/taskers who fulfill the services.
Platform Commission: Deducting a predefined commis

What are you working on?
Subject: Inquiry about Payment Gateway Integration for Dual-Purpose Transactions Dear Stripe Team, We are developing a mobile application and are exploring th

#

@tawny crown pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
i want a code to transfer from one stripe account to another or connect an account

Question
i want a code to transfer from one stripe account to another or connect an account even a tutorial one of my account on the same email have an issiue so am unable to get my funds

What have you already attempted?
ive cantact support over a 10 times only thing they say they cant do nothing more

What are you working on?
im am using the stripe app to collect from a partnership program with the newsbreak

#

@fathom 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/disputes/prevention/verification

Question
I need to verify the credit cards of my mobile app users. Will I be charged by the user or myself when verifying the card? What process must I follow after the user enters the card details? Could you give me a simple response from Stripe about whether this card is valid?

What have you already attempted?
Get the user card number, CVC, and expiration date.

What are you working on?
I'm building a handyman service mobile app and i need to verify the Taskers payment method. So i created the UI for get the card number , CVC and Expire date.

cursive heronBOT
#

@patent pollen pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I am using this endpoint to update a card in my app:

$stripe = new \Stripe\StripeClient('sk_test_•••p7dc');
$stripe->sources->update(
'src_1N3lxdLkdIwHu7ixPHXy8UcI',
['metadata' => ['order_id' => '6735']]
);

But this endpoint always fails on production and I don't know why while when I try to update a card locally using the dev keys it works normally. Do. you why it fails and what to do to make it work?

Related Request ID(s)
req_4N3MEkzxEjaU03

What have you already attempted?
I looked into the stripe documentation and found that the source is deprecated but i am not sure if this is the reason why the endpoint fails

What are you working on?
I am trying to understand why this endpoint fails

#

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

Question
I'm trying to understand some legacy code that has `Subscription.proration_behavior = 'always_invoice'` and `Subscription.billing_cycle_anchor = 'now'` hardcoded in.

My understanding is these values should only be used when trying to upgrade/downgrade a subscription, is that correct?

Related Request ID(s)
N/A

What have you already attempted?
Reviewing old code, reading documentation

What are you working on?
Refactoring SaaS

cursive heronBOT
#

@turbid locust pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How can I set up free trials based on set amount of free credits for usage-based billing instead of trial periods?
Also is there a way that this can be enabled without having to attach a payment method to a customer?

Essentially the flow would be as follows an user signs up and gets x amount of credits without having to add a credit card/payment method, once they are ready or run out of credits they can purchase a metered subscription using the overage model to get more tokens

Is there a way to implement this? Maybe with a 0 dollar subscription of some sort?

Doc/Guide Links
https://docs.stripe.com/billing/subscriptions/usage-based/billing-credits
https://docs.stripe.com/billing/subscriptions/usage-based/pricing-models

What are you working on?
Paid API Endpoint based on usage.

#

@austere pawn pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I am calling AccountSession.create(params); to create accountSession for stripe embedded component. And i get client_secret information to enable the embedded component in the UI of my page.

Is there a static html template that you can provide me that i can hardcode this client_secret value to show component in the ui for test purposes?

Related Request ID(s)
acct_1MI7ovCtVoIurUTK, accs_secret__RLNwqtUX3jLhaFZNLakG2HTAgkGiGtfJzQ4vgsGfhLB4snI

What have you already attempted?
i have already got client secret which starts with accs_secret__xxx

What are you working on?
Connect embedded components

cursive heronBOT
#

@next falcon pressed the 🤨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
I expected my Google Pay Integration to be approved.

What actually happened?
My Google Pay API integration was rejected by Google.

Reproduction Steps
Use the Mobile Payments Element in an Android app. Enable Google Pay. Register the integration with Google.

Question
Is this a known issue? Is there anything I can do on my side to work around this? Thanks in advance

What are you working on?
New app. using the Mobile Payment Element

#

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

Code
No configuration provided and your test mode default configuration has not been created. Provide a configuration or create your default by saving your customer portal settings in test mode at https://dashboard.stripe.com/test/settings/billing/portal."

Question
I am getting the above error when trying to open the payments portal for a customer to cancel/manage their subscription. This feature works in prod, but in our staging environment it fails despite the same setup in both environments.

What have you already attempted?
Went through the docs at https://dashboard.stripe.com/test/settings/billing/portal

What are you working on?
membr.ai website

#

@ivory fjord pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Wondering what the best flow is for pricing tables and connected accounts

So far I have the pricing tables which signs a merchant up for one of my subscriptions. I save the customerID, subscriptionID and the price/planID currently.
I have to also create a connected account for that user, but was wondering if I use the same customerID or what I would have to do. I’m also using AWS lambda and there’s not a lot of resources on how to deploy on a serverless backend

For the pricing tables I use eventbridge and I send the session.checkout.completed event to update my dev with the IDs. It then redirects user back to my web app and then I show a button to create connected account

Doc/Guide Links
Connect account docs

What are you working on?
Connected account integration

#

@rare quartz pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
const session = await stripe.checkout.sessions.create({
mode: "subscription",
payment_method_types: ["card"],
line_items: [{
price: price_id,
quantity: 1,
}, ],})

const fetchClientSecret = useCallback(async () => {
// Create a Checkout Session
return fetch("/api/billing/checkout", {
method: "POST",
headers: {
"Content-Type": "application/json",
},}).then((res) => res.json())
.then((data) => data

Question
I am trying to add an embedded checkout into my next js application, when following the guide from https://docs.stripe.com/checkout/embedded/quickstart?locale=en-GB&client=next I keep getting this error ```Uncaught (in promise) IntegrationError: fetchClientSecret failed with error "Failed to execute 'json' on 'Response': Unexpected end of JSON input"```

What have you already attempted?
I have tried following different guides and searching the documentation, as well as manually changing things to see what might work

What are you working on?
I am making an ecommerce site with a monthly subscription

cursive heronBOT
#

@jagged plume pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How to know if when creating payment gone through when creating subscription by using default_payment_method from customer existing payment method.

Doc/Guide Links
https://docs.stripe.com/api/subscriptions

What are you working on?
Trying to create subscription with existing customer's payment method, but I want throw error on front end when card gets rejected for any reason and revert the subscription.

#

@sacred meadow pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Four our amazon pay integration, we are seeing that even if a user closes the amazon payment information screen, we don't receive any webhook. As a result, we don't know whether the user is still entering information or needs to be able to select a new payment method. Is there a way to receive a webhook when a user closes out of the amazon payment screen so we can allow the user to access their cart again and create a new payment intent?

Related Event ID(s)
pi_3QU8maLj9iP8aLbR2lcYKz4l

What have you already attempted?
We tried to close the Amazon pay page and we tried using the back arrow

What are you working on?
cart/checkout process

cursive heronBOT
#

@proper arch pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I have 2 questions:

1st - i’ve updated the SDK to the latest version but the js.stripe.com is still saying 2022 version in the API log?

2nd - We have quite a complex shopping journey where customers can save and retrieve the cart on potentially multiple devices, tabs, platforms - so i’m having to cancel the payment intent and then create a new one on the payment screen every time. Is this the best way?

Doc/Guide Links
https://docs.stripe.com/api/versioning

What are you working on?
Payment element

#

@eternal badge pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
When creating an invoice on_behalf_of a connected account why is the connected accounts prefix being respected but not the numbering sequence?

Related Request ID(s)
N/A

What have you already attempted?
I've gone into the connected accounts dashboard and updated the live number sequence and the prefix. I've then created a new invoice but each new invoice continues to increment from 0.

#

@opal marlin pressed the 🤨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
£0.00 price subscription not to send renewal reminder emails?

What actually happened?
£0.00 price subscriptions sending out reminder emails!

Reproduction Steps
Create a £0.00 price montly subscription. charge_automatically... reminder emails sent out.

Question
How do you stop £0.00 price reminders being sent out. Other still need to be sent.

cursive heronBOT
#

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

Code
It's not a code- but i keept getting a merchant list is empty error

Question
i haven't logged into this account before i think - or i may have years ago. I still get payouts but when i try to log in it says merchant list is empty

What have you already attempted?
nothing- i dont know how to contact support

What are you working on?
logging in

#

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

Question
Trying to understand the difference between Invoice.create_preview and Invoice.upcoming, and when the Invoice has an id starting with `upcoming_in_` vs just `in_`

Related Request ID(s)
NA

What have you already attempted?
https://docs.stripe.com/api/invoices/create_preview

https://docs.stripe.com/api/invoices/upcoming

https://docs.stripe.com/api/invoices/object

What are you working on?
SaaS

#

@fringe wasp pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
<script async src="https://js.stripe.com/v3/pricing-table.js"></script>
<stripe-pricing-table pricing-table-id="prctbl_xxxxxxxxxxxxxxxxxxxxxx"
client-reference-id="{{ $user->id }}"
publishable-key="pk_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
customer-session-client-secret="{{ $customerSession }}">
</stripe-pricing-table>

Question
When I use stripe pricing table, I'm not able to enforce tax application. How can I proceed to enforce a fixed tax for all locations?

What have you already attempted?
I checked the documentation to see if creating customer sessions allows setting a tax ID.

What are you working on?
We're building a learning payment system

cursive heronBOT
#

@timber blaze pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
I will send all of the code in this thread.

Question
I'm getting an error in my checkout page when I try to pay with the stripe integration I made. I don't know what the problem is.

What have you already attempted?
I've already read the docs. I have attempted some changes but they don't seem to work.

What are you working on?
A checkout page with the advanced stripe payment integration. You fill in a form first and then it opes the stripe embeded payment popup.

#

@warped marsh pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Is it possible to change the timeout set in 20 secs to 30 secs?

Related Event ID(s)
evt_3QUBU7GKmut8CLVM0jtQuLI3

What have you already attempted?
My server attends many request from diferents ways, some time takes more than 20 secs to respond and Stripe webhook timeout and re-schedule the event.

#

@rare quartz pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
const options = { fetchClientSecret };

  <EmbeddedCheckoutProvider stripe={stripePromise} options={options}\>
    <EmbeddedCheckout /\>
  </EmbeddedCheckoutProvider\>

const latest_invoice = subscription.latest_invoice as Stripe.Invoice;
const payment_intent = latest_invoice.payment_intent as Stripe.PaymentIntent;
return client_secret: payment_intent.client_secret,

Question
I am trying to use embedded checkout to let users pay for a subscription, i am getting a client secret by getting the subscriptions latest invoice and sending it to the checkout but i keep getting this error, i have checked that the format

IntegrationError: fetchClientSecret failed with error "Unable to parse client secret. Please ensure you are using a valid embedded Checkout client secret."

What have you already attempted?
I have tried different ways of formatting the secret and looked though the docs

What are you working on?
a saas with monthly subscription

cursive heronBOT
#

@night fossil pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
await stripe.subscriptions.update(activeSub.id, {
proration_behavior: 'always_invoice',
payment_behavior: 'error_if_incomplete',
cancel_at_period_end: false,
items: [{ id: activeSub.items.data[0].id, deleted: true }, { price }],
});

Question
Have a followup question from previous closed thread.
I need a way to upgrade subscription and process the price diff without user having to interact with the payment ui for 'kakao_pay' and 'kr_cards'. In the previous thread I was told that they should not be redirected the 2nd time, but it seems like users have to confirm in a ui 2nd time.

What have you already attempted?

  1. Upgrading subscription using server side SDK. `stripe.subscriptions.update`. result: request failed with `You must provide a `return_url` when confirming a PaymentIntent with the payment method type kakao_pay.`. requestId: req_9MMbDCNZvxoZ5S.
  2. Manually creating paymentIntent to process upgrade payment. result: PI resulted in "status: 'requires_action'," with `next_action`, so the PI required user to accept through next_action. redirect_to_url.url
cursive heronBOT
#

@hexed mist pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I'm doing some final testing but in my staging deployment, I'm not seeing iDeal as a payment method when checking out using an email with +location_NL. But the currency is correct. Can you help me understand why??

Related Request ID(s)
req_IPJ4BW1lh2SxNu

What have you already attempted?
I've verified currency is being detected right

cursive heronBOT
#

@devout drift pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
<div className={classes.container}>
<EmbeddedCheckoutProvider
stripe={stripePromise}
options={{ fetchClientSecret, onComplete }}
>
<EmbeddedCheckout className={classes.embed} />
</EmbeddedCheckoutProvider>
</div>

Question
Using the embedded checkout page with React, I want to be able to target the background colour of the embed and manually overwrite whatever someone has set it to via the Stripe Connect branding section.

What have you already attempted?
I have tried basic CSS targeting to try and overwrite the value in the DOM, but I felt like there is an easier way. I could not find the ability to set the `appearance` or `theme` of a `EmbeddedCheckout` component directly with variables like `backgroundColor`.

cursive heronBOT
#

@austere holly pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hello, since I have multiple currency in my pricing product on my embedded form it's written the correct currency based on the location of the user (which is perfect)! But I would like also to retrieve the currency myself to show the price before the embedded form.

Related Request ID(s)
...

What have you already attempted?
I tried using the stripe.prices.retrieve() endpoint but it only gives me back the default usd one (or maybe it's because it's my backend calling and so the location won't be the one of the client)

cursive heronBOT
#

@indigo dock pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I have a cloud run server running and I'm able to connect to the webhook endpoint through Postman, but Stripe console always fail delivering the event to it.

Related Event ID(s)
evt_3QUEMRRv5YAVNj9i11luH4yK

What have you already attempted?
I've tried changing the endpoint, changing the webhook from dashboard to programmatically created. Locally it works just fine but when it's deployed it just won't. I'm using allow-origin: "*" so it shouldn't be blocked at all.

What are you working on?
Building my own app

cursive heronBOT
#

@vocal stump pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I don't understand how to fire the event `account.updated`.

Related Request ID(s)
n/a

What have you already attempted?
I want to get notified on my platform when properties of a connected account changes. I added `account.updated` to both the connect and platform webhook, but I can't seem to get it it fire. I need it to fire if there are changes in verification requirements.

What are you working on?
Connect integration

#

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

Question
How can i test scheduled payout events:
payout.created, payout.updated, payout.paid

When i use the Payout API or dashboard to trigger a payout, all these events get sent out similtaneously

Related Event ID(s)
evt_1QUFkrPPpHfUvljyoucGjUbm

What have you already attempted?
Payout Documents, Stripe Support Live Chat

What are you working on?
Notifying customers on payout status & updating database entry

cursive heronBOT
#

@onyx wing pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Is is possible to receive an update if a user deletes an Apple Pay-based PaymentMethod from within their iOS Wallet?

Related Request ID(s)
N/A

What have you already attempted?
Looking at Apple docs

What are you working on?
iOS app

cursive heronBOT
#

@little lance pressed the 🤨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
When a subscription configured with a metered item and billing threshold set goes over the threshold, an invoice is generated.

What actually happened?
The balance continues to accrue and go over the threshold, even after advancing > 1 week in the test clock.

Reproduction Steps

  1. Create a new subscription with 2 prices: a yearly fixed fee, and a metered price to charge units above what the user is allocated.
  2. Use the Stripe CLI to add metering events until the threshold is exceeded
  3. Advance the clock > 1 week

https://dashboard.stripe.com/test/subscriptions/sub_1QUGYLFAb3EiWK4PI652kjPR

Question
The desired scenario as I've seen other developers ask here is:
Send SMS messages with [company]. An annual plan gets you 15,000 messages, with each additional message charged at $0.10 each. Our use case prefers not to wait until the end of the cycle to hit users with a big invoice, but use thresholds to keep amounts manageable.

#

@indigo dock pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I'm having trouble connecting stripe's webhook. I'm currently using Cloud Run for the server and I'm able to connect to the webhook endpoint through Postman but Stripe's not being able to delivery the event to it. Nothing even reaches to the server...

Related Event ID(s)
evt_3QUGQ8Rv5YAVNj9i00qlodNx

What have you already attempted?
I've tried everything I could think of.

What are you working on?
Building my own e-commerce app

cursive heronBOT
#

@grim beacon pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
let param: any = {
merchantDisplayName: merchantName,
paymentIntentClientSecret,
// 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: 'Jane Doe',
// },
};
if (paymentIntent?.ephemeralKey)

Question
Currently, the payment controls pulled up using initPaymentSheet and presentaPaymentSheet only display card and cash app payments without Google Pay and Apple Pay options. However, I can pull up the Google Pay payment control through ConfirmPlatformPayment

What have you already attempted?
https://discord.com/channels/841573134531821608/1315591499152363530

cursive heronBOT
#

@analog tulip pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
construct webhook event in Express

Related Event ID(s)
"id": "evt_1QUJjFBojgVRZvjePqQV1bft",

What have you already attempted?
I have read the doc, and asked GPT, used the template from Stripe, and still doesn't work

What are you working on?
just need to have a webhook work after payment is processed

cursive heronBOT
#

@rotund lava pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I'm using accountLink api on my platform, but it seems the link generated is only active for 5 minutes. Can we increase the expiration time?

ref doc: https://docs.stripe.com/api/account_links/create

Related Request ID(s)
NA

What have you already attempted?
Tried Stripe API Testing interface

What are you working on?
I need the expiration time to be a bit longer like 48 hours

cursive heronBOT
cursive heronBOT
#

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

Code
[Warning] Either you do not have a card saved to your Wallet or the current domain (app-tst.nooie.cn) or stripeAccount parameter (acct_1MCYiHKDgdzvlnrA) is not registered for Apple Pay. (v3, line 1)

Question
apple pay button is not getting mounted,
[Warning] Either you do not have a card saved to your Wallet or the current domain (app-tst.nooie.cn) or stripeAccount parameter (acct_1MCYiHKDgdzvlnrA) is not registered for Apple Pay. (v3, line 1)
Test SIte: https://app-tst.nooie.cn/v2/home/#/chargebeetest?uuid=142451897a5782f6acf7578f03f83baf&deviceName=360 Cam 2&packageId=fc7c7e7e4f1cc637bdd0da52611f9e44&model=IPC100C_A4J6A4&isUpgrade=0&isActivity=0&isFree=0&isSys=0

What have you already attempted?
verified domain name configuration and card saved, able to do payment in other domain.
https://app-tst.nooie.cn/.well-known/apple-developer-merchantid-domain-association
domain-association file is also visible.

What are you working on?
Integrating apple pay to my checkout via stripe gateway

#

@modern geode pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Can we charge an application fee without a destination account?

Related Request ID(s)
nill

What have you already attempted?
Nill

What are you working on?
use case is to charge first and pay group of individual separately.

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://docs.stripe.com/js/elements_object/create_payment_element#payment_element_create-options-fields

Question
How can I mandate email address collection for payment or address element?

What have you already attempted?
Tried out different options but seems like it only supports 'auto'

What are you working on?
My client wants the NFT checkout payment UI to support collecting email addresses. They want to use those addresses to blast out emails. We are using Stripe connect to connect them.

#

@crystal dew 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/usage-based/implementation-guide

Question
I am using Stripe’s Metered Billing and have configured a metered event on a price model. A customer subscription is linked to this price model. From my server, I send metered events to Stripe with details like the customerId and a value. Stripe aggregates these events (e.g., sum or count) and reflects the total on the invoice.
I want to customize invoice by:
Including a detailed breakdown of each individual metered event on the invoice instead of just the aggregated total.
Adding custom fields to the invoice items, populated with data from the metered event payload sent from my server.

What have you already attempted?
i had implemented usage-based billing , but did find any examples or details , for invoice customization.

cursive heronBOT
cursive heronBOT
#

@gleaming flume pressed the 🤨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
I'm using Stripe prebuilt UI for my iOS app. I expected the animation showing all supported card types in the Stripe card entry Element to transition smoothly, displaying each card brand icon one by one at a steady pace (about every second) before user input.

What actually happened?
Instead of a smooth transition, the card brand icons flicker rapidly and change unexpectedly as soon as the payment sheet is presented, even before any user input. This creates confusion for users and disrupts their experience.

Reproduction Steps
Open the payment sheet and observe the flickering icons before entering any details.

Question
Is there a way to stabilize or customize the animation of supported card brand icons in the Stripe Payment Element? The flickering behavior is disruptive, and I would like to know if there are solutions for improvements in this area.

#

@plush mirage pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
onboarding = stripe.AccountLink.create(
account=account_id,
refresh_url=os.getenv('ONBOARDING_REFRESH_URL'),
return_url=f'{protocol}://{host}/stripe/onboarding/success?user={user.id}',
type="account_onboarding",
)

Question
i am getting too much requests from the received onboarding url. response code is 429.
i can't test the process even in the live mode. the onboarding process/ account creation works from the stripe dashboard.
let me know what is the issue in the code or setup i am doing wrong , if you have any guide for the process kindly let me know, i have followed the developer documentation, it was working in the beginning but now i am having the same issue again and again.

What have you already attempted?
the process was working fine before, but now it's not working as there is not change in the code or process.

What are you working on?
i am trying to create a process or flow for my platform which is clout9.com

cursive heronBOT
#

@grave heart pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
const stripePromise = loadStripe(PUBLIC_KEY, {
stripeAccount: CONNECTED_ACC_ID
})

const options = {
layout: {
type: 'accordion',
defaultCollapsed: false,
radios: true,
spacedAccordionItems: false
}
}

<PaymentElement
options={options}
/>

Question
Hi, This is the payment element I am trying to render. I wanted understand how stripe renders the available payment methods from dashboard? Where do I need to enable payment methods (affirm for example is enabled on my dashboard but is not visible on Payment element). Kindly guide me through it please

What have you already attempted?
I tried updating payment methods on dashboard at account level and configuration level

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

cursive heronBOT
#

@shell ruin pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
sub_sched = stripe.SubscriptionSchedule.create(
from_subscription=sub["id"])

                sched\_update = stripe.SubscriptionSchedule.modify\(
                            sub\_sched\["id"\],
                            phases=\[{
                            "items"\: \[{"price"\: sub\["plan"\]\["id"\], 
                                        }\],
                            "start\_date"\: sub\["current\_period\_st

Question
I have some cases with subscriptions which were created with on_behalf parameter and transfer_data information. I need to unset these parameters, however I can't unset them simply at subscription level. I tried to set a schedule without specifying these parameters but they stay.

What have you already attempted?
I tried to create a schedule, I tried to set the transfer amont to 0% but not ideal, as it does not unset the on_behalf setting.

What are you working on?
e-commerce plugin

cursive heronBOT
#

@small ferry pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
On the Pricing page for Australia it shows the fees as follows:
1.7% + 0.30
but when I check transaction it shows overall fees
Fees = 2.04
-Stripe Processing Fees = 1.85
-Tax = 0.19

Question
Can you tell me what is the actual processing fees?

What have you already attempted?
I have already tried the calculation with many payments

cursive heronBOT
#

@opaque sleet pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I am using subscription schedules as a way to downgrade a subscription. The way it works currently is that, if a customer upgrades, they are charged immediately and the sub is updated immediately. If they are "downgrading", i.e. changing to a lower tiered product / decreasing the quantity, a subscription schedule is created and does not get applied until the next cycle. I am trying to understand the invoicing for this. I created a subscription with a quantity of 5 for £25 per qty which is £125 in total. The VAT of this 20% of the value. I scheduled a downgrade to qty of 4 which is a total of £100 + VAT but in the invoice the total is £145 with the VAT, I was expecting £120

Doc/Guide Links
https://docs.stripe.com/api/subscription_schedules/object
https://docs.stripe.com/billing/subscriptions/subscription-schedules?locale=en-GB

What are you working on?
Integrating a payment system on a web portal

#

@radiant canyon pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We're working on implementing PayPal and use the API to send line items when creating a Payment Intent. We pass the line items but when retrieving after the Payment Intent, there's no line item option associated. Is it normal? How are we sure that the line items have been passed successfully?

Related Request ID(s)
req_qoogNiAwxFamqd

What have you already attempted?
Retrieve the payment intent, with expanding the line items (expand: 'payment_method_options.paypal.line_items')

What are you working on?
building paypal within a marketplace app

cursive heronBOT
#

@carmine sky pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Supabase with stripe, preferred flow

Related Request ID(s)
1

What have you already attempted?
I just came across the stripe wrapper for supabase, and wondered if it would be less code to just poll paymentintent for a successful transaction. Instead of setting up a webhook, and whitelisting events.

cursive heronBOT
#

@thorn sequoia pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I am trying to make the Currency compatibility changes and facing the below error
{
"error": {
"code": "amount_too_small",
"doc_url": "https://stripe.com/docs/error-codes/amount-too-small",
"message": "Amount must convert to at least 50 cents. kr46.00 converts to approximately $0.33.",
"param": "amount",
"request_log_url": "https://dashboard.stripe.com/acct_19o4IFJv9j0DyntJ/test/logs/req_ZinPvIRdcBAyg8?t=1733828994",
"type": "invalid_request_error"
}
}

Related Request ID(s)
req_ZinPvIRdcBAyg8?t=1733828994

What have you already attempted?
I am giving the amount as 1200 for 12 ISK as suggested over here - https://docs.stripe.com/currencies but still facing error

What are you working on?
Trying to do the currency changes in Chargebee system for Stripe integration

#

@opaque sleet pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Why are `customer.subscription.pending_updated_applied` and `subscription_schedule.released` webhooks not being triggered? I have a mechanism where I initiate a downgrade that gets applied to the next billing cycle with the use of subscription schedules. Once this gets triggered on stripe's end, I also want to be able to update what I need on my database but the webhook does not seem to be firing at all. I am using simulated customer and subscription to do this. Is this not possible to do using the simulation?

Related Event ID(s)
evt_1QUROFDvmqvcAnANz7dWDdnw, evt_1QUROFDvmqvcAnANEnGvsZyQ

What have you already attempted?
Trying out multiple simulated customers/subscriptions

What are you working on?
Integrating the stripe payment system to a web portal

#

@livid root pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I'd like to test out the transfer method I've created, however it seems that no funds ever make it on my connected account and Stripe won't allow me to add funds in test mode either. I am based in France. I want to make sure that the transfers work correctly before going live.

Related Request ID(s)
req_vpKMivuTEZclzx

What have you already attempted?
I've read the docs for the transfer object in the API.

#

@bleak rivet pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I’m experiencing an issue upgrading users from monthly to yearly subscriptions in Stripe.

Problem:
• Users upgrade by replacing the monthly plan with the yearly one, generating an invoice.
• If the payment fails (e.g., due to 3D Secure), the subscription is already updated to yearly, so users get access without paying.
• Reverting to monthly generates another invoice due to the billing interval change, possibly charging users again.

What I want :
3D Secure refused by user when upgrading from monthly to yearly need to not update the sub to yearly.

Related Request ID(s)
?

What have you already attempted?
- revert sub to initial state with 100% off coupon => generate invoice and reset billing cycle
- use error_if_incomplete => no invoice but can't pay with 3DSecure
- use pending_if_incomplete => doesn't work when recurring time of products are different (monthly and yearly)
- use default_incomplete => If payment is canceled (3D secure refused by user), it still update the sub from monthly to yearly

cursive heronBOT
cursive heronBOT
#

@brazen pier pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
On December 8, we had 5 automatic recurring payment. 4 were renewed at 1:30am EST time but one subscription was charged 12 hours after at 12:23pm . Why ?

Related Event ID(s)
evt_1QU8ChCPNFWzQIezUUgPkqop

What have you already attempted?
Checked all 4 payments

#

@dire rose pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I am trying to setup a multi-entity businesss account setup. The documentation gives the idea that i can have my products on the platform account:

'Your product catalog can be part of the platform account or each connected Standard account. Where you maintain your catalog depends on your business needs.'

But when i try to reference a platform account product and doing a call where the getAccount is a subaccount i get an 'No such price' error.

Is what i am trying to do a possibility or do i HAVE to configure the products on the subaccounts?

Related Request ID(s)
-

What have you already attempted?
Without using the subaccount, but the platform account, the checkout session is created.

cursive heronBOT
#

@modern flax pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I have a customer who is trying to redeem a coupon I created, but they are getting a message saying the code is valid but their order doesn't qualify. I have a minimum amount of $40 specified on the promotional code, but their order definitely exceeds that amount.

Related Request ID(s)
promo_1QSfKcGQKZJikh7N8EYvz2fY

What have you already attempted?
I have recreated the issue with my own account in production.

What are you working on?
FinTech SaaS

#

@covert tendon pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I'm encountering an issue with Stripe integration in my Expo app when running it on a real iOS device.

Everything works fine on Android builds, iOS simulators, and Android simulators, but when I try to add a payment card on the real iOS build, I get the following error:
Error code: Failed You did not provide an API key. You need to provide your API key in the Authorization header, using Bearer auth (e.g. 'Authorization: Bearer YOUR_SECRET_KEY'). See https://stripe.com/docs/api#authentication for details, or we can help at https://support.stripe.com/.

Related Request ID(s)
/

What have you already attempted?
Verified that the API key is correct and correctly loaded in process.env.EXPO_PUBLIC_STRIPE_PKEY.
Double-checked the relevant documentation for iOS integration with Expo/Stripe, but nothing seems to address this specific error.

What are you working on?
a taxi app

cursive heronBOT
#

@mental shoal pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I need to get notified when user cancel the paypal recursive payment, so my ability to charge him off session. I want a

Related Event ID(s)
pi_3QUTT8A94JJJ3znb0RyuoJFX

What have you already attempted?
I looked throw documentation but there is not specific things.

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.

Our developer support team is currently at a company event and will return December 11th at 3pm UTC.

cursive heronBOT
#

✅ Stripe developers are currently available on Discord!

#

@ripe spruce pressed the 🤨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
I expected for the invoice to be finalized only after an hour is it states in the [docs](https://docs.stripe.com/invoicing/integration/workf:
> When you enable automatic collection, Stripe automatically finalizes and begins automatic collection of the invoice. We wait 1 hour after receiving a successful response to the invoice.created event before attempting payment.

What actually happened?
The invoice was finalized immediately.
This is an example invoice: `in_1QUVCMKyqPKz33F87JswNoQd`

Reproduction Steps
Create a subscription using Plaid as a source

Question
I want to verify that this behavior is expected and consistent with charges where ach is used as a payment method via plaid

#

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

Code
There is no code, but when i upload my ID for verification, it just doesnt work and i can upload it infinite times.

Question
I need to verify my ID and im not able to cause it keeps letting me do it

What have you already attempted?
done it many times, over many days, been over a week now, i have others working but not discord monetization. I tried with Passport and my residency permit, i am in the UK

What are you working on?
Discord monetization enabling

#

@astral owl pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How can we set subscriptions to start either in the future, or back date them in a manner that does not pro-rate when backdated. For example, lets say we have sold an 8 week plan that is a fixed fee subscription with an end behaviour to cancel. How can we set the start date to be x days in the past but still take the full amount?

Related Request ID(s)
N/A

What have you already attempted?
N/A

What are you working on?
laravel

#

@jovial jewel pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I am building an app with Flutterflow and Stripe API. I have setup my products, pricing table, and portal configuration in Stripe. When in FlutterFlow run mode (which runs in browser), the customer portal opens up with no problem. But when I install the Android APK file to my actual phone and access the same trigger to the portal, it doesn't open. I don't have this issue with the Payment Link API. What could be the issue with why Stripe's customer portal opens on the web but not on an installed device?

Related Request ID(s)
N/A

What have you already attempted?
I've communicated with Stripe Support. They said, "Upon checking with my team, subscriptions have a restriction on the Android app. That's why you cannot open this option, it will be working only in a browser." And they provided the following link for me to review: https://docs.stripe.com/dashboard/mobile#accept-payments-on-mobile

But I think they were referencing the standalone Stripe Dashboard app that can be downloaded from the App or Play Store, not apps that set up Stripe APIs manually.

#

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

Question
Is there a way via the API to create a subscription schedule that will start on a future date but bill on the first of every month? Right now I'm only able to create a subscription schedule that starts and bills on the same date. Setting the "billing_cycle_anchor" parameter to "automatic" or "phase_start" does not seem to change anything related to that.

Related Request ID(s)
N/A

What have you already attempted?
Creating a subscription schedule with my desired future date and setting the "billing_cycle_anchor" to each possible value.

cursive heronBOT
#

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

Code
We're using the stripe-identity-react-native library and getting an unexpected in-flow error that I believe may be on Stripe's side.

Question
Hello, we're getting an error only sometimes (which is the concerning thing, seems almost random) on iOS. The error is "StripeIdentity.VerificationSheetFlowControllerError error 3" and it occurs when you go from scanning your ID to tapping the button to start your selfie. We've only seen it on iOS and it seems to only be an issue sometimes.

What have you already attempted?
We've followed the integration guide, as it's letting you scan your identity and is working with android I assume it's nothing to do with our integration. iOS works sometimes but not others so it's a bit of a spooky issue. I haven't really seen anything googling the issue, and in test mode the integration works fine when simulating pass/fail, it's just actually going through the flow that selfie stage seems not to work.

What are you working on?
I'm maintaining an app called Shepper, as we have a uk gig workforce we need to do identity verification and we're (attempting to!) move from onfido to stripe.

cursive heronBOT
#

@toxic onyx pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Is it possible to configure the StripeJS PaymentElement to only accept certain card brands? E.g. I would like the PaymentElement to fail client-side validation if the customer types a Discover card number.

If such a configuration does not exist, would my best option be to listen to an onChange event and display an error if there's an error?

Doc/Guide Links
https://docs.stripe.com/payments/payment-element
https://docs.stripe.com/js/element/events/on_change?type=paymentElement

What are you working on?
PaymentElement client-side validation for card brands

cursive heronBOT
#

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

Code
[Warning] Either you do not have a card saved to your Wallet or the current domain (app-tst.nooie.cn) or stripeAccount parameter (acct_1MCYiHKDgdzvlnrA) is not registered for Apple Pay. (v3, line 1)

Question
apple pay button is not getting mounted,
[Warning] Either you do not have a card saved to your Wallet or the current domain (app-tst.nooie.cn) or stripeAccount parameter (acct_1MCYiHKDgdzvlnrA) is not registered for Apple Pay. (v3, line 1)
Test SIte: https://app-tst.nooie.cn/v2/home/#/chargebeetest?uuid=142451897a5782f6acf7578f03f83baf&deviceName=360 Cam 2&packageId=fc7c7e7e4f1cc637bdd0da52611f9e44&model=IPC100C_A4J6A4&isUpgrade=0&isActivity=0&isFree=0&isSys=0

What have you already attempted?
verified domain name configuration and card saved, able to do payment in other domain.
https://app-tst.nooie.cn/.well-known/apple-developer-merchantid-domain-association
domain-association file is also visible.

What are you working on?
Integrating apple pay to my checkout via stripe gateway

#

@cold ridge pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We have a request to have the statement_descriptor vary by Payout for a client. They'd like us to add our system's payout ID to the statement_descriptor. We know we can add the payouts.statement_descriptor when creating the Connect Account. But, just curious if it's possible to do this on a per payout basis?

Related Request ID(s)
N/A

What have you already attempted?
Our thought was change the Account's statement_descriptor when the Payout is in Pending status, so that when it's processed, it will show up appropriately but, would this even work? Is what we're attempting just impossible?

#

@cobalt trench pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
stripe_account = 'acc_xxx'
code = 'ac_xxx' # this code is coming from the request

Stripe::OAuth.token({grant_type: 'authorization_code', code: code}, {stripe_account: stripe_account })

> Authorization code provided does not belong to you (Stripe::OAuth::InvalidGrantError)

Question
We have 1 platform account and 8 connected account to cover different regions for taxation reason - How can a customer create a new connected account from a connected account?
From the platform account the OAuth token is generated correctly, however I get the following error if I perform the call from one of our connected accounts:

"Authorization code provided does not belong to you (Stripe::OAuth::InvalidGrantError)"

What have you already attempted?
I am trying to let a customer onboard to a connected account using the OAuth link.

- the customer can open the Stripe widget associated to the correct account for the onboarding
- After the customer completes the steps inside the onboarding widget Stripe calls the callback on our backend
- On the backend We process the request and call the above code but when it calls the Stripe::OAuth.token it raises an error

What are you working on?
We are creating the to allow a customer to create a connected account to sell the tickets from their account

#

@naive spear pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We have the flow to confirm a payment when 3DS is required for cards using Stripe Elements from the UI. There is one case that failed 15 times. The first time it throws "The latest payment attempt of this PaymentIntent has failed or been canceled, and the attached payment method has been removed. You can try confirming again with a new payment method.". The problem is that I can't find any info related to the root cause of this error in the logs.

My questions are:

  1. How can I see the real error Stripe returns?
  2. Why is this authentication failing?

Related Request ID(s)
req_AVIpPsEri9wx5N

What have you already attempted?
The payment intent is "pi_3QUcYAHewQvzvH770td7O4ID". I have searched into the logs and events, but I can't find any info that answers the question "Why did the authentication fail?".

What are you working on?
Our flow includes that the pi is created, if it needs confirmation, the UI use the client secret to do the call.

cursive heronBOT
cursive heronBOT
#

@slim galleon pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I am currently testing our API end points for the test clock but I can only advance it 2 days at a time which is proving troublesome. How can I fix this?

Related Request ID(s)
N/A

What have you already attempted?
Everything

What are you working on?
Laravel

#

@radiant canyon pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We would like to test a scenario when create a PaymentIntent with PayPal that is 'processing' instead of requires_capture / succeeded / payment_failed.

How can we do this?

Related Request ID(s)
req_UlvDkAktvCpA6X, it is the attempt I made use stripe trigger

What have you already attempted?
I fiddled a bit with stripe trigger payment_intent.processing on the CLI

But it does not give me the result I want (I want a paypal payment not a sepa debit) and the payment intent created is not linked to anything on our DB.

Ideally I'd like something like we have for credit cards, that you can use a fake credit card number directly on the app that you know will fail at some point.

What are you working on?
I'm currently implementing paypal for a marketplace.

#

@halcyon meteor pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I would like to have some guidance according my desired data flow

Related Request ID(s)
no request Id

What have you already attempted?
I have document myself thru the doc

What are you working on?
A SaaS that collect, manage, transfer seemlessly, the tips from the merchant account to the employee

cursive heronBOT
#

@teal eagle pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I have a Zapier Zap that uses the Stripe API to create payment intents and capture them. It was working fine, now the list customer payment methods is returning an empty string.

Related Request ID(s)
N/A

What have you already attempted?
I attempted re-running it.

#

@west hill pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I need to create a paymentintent then can be cofrimed day or two later. It's working for card payments using CardElement, but not going to work when i use Apple/Google Pay. I tried different ways to handle this, including conversation with ChatGPT, but nothing works for my case. In best case scenario, i see ApplePay modal, confirm the payment, and see it stuck on a 'Processing' step. Meanwhile i am able to see billing/shipping info from ApplePay in console, that confirm working 'onConfirm' hook. How can i handle this and create PaymentIntent that will be confirmed later (1-2d), using ApplePay?

Related Request ID(s)
req_AxZl9EGxoqnGFk, req_o03X0LK21T8Fnc

What have you already attempted?
I tried to create a PaymentIntent with confirmation_method: 'manual', tried to confirm payment in onConfirm hook (it worked, but confirmed the PaymentIntent, so i can't update it later).

What are you working on?
The platform where you can pre-order thing, and then buy it seamlessly when it's released after something like sms-auction.

cursive heronBOT
#

@vagrant belfry pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I have a question regarding subscriptions.

Is it possible to charge variable/different price on each subscription cycle (monthly)?

I'll provide more details/background of it in next message in thread because of character limitation here.

Doc/Guide Links
https://docs.stripe.com/billing/subscriptions/overview
https://docs.stripe.com/billing/subscriptions/designing-integration
https://docs.stripe.com/products-prices/pricing-models
https://docs.stripe.com/billing/invoices/subscription#subscription-renewal-invoices

What are you working on?
It's an app that provides email accounts for email marketing. Customers order Google Workspace AND/OR Microsoft workspaces. They can change the quantities of the items they need from time to time, hence this model.

#

@glacial elk pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hi, A customer living in Chile wants to integrate Stripe into his website. I saw that Stripe does not have support for Chile, is there any alternative we can do, he wants payments in USD and receives them in CLP, is this possible?

Related Request ID(s)
Payments

What have you already attempted?
He is evaluating the Stripe option

cursive heronBOT
#

@storm jungle pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hello,
I would like to integrate the following workflow using the Stripe Checkout Session system:
The user can subscribe to a subscription and must immediately provide two payment methods:

Their credit card
Their IBAN for SEPA direct debit.

The subscription should be monthly and start in the future (in 3 months).
The first payment for the subscription must be charged immediately using the credit card payment method.
Subsequent payments should begin from the 4th month onward and must use the SEPA direct debit payment method.
Is this possible?

Related Request ID(s)
0

What have you already attempted?
I already have a form to add the customer IBAN, and I know about Subscription Schedules to create a subscription in the future

cursive heronBOT
#

@tender tundra pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I've created a subscriptions purchase flow and would like to test as it progresses over time. I would love some help with the following questions:
- How can I test recurring payments on a subscription
- What happens when a subscription is created but the transaction never completes
- If I buy a memberships with quantity > 1, if the sub is canceled, are all instances are canceled?
- I added application_fee_percent to connect accounts but I don't see any changes on the first invoice, it's just the regular price, how can I see the changes associated with passing this value?

Related Request ID(s)
sub_1QUaK9RV63Pk0C88tqJOnc7R

What have you already attempted?
So far I haven't been able to test past the initial purchase events.

What are you working on?
Subscriptions

cursive heronBOT
#

@mortal robin pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
When I receive the Stripe webhook charge.dispute.created I'm creating a Transfer Reversal. When that happens I see the transfer.reversed event happening. Do I need to do anything to handle that event?

Related Event ID(s)
evt_1QUb6DLxQmIisNhQO9MIUYRy

What have you already attempted?
When I receive the Stripe webhook charge.dispute.created I'm programmatically creating a transfer reversal. We are not handling the transfer.reversed event

What are you working on?
Creating a transfer reversal when receiving the charge.dispute.created webhook

#

@ocean sonnet pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Suppose you have a SaaS product where both compute and storage need to be billed. At the beginning of a billing period, you get X tokens and if you use more, we bill by the token the overage. Now how about storage ? Storage does not reset at the end of the month since the user's files are still on the server. How do we maintain a meter that's based on "absolute" value and not incremented value ? How do we bill each month while keeping the value alive month-to-month ?

Doc/Guide Links
https://docs.stripe.com/billing/subscriptions/usage-based/implementation-guide

What are you working on?
SaaS App

cursive heronBOT
#

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

Code
https://drive.google.com/file/d/1IyMjcBRr93zn6udp1RXArHDzASIF7s5X/view?usp=sharing

Question
i am trying to create subscription using session with saved payment methods i have multiple saved cards and default it uses the most recent saved card for default payment method but i want to use another card saved first not recent so when i use payment_method_configuration with old payement id it shows this

Failed to create payment session: 500: Failed to create payment session: Request req_rtQWd4b0ppyVg8: No such payment_method_configuration: pm_1QUwKkSGaRjnt1UfNXQpuHWM

What have you already attempted?
i have read checkout>Create a Session

payment_method_configuration: string
The ID of the payment method configuration to use with this Checkout session.

What are you working on?
i am working on discord bot premium subscription

cursive heronBOT
#

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

Code
// Backend
stripe.paymentIntents.create({
amount: 1000,
confirm: true,
currency: "usd",
payment_method: payment_method_id,
});
// Frontend
const { error } = await initPaymentSheet({
paymentIntentClientSecret: client_secret,
merchantDisplayName: "Your Company",
});
const { error: sheetError } = await presentPaymentSheet();
// Error
sheetError "There was an unexpected error -- try again in a few seconds"

Question
I am developing a react native app using expo sdk 50. After the sdk upgrade from 49, the payment sheet crashes immediately on opening on iOS only. Also this issue is only experienced in local development. Deployed test flight apps work as expected. Do we have something misconfigured or is there a bug?

What have you already attempted?
I have tried upgrading @stripe/stripe-react-native. I have created a minimal reproduction with hard coded public and secret keys. I noticed that if `confirm: false` is included when creating the payment intent, the app crashes immediately. If `confirm: true` is passed, the payment sheet closes immediately but the app does not crash.

What are you working on?
A react native app using expo

#

@steep slate pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Stripe Onboarding -> customer checkout payment
How to assign customer who is paying through stripe checkout to account which generated the payment

Related Request ID(s)
onboarding -> assign customer to account customers

What have you already attempted?
Hi,
I have a question. On the screenshot you see connected account through api. Type Custom.

As you see the customers field is empty even when account (seller) generate payment for his customer and customer pay by stripe checkout

What are you working on?
I used something like

cursive heronBOT
#

@unique goblet pressed the 🤨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
que le calcul des taxes se fassent

What actually happened?
Il ne se fait pas

Reproduction Steps
jE L'AI INDIQUEÉ DANS LES PARAMÈETRES

Question
Pourquoi les taxes ne se calculent pas alors?

cursive heronBOT
#

@stiff sparrow pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hello, I'm using the billing api to publish usage based events and if i send the same idempotency key twice within 24 hours, it'll return an error. What would be the correct error type to handle this specific error?

Related Request ID(s)
req_st9mSyMRodJBoX

What have you already attempted?
stripe.billing.MeterEvent.create() with the same idempotency key twice within the timelimit

#

@thin ravine pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Is there a way to identify a connected standalone account that has IC+ pricing via the API?

Related Request ID(s)
n/a

What have you already attempted?
Searched documentation

What are you working on?
I'm working on a sales report for connected standalone accounts, which will need to handle stripe fees slightly differently for accounts with IC+ pricing.

cursive heronBOT
#

@warped gorge pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How to get card id using api GET request

Related Request ID(s)
card id

What have you already attempted?
How to get card reference id. I tried GET request on /v1/customers/{{cust_id))/cards but it returns 200 with no data

cursive heronBOT
#

@dusk gulch pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Please give the expired card web hook how to create and how to set my customer template

Related Event ID(s)
Expired Card Webhook

What have you already attempted?
I have sent mail to the client your card has expired please update your card

What are you working on?
Expired Card Webhook to send maild to client

cursive heronBOT
#

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

Code
[Warning] Either you do not have a card saved to your Wallet or the current domain (app-tst.nooie.cn) or stripeAccount parameter (acct_1MCYiHKDgdzvlnrA) is not registered for Apple Pay. (v3, line 1)

Question
apple pay button is not getting mounted,
[Warning] Either you do not have a card saved to your Wallet or the current domain (app-tst.nooie.cn) or stripeAccount parameter (acct_1MCYiHKDgdzvlnrA) is not registered for Apple Pay. (v3, line 1)
Test SIte: https://app-tst.nooie.cn/v2/home/#/chargebeetest?uuid=142451897a5782f6acf7578f03f83baf&deviceName=360 Cam 2&packageId=fc7c7e7e4f1cc637bdd0da52611f9e44&model=IPC100C_A4J6A4&isUpgrade=0&isActivity=0&isFree=0&isSys=0

What have you already attempted?
verified domain name configuration and card saved, able to do payment in other domain.
https://app-tst.nooie.cn/.well-known/apple-developer-merchantid-domain-association
domain-association file is also visible.
I got the above error, But my customers from japan he is able to see the button but cannot complete payment, it is not showing any error, even the pop up is not coming.

What are you working on?
Integrating apple pay to my checkout via stripe gateway

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/billing/subscriptions/subscription-schedules

Question
I am trying to schedule a user's downgrade during a trial. From what I understand, scheduling phases requires:
- start and end date in first phase(Or we can pass the iterations instead of end date)
- start date in second phase
When I make a schedule API call I get subscription's current_period_start and current_period_end. During trial these are start and end timestamp of trial period.
When I make a schedule API call, user is charged immediately, and their trial period is gone.
I want to know best way to schedule a downgrade, so if downgrade is scheduled during trial, user's trial is retained

What have you already attempted?
Here is my code example of what I have already tried:
const subscriptionScheduleUpdated = await stripe.subscriptionSchedules.update(
'{{Sub_Schedule_ID}}',
{
end_behavior: 'release',
proration_behavior: 'none',
phases: [
{
items: [
{
price: '{{CURRENT_PICE_ID}}',
},
],
start_date: '{{current_period_start}}',
iterations: 1,
},
{
items: [
{
price: '{{NEW_PICE_ID}}',
},
],
start_date: '{{current_period_start}}',
},
],
}
);

What are you working on?
We are working on scheduling a downgrade in the future with subscription schedules

cursive heronBOT
#

@orchid matrix pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
I just have image, i will share in thread

Question
My flow checkout is working normally, but today i get an announcement from buyer that they have error when click place order with message "no such payment_intent xxxxx"
I checked that payment intent on gate way and it's status is incompleted, but api response error not found

What have you already attempted?
None

cursive heronBOT
#

@wide fractal pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How can I create coupon code for a specific plan in a product, for example I have a product with three different plans, monthly, annually and six month plan
want to offer 10% coupon on monthly, 20% on six month plan and 30% on annual plan, how can I achieve this?

Related Request ID(s)
N/A

What have you already attempted?
N/A

What are you working on?
working on Cohere platform for coaches so they can create their services and sell using the platform

cursive heronBOT
#

@livid kernel pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I am having an issue where user's subscription becomes active when their payment is past due. Issue is this:
- In sandbox I purchase a lower tier for user with test card which declines after attaching
- Then I end user's trial, so subscription becomes past due
- Make an API call to upgrade subscription using `payment_behavior: 'pending_if_incomplete',`. This created second unpaid invoice for subscription
- Subscription status is past_due
- I void invoice for upgrade subscription
- Now users subscription becomes active, even though they were never charged for original subscription

Related Request ID(s)
req_6MaUsCDCOErbII

What have you already attempted?
I am testing scenario where our code attempts an upgrading user's subscription when user's existing subscription is past due. Here is my code for upgrade:
const subscription = await this.stripe.subscriptions.retrieve(subscriptionId);

const subscriptionUpdated = await this.stripe.subscriptions.update(
subscriptionId,
{
proration_behavior: 'always_invoice',
payment_behavior: 'pending_if_incomplete',
items: [
{
id: subscription.items.data[0].id,
price: newSubPriceId,
},
],
}
);

What are you working on?
We are working on upgrading user's subscription

cursive heronBOT
#

@flat latch pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
import { NextRequest, NextResponse } from "next/server";
import Stripe from "stripe";

const stripe = new Stripe(process.env.STRIPE_SECRET_KEY!);

export async function POST(req: NextRequest) {
const { order } = await req.json();
console.log(req.body);

// Get the selected price ID based on the user's choice
let selectedPriceId;
switch \(order.plan\) {
    case "monthly"\:
        selectedPriceId = process.env.NEXT\_STRIPES\_MONTHLY\_PRICE\_ID;

Question
Here in this stripe code earlier i had only one priceid which is stored in the .env file now i have added 3 different order plan like monthly semi and annual.
Now im trying to add meter or usage based billing
i am creating a social media for community where i charge according to number of users and data used by that community
For example, $99 covers 1,000 users and 1TB of data. If users or data increase, the price will adjust accordingly. help me with this please.

What have you already attempted?
i have created a product and in that product add usage based billing
but i dont have the code to add this feature where if the users or data is increased than charge them
for ex if the user or data is increased than charge 10 and 20 for the increased user and data
so 99 + 10 if users increased or 99 + 20 if used more data

What are you working on?
i am using nextjs prisma orm for database handling

cursive heronBOT
#

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

Question
We are investigating the use of stripe in a tutor matching system.
We would like to implement the following functions, but would like to know if it is possible to realize them by incorporating stripe.

We would like to have a “joint purchase” type of system, where multiple students make a contract (payment) for one teacher.
The contract is cheaper for multiple students than it is for one person.
For example, if three people sign a contract, each of the three enters his or her credit card information and makes the purchase.
If one of the three has not completed the operation, the service will n

Doc/Guide Links
https://docs.stripe.com/api/subscriptions

What are you working on?
web system developer

#

@limpid void pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Is there a way to directly create a finalized invoice or quote. We create quote for customer where they can not change any items, so after creating the quote we call finalizeQuote function in background and then send the quote id, but for a split second customer sees the draft quote.

So, is there a way to create a finalized quote directly?

Related Request ID(s)
Doesn't have access

What have you already attempted?
We create quote for customer where they can not change any items, so after creating the quote we call finalizeQuote function in background and then send the quote id, but for a split second customer sees the draft quote.

What are you working on?
SaaS Startup

#

@cloud dagger pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hello. We are having issues with our Apple Pay/Google Pay integration, where the UI/modals and payment request buttons work, but when an actual payment is initiated, the UI/modals seem to hang, as if the payment intent is not being captured properly. This was working previously, but something seems to have broken this integration. Payment intents do go into Stripe Dashboard so the initial part of the integration still seems to work okay. Payment intents eventually become "abandoned" but this is because they don't get captured properly now.

Related Request ID(s)
pi_3QEutVFFufxFrVLJ0SuS01l5

What have you already attempted?
We don't think anything has changed at our side as this was working previously, but it is a possibility something could have crept in to break this somewhere.

What are you working on?
A SaaS product for managing activities & events (Coordinate Sport)

#

@hidden tendon pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Providing ACH direct debit payment method when using Stripe Element.

Related Request ID(s)
req_5P5vzXC2Xo7Ywo

What have you already attempted?
After receiving back the setupIntent of the ACH debit PM (payment method) in the backend, I have tried to directly set it as the default customer PM with
```
stripe.Customer.modify(cus_id, default_source=None, invoice_settings={"default_payment_method": pm_id})
```
which gave me the error
> Request req_5P5vzXC2Xo7Ywo: The customer does not have a payment method with the ID pm_1QUsyUI9qXomtXqSuUHUiyss.
The payment method must be attached to the customer.

What are you working on?
ACH direct debit payment method integration with Stripe Element

cursive heronBOT
#

@hot swan pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Is there a way to pre populate billing address details when using the Stripe hosted page? Our system already has billing addresses collected in a database so what I want is when a customer goes to the Stripe hosted page it already has their address details filled in. Is this possible and if so what is the best way to do this - can I specify a billing address somehow when creating the Stripe session on the server side?

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

What are you working on?
A system which we are migrating from a legacy payment processor

#

@ocean cradle pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I need to change the transfer destination of a subscription to other transfer destination Id (the connect account)

Related Request ID(s)
123

What have you already attempted?
I need to change the transfer destination (connect account id) of a subscription to other transfer destination Id (the other connect account)

What are you working on?
subscriptions

cursive heronBOT
#

@pure jewel pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We have opened a new Stripe account for legal reasons and to separate financial flows.
Some of our integrations that worked with the first Stripe account 'Les Sherpas' don't work with our new account 'Sherpadom'.

On the new 'Sherpadom' account, we're asked to use tokens to create a connect account, which wasn't the case with the current 'Les Sherpas' account.

Why on the 'Les Sherpas' account could we create connect accounts without tokens, but on Sherpadom we have to tokenize them?

Related Request ID(s)
N/A

What have you already attempted?
We tried to applied the same configuration that we had on the actual account to the new one.

#

@worthy oyster pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hi there! We are moving from GlueUp (CRM) to Zoho right now. We used Stripe Express on GlueUp to collect and manage membership payments. This Stripe account is owned by GlueUp but we have access to it. It's like integrated into the CRM. So we manage all invoices in our GlueUp account. On Zoho, we will be using Zoho Subscriptions (Billing) and Stripe as a payment gateway and I wondered if we could import all of our current members into our Zoho Billing so Stripe so they can continue paying that way.

Doc/Guide Links
https://www.zoho.com/us/billing/kb/payment-gateways/stripe-card-import.html

What are you working on?
Moving from GlueUp CRM to Zoho CRM.

cursive heronBOT
#

@faint thicket pressed the 🤨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
In test mode I can have one person buy a gift and then create a subscription for someone else with no payment method, but with a 100% off coupon that lasts 1 term. This works without a payment method on the customer, without any problems.

What actually happened?
Having just tested a live system I get an error: "This customer has no attached payment source or default payment method".

Reproduction Steps
Create a subscription in live mode with 100% off coupon and no payment method on the customer.

Question
Is there meant to be a difference in processing between test and live in this way? Is this documented anywhere?

What are you working on?
II am building a gifting system for our product, which is a system for educating people about the divorce process in the UK

cursive heronBOT
#

@gleaming wigeon pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I'm using the Stripe.net nuget in a .net 6 application. I use the PaymentIntentService, function Create. I initialize it with StripeConfiguration.ApiKey.
I have been using it for last year without problem, but last sunday i started receiving this error:
Stripe.StripeException: Expired API Key provided: sk_live_*********************************************************************************************v85RUi

Related Request ID(s)
*

What have you already attempted?
Noone did any change in configuration or anything, and i cannot see any information about expiration of the api key in the documentation.
We created a new api key and it worked, but my question/concern is that i don't understand why this happened, if this can happen again and how can i solve it so i don't need to create a new api key every year

cursive heronBOT
#

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

Code
The stripe on my prestashop website does not gives the payment page to cutomers

Question
The stripe on my prestashop website does not gives the payment page to cutomers

What have you already attempted?
everything

What are you working on?
Prestashop

cursive heronBOT
#

@floral lotus pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I can't make a subscription with a particular promo code. I am getting "No such promotion code: ..." error even though the promo code is active and valid.

Related Request ID(s)
req_eecWHHtuean4B8

What have you already attempted?
I have checked from the dashboard and promo code/list API too. The promo code is valid and active

What are you working on?
A SaaS application with different payment plans

cursive heronBOT
#

@unreal bison pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
var options = new RefundCreateOptions
{
PaymentIntent = paymentIntentId,
Amount = (long) amount * 100
};
var service = new RefundService();
var response = await service.CreateAsync(options);

Question
I'm passing 261.75 as refund amount but in dashboard its refunding 261 only

What have you already attempted?
I'm passing 261.75 as refund amount but in dashboard its refunding 261 only

What are you working on?
refund

#

@grizzled furnace pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
$checkout_session = \Stripe\Checkout\Session::create([
'success_url' => $successUrl,
'cancel_url' => $cancelUrl,
'payment_method_types' => ['card'],
'mode' => "subscription",
'allow_promotion_codes' => true,
'line_items' => $line_items,
'customer_email' => $customerEmail,
'client_reference_id' => $clientReferenceId,
'automatic_tax' => ['enabled' => true],
'tax_id_collection' => [
'enabled' => $shouldCollectVatId,
],
'me

Question
The loaded Stripe hosted form no longer displays the "I purchase as a company" box when EU/UK is selected. It used to be there.

What have you already attempted?
I added this to the payload:
'billing_address_collection' => 'required'

But it didn't work. The billing_address_collection field hasn't always been there even when the "I purchase as a company" box was being displayed

#

@midnight lance pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How can we create a subscription pending direct debit and if our api is finalised then validate the subscription on stripe for direct debit by sending a data?

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

What are you working on?
On a backoffice api allowing automatic actions on our api with also subscription creations on stripe, either in schedule or direct.

#

@vocal wagon pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
$stripe->accountLinks->create([
'account' => '{{CONNECTED_ACCOUNT_ID}}',
'refresh_url' => 'https://example.com/reauth',
'return_url' => 'https://example.com/return',
'type' => 'account_onboarding',
'collection_options' => ['fields' => 'eventually_due'],
]);

Question
The code requests redirect urls (refresh_url and return_url), but this is not a web app. It is a mobile app with the frontend in react-native and the backend in laravel. Is there any mobile-friendly code we haven't seen? if not, how is that redirection handled in a mobile app in react-native?

What have you already attempted?
We have tried using custom connected accounts, managing all the connected account configuration ourselves, but we are concerned about maintainability. We prefer to use express accounts and do onboarding via link, but we don't know how to manage it in a mobile application.

What are you working on?
We are working on a room rental app. When a user rents a room, a commission is taken from their payment for the client and the rest is redirected to the owner..

cursive heronBOT
#

@gleaming wigeon pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I had a previous chat with one moderator that told me this about a problem i had with my api key:

so it looks like we detected that your key was leaked/exposed/abused somewhere, so we expired it as a precaution

Can you provide me more information about it? Because i have this key on a private repository in azure, so i don't know how it was exposed.
Also i did not receive any notification about this expiration so i dont know how i can prevent it from happening again

Related Request ID(s)
X

What have you already attempted?
This is my account id: acct_1NxoVWELVj8iJnIy

cursive heronBOT
#

@hidden tendon pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Is it possible to set the payment method involved in a SetupIntent as the default one if the setupIntent is sucessful?

Related Request ID(s)
none

What have you already attempted?
manually calling
```
stripe_client.update_customer(
cus_id, invoice_settings={"default_payment_method": payment_method_id}
)
```
is a step that could be avoided

What are you working on?
SetupIntent

cursive heronBOT
#

@peak yacht pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Is there a way to integrate Google Pay in the same way as credit cards, where we first authorize an amount and then perform a capture?

Doc/Guide Links
Currently, in our solution, we use the Stripe API for payment integration in our system. At the moment, we are only using the API for cards by first authorizing, for example, $10, and then, once we calculate the actual consumption (which is less than or equal to $10), we perform a capture. This workflow works with credit cards.
Now, we are trying to integrate Google Pay, and from what we have determined so far, to connect the Stripe API and Google Pay, we need to create a Payment Intent with an amount. As a result of this operation, we receive a client secret, which we pass to the Google API, and from that point onward, the payment process is no longer fully under our control

What are you working on?
Integrate google pay

#

@chilly lark pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Reviewing the Invoice Item docs I see that one of the properties is "proration" but there isn't an obvious way to create an item that is prorated. Is proration a read only field or is there a way to create an Line Item and have the amount be prorated by Stripe?

Doc/Guide Links
https://docs.stripe.com/api/invoiceitems/object#invoiceitem_object-proration

What are you working on?
Insurance Web app

#

@neat acorn pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I created a Subscription via API with the default payment method set to a Stripe test card that Decline after attaching.

The subscription was created successfully , with the status incomplete.

I then updated the Subscription with a valid card. But the Subscription / Invoice were not paid. So the Subscription remains with status incomplete.

What is the appropriate way to deal with this scenario, should I retrieve the latest invoice and manually finalize it, or is there a better way that does not involve touching the invoice?

Doc/Guide Links
https://docs.stripe.com/api/subscriptions/create
https://docs.stripe.com/billing/subscriptions/overview

What are you working on?
Integrating Stripe Subscriptions.

#

@mortal robin pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I'm programmatically creating a transfer reversal when we receive the charge.dispute.created webhook. We are trying to test it. Is there a way we can set the connected account total balance to a negative amount? We are trying to see what happens when the connected account has a negative amount.

Related Event ID(s)
evt_1QUxkfLxQmIisNhQgvr4nUO8

What have you already attempted?
We can add funds to a connected account but can't take away.

What are you working on?
Creating a transfer reversal

#

@normal shale pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
When a PaymentIntent is captured using destination charges, the funds are immediately transferred to the destination account's balance. Is there a way to capture the payment but hold the funds instead of transferring them to the seller’s balance? I need a mechanism to hold the funds securely after capture and release them to the seller’s Stripe account at a later date, for example, when the buyer confirms delivery.

Related Request ID(s)
pi_3QUwXwB5nBZIUygB0zXfS4Fk

What have you already attempted?
- Set the PaymentIntent to manual capture mode.
- Configured destination charges to direct the
payment to the seller’s Stripe account.
- Explored manual payout options and Stripe’s pending balance mechanisms.

Despite these attempts, the funds are always added to the seller’s available balance upon capture.

What are you working on?
I'm developing a platform where payments are authorized upon order placement and captured after the seller accepts the booking. However, the captured funds should remain on hold until the buyer accept

#

@proven cipher pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
In a recent attempt to use the api to update the price on a subscription i received the following error: This price cannot be deleted because it is referenced by its product. In the past i was able to update the price. is there anything i can do that will apply to all customers immediately?

Related Request ID(s)
any

What have you already attempted?
Trying to use the api to delete and recreate the plan

What are you working on?
SAAS

cursive heronBOT
#

@vale osprey pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hi, I have a subscription with a metered price configured to: Maximum value during period.
So I check every day how many users are active in my clients project. At the end of the month we charge per the maximum active users at any given time.
If the users cancel on the first month I don't want to charge them.
I can't find a way to override the usage and set it to 0.

Related Request ID(s)
mbur_1QVB3wJyaHi9SqEVD14SX40B

What have you already attempted?
Setting the usage to 0 doesn't work, since it is configured to take the maximum value during the period

What are you working on?
SaaS project

#

@sage cloak pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
@script
<script>
const initializeStripeConnect = async (clientId, checkoutSession) => {
const fetchClientSecret = async () => {
return checkoutSession['client_secret'];
};

    const stripeConnectInstance = await window.loadConnectAndInitialize\({
        publishableKey\: "{{ config\('services.stripe.publishable\_token'\) }}",
        fetchClientSecret
    }\);

    const accountOnboarding = stripeConnectInstance.create\('account\-o

Question
I'm trying to implement an embedded Checkout component on My laravel/livewire APP.

The component is not loading completely, It has a text saying "Add information to start accepting money" and a button "Add information", that opens on a new browser The onboarding steps that I wanted to be displayed

What have you already attempted?
I've tried following the guidelines from docs, as you can see o My code.

What are you working on?
I'm building a SAAS, that will levarage Stripe as a Fundraising tool

#

@main drift pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Given the invoice number, eg CB17C2C1-0004, how would I be able to get the quantity/unit amount of a one-time purchase?

Related Request ID(s)
req_h5lHa612Q3Rwjz

What have you already attempted?
I've tried looking at search invoice through the search query, but cannot find a direct way to get the information. May have to run multiple API calls.

cursive heronBOT
#

@grand mist pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We completed the integration with the PaymentIntents API and using Bank Transfers and `customer_balance` and moved away from ACH credit and sources.

Our Stripe account is connected to Workato and they don't support bank transfers. Hence we are not able to turn on the `Bank Transfer` payment method from the dashboard settings.

Is there an alternative way to accept payment (Not card) without asking the customer for their bank account information?

Related Request ID(s)
N/A

What have you already attempted?
We are trying to figure out how to go about this internally at our company.

#

@grizzled furnace pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
$checkout_session = \Stripe\Checkout\Session::create([
'success_url' => $successUrl,
'cancel_url' => $cancelUrl,
'payment_method_types' => ['card'],
'mode' => "subscription",
'allow_promotion_codes' => true,
'line_items' => $line_items,
'customer_email' => $customerEmail,
'client_reference_id' => $clientReferenceId,
'automatic_tax' => ['enabled' => true],
'tax_id_collection' => [
'enabled' => $shouldCollectVatId,
],
'me

Question
The "I purchase as a company" box doesn't show up on the Stripe hosted checkout page. It was working before

What have you already attempted?
I added this to the payload:
'billing_address_collection' => 'required'

But it didn't work. That wasn't there when it was working

What are you working on?
I'm maintaining the dashboard of our Squarespace extension: Spark Plugin

#

@jagged siren pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We seems to have a strange behaviour in our system where we receive a `payment_method.detached` webhook call for a card that has a payment id and fingerprint that seem to belong to two different cards.

If we then look in stripe we see that one of the cards has a new payment method id and the old payment method finger print.

One of my colleague contacted you recently about this even though I know have some more info. His thread is this one #dev-help message

Related Event ID(s)
payment_method.detached

What have you already attempted?
We were trying to replicate this issue in our lower environments by setting up the same webhooks we have in prod and having the parent->child accounts but we could not reproduce.
We are now adding some extra logs to see what the call to `/v1/payment_methods` returns as our dedupe logic looks at that data.

What are you working on?
Ours is a platform to manage tennis tournaments

#

@red sleet pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
#0 /home3/ahussein/public_html/donate/includes/stripe-php/lib/Service/InvoiceService.php(152): Stripe\Service\AbstractService->buildPath('/v1/invoices/%s', NULL)
#1 /home3/ahussein/public_html/donate/functions.php(101): Stripe\Service\InvoiceService->retrieve(NULL, Array)
#2 /home3/ahussein/public_html/donate/functions.php(217): updateTransactions()
#3 /home3/ahussein/public_html/donate/checkout.php(3): include_once('/home3/ahussein...')
#4 {main}

Related Request ID(s)
API test keys work but when i change it to live it puts my site offline

What have you already attempted?
API test keys work but when i change it to live it puts my site offline i tried rolling the keys still nothing

What are you working on?
donate page

#

@old isle pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
our production payment processing is hard down. getting this error from Stripe. how to quickly get back to payment processing mode?

Related Request ID(s)
https://dashboard.stripe.com/logs/req_evJrfxJfYeW3uf?t=1734020532

What have you already attempted?
"Your account cannot currently make live charges.",
"request_log_url": "https://dashboard.stripe.com/logs/req_evJrfxJfYeW3uf?t=1734020532",
"type": "invalid_request_error"

What are you working on?
payment processing link

cursive heronBOT
#

@dull jungle pressed the 🤨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
A customer's payment failed, their subscription cancels

What actually happened?
3 weeks later they were charged and succeeded. No charges since

Reproduction Steps
I have a screenshot, no idea how it happened

Question
How was this customer cancelled, then charged again?

What are you working on?
godelterminal.com

cursive heronBOT
#

@tender tundra pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Need some help understanding the payload on a invoice.payment_succeeded event on a recurring subscription. I essentially need to extract the when the next payment is due. For example, I create the subscription and receive the event, is there a way to tell when the next payment is due from the payload?

Related Event ID(s)
sub_1QVHzrDY3BzcP9iqApQmXJJM

What have you already attempted?
I'm advancing time on a test subscription but I'm not sure what some of the values in the payload mean.

What are you working on?
Subscriptions

cursive heronBOT
#

@marble obsidian pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
const { error } = await initPaymentSheet({
setupIntentClientSecret: clientSecretIntent,
customerId: customerId,
merchantDisplayName: RegisteredName,
customerEphemeralKeySecret: ephemeralKey,
paymentIntentClientSecret: clientSecret,
style: "alwaysDark",
merchantCountryCode: "FI",
applePay: {
merchantCountryCode: "FI",
},
appearance: {
shapes: {

Question
can i customize payment sheet so it doesnt show the card details fields first

What have you already attempted?
couldnt find card payment sheet customizing docs

What are you working on?
ordering application with stripe

#

@hasty flicker pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I want to downgrade a subscription to a lower tier without effecting the current billing cycle. I don't want to deal with refunds or credits. If someone is in the middle of an annual subscription, I want to allow them to downgrade to a monthly subscription that will take effect at the end of the current billing cycle, when their annual subscription ends. Is this currently possible?

Related Request ID(s)
None

What have you already attempted?
I tried changing `billing_cycle_anchor` to `unchanged` but got the error: "Changing plan intervals. There's no way to leave billing cycle unchanged."

cursive heronBOT
#

@halcyon meteor pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Is it possible to do a transfer between connected Account ?

Related Request ID(s)
no req id

What have you already attempted?
I've tried with paymentIntent and Transfer

What are you working on?
A P2P or A2A Saas

#

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

Code
fun presentPaymentSheet() {
showLoading(true)
devFeatures.isStripeOpen = true
paymentSheet.presentWithPaymentIntent(
paymentIntentClientSecret,
PaymentSheet.Configuration(
merchantDisplayName = getString(R.string.huupe),
customer = customerConfig,
allowsDelayedPaymentMethods = true
)
)
}

Question
When using a remote input, users cannot add a new card using PaymentSheet. It would allow to user to input all card details but on the last field, once you click next it would revert the focus to the "X" on the top left.

Also on similar note, if you try to pay using PaymentSheet, once you navigate of the "Pay" button, you cannot navigate out.

What have you already attempted?
This is Stripe flow, nothing can be done from our end

What are you working on?
The huupe mini is the world's first smart mini hoop where you are able to play fun games against users worldwide while being able to work as a smart tv.

cursive heronBOT
#

@oblique pollen pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
Typescript front end builds request options:
```const resumeOptions: Stripe.SubscriptionUpdateParams = {
pause_collection: null,
billing_cycle_anchor: "now",
proration_behavior: "create_prorations",
pay_immediately: false
};```
.net back receives request
```public async Task<ActionResult> UpdateSubscription(string subscriptionId, [FromBody] SubscriptionUpdateOptions request)```

Question
we get a deserialization error on the request body because c# doesn't know what to do with string "now" for billing_cycle_anchor, is there a way to have this properly deserialize to SubscriptionBillingCycleAnchor?

What have you already attempted?
attempted to cheese it and ignore TS errors in front end and pass
```billing_cycle_anchor: {Value: "now"},```
not sure what else to try unfortunately

What are you working on?
subscription management

cursive heronBOT
#

@stiff sparrow pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hello, I'm using the billing api to publish usage based events and if i send the same idempotency key twice within 24 hours, it'll return an error. What would be the correct error type to handle this specific error?

Related Request ID(s)
req_LHK8C0YZ1VaF4K

What have you already attempted?
billing events api

cursive heronBOT
#

@proven valley pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
I have an issue with my Stripe Checkout implementation. I'm calling `checkout.mount()` on an element in a `<dialog>` element. (`<dialog>` elements appear in the browser's special "top layer.") But when I use the "Payment requires authentication" test card, Stripe creates its own dialog, not a `<dialog>`, with `z-index: 2147483647`. Stripe's dialog is invisible beneath my `<dialog>`.

Question
How can I workaround this issue? I want to keep using a dialog (and preferably keep using the `<dialog>` element) but I need to be able to handle the "requires authentication" case.

What have you already attempted?
I've read through a bunch of pages on https://docs.stripe.com/checkout/quickstart especially focusing on look and feel pages.

What are you working on?
Basic e-commerce site for choiceofgames.com

cursive heronBOT
#

@wild patrol pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hey, we are building a functionality around external account updates events and want to trigger `account.external_account.updated` event in production without any interference of customer for test purpose. How can we do that?

Related Event ID(s)
none

What have you already attempted?
Need to find a way to try something

cursive heronBOT
#

@vocal wagon 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/required-verification-information#US+US+none+full+individual+card_payments,transfers

Question
We are using Stripe Connect(Custom). I want to create an account and use transfers capability without providing SSN,DOB and address. I want to provide the KYC information only when users are going to receive Payouts. On our platform each user has a wallet with a $50 threshold, just then they can payout/withdraw.

What have you already attempted?
We tried to create an account using all the fields it worked, but i want the minimum requirements for creating stripe account and enabling just transfers for it.

What are you working on?
I am using stripe connect and every stripe user has a wallet in my platform

cursive heronBOT
#

@thorn bone 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

Question
I have a fixed recurring pricing model, lets say 299$ a month.

For 299$, i want to give them 1000 credits and i want to show this on the checkout page.

I have other models, 599 for 2000 and 999 for 4000.

How do i make it so that the checkout page shows this kind of info that they are going to get 1000 credits for 299$.

What have you already attempted?
I have tried looking at the edit product, but only description can be added, and its static.

My requirements are dynamic

What are you working on?
integrating pricing with my product

#

@grave heart 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

Question
Hi, is there an api/service available in stripe that would help me retrieve a list of all enabled payment methods on stripe dashboard for a particular connected account ?

What have you already attempted?
I went through the documentations, tried using /v1/accounts/acct_1QUQQWKGWFLAi1jH/capabilities but it is not the response I am expecting.

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

cursive heronBOT
#

@slender pond pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I’m implementing a user flow where when my user added a credit card from a specific issuer as the payment method, I want to grant the user a free membership of my product.

How can I do so in my backend as there doesn’t seem to have any information about the card issuer or BIN from the SDK return data?

Related Request ID(s)
N/A

What have you already attempted?
Stripe doc

What are you working on?
A membership only hotel booking app

cursive heronBOT
#

@warped gazelle pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
TOPIC
Terminal reader server-driven connection API limit

CONTENT
To show on our website the status of the reader (online/offline/busy and last seen at) we always need to pull the latest information from Stripe every few seconds.
Our worry is this data pulling would hit the API limit of 100 read requests per second.
We cannot see any webhook that allows us to track the reader status online/offline.

Please note we are a fintech that offers Stripe Terminal readers with our dashboard. We are continuously adding new Terminals.

Thanks

Related Request ID(s)
Nothing

What have you already attempted?
Cache Stripe response is a solution but this will end up providing outdated information on our website.

What are you working on?
Terminal reader server-driven connection

#

@languid needle pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hi my question hopefully is a simple yes or no. Is it possible to integrate X Pixel into a Stripe Checkout page (the pre built ones Stripe makes available for dummies like me). I ideally want to choose the action / conversion option being a “Sale” - as the second payment part of the X auction stuff.

I understand but can’t do it - how it works if you own a unique domain and have a check out cart - your implement in what X has in its documentation to monitor if a sale occurs - but can you do it if your using Stripe Checkout without a domain? I’ve been to the bowels of the internet & 🤷‍♂️

Related Request ID(s)
I don’t know what this means.

What have you already attempted?
I’ve literally drained my life on GPT, Grok, myself, half of everyone on Upwork - no one can just give me a straight forward answer

What are you working on?
I want to sell a hat on X. I want to pay per sale - using Stripe checkout prebuilt option not even requiring a domain ideally.

#

@celest briar pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
rules: {
'.AccordionItem': {
color: '#000',
padding: '0',
},
'.AccordionItem--selected': {
color: '#424242',
},
'.Error': {
fontSize: '0.8rem',
marginTop: '0.5rem',
lineHeight: '1.5',
},
'.Field': {
margin: '40px 0 0',
},
'.Input': {
borderBottom: '1px solid #d8d8d8',
fontWeight: '400',
padding: '0 0 8px',
color: '#000',
}
}

Question
After i've custom styled my inputs the telephone field is not aligning no more with the country dropdown. Is there any way to get this to align ?

What have you already attempted?
Looked online, docs, can't find any specific selectors or way around it

What are you working on?
Styling Address Element for retailer

cursive heronBOT
#

@ocean cradle pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I have a subscription and a schedule is attached to it.

After some time, the schedule got released.

So if I update the subscription in stripe panel, it also shows the option to add phase.

My question is - When its schedule has already released, so on subscription -> Update subscription -> Add phases. How it will add phase to the subscription as on subscription update api there is no option to add phase. And second question is that if we update just quantity of the product then will it update that on subscription level only and not on schedule level as its schedule has been released.

Related Request ID(s)
123

What have you already attempted?
I have a subscription and a schedule is attached to it.

After some time, the schedule got released.

So if I update the subscription in stripe panel, it also shows the option to add phase.

My question is - When its schedule has already released, so on subscription -> Update subscription -> Add phases. How it will add phase to the subscription as on subscription update api there is no option to add phase. And second question is that if we update just quanity of the product then will it update that on subscription level only and not on schedule level as its schedule has been released.

What are you working on?
Updating subscriptions

cursive heronBOT
cursive heronBOT
#

@hexed mountain pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We got a `setup_intent.requires_action` event with next action "use_stripe_sdk", followed by `setup_intent.setup_failed` with code "setup_intent_authentication_failure" 20 seconds later. Should we somehow handle the "requiers_action" event?

Related Request ID(s)
evt_0QUnV1VyHoaa9nmD0H8OMgN4

What have you already attempted?
This is a production case so I'm not sure how to reproduce it.

What are you working on?
Verifying customer cards via setup intents to charge them off-session later

cursive heronBOT
#

@bleak rivet pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Getting the error resource_missing - coupon
No such coupon: 'Revert_xxxxxx'

Even if v1/coupons create the coupon. It is not found in coupons dashboard.

Related Request ID(s)
req_d4Vb65S0AICjBW and req_Fje3C0VBqQmue4

What have you already attempted?
Check if coupon exist before creating it.

#

@jagged siren pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Following up on #dev-help message

Webhook data I can see on Stripe portal in the developer workbench does not match what we receive in our service.

Related Event ID(s)
payment_method.attached

What have you already attempted?
added logging to understand the problem a bit better, raise another request yesterday linked in the the description above.

What are you working on?
platform to manage tennis tournaments

#

@solemn mica 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/event-destinations#events

Question
In https://docs.stripe.com/billing/subscriptions/event-destinations#events, there is no `invoice.payment_succeeded` listed.

However, in the GitHub example (https://github.com/stripe-samples/subscription-use-cases/blob/main/fixed-price-subscriptions/server/node/server.js), this event is the one being listened to to provide the user with access to the product.

What have you already attempted?
/

What are you working on?
Subscription based service (SaaS)

cursive heronBOT
#

@haughty stream pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
const endDateInSeconds = getQuarterEndTimestamp();
return stripe.subscriptionSchedules.update(scheduleId, {
phases: [
{
proration_behavior: "none",
start_date: scheduleStartDate,
end_date: endDateInSeconds,
},
{
proration_behavior: "none",
billing_cycle_anchor: "phase_start",
},
],
});

Question
I am trying to create a sub and change schedule if the subscripton starts in end 15 days of current quarter the next phase will be starting for 2nd quarter

What have you already attempted?
it was working as expected the invoice dates were changing but it does not move invocies date

#

@charred nacelle pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Error when searching customers

Related Request ID(s)
cant find one

What have you already attempted?
api call with query string

What are you working on?
adding and updating customers using api

cursive heronBOT
#

@warped gorge pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Get Card Id in trigger response.

Related Request ID(s)
Get Card Id

What have you already attempted?
How to get card id in trigger response when customer pay on checkout page. Card id is needed for future payments

cursive heronBOT
#

@unreal bison pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I'm creating the payment element then confirming the payment using confirmpayment(), how can I pass the metadata along with confirm payment ?

Related Request ID(s)
I'm creating the payment element then confirming the payment using confirmpayment(), how can I pass the metadata along with confirm payment ?

What have you already attempted?
I'm creating the payment element then confirming the payment using confirmpayment(), how can I pass the metadata along with confirm payment ?

What are you working on?
Passing metadata in payment element

#

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

Code
Dashboard issue. No code.

Question
When viewing the status of a connected account, it will very briefly "flash" the reason, then revert to "Not provided" for failed verifications. This makes it very difficult to help users when verifications fail as we as a platform lose insight into what the reason is. You can screenshot it if you are very fast, but clearly this is some sort of bug.

What have you already attempted?
I have attempted to read very quickly.

What are you working on?
Connect

cursive heronBOT
#

@blazing spoke pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
for card payment methods I see in the API docs that there is an "unknown" funding type. When this happens what are the implications when it comes to using such a payment method. Is the payment method usable like a card with a specific funding?

Related Request ID(s)
n/a

What have you already attempted?
Looking for clarification

What are you working on?
Integration that uses Stripe SDK to create payment methods and save the reference to a database.

#

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

Code
app.post("/create-portal-session", async (req, res) => {
// For demonstration purposes, we're using the Checkout session to retrieve the customer ID.
// Typically this is stored alongside the authenticated user in your database.
// const { session_id } = req.body;
// const checkoutSession = await stripe.checkout.sessions.retrieve(session_id);

// This is the url to which the customer will be redirected when they are done
// managing their billing with the portal.

Question
Customer portal is not matching the settings I made in Stripe dashboard. Customer is allowed to cancel and update their subscription even though I set it to not allow.

What have you already attempted?
Restarting my app, changing settings back and forth...

What are you working on?
Integrating Stripe checkout and customer portal in my app

cursive heronBOT
#

@brazen pier 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/in/connect

Question
We have integrated the Stripe Connect on our website.
But one of our vendor want to add another (second) payment method bank account. How they can add two bank accounts

What have you already attempted?
I have checked stripe dashboard but was not able to find how to add another account

#

@clear hollow pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I want cancele incomplate subscription if user is trying to buy new subscription but I am able to cancle subscrioption but invoice is not voiding then user is double charged

Related Request ID(s)
req_lEpa4UovNmUTV5

What have you already attempted?
I have added solution to voiding subscription invoice but it not voiding.

#

@astral musk pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
We haven't built the integration yet because of the confusion I've highlighted below

Question
We're trying to work on building a stripe app and prefer building an app via RAK rather than Oath since it's much simpler to set up. We want to make sure we're not misunderstanding limitations - does it require app installers to copy-paste the key? Is there no way the RAK can be shared with our app backend when the app is installed to prevent this break in the UX?

What have you already attempted?
We haven't built the integration yet because of the confusion I've highlighted below

What are you working on?
Building an app for stripe invoicing

#

@hushed jasper pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Is there a way to tell if a payment method is valid? I am trying to properly handle the error where your system returns payment method has already been used and I'm not sure how to determine the payment status

Related Request ID(s)
NA

What have you already attempted?
I am getting payment method data via PHP $result = $paymentMethods->retrieve($payment_method_code, []); I see status_details in your docs but I can't find information on its format/what to look for or if it even is what I am looking for : https://docs.stripe.com/api/payment_methods/retrieve

#

@lusty halo pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
coupon code api errors due to redemption limit but no redemption set

Related Request ID(s)
req_YH2hQQsfv0vwDw

What have you already attempted?
Been trying to understand what the limits are and it doesn't look like there is any obvious limit coupon redemptions that we've set

What are you working on?
this is used in an end to end integration test today

#

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

Question
I would like to understand PaymentIntents better. My website sells two major product types: a newsletter and dashboard access to data. The dashboard access can be upgraded/downgraded (newsletter cannot). Since we want to 1) bill immediately for an upgraded dashboard access (billing_cycle_anchor=now, proration_behavior=always_invoice) but 2) not extend their newsletter subscription (requiring more $), we've split the process into two Subscriptions.

Checkout flow involves creating Subscription(s) and getting latest invoice's PI's client_secret(s) to pass to Card Element.

Related Request ID(s)
N/A

What have you already attempted?
Review the docs of PaymentIntents.

What are you working on?
Working on a SaaS with two major product types. One is a monthly newsletter, the other is dashboard access to data.

#

@timid ember pressed the 🤨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
Stripe Terminal Pin Pad to work properly

What actually happened?
After user enters PIN, nothing happens for BMO (Bank of Montreal) Debit cards

Reproduction Steps
We have numerous complains from multiple merchants that it seams BMO debit cards run into this problem where after entering the PIN the pin pad gets stuck and doesn't move on to the next step

Question
Is there known issues with usage of BMO debit cards on Stripe terminals

#

@edgy oak pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Could there ever be a Webhook event sent w/ a payment_status of "paid" but then it fails? Specifically for "checkout.session.completed" event.

Related Event ID(s)
Webhooks

What have you already attempted?
Search

cursive heronBOT
#

@livid root pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I am waiting for the webhook to update my reservations status. I added it in my dashboard, correctly saved the secret key and added it to my Azure container but it seems it never reaches me. When using the ``` stripe trigger payment_intent.succeeded``` command on my terminal it works and I correctly receive an event, same if I forward the port using the CLI. But once I go to my staging environnement it just doesn't get through.

Related Event ID(s)
I don't have any since I doesn't reach my api

What have you already attempted?
I've tried relaunching my azure container with the secret key. I checked on stripe that a transfer was correctly being created too.

What are you working on?
User makes a reservation -> pays for it -> I receive the webhook of payment successful -> I update the reservation status

cursive heronBOT
#

@sudden dagger 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://github.com/stripe/stripe-android

Question
Hi, I would like to develop for stripe SDK to fix some bugs we're facing. Can you please help in integrating the source code or in generating .AAR?

What have you already attempted?
Imported via android studio import, after fixing all of gradle dependency issues, still not found.

Tried to Build -> Generated APK for Stripe SDK, but it did not show .AAR

What are you working on?
The huupe mini is the world's first smart mini hoop where you are able to play fun games against users worldwide while being able to work as a smart tv.

#

@jade basin pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
// Charge the user's card

\Stripe\Stripe::setApiKey(cSTRIPE_SECRET_KEY);

try {

$xResult_stripe_charge = \Stripe\Charge::create(array(
"amount" => $xAmount_in_cents,
"currency" => "usd",
"description" => "Deposit to Jetset Lunch",
"source" => $token,
));

} catch (Exception $e) {
$xError_msg = $e->getMessage();
header("Location: tokens_buy.php?Error=charge_failed");
exit;
}

Question
I can make a charge from my PHP but I don't see that transaction in Stripe Dashboard. In PHP I receive valid (success!) Stripe response but why that tx is not shown in Dashboard? Using TEST mode.

What have you already attempted?
I perform charge in PHP and I get "success" response but the tx is not seen in Stripe dashboard.

What are you working on?
Website

#

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

Code
const stripe = Stripe("pk_key");

initialize();

// Create a Checkout Session
async function initialize() {
const fetchClientSecret = async () => {
const response = await fetch("/create-checkout-session", {
method: "POST",
});
const { clientSecret } = await response.json();
return clientSecret;
};

const checkout = await stripe.initEmbeddedCheckout\({
    fetchClientSecret,
}\);

checkout.mount("#checkout");

Question
I don't know WHERE the issue is, but I am trying to use Checkout in an ASP.NET WebForms (NOT MVC or Core!) project, and I receive the error that SEEMS to indicate the call is receiving invalid data back, although I don't know what. In the developer console I get a 404 error on create-checkout-session, and the only thing I found was related to the use of invalid API keys, but I checked all that and they're correct.

What have you already attempted?
I have searched everywhere looking for help with this, but NOBODY has a full example of an ASP.NET WebForms implementaiton for Checkout that doesn't revolve around MVC or Core, neither of which I am using.

What are you working on?
I am trying to build a self-hosted Checkout form that lets people purchase subscriptions.

#

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

Code
Request ID: req_cSwebtsn91QSE4

Question
We are receiving the following error when attempting to create a payment:

Stripe doesn't currently support application fees for platforms in US with connected accounts in MX.

What have you already attempted?
Including the on_behalf_of paramter but that still resulted in the same error.

#

@mortal robin pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Is there a way to delay testing a dispute?

Related Event ID(s)
evt_1QVc2ZLxQmIisNhQsBW4uVcH

What have you already attempted?
I'm trying to test disputes using the dispute cards, but the dispute happens immediately after the successful payment.

#

@carmine lintel pressed the 🤨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
Using a server-driven integration, the terminal should update quickly

What actually happened?
The terminal is taking 20-30 seconds to respond to an update to a set_reader_display request

Reproduction Steps
Update a terminal reader display

Question
Is there a network issue on Stripe's end that is causing this? The specific request is req_I1sKIJoTFpQLQn

#

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

Question
Are stripe entity IDs globally unique, or are they only unique when paired with an accountID?

Related Request ID(s)
n/a

What have you already attempted?
google search, chatgpt

What are you working on?
ach payment flow, subscriptions

cursive heronBOT
#

@halcyon meteor pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Trying to add a test IBAN for a SEPA DD (test mode)

Related Request ID(s)
req_xrpQJGWOPUWH1y

What have you already attempted?
failed with all test IBAN

What are you working on?
SEPA DD with SetupIntent and confirme setup (client side)

cursive heronBOT
#

@mint lily pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We have our custom developed backend integrated with stripe that's connected to a booking system where users book resources for an specific time, these resources can be booked from now into 2 weeks or one month. We would like to handle a new use case where we want to create a paymentIntent but not process it/ charge it until 5 minutes before the reservation time. Did not find anything that would fit my use case, payment Intent with manual capture would work but holds payment for 5 days, and for our use case you can make reservations more than 5 days. Didn't find any scheduler for payments. thx

Related Request ID(s)
req_W6iLEVR3ye05Zk

What have you already attempted?
https://docs.stripe.com/payments/place-a-hold-on-a-payment-method#auth-capture-limitations

#

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

What did you expect to happen?
I am using the Stripe Connect Embedded components for Payments and Payment Details. When I open Payment Details, either directly or via the Payments component I expect to see the "Payment method details" information populated as well as the Refund button.

What actually happened?
There is no refund button (on a successful transactions) and the Payment method details header is there but there is nothing below it until the Timeline section. I do have the following
features: {
refund_management: true,
capture_payments: true,
dispute_management: true
}

Reproduction Steps
Happens any time I click on a payment to get its details. It was working as expected yesterday and I don't think I changed anything. I have been trying to debug for a while but just can't figure it out. Hopefully you can help. Thank you!

Question
Am I missing some additional flags or settings that were newly introduced, etc? I don't see any JS errors and things like my Account, Payouts and Banner work just fine. Thank you for your help!

What are you working on?
Payment processing app

cursive heronBOT
#

@modest sand pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
<AddressElement/> component

Question
how to force <AddressElement/> component to render city and state fields.

My BE required city and state, but e.g if user selects Singapore country on the form, Stripe decided to not show city/state.

What have you already attempted?
validation, but works only with phone number.

cursive heronBOT
#

@jade jacinth pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hi, I'm trying to get Stripe Connect accounts to work, but in trial mode, when I make a purchase, the platform commission doesn't show up for me on my dashboard.

But I have access to the seller's account, payout commissions are not showing up because of the test mode?

Related Request ID(s)
Connect

What have you already attempted?
Já tentei fazer muitas compras, alterando algumas configurações

What are you working on?
A marketplace

#

@proven valley pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
(Reopening idled thread) I have an issue with my Stripe Checkout implementation. I'm calling `checkout.mount()` on an element in a `<dialog>` element. (`<dialog>` elements appear in the browser's special "top layer.") But when I use the "Payment requires authentication" test card, Stripe creates its own dialog, not a `<dialog>`, with `z-index: 2147483647`. Stripe's dialog is invisible beneath my `<dialog>`.

Question
How can I workaround this issue? I want to keep using a dialog (and preferably keep using the `<dialog>` element) but I need to be able to handle the "requires authentication" case.

What have you already attempted?
I've read through a bunch of pages on https://docs.stripe.com/checkout/quickstart especially focusing on look and feel pages.

What are you working on?
Basic e-commerce site for choiceofgames.com

#

@pliant apex pressed the 🤨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
I expected the user to be able to log in to our application using Firebase Authentication without receiving any unexpected phone verification messages. Additionally, Stripe Link functionality was previously set up during payment, but I did not expect it to interfere with or trigger additional verifications during the login process.

What actually happened?
Whenever the user logs in to the application using Firebase Authentication, they receive a Stripe Link verification code sent to their phone via SMS. This behavior is unexpected and seems unrelated to the login flow as Stripe Link functionality was meant only for payment and should not be tied to the authentication process.

Reproduction Steps
User sets up their account on the app using Firebase Authentication (Email/Password).
During a payment process, the user saves their payment method and enables Stripe Link for future transactions.
The user logs out of the app.
The user logs back into the app using Firebase Authentication.
Upon successful login, the user receives a Stripe Link verification code on the

Question
Why is the Stripe Link verification being triggered during Firebase login? Is there a conflict or misconfiguration between Firebase Authentication and Stripe Link? How can I debug or prevent this verification from being sent during authentication while still allowing Stripe Link for payments? Let me know if this behavior could be related to webhooks, API calls, or an

What are you working on?
I am working on an application that uses Firebase for authentication and Stripe for payment processing. Stripe Link is enab

cursive heronBOT
#

@rich crane pressed the 🤨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
The payment form should have the same padding, margin, padding as iOS >= 15 in Chrome and Safari (Mobile+Tablet)

What actually happened?
The payment form on iOS <= 14 have some layout issues with padding around the payment options. (Mobile+Tablet)

Reproduction Steps
On iOS <=14 in either Chrome of Safari (Mobile+Tablet)

  1. go to http://v3staging.getflightpath.io/offer-01/
  2. Click "Order Flightpath" button this will take you to the offer section
  3. Click Buy Now on the 8 Pack bundle
  4. Click no thank you on the popup
  5. Fill out the contact form
  6. Observe the styling of the payment options

Question
Since the Stripe payment element is in an iframe, we can't alter the styles inside beyond what they open up for us to pass in.
We can pass in modifications to the RadioIcon, but we're not able to modify it in a way to prevent this problem.
Is there a way for us to fix this issue?

What are you working on?
Maintaining our e-commerce site and payment form

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
#

@sonic marten pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We need to implement variable tax rates in our checkout sessions where:
- Tax rates are calculated externally and will always be >10%
- Final percentages vary due to non-taxable rebates and discounts
- Expected volume: ~100-3000 unique rates per day

Questions:

  1. Is there a way to pass dynamic tax percentages directly in checkout session creation without first creating tax rate objects?
  2. If not, what are the account limits for unique tax rates?
  3. What is the recommended approach for handling highly variable tax rates at this scale?

Doc/Guide Links
https://docs.stripe.com/billing/taxes/tax-rate
https://docs.stripe.com/api/tax_rates/create
https://docs.stripe.com/api/checkout/sessions/create

What are you working on?
Large scale tangible goods installations, deposits then final payments

cursive heronBOT
#

@digital mason pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
The payment flow struck with 3d secure

Related Request ID(s)
pi_3QUZhYJTd5VGe2wm0wSA3zpW

What have you already attempted?
The payment flow struck with 3d secure, but the payment got succeeded with stripe, but our application haven't received the response after 3ds

What are you working on?
Stripe integration and support in 6storage application

cursive heronBOT
#

@desert cedar pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Subscription Plan Management:

Merchants should be able to define and edit subscription plans directly within my platform (without needing to access the Stripe dashboard).
I need to use the Stripe API to create, update, and manage these subscription plans programmatically.
Subscription Purchases:

End Users subscribe to services offered by merchants.
Merchants should be able to issue refunds to end-users
What Stripe services and products are best suited to fulfill these requirements? (e.g., Subscriptions, Connect, Checkout)
If onboarding is required, can it be done seamlessly within my platform (without redirecting users to the Stripe website)?

Doc/Guide Links
https://support.stripe.com/topics/connect
https://docs.stripe.com/billing/subscriptions/overview

What are you working on?
I am developing a Laravel-based platform for pet shops. My platform has two user roles: Pet Shop Merchants: These merchants will offer various services (e.g., grooming, boarding, training) to end-users.

#

@lime sierra pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hello, can you tell me how to change the presentment currency in a checkout?

Related Request ID(s)
evt_1QWYa0J5CoSeGedKzzf8xgIM

What have you already attempted?
Hello, I have two Stripe balances, one in USD, and one in EUR. I created a USD priced product, and I also created a checkout page where I set the currency to USD. The checkout page looks fine, however when I want to pay and I get the 3DS popup, I am asked to pay in EUR. How can change this to USD too?

What are you working on?
A checkout page

cursive heronBOT
#

@vernal prairie pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
paymentIntent = await stripe.paymentIntents.create(
{
amount: finalPaymentAmount,
currency,
payment_method_types: ["card"],
confirm: true,
application_fee_amount: adminFeeInCents,
payment_method: "pm_card_visa",
capture_method: "automatic",
},
{ stripeAccount: shopkeeper.stripeAccountId }
);

Question
Here I am creating payment intent with payment_method of "pm_card_visa" it's working fine in test mode but when I am going in live mode it is giving me error. I am taking card details from the frontend side in req.body.

What have you already attempted?
I have seen card elements provided by stripe but in my case I have my own fields in frontend side and they are providing me card details. I don't want to use card elements provided by stripe I have my own UI.

cursive heronBOT
#

@vivid mural pressed the 📚 Doc or Guide button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Link to the Doc/Guide in question
How does the Sharetribe "Add Card" API detect if a card will be declined before making a charge?

Question
How does the Sharetribe "Add Card" API detect if a card will be declined before making a charge?

What have you already attempted?
No

What are you working on?
Stripe Add card

#

@verbal 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/payments/acss-debit/set-up-payment

Question
I am trying to figure out a code architecture that will allow me to make ACSS payment intents requests on connected accounts without having to go through the process of setting up a payment method including re-capturing payment method details, going through the mandate process, and re-verifying microdeposits after successfully doing so for my platform account.

Is it possible to set up, copy, or otherwise transfer ACSS payment methods into a connected account from after setting up that payment method in the platform account?

What have you already attempted?
I tried copying the method over using the payment_methods API, but the documentation says that only works for US bank accounts and credit cards and the error message I see when I attempt to do so confirms that.

#

@true viper pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
public Session createCheckoutSession(Long amount, String currency,String productName,Long id) {
Stripe.apiKey = stripeSecretyKey;
try {
log.info("inside");
SessionCreateParams params = SessionCreateParams.builder().setMode(SessionCreateParams.Mode.PAYMENT)
.setUiMode(SessionCreateParams.UiMode.EMBEDDED)
.setReturnUrl(frontendDomainURL+ApplicationURLConstants.DASHBOARD)
.putExtraParam("payment_method_types[]", "card")

				.addLineItem\(
						S

Question
These is my code in these i want to show my company details also to user like company name,its description and etc how can i do that

What have you already attempted?
Nothing for now

What are you working on?
I want that user came to my company website and pay and i am using embeded form to accept a payment and when automatic page is coming for payment its showing

cursive heronBOT
#

@fallow bobcat pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I want to calculate these values

For example, let’s say we have 5 users who cancelled. And this is how long they stayed with us:

User1: 5 months - paid us a total of $74.95

User2: 1 month - paid us a total of $14.99

User3: 12 months - paid us a total of $119.88

User4: 12 months - paid us a total of $95.88

User5: 3 months - paid us a total of $47.97

so i want to get these values from my stripe webhooks

Related Request ID(s)
1

What have you already attempted?
cant find the api to start off my work

What are you working on?
looking for the stripe api or fuctnion which fulfill my requirements

#

@magic lance pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Do you know if there is an option in Stripe to give people who work as affiliates a discount with codes, to see if anyone has bought with their codes?

Related Request ID(s)
x

What have you already attempted?
Do you know if there is an option in Stripe to give people who work as affiliates a discount with codes, to see if anyone has bought with their codes?

What are you working on?
Stripe promo codes

cursive heronBOT
#

@mild field pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Problem with Stripe automatic subscriptions

Related Event ID(s)
invoice.payment_succeeded

What have you already attempted?
Hello,
I've set up my subscriptions but I can't manage to simulate a collection test to see if everything is working properly. When I run a simulation on Stripe I don't get any events on the webhook in my logs. So I can't perform a collection test. How can I do that?

#

@jolly tinsel pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I have a successful payment in Stripe but no webhook attempts were ever made, thus the user never got his product. I have a webhook configured in Stripe that should be called for this event type.

Just wanted to let you know that this bug? exists. And if there's a way to find payments without any webhook being called by Stripe so I can verify them.

Related Request ID(s)
evt_1QQb1QK6bb44tQgAQpUSlVcE

What have you already attempted?
N/A

cursive heronBOT
#

@vital 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/api/payment_intents/create

Question
I am trying to create a B2B marketplace where the payment flow is a bit specific. I want to use bank transfers for now and the money should come to my account. Once the money get's to my stripe account at one point I would trigger transfers manually to each vendor. I would like to take an application fee of course for my marketplace but somehow this is not possible if I don't specify a direct transfer. Is something like this supported?

We would like to switch to invoices (instead of bank transfers) in a month or so anyway, so if it makes more sense to use invoices I could try with that.

What have you already attempted?
Create a payment intent via the sdk with this data:

{
description: undefined,
application_fee_amount: 297,
amount: 10900,
currency: 'eur',
metadata: { session_id: 'payses_01JF7MT5NRPQN1B2BDEZHPB7NJ' },
capture_method: 'automatic_async',
payment_method_types: [ 'sepa_debit' ],
transfer_group: 'cartIDgoesHere',
customer: 'cus_RPRgArw65IiLMQ'
}

What are you working on?
B2B marketplace

cursive heronBOT
#

@surreal vigil pressed the 🤨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
hi, I have an integration with confirmation token in the front, and than using it in payment intents as payment methods. When using an sca card, I have different behaviours in some cases on next_action

What actually happened?
Initially it comes with type-use_stripe_sdk
after a second attempt (not always, though), I get "redirect_to_url" that goest to https://hooks.stripe.com/3d_secure_2/hosted

Reproduction Steps
I use the same card details more than once. But it looks like it is not always happening
I know that in the case of revolut_pay or klarna the redirect_to_url is needed, but in the case of normal cards, I would prefer to do the 3d secure "popup" on our domain.

Question
Can you tell me what are the exact conditions when this redirect_to_url happens, or if I can prevent it, and just have the use_stripe_sdk always ?
Thanks

cursive heronBOT
#

@glossy trench pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hi there.

I am working with the API in order to proceed payments. My question is this - $balanceTransactionId = $stripeCause->charges->all(['limit' => 1])->data[0]->balance_transaction;
$netAmount = $stripeCause->balanceTransactions->retrieve($balanceTransactionId, [])->net;

I want to retrieve the amount after tax on a post request. So somebody pays 10BGN for example, the net amount after tax is 9.17BGN. I need to get this value in my code because I have to use it.

Is there a way to retrieve the net amount after somebody pays with a card?

I can show you the full code

Related Request ID(s)
I do not have

What have you already attempted?
I have attempted to retrieve it multiple times but it just doesn't work on a post request :(

What are you working on?
I am building a fund raise platform.

#

@restive folio pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How to get notified on webhook URL when customer cancels the subscription at the end of the subscription period?

Related Event ID(s)
evt_1QWcnsJ4DHWMZEteS36IgqYQ

What have you already attempted?
I have used this 2 webhook trigger events - customer.subscription.deleted
subscription_schedule.canceled , but they don't send data for this

What are you working on?
If i try to use customer.subscription.updated event then I don't know what part of the sub was updated, so I am confused

#

@severe forge pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
i want to run subscription but weekly, like for monday tuesday and wednesday... is it possible? if yes please point me to the right piece of documentation

Related Request ID(s)
none

What have you already attempted?
$StripeSubscription = $this->stripe->subscriptions->create([
'customer' => $customer,
'items' => [['price' => $data['price_id']]],
'metadata' => [
'booking_id' => $data['booking_id']
]
]);

i am using this piece of code to create subscription and i am entering the interval in the price_id

cursive heronBOT
#

@slow pagoda pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We using Magento framework and we facing webhooks error we alerady use live api key for our website can you help us

Related Event ID(s)
Webhooks And Api keys

What have you already attempted?
Stripe webhooks could not be configured automatically for: India (Live Mode), Malta (Live Mode), English (Live Mode), French (Live Mode), Poland (Live Mode), German (Live Mode), Vietnam (Live Mode), Africa (Live Mode), USA (Live Mode), China (Live Mode) - You can configure webhooks manually with the following command: bin/magento stripe:webhooks:configure

What are you working on?
maintating

#

@undone tangle pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
El problema que tengo es que ayer se ha deshabilitado el webhook de Stripe, y luego lo hemos habilitado de nuevo, sin embargo en ese rango de tiempo algunos eventos no fueron enviados y desde el dashboard varios eventos no se pueden reenviar pues no sale el boton de reenvio.

Related Event ID(s)
evt_1QWFtODzTrb9eRNqxlcp2gyN

What have you already attempted?
I have already escalated this issue, and it was suggested that I try using the Stripe CLI. However, I encountered errors. Upon reviewing the documentation, it states that this is only for the test environment, which was confirmed by the previous advisor.

What are you working on?
Webhooks

#

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

Question
Is there any way I can eager load payment methods of customers while using list customers api?

Related Request ID(s)
no logs yet

What have you already attempted?
Currently after listing 100 customers I have to make 100 api calls for listing there payment methods.

What are you working on?
I am mapping stripe customer id with our customer table, If I find a multiple customer with same email from stripe, I map only the ones which have payment method

cursive heronBOT
#

@hexed mountain pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Is it possible to get a payment link to retry a failed off-session payment intent?

Related Request ID(s)
pi_2QOv9ZVyHoaa9nmD1ycvXj74

What have you already attempted?
I didn't find a way to do that from the docs.

cursive heronBOT
#

@vocal wagon 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/payouts-connected-accounts

Question
What happens if a user (tenant) makes a rental payment, but the user who will receive part of the payment (host) has not yet accessed the required information in their connected account.
Will the payment be processed correctly and when they finish filling it out, will they receive the outstanding payments? Would the payment process fail until the host has a functional account? Or what would happen?

What have you already attempted?
I have not found this specific case in the documentation.

What are you working on?
Room rental app. Host users put rooms up for rent. Tenant users pay deposit and rent via Stripe. We take a commission and send the rest of the payment to the host.

#

@solar hollow pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I'm trying to get an upcoming invoice (https://docs.stripe.com/api/invoices/upcoming) for a subscription when given a cancel date. but I need to preview the lAST invoice before the cancellation date. For example, if you have a monthly subscription and I set the cancellation date to 3 months, away, I need to preview what the last prorated invoice is going to be.

Related Request ID(s)
N/A

What have you already attempted?
```
upcoming_invoice_params = {
subscription: subscription_id,
subscription_details: {
cancel_at: cancel_at_date,
proration_behavior: 'create_prorations'
}
}

Stripe\:\:Invoice.upcoming\(upcoming\_invoice\_params\)

```

What are you working on?
setting a future cancel date and previewing what the last invoice amount is going to be

cursive heronBOT
#

@dense pivot pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We are trying to make a POST to the accounts endpoint passing in a value for settings[payouts][statement_descriptor].

The POST call succeeds and the account is created but when we check on the Stripe Dashboard the [payouts][statement_descriptor] value is not set to what we pass in ?

Related Request ID(s)
0

What have you already attempted?
We have tried POSTing multiple times and never see the value we POSTed

#

@slate maple pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I want to remove ACH Credit Transfer payment method from all customers, what is the best way to do that? And if we removed it now, would it affect the transactions currently being processed that are done using ACH Credit Transfer?

Doc/Guide Links
https://support.stripe.com/questions/automatic-migration-of-your-ach-credit-transfer-integration-to-usd-bank-transfers

What are you working on?
Removing ACH Credit Transfer payment methods from customers

#

@opaque maple pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
import (loadConnectAnd Initialize) from "../node_modules/@stripe/connect-js/connect.js"

Question
have used onboarding quickstart embedded files index.js import path points to connect.js loaded with npm in project folder, but console shows '..connect.js does not provide an export named 'loadConnectAnd Initialize)'. when index.html is loaded, what is the issue here?

What have you already attempted?
have checked connect.js which does not echo or have export, but i'm not familiar with modules /import

What are you working on?
integrating stripe connected accounts with registration pages

#

@ionic wigeon pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Transaction status is incomplete for 3ds set up cards.

Related Request ID(s)
idk

What have you already attempted?
Im trying to attach user card for future payments relying on the official flow.

Everything works just fine except for the cards that require 3ds auth.

When I attach my card it invokes iframe with 3ds, I click on confirm and the setup intent status is OK.

But when Im trying to pay with the card the transaction status is incomplete (due to 3ds auth).

Test-mode.

What am I doing wrong?

#

@desert solstice pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We are using Pricing table. When user purchase any item using pricing table, we will add payment method which client used.

Related Request ID(s)
prctbl_1PxhPZDMDTbmKOBN9dTmeshH

What have you already attempted?
We are trying to attach payment method to customer on Webhook. However, it result an error

cursive heronBOT
#

@shell cipher pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
Error: locator.type: Target closed

await page.locator('#billingCountry').selectOption('US');

Question
I am having problems with the test “Milestone 1 ' Get Seller Link should create a new Payment Link and display a new component with the copyable link.:1.9.2” from Stripe's challenge Associate Developer.

The test seems to be designed for an old version of the payment link UI and does not find the elements it expects in the checkout.ts.

I am using the repository with the Node.js and HTML combination.

What have you already attempted?
https://docs.stripe.com/payment-links

https://docs.stripe.com/api/payment-link/object

The test is giving timeout because it does not find the elements when doing page.locator, example:

await page.locator('#billingCountry').selectOption('US');

because in the current UI of the checkout the billingCountry element is not visible until the “card” option is selected.

What are you working on?
I'm trying to complete the Associate Developer challenge.

cursive heronBOT
#

@lime bear pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Stripe recommends using server-driven integration for web apps as opposed to the js sdk. Does the same apply for iOS and Android?

Related Request ID(s)
N/A

What have you already attempted?
Read documentation

What are you working on?
Card-present terminal transactions

#

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

Question
Is there an easy way to view a history of the captures for a payment intent when leveraging multicapture.

Related Request ID(s)
pi_3QWgCJEnfH5zKLAp1bkEnUig

What have you already attempted?
Have looked through the various API docs for payment intent and charges but it looks like captures update an object so there isn't a clear way of seeing that 2 captures happened vs 1

cursive heronBOT
#

@spring perch pressed the 🤨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
on stripe checkout iFrame the "promo code" cta display the full label in french when there is space.

What actually happened?
The label cropped in french only on desktop mode, mobile is OK.

Reproduction Steps
I am using the EmbeddedCheckoutProvider and EmbeddedCheckout on my nextJs app in react.
When displaying the page the CTA is cropped. I can provide a preview link if needed.

Question
How can I make the CTA wider ? It is not using the whole width resulting in cropping the label. I cannot change the CSS directly from my next page as the content is in an iframe.

#

@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/separate-charges-and-transfers#transfer-availability

Question
How can we make sure these charges are not automatically paid out to our bank account before they are routed to our connected accounts? I keep getting failures in test mode because these funds are automatically paid out to our bank account.

And I can't use "source_transaction" because the docs says "Asynchronous payment methods, like ACH, can fail after a subsequent transfer request is made. For these payments, avoid using source_transaction."

What have you already attempted?
I tried setting a manual payout schedule and it worked. Is that the only way we can do this?

#

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

Code
// Create a PaymentIntent to charge the customer and send funds to the connected account
const paymentIntent = await stripe.paymentIntents.create(
{
amount: amount,
currency: 'usd',
//customer: customerId,
payment_method_types: ['card'],
//transfer_data: {
// destination: accountId,
//},
application_fee_amount: 5,
},
{
stripeAccount: accountId,
}
);

Question
Running this code with the comments is the only way im getting success 200 from server, but my frontend shows. this error:
Error presenting payment sheet: No such payment_intent: 'pi_3QWget00In1ZLcFq1mm3BbAi'

if i uncomment the transfer_data part i get this error:
StripeInvalidRequestError: The 'transfer_data[destination]' param cannot be set to your own account.

if i uncomment the customer i get this error:
StripeInvalidRequestError: No such customer: 'cus_RPMILGaLLsC1y9'

What have you already attempted?
I tried to adjust the server end logic but i am not able to get the payments sheet to display

What are you working on?
displaying payment sheet to to react native with AWS Amplify serverless backend

#

@proven valley pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
I'm using Stripe Checkout `ui_mode: embedded`. I wanted to add a cancel button to the UI, so users could abort their purchase, but I can't find a way to do that.

Question
How can I add a cancel button to a Stripe Checkout embedded form?

What have you already attempted?
I tried adding `cancel_url` when creating my checkout session, but I got this error: `cancel_url` is not supported with `ui_mode: embedded`

What are you working on?
Basic e-commerce site for choiceofgames.com

cursive heronBOT
#

@astral owl pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I need to back date a subscripiton created through a schedule. Our schedules contain multiple stages. Whilst I can back date the start date, I dont appear to be able to move the billing_cycle_anchor which is imperative.

Related Request ID(s)
n/a

What have you already attempted?
n/a

cursive heronBOT
#

@sweet iris pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I have a created a sandbox clone of a live site. I want to test stripe in test mode, but I don't want to turn off the live stripe payments being taken to the same account on the live site. How do I do that safely?

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

What are you working on?
an integration for testing with the Paid Memberships Pro plugin.

#

@sterile garden pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
What is the proper way to think about Prices and Products for this business?
I'm building an app for a mini-storage. Units have a size and price, ie unit 1 is a 6x8 and all 6x8s cost $35 per month. I think I should have a product per size and a price per product. Or should I have a product per unit and a price per size?

Doc/Guide Links
https://docs.stripe.com/api/prices,

What are you working on?
Ministorage management software

cursive heronBOT
#

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

What did you expect to happen?
I use Stripe to process transactions in Zoho Books for my SERVICE-BASED business. I do NOT have an ecommerce site. I keep getting my account paused even though when addressing the problem via Stripe support, they keep assuring me that I won't encounter the issue again.

What actually happened?
Error again
https://zwdrive.com/S36lxm

Reproduction Steps
Check my screenshot, you'll see. https://zwdrive.com/S36lxm

Question
I can't be the only service-based business or similar use case experiencing this issue.
Anyone have intel on how to resolve this PERMANENTLY?
Right now, I can receive client payments, but not payouts.

#

@compact rose pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How do I access Stripe Insights via the API? When I go to a customer page in the Stripe Dashboard, I see the "Spent" and "MRR" amounts under Insights.

Is there any way for me to access this data programmatically? Either via the API or some kind of report export

Additionally, we use Stripe Connect & charge an application fee using `application_fee_percent`. Is there a way to see a breakdown of how much Stripe Connect revenue we earned broken down by Stripe account?

Related Request ID(s)
N/A

What have you already attempted?
Checked API docs, didn't see any fields for this

What are you working on?
Pulling Stripe data into Hubspot

cursive heronBOT
#

@proper arch pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Currently our webhook is listening for payment intent succeeded.

However this is every payment intent… can you pick and choose which payment intents trigger the webhook? i.e based on the URL the payment was done on or by looking at the meta data?

Related Event ID(s)
Na

What have you already attempted?
Webhook docs

What are you working on?
Payment intent sucedded webhook

#

@high shuttle pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
we received a webhook with charge information for charge.refunded where the refunded key on charge level is true but we dont see refund data(json object) inside the charge

Related Event ID(s)
evt_3Q2y8RBSIdLkVLLN2LelJPSp

What have you already attempted?
We refunded a test payment and we were able to see the webhook payload and it contained the refunds list.
Here’s the event id for the refunded test payment: evt_3QVgOPIJwkxnVmNV0DsP6i8j

What are you working on?
Webhook integration

cursive heronBOT
#

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

Question
How can you set the default payment method on a a customer when using Payment Elements. Im aware i can always call update customer, but I was wondering if there is a more integrated way to make this happen.

Related Request ID(s)
n/a

What have you already attempted?
I've extensively received the docs for configuring Element, Payment Element, and Customer session, but nothing seems to indicate you can save the element.

What are you working on?
Migrating from the sources/charges to intents and elements. I've been able to setup Payment Elements to save payment methods for future usage with a customer.

#

@dense river pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Please complete these steps and provide:

Confirmation that you've created a Stripe product with monthly pricing
The Price ID of your product (it starts with "price_")
Once you provide these, I'll help you implement the subscription system in your application!

Note: Don't share your Stripe secret key in the chat - we'll handle that securely through Supabase's secret management system.

Create Stripe Account
Stripe Products Page
Stripe API Keys Page

Related Request ID(s)
Look above

What have you already attempted?
New to this, i’ve been given instructions. I’ve gotten as far as far as setting up everything up to this point can someone give me a detailed or simplified set of instructions to answer my question

What are you working on?
Website originally was created on wicks integrated the stripe function never used it on the Wick’s website but I’m using an account that correlates with that. I guess I don’t know if I’m explaining it

#

@ionic wigeon pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
One-time preview-invoices creation

Related Request ID(s)
idk

What have you already attempted?
Currently im processing customer's subscriptions this way:

When a customer choose a list of the services I calculate invoicePreview (so it calculates total price).
After customer clicks pay I create a subscription using this preview invoice.

But when it comes to the one-time payments (not subscription but purchasing a list of EXISTING in stripe products) the preview invoice includes a strange list of the prices (for example I pass price_1QQV5nLT0n97qDN20ykQ5Ymn - one product with one-time price and get a preview invoice with list of 3 different prices including recurring)

#

@static dagger pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
No code as yet, looking for an example

Question
I'd like to use the BBPOS WisePad 3 with a .NET MAUI applications, could you provide an example please like he Kotlin one please

What have you already attempted?
I've searched Google but there is very little regarding SDK implementations other than the Kotlin example on your website

What are you working on?
Credit card intergration on a mobile solution

#

@hexed mist pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I was just testing checkout sessions and suddenly a bunch of payment methods I never enabled (like bank) is showing up. I went to our payment methods on dashboard on Stripe and I see something i've never seen before: two different payment configurations, one called "Default" and one called "Billing Payments". When did this change?? I see this on our production dashboard too.

Related Request ID(s)
req_gJ4g2wT7qU0SSx

What have you already attempted?
I'm really concerned here because my current checkout for subscriptions suddenly shows bank, which means users may have had the ability to make payments via non-immediate methods like ACH.

#

@timid ember pressed the 🤨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
Stripe App on Terminal to work on S700

What actually happened?
S700 gets stuck on Udate screen

Reproduction Steps
We deploy our Stripe App on Terminal on S700 device, it doesn't work

Question
We support Stripe App on Terminal with the WisePOS E. With the release of the new S700 device, we wanted to get our app on that as well. But it doesn't work

#

@pseudo python pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I want to retrieve the list verification sessions for a given connected account. How can I do it ?

Related Request ID(s)
none

What have you already attempted?
I tried passing arguments and checking the Stripe API doc, but I just can't find it.

#

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

Question
Let’s say I have a Stripe account with a balance of 1,000. This amount came from different transactions. If I withdraw the 1,000 at once, is there any way, through the API, to check which transaction IDs or payment intents contributed to this 1,000 that was withdrawn?

Related Request ID(s)
po_1QVMesBnjnXECfbUzRXzCFXN

What have you already attempted?
I’m reviewing the Stripe API documentation and noticed there’s information about balance transactions, but I can’t relate the transactions to the withdrawal made. The withdrawal has a balance transaction, but I’d like to know which transactions contributed to the total withdrawal amount.

What are you working on?
Year-end account closing for our company

cursive heronBOT
#

@surreal hound pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I am working on checkout session with promo codes .
Promo Codes are generated via a third part (GiftUp)

Related Request ID(s)
cs_live_b1HBCqqdY0ydjL73ckCsp8bnH7zrxrDKaZDNz4oiKcxd4rGRXf35pLlLHt

What have you already attempted?
I did investigate in staging and in in workbench
I dont find any mention of this error code in the doc : `promotion_code_order_does_not_qualify`

What are you working on?
We are trying to build gitf certificate flow

#

@astral owl pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Spoke with Pompey and Snufkin earlier about back dating subscription that are schedules. I am having issues aplying a schedule to a sub in order to wrap it in other phases.

errors
:
{message: "You can not modify the start date of the current phase.",…}
message
:
"You can not modify the start date of the current phase."
request_log_url
:
"https://dashboard.stripe.com/acct_1QTknsS8JADFnkdC/test/logs/req_Z6KDyYeHA9ZV4H?t=1734381753"
type
:
"invalid_request_error"
message
:
"Unexpected Error"
type
:
"unexpected_error"

Related Request ID(s)
n/a

What have you already attempted?
n/a

#

@forest gale pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
https://docs.stripe.com/radar/integration mentions that usage of Stripe Elements with customer signals is "excellent" in terms of radar integration quality. Is there any impact in terms of what architecture you pick https://docs.stripe.com/payments/accept-a-payment-deferred? For example, we've chosen an implementation where we create the confirmation token client-side, and pass it down to some server-side code that ultimately creates the intent with that confirmation token. My assumption is there's no impact here - as long as we're including things like email, address when creating the confirmation token, the radar effectiveness will be the same. But wanted to confirm.

Doc/Guide Links
https://docs.stripe.com/radar/integration
https://docs.stripe.com/payments/accept-a-payment-deferred

What are you working on?
Contribution form for donations

cursive heronBOT
#

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

Code
const stripeCustomer = await stripe.customers.create({
name: name,
email: customer.email,
address: {
line1: address.address1,
line2: address.address2 ? address.address2 : undefined,
city: address.city,
state: address.state,
postal_code: address.postalCode,
country: address.country,
},
description: `Unit number ${unit.num.replace

Question
Object literal may only specify known properties, and 'name' does not exist in type 'RequestOptions'

What have you already attempted?
The code works but I'm getting a type error.

What are you working on?
Ministorage management software

cursive heronBOT
#

@frank night pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I need to integrate Stripe Terminal for in-person payments with a 100% web based application. I can't seem to find documentation that supports this

Related Request ID(s)
na

What have you already attempted?
I've read the docs and spoke with a sales/consultant that indicated it could be done

What are you working on?
SAAS application

#

@marble pulsar pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
My application receive some charges from the webhook, and we need to differentiate the non recurring charges from the recurring charges, which parameters can we observe to this? (on the charge object)

Related Event ID(s)
None

What have you already attempted?
We've been looking at two different charges, one of them recurring and the other not, but we haven't found many differences other than the description (which is a string parameter, so I'm not as confident to use it)

What are you working on?
A Saas Metrics application

#

@vestal garnet pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I can't activate apple pay in my shopify store

Related Request ID(s)
It was working well, but now dont

What have you already attempted?
I asked to Shopify but they told me that I had to talk with stripe

#

@rare orchid pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How do we enable collecting tax ids when using a custom stripe elements payments form, in react, when using subscription mode?

The only docs I can find https://docs.stripe.com/tax/checkout/tax-ids don't seem to apply as we don't call stripe.checkout.sessions.create

instead we start with

  const newSubscription = await stripe.subscriptions.create\({
    ...
    payment\_behavior\: 'default\_incomplete',
    payment\_settings\: { save\_default\_payment\_method\: 'on\_subscription' },

... }

Related Request ID(s)
we're not making requests, instead trying to collect tax ids via API

What have you already attempted?
Tried reading the docs, tried checking all stripe elements config options for @stripe/react-stripe-js <PaymentElement/> and StripeElementsOptions for <Elements/>

What are you working on?
Custom checkout using stripe elements in react, to let users purchase a subscription to our SAAS

#

@frosty dawn pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hello

I am trying to decipher supported regions for the 3 onboarding methods mentioned at the link below in your docs concerning ‘Platforms and marketplaces’. The ‘Connect’ methods are Stripe-hosted onboarding, Embedded onboarding, and API onboarding. For API and embedded, if multiple regions are supported does each region require a separate integration or is a single integration covering globally? For Stripe-hosted would there be multiple webforms or just one globally?

https://docs.stripe.com/connect/onboarding

Thank you very much!

Related Request ID(s)
NA

What have you already attempted?
No attempt yet

What are you working on?
Researching how onboarding merchants would work globally

#

@frosty sorrel pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
{
"status": "error",
"errors": [
[
"(38) 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."

Question
I am getting this error, how do I add a redirect url to fix this

What have you already attempted?
I don't know what to do

cursive heronBOT
cursive heronBOT
#

@hollow plover pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Is it possible to create a Customer Portal Configuration via the API that is not created with "is_default" = true? I need to be able to modify this config later, and I don't want to have to create an initial blank one just so I can edit the later config.

Related Request ID(s)
req_81scS6gRUbpQPz

What have you already attempted?
I have tried creating the config with "is_default" = false, but the API returns an error that it is an unknown parameter.

cursive heronBOT
#

@delicate karma pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Earlier today a CheckOut Session successfully connected to my webhook.php file. In test mode. Later on the connection did not happen - the Stripe event log shows the webhook is still pending. But I had not changed the Stripe settings, or my webhook.php code. However, the "Access Log" on my server shows that the two cases differ in that the IP address of the Stripe server had changed. Any suggestions please?

Related Event ID(s)
I have done this

What have you already attempted?
I added logging code at the stary of webhook.php. That code has logged nothing.

What are you working on?
Application where people can apply for and pay for membership of a charity.

#

@west vine pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I am building an app for a client. They are a med certificate application. Doctors are signed up using Stripe Connect and will recieve payment via destination charges.

The problem I am trying to solve, is we take payment from the patient upfront, and then one of several doctors will call the patient 30 minutes later. We do not know ahead of time which doctor will consult the patient.

I need to work out how to make sure the doctor who does the consult recieves the portion of the fee. Please assist with pointing in the direction of documentation.

Doc/Guide Links
https://docs.stripe.com/connect/destination-charges?platform=web&ui=embedded-form

What are you working on?
Medical Certificate app.

cursive heronBOT
cursive heronBOT
#

@tardy fractal pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
For in-person payment is it possible to raise the invoice in Saleofe and take payment for that invoice in Person?

Related Request ID(s)
NA

What have you already attempted?
Docs

What are you working on?
Stripe and Salesforce Integration

cursive heronBOT
#

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

Code
$paymentIntent = PaymentIntent::create([
'amount' => $amount, // Amount in the smallest unit of currency (e.g., cents for USD)
'currency' => $currency, // Currency code (e.g., "usd")
'payment_method_types' => ['card', 'google_pay'], // Accept Google Pay as a payment method
]);
This is the error I get : "The payment method type "google_pay" is invalid..."

Question
In my account, the google pay payment method is active and the domain has been approved, but my account is not fully activated (I'm still at step 2 "Add a bank to quickly pay out funds from"). Is that what's preventing me from using 'google_pay' in the payment_method_types of PaymentIntent::create?

What have you already attempted?
I removed 'google_pay' from the parameters and everything works fine.

What are you working on?
Just trying to implement the stripe google pay sdk in my php backend.

cursive heronBOT
#

@plucky belfry pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I don't see my customer metadata in the subscription object. When going through the event history, I see a `customer.updated` event along with the metadata that I attached. When I try a test purchase, I do not see this metadata in the subscription object or anywhere in the event. I tested this previously on December 4th and it was working as expected

Related Event ID(s)
Metadata attached: evt_1QWrHbKNB9nCEk45nRptQSb5 Subscription created event: evt_1QWrHpKNB9nCEk45OMZOZGat (my metadata does not populate) ("app_user_id": "random_app_user_id")

What have you already attempted?

  1. Attach customer metadata (confirmed `customer.updated` event has the created metadata)
  2. Purchase a subscription and the metadata does not populate
#

@latent anvil pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Im building a donation form, I need to have the ExpressCheckoutElement be visible on page load. So i am creating a payment intent with a default amount and passing the client secret to Elements. This way the ExpressCheckoutElement is rendered on page load. But if the page is visited and closed, I get a incomplete transaction in my stripe log. The log is full of incomplete transactions because of this default payment intent. How can I get around this?

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

What are you working on?
Donation Platform

#

@keen lynx pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
// Sample code to set capture_method to manual
add_action('woocommerce_order_status_processing', 'create_manual_capture_payment_intent');
function create_manual_capture_payment_intent($order_id) {
$order = wc_get_order($order_id);
// Assuming you have already loaded Stripe PHP library
\Stripe\Stripe::setApiKey('your_secret_key');
$paymentIntent = \Stripe\PaymentIntent::create([
'amount' => $order->get_total() * 100, // Modify amount if necessary
'currency' => get_woocommerce_

Question
Hi all, this code is from the Stripe chatbot. I asked it to provide code suitable for WordPress Code Snippets in order to change payment intent to "Pre-Authorize" so that funds can be captured later. But it includes Woocommerce that I don't use. I use Hotel Booking Plugin as a checkout instead. Any help to make the code work would be most appreciated.
Many thanks!

What have you already attempted?
The code above won't work without Woocommerce which I don't want to use. I've asked devs, Motopress, and Stripe without success so far.

cursive heronBOT
#

@winged spade pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I have generated a network token on another psp. Can Zhijie pay through the paymentintent API?

Related Request ID(s)
n.a

What have you already attempted?
I looked at the stripe documentation and mentioned that it was possible to migrate card data in, but nothing about the network token. Maybe stripe is just a network token to ensure that the payment method id is valid for a long time and is not affected by the expiration of the card.

What are you working on?
We designed our own subscription plan, and then had the networktoken deductions. Now want to move to stripe without feeling do not want to let the customer bind the card again

cursive heronBOT
#

@late rose pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
https://github.com/stripe-samples/tap-to-pay-android-demo

Question
This example seems to be out of date, I have followed the instructions and can not get it to work in Android Studio.

If don't update to the latest SDK, the app compiles but crashes as soon as the connect with card reader button is pressed.

If I update and add the latest sdk as a dependency, I can't compile the app

What have you already attempted?
Yes

#

@untold wave pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hi,

We would like Stripe to generate PDF for the customer invoices (e.g. like the ones returned here:https://docs.stripe.com/invoicing/hosted-invoice-page?locale=en-GB#invoice-urls) however we want those to not be available without authentication.

Is it possible to disable those URLs but still generate a PDF using a secret key?

Related Request ID(s)
123

What have you already attempted?
Reading documentation

What are you working on?
Subscription management via Stripe

cursive heronBOT
#

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

Question
Because the authentication for the customer portal login link is not secure enough for us we want to just create customer portal sessions on the go via API - https://docs.stripe.com/customer-management/integrate-customer-portal#go-live. This was also not good because while we can generate ephemeral sessions for customers to access their customer portal, it is basically a public link with a rolling 1hour lifetime once accessed. How do we provide a more secure hosted customer portal for our customers without having to build a UI/Portal ourselves?

Doc/Guide Links
https://docs.stripe.com/customer-management#customer-portal-features

What are you working on?
Subscription Management with Stripe

cursive heronBOT
#

@prisma mulch pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I'm unable to update business details in test mode via Dashboard. I get a 400 error.

Is it expected, that this is only allowed on live mode?

I need to dynamically set some data on the invoice pdf at subscription level. Since invoice_settings[footer] cannot be set via API on subscriptions, I'm trying to test the following on test-mode:

  1. Changing the business details of an account
  2. Setting invoice_settings[issuer][account] on a subscription.
  3. Seeing what the subscription's invoices look like.

Related Request ID(s)
req_9IMUBjMyZXAv46

What have you already attempted?
https://docs.stripe.com/invoicing/customize#public-support-info,
https://docs.stripe.com/invoicing/invoice-rendering-template?dashboard-or-api=api#override-and-update-templates

What are you working on?
Trying to modify invoice details on subscription level via API, without updating invoice_settings[footer] via Dashboard.

#

@severe forge pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Can i specify the end date and start date for a subscription?

Related Request ID(s)
none

What have you already attempted?
$StripeSubscription = $this->stripe->subscriptions->create([
'customer' => $customer,
'items' => [['price' => $data['price_id']]],
'metadata' => [
'booking_id' => $data['booking_id']
]
]);

can i specify the start date and end date? otherwise the system will keep deducting money until the user cancel's it

What are you working on?
na

#

@vagrant quartz pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
useEffect(() => {
const fetchSetupClientSecret = async () => {
const secret = await createStripeSetupIntent(c_stripeCustomerID)
setClientSecret(secret.setupIntent.client_secret)

}
fetchSetupClientSecret\(\)

}, [c_stripeCustomerID, isPaymentSuccess])

const result = await stripe.confirmSetup({
elements,
confirmParams: {
return_url: returnUrl
},
redirect: 'if_required',
clientSecret: clientSecret
})

Question
We Have Implemented Stripe Setup Intent to save the Card for Future Usage Using Stripe Payment Element In That I am Showing the Checkbox to save Payment That checkbox is coming when we pass the customer Session in elementOptions, So The Issue We Are facing is if the Checkbox is not checked then we don't need to save the card

What have you already attempted?
Already Attempted the Approach

What are you working on?
setup Intent Save card

cursive heronBOT
#

@ashen aspen pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hello,

I would like to associate Stripe paymentIntents with my own customer IDs, without having to create Stripe customers and store the cus_xxxx ID in my database.

Is there a way to send a custom ID (from my own system) when creating or managing a paymentIntent, so that Stripe can recognize and associate the payment with the correct customer in my system?

For example, I want to use my own unique customer IDs instead of Stripe's cus_xxxx format.

Thank you for your help!

Best regards,

Related Request ID(s)
req_P1M2zNG56R6YGn

What have you already attempted?
I have already tried using metadata to attach my custom IDs to paymentIntents. However, this approach is not sufficient because there is no way to sort or filter payments based on metadata. It requires going into each individual payment to identify the associated customer, which is not efficient for my use case.

I’m looking for a solution where I can pass my custom IDs and have them accessible or filterable in a more streamlined way.

What are you working on?
payment from my client's users to my client, in my app

cursive heronBOT
#

@alpine knoll pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I now allow my users to have multiple subscriptions, instead of multiple accounts, it works, my only issue is if a customer has, e.g: 2 subscriptions, but says he took 2 by accident, and asks for a refund for the "duplicate" one, from the dashboard, i can only refund the last payment or prorated payment, but i would like to refund the price of only 1 subscription

Doc/Guide Links
https://docs.stripe.com/billing/subscriptions/quantities

What are you working on?
SaaS

#

@twilit viper 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/accounts

Question
Hey! We are building a Stripe app and want to get account info from the merchants that install our app. However, it seems like the type of account dictates what account data we can receive. The guide explains how account types might differ depending on the whether its "Standard" or "Express" but I am not sure how that relates to getting account info via a typical Stripe App.

What have you already attempted?
The reason we are looking into this guide is because we've been fetching the user's account data through our Stripe App but the account object seems incomplete based on what we see in the API docs. For example, we aren't getting any "business_profile" data.

What are you working on?
A Stripe App to help merchants bundle their subscriptions with others.

cursive heronBOT
cursive heronBOT
#

@twilit charm pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hey I want to charge from my customers using bacs_debit, But I am receiving an error from invoice/pay API saying that "This PaymentIntent requires a mandate"

Related Request ID(s)
req_WIsFTwphjLLqpd

What have you already attempted?
I have already created a customer and I have added a default payment as bacs_debit payment method.

What are you working on?
Invoice Management Web App

cursive heronBOT
#

@fast flare pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How do I pay via Link if I pass payment method types as card and not link while creating intent, because I want to pay it via card integrations as mentioned below:
https://docs.stripe.com/payments/link/link-payment-integrations?link-integrations=link-card-integrations

Related Request ID(s)
NA

What have you already attempted?
I tried to create a POC using stripe elements `payment_elements` and `link_authentication_elements` , but no where there is pay with link option. How do I integrate it via card integration. ?

Btw, I have a working code to integrate it as a Payment Method, using stripe elements.

What are you working on?
Integrating Link as a Payment Method.

#

@near ocean pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
My question is related to Webhook/Checkout/Platform/connected account.
I am a platform account and I have a checkout.session.completed webhook event setup at the platform level.
One of my connected account also has webhooks configured at their account level.
I create a checkout session on the api using my platform key referencing their account id.
I'd like to know if in that case, only the webhooks configured at the platform level will trigger ? It seems that the webhooks at the connected account level are not triggering. Could I get a confirmation on this ?

Related Event ID(s)
pi_3QWxV0FgtZSi4nTh1oJV6FRr

What have you already attempted?
Create a checkout session

What are you working on?
an ecommerce checkout shopify like platform to sell trainings

#

@round apex pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
Trying to figure out how the data model for fees works. End goal is to join our interal transactions table with Stripe to calculate the fees associated with each.

Question
Trying to figure out how the data model for fees works. End goal is to join our interal transactions table with Stripe to calculate the fees associated with each.

What have you already attempted?
I've attempted using the balance_transactions table as source of raw data but struggling to figure out how it works

What are you working on?
ETL for transactions data

#

@magic lance pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I have in my app subscriptions which I've made through Stripe. Developer who started project created free plan as product and price in stripe with price 0.0 euros. User is subscribed to that plan on creation of account.
Monthly, yearly are products with prices.

I have an issue if my user is on active free plan subscriptions he is receiving email from Stripe that his Free subscription will renew.

I'll attach below image to whom I am referring

Related Request ID(s)
x

What have you already attempted?
x

What are you working on?
Subscriptions

#

@knotty barn pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hello,
I generated a Payment Link, and the receiver had made 3 attempts—each time the payment appeared to finish successfully, but I haven’t received any confirmation. The Payment Link is limited to 1 use (showing 0 of 1 in the dashboard).

After digging into the logs, I noticed a 403 error, which is strange because I haven’t configured any custom confirmation page or other parameters. The entire payment process is set to be handled within Stripe.

Payment link was generated without any problems, it is visible in the dashboard.

Could you help me understand what might be causing this issue?

Related Request ID(s)
req_ZhFkyZbnEwr3R8

What have you already attempted?
I analyzed all the parameters of the created Payment Link, and they are identical to the previous link for the same customer (which worked without any issues). The customer also tried using a different email address (with the original link, I used the **prefill** parameter).
Also tried if webhook server is alive and returns 200- it does.

It’s still not working, and I’m not sure what could be causing the issue. Any insights would be appreciated.

What are you working on?
I’m building an extremely simple link generator for invoices created within my accounting software (which isn’t integrated with Stripe). It’s a straightforward solution: a payment link for the invoice

cursive heronBOT
#

@dusk gulch pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
I have purchased A subscription in 4242424242424242 this card now has a recurring time card update
4000000000003220 but recurring payment error authentication issue facing how to resolve

Question
3D Authentication issue how to resolve

What have you already attempted?
Multiple attempts create but the subscription recurring payment failed

What are you working on?
Subscription recurring payment authentication issue

cursive heronBOT
#

@twilit charm pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hi using API we tried to charge a payment for an invoice, We got the below error "This PaymentIntent requires a mandate"

Related Request ID(s)
req_UEDsc3DatnTsRS

What have you already attempted?
We have added bacs_debit payment method for the customer through checkout and try to do the payment

cursive heronBOT
#

@glossy trench pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I am receiving this error: Please use the same instance of `Stripe` you used to create this Element to create your Source or Token.

Related Request ID(s)
I do not have

What have you already attempted?
I have tried to change my input values but without successs

What are you working on?
I am building a fund raise platform.

#

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

What did you expect to happen?
A user accesses the link to complete the details of his express account.
A selector appears for company type and structure.
But our users are ordinary people who rent out a room in their home. They are not business owners, self-employed people or non-profit organisations.

What actually happened?
Neither option is correct or valid for our users.

Reproduction Steps
User receives a link and accesses to complete the data of his/her connected express account.

Question
What category does a retiree, a housewife or anyone who rents out a room in their home fit into?

What are you working on?
Room rental app.

cursive heronBOT
#

@ember turtle pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
For Connect account DTO within the `business_profile` object, there is a property called `mcc_source`. I cannot find any documentation on what this value represents and the possible values of it (and the reasons behind those values).

Where could I find this information?

Thanks!

Related Request ID(s)
N/A

What have you already attempted?
Looked through Stripe API docs.

cursive heronBOT
#

@slim galleon pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We are looking to pull a MRR calculation into our front end via the API. Is there any way of accessing the MRR data points for connected accounts via API?

Related Request ID(s)
N/A

What have you already attempted?
Read through docs, tried calculating out end but ran into issues with staged scheduled products.

What are you working on?
Laravel

#

@outer oasis pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I want to know if there is an api that allows me to know if there are any payment methods associated with a given customer id.

Related Request ID(s)
None

What have you already attempted?
I have a full payments and subscriptions flow. This is maybe the last piece.

What are you working on?
I am working on the NodeJS backend for an android app.

#

@graceful marsh pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Our app is currently using payment links to sign up new customers and start their subscription with trial. Now, we need to sign up new customers with 2 products - one with trial and the other one without trial. How should we do it?

Doc/Guide Links
https://docs.stripe.com/payments/checkout/how-checkout-works

What are you working on?
Building a SaaS product.

cursive heronBOT
#

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

Question
The issue is when we create a subscription that is meant to start at a future date, the first two invoices are weird.
Lets say we want them to start being charged on Dec 20 with a billing cycle start on the 1st. I would expect invoice 1 to be a prorated Dec 20-Jan 1, and invoice 2 to be Jan 1-Feb 1. Instead Invoice 1 is Dec 20-Jan 20, Invoice 2 is Jan1-Feb 1 with a credit of unused portion from Jan 1-Jan 20 of the first invoice. I need to know how to set the equivalent of the "Billing Starting" field via the API, because when I set it to the 1st on the first phase the invoices are perfect.

Related Request ID(s)
N/A

What have you already attempted?
Create a subscription schedule with a start a year in future (arbitrary) with 2 phases. 1st with end date on the first of the month and proration_behavior = 'create_prorations. 2nd with no end date (1st until forever) and a billing_cycle_anchor = 'phase_start'.

When I know the date it should start charging, I update the first phase to be that start date until the next 1st of the month, and set the second phase to be the 1st until forever via no end date, and I set th billing_cycle_anchor to 'phase_start'.

What are you working on?
Automate creating subscriptions in the future (Subscription Schedules) that will be updated to start charging at a varying date in the future (a flow needed prior could take them 2-14 days)

#

@vocal wagon 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/subscriptions

Question
Our original idea was to generate an endpoint that would allow the payment of the deposit and the subscription to the monthly rent payment. All in one.
But it seems that the payment of the deposit is a one-time payment via paymentIntent returning ephemeralKey, and the subscription is a different endpoint based on the payment_method_id.
Is this correct?

What have you already attempted?
We have generated a method that performs the subscription after the paymentIntent, but we have some problems because they are different endpoints and do not respect the single responsibility.

What are you working on?
Room rental app. Users with home rent out rooms. Other users can rent a room through our app. They are charged a deposit and subscribed to a monthly rental payment. Our platform takes a commission.

#

@shadow wyvern pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
// Update the PaymentIntent metadata on "payment_intent.succeeded"
await stripe.paymentIntents.update(paymentIntent.id, {
metadata: {
vendorId: vendorId,
},
});

Question
I'm trying to create a custom affiliate system that uses stripe. I'm setting a metadata in the customer object `vendorId`, and I want this metadata to replicate for each successful transaction. However, when I export payment data, only the checkout metadata is exported, and the charges being of a subscription, the plan renewal generates a new checkout id which I don't have control of (no events in the webhook). Is there another way to export these metadata or do this system?

What have you already attempted?
I have tried adding this metadata to the payment intent object, and it works, but I can't access it when I export payment data whatsoever. I also tried adding this metadata to the checkout, but, as I mentioned, the checkouts that are created when the plan renewals I don't have any control of (to update it and add the metadata) - I checked and no webhook event triggers a creation of a new checkout, but it's shown as a different checkout id in the exported data.

What are you working on?
I'm working on a SaaS that has subscription-based plans.

#

@glossy trench pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
Separate 1 payment into 2 with php paymentIntents

Question
Can I separate a payment to two payment intents and confirm the payment on the front end?

What have you already attempted?
I have tried to do it already but I just wanted to check with Stripe support

What are you working on?
I am building a fund raise platform.

cursive heronBOT
#

@hazy osprey pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
I would like to automate a test for capturing an expired payment intent with credit card.

Question
I need to simulate the error that results in the code `charge_expired_for_capture` or `capture_charge_authorization_expired` when attempting to capture a payment intent.

What have you already attempted?
Credit card authorizations in production expire after 7 days. So I assumed that I could use a test clock, run it forward 7 days, and that would cause the payment intent to expire. I took care to wait for the test clock status to return to `ready`. Unfortunately, the payment intent status remains at `requires_capture` and capturing the payment after running the test clock forward succeeds rather than fails.

What are you working on?
This is for an integration test for handling of credit card payment capture failures.

cursive heronBOT
#

@stiff sparrow pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hello, when I create a subscription, I set the billing anchor to be a specific day of the month, but it looks like it shifts to be a day before. Do you know why? For this customer, I sent in 16 as the day of the month, but the subscription now is showing the payment date will be 15th of the next month...
subscription id: sub_1QWvHvGDtKVVPFGirvwe0ude
customer id: cus_RPkn04zsKHexTg

Related Request ID(s)
req_xU94eoFGvpRLOV

What have you already attempted?
create subscription with a specific payment date.

#

@tender tundra pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I'm trying to use Express Checkout with Subscriptions but I keep getting this error when trying to complete the transaction,
"The provided setup_future_usage (off_session) does not match the expected setup_future_usage (null). Try confirming with a Payment Intent that is configured to use the same parameters as Stripe Elements."

I'm using the payment intent generated by creating the Subscription so I'm not sure what I'm doing wrong.

Related Request ID(s)
req_j8QN7JtADX740Q

What have you already attempted?
not sure if it's possible to pass setup_future_usage on stripe elements or not

What are you working on?
Subscriptions

#

@valid jacinth pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Is there any way to retrieve the last 4 digits or the full IBAN of a customer who has sent a Bank Transfer payment through Stripe? I understand that SEPA Direct Debit allows the retrieval of the IBAN's last 4 digits, but I would like clarification regarding Bank Transfers. If not, are there any recommended workarounds to identify the sender account details?

Related Request ID(s)
No related request id

What have you already attempted?
I have reviewed the Stripe documentation for Bank Transfers and SEPA Direct Debit. I understand that Stripe uses a unique reference number to reconcile Bank Transfers, and IBAN details are not typically displayed. However, I would like to confirm whether Stripe provides any access (even partial) to the originating IBAN details for Bank Transfers.

I have also checked webhook responses for payment_intent.succeeded and charge.succeeded events, but I could not find IBAN-related information.

What are you working on?
We are building a payment reconciliation system where knowing the originating IBAN (even partially) would help us verify and automate incoming Bank Transfers more accurately.

#

@toxic onyx pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
useEffect(() => {
if (!elements || !totalAmount) {
return;
}
elements.update({
amount: totalAmount,
});
}, [elements, totalAmount]);

return (
<ExpressCheckoutElement
onClick={(event) => event.resolve(clickResolveDetails)}
/>
)

Question
I am using the Stripe ExpressCheckoutElement with React.

When my customer changes their amount selection from X to Y, I call `elements.update()` with the new amount Y with a useEffect. If the customer clicks the ExpressCheckoutElement very quickly, the googlePay/link modal will show the customer's old amount X. `elements.update()` appears not to have resolved yet.

Is there a way to make onClick wait until `elements` finishes updating? Or pass an amount directly to onClick?

What have you already attempted?
Passing an amount directly to onClick (I'm not sure where to pass it)
Playing around with elements.on('end-of-update')?

What are you working on?
StripeJS: waiting for `elements.update()` to resolve

#

@languid rapids pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
My webhooks are not firing and I can't tell why. Details: https://stackoverflow.com/questions/79276521/stripe-webhook-events-not-sending-test-mode

Related Event ID(s)
evt_1QWhUyAw2dZTYBb9jAnVzzHS

What have you already attempted?
- Made sure the correct events are linked to my webhook
- Made sure I'm testing events for connected accounts and my webhooks are for connected accounts
- Made sure the event destination is active (not disabled)
- Tested the event destination with Postman and can confirm it works

What are you working on?
A parking app

#

@marsh lake pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
const subscriptionSchedule: Stripe.SubscriptionSchedule =
await stripe.subscriptionSchedules.create({
customer: customerId,
end_behavior: 'cancel',
expand: ['subscription'],
start_date: 'now',
default_settings: {
default_payment_method: paymentMethod,
},
phases: phaseBuilder(rentValues, property.securityDeposit),
});

Question
When setting up a SubscriptionSchedule, how do I direct a portion of the payment to my account and the rest to another account (without using Stripe Connect)?

I was told this is possible, but can't find it in the docs or API.

What have you already attempted?
Read https://docs.stripe.com/billing/subscriptions/subscription-schedules and related docs, and looked through the params in the API.

I found `application_fee_percent` which looks like it would probably work, but that appears to need stripe connect, and I was told that isn't necessary.

Perhaps `on_behalf_of` can be used somehow, but I don't see an option to pass a fraction or percentage.

What are you working on?
A platform for mid-term rentals

cursive heronBOT
#

@strange chasm pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We're migrating from Payment Request button to Express Elements (React). How do we make Express Elements work for subscriptions, knowing that the user may or may not be logged in?

Related Request ID(s)
N/A

What have you already attempted?
For one-time payments, we create a payment intent server-side, send back the `paymentIntent.client_secret` and pass it to `<Elements options={{ clientSecret }} />`.

For subscriptions, from what I understand, usually you would create a subscription in advance and use the `subscription.latest_invoice.payment_intent`, but a user may not be logged in, so we can't always create a subscription

Creating a subscription at every page visit is probably not desirable, since some pages gets visited a lot by users who have no intention in paying, such as checkout forms embedded in our blog posts.

What are you working on?
A checkout experience that could be for both one-time and subscription payments. The user may or may not be logged in (most won't be logged in). We call this "checkout first" (then login/signup)

#

@vivid geyser pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How do I enable Apple Pay, Google Pay and Paypal when creating a Stripe checkout session?

Related Request ID(s)
None

What have you already attempted?
I tried `payment_method_types: ["card", "apple_pay"]`

Got: "Invalid payment_method_types[1]: must be one of card, acss_debit, affirm, afterpay_clearpay, alipay, au_becs_debit, bacs_debit, bancontact, blik, boleto, cashapp, customer_balance, eps, fpx, giropay, grabpay, ideal, klarna, konbini, link, multibanco, oxxo, p24, paynow, paypal, pix, promptpay, sepa_debit, sofort, swish, us_bank_account, wechat_pay, revolut_pay, mobilepay, zip, amazon_pay, alma, twint, kr_card, naver_pay, kakao_pay, payco, or samsung_pay"

cursive heronBOT
cursive heronBOT
cursive heronBOT
#

@ionic wigeon pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Prices request dont include some prices

Related Request ID(s)
idk

What have you already attempted?
[TEST MODE]
Classic request for getting prices list (+ include 'data.product')

Expected: list of 12 prices
Result: list of 10 prices

Somehow two prices are missed for my product (prod_RJ79bkkJc1TOnQ)

request id: req_kFTwhAFivs1Qat

What are you working on?
Online store

cursive heronBOT
#

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

Code
<CardField
postalCodeEnabled={false}
style={styles.cardField}
cardStyle={{
fontSize: 16,
allowFontScaling: false,
textColor: "#000000",
}}
onCardChange={(cardDetails) => {
setCard(cardDetails);
}}
/>

Question
When you select any of the CardField component fields and it loses focus, the application closes automatically. Furthermore, when completing the form fields it does not detect that the card information has been completed.

The environment in which the element is being used is as follows:
"expo": "~52.0.19",
"react": "18.3.1",
"react-native": "0.76.5",
"@stripe/stripe-react-native": "0.38.6",

What have you already attempted?
I have already updated all the packages that are being used and check that the account configuration is correct.
I tried using the CardForm component but on Android it hides the zip code field when you select the state.

What are you working on?
I am building a payment window that allows the user to make their payment by card.

#

@topaz bough pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hi

Is it possible to fetch, for a transfer, transaction or charge, the information displayed in the UI under "Platform pricing details", which contains how was the application_fee calculated for a transaction/charge/transfer?

I am able to obtain through the api the "Account group" id, for instance, acctgrp_xyz, which seems related to the fee rule, but unable to obtain the details of how the fee amount is calculated. I could also verify that this information is under Accounts-> Settings-> Account pricing.

Please I need to obtain the fee calculation rule or any description that contains it.

Related Request ID(s)
req_ASdSwv8FkzXYOM

What have you already attempted?
I tried to get this data from Account endpoints, and also from other endpoints, but was not successful.

What are you working on?
Backend development for a system which will display the amounts and fees for client transactions/charges.

#

@idle mirage pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hey, I'd like to add functionality to let my users tip some places. How may i add dynamic params - e.g. `place_id` to payment link, so then we can see in dashboard which place should get money (we handle forwarding it on our own). This place_id should be prefilled, and user should not be able to modify it. Is it possible to accomplish with payments links?

Doc/Guide Links
https://docs.stripe.com/payment-links

What are you working on?
Application for tipping places

cursive heronBOT
#

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

Code
There is no code in this example

Question
A user is using my app's OAuth to connect and is getting error "Failed to load current workspace".

What have you already attempted?
Have confirmed that:
* User is an admin
* User has had multiple people from their company try to connect
* Other users/companies can easily connect

What are you working on?
https://marketplace.stripe.com/apps/potio

#

@umbral lance pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I am trying to payout funds to users directly, kind of like how Lyft or Uber pays drivers. I am ideally wanting the user to link a bank account. At the moment, I have a system in place that stores the customer_id and the user can create new sources (bank accounts). Guessing I am looking in wrong areas. Any suggestions?

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

What are you working on?
Mobile Application

#

@vivid geyser pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I am trying to implement Stripe Checkout with checkout sessions, but having trouble at the frontend implementation. After loading the library locally, I get `Uncaught (in promise) ReferenceError: Stripe is not defined`

Related Request ID(s)
None

What have you already attempted?
Going through the docs: https://docs.stripe.com/checkout/embedded/quickstart?client=html

I'm in the "Initialize Stripe.js" step.

#

@worthy osprey pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
const subscription = await stripe.subscriptions.create({
customer: cutomerId[0].stripe_id,
items: [
{
price: "price_1QUcLlPb9OEeVy2q7rZIqkv9",
},
],
payment_settings: { save_default_payment_method: "on_subscription" },
payment_behavior: "default_incomplete",
expand: ["pending_setup_intent"],
});

Question
How can I create a usage based subscription that will track usage for the current month and send an invoice at the end of the month?

What have you already attempted?
I'm creating a usage a based billing subscription with a price of $0.04 per unit. I've created a product with a recurring price that is attached to a meter. On the client side, I'm using the PaymentElement to add a payment method at checkout. When submitted start a subscription using the above code. However, when I start the subscription, an initial invoice of $0.00 is paid for the current billing period.

I followed the set up usage-based billing guid and had the same issu

What are you working on?
A subscription service where users are billed at the end of each month for their usage based on units

#

@hasty spire pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Why is my Apple Pay not showing in the prebuilt PaymentSheet? paying with a credit card works but Apple Pay is not showing as an option in Stripe PaymentSheet

Related Request ID(s)
pi_3QX7Px05PIMIj7Fi0BBD0wjo

What have you already attempted?
followed this doc: https://docs.stripe.com/apple-pay?platform=ios#csr
up to step 4 since I am using PaymentSheet.I skipped the AppDelegate.swift part in step 2 since I am using SwiftUI instead of Swift

#

@topaz bough pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hi

I previously asked how to obtain the rules for application fee calculations for a charge/transaction/transfer and I was told to fetch this information from the Balance Transactions endpoint. This entity contains a fee_details property, but still it does not contain how the fee was calculated.

I need the data that represents the value such as

"Amount:
10% + €0.03 EUR, €1.00 EUR maximum"

which is how the fee was calculated and appears under Transaction -> "Collected Fees" -> "Platform pricing details" in the UI.

Thanks!

Related Request ID(s)
req_ASdSwv8FkzXYOM

What have you already attempted?
I tried to get this data from Balance Transcation endpoints, and also from many other endpoints, but was not successful.

What are you working on?
Backend development for a system which will display the amounts and fees for client transactions/charges.

#

@noble plinth pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We have a deployed and approved Stripe App, which has been active for about 1 year. Today, a customer is reporting that our App Link shows a 401 in the section of the app install screen where the scopes would normally be shown.

Related Request ID(s)
n/a - this is a customer-side issue

What have you already attempted?
Our app has been live and successfully working with a number of customers for a year. This error appears to be entirely stripe-side.

What are you working on?
Digits!

#

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

What did you expect to happen?
A customer that is redirected to Afterpay from the Stripe payment element should see Afterpay in the same language as Stripe as long as the language is supported by Afterpay.

What actually happened?
The customer is redirected to an Afterpay page that is in English instead of French

Reproduction Steps
Our application sets the locale when instantiating the Stripe payment element.
* Set the locale to be "fr-CA"
* Have afterpay available as an option
* Attempt to complete payment with Afterpay

The test page is always in English and the Afterpay hosted page is also in English.

I have also attempted to change my browser's locale, but it did not change anything.

Question
Why is the page not in French? Is something else needs to be passed to ensure that the page is in a different language?

What are you working on?
A website that uses Stripe payment element with a manual selection of payment method types and confirmation on the server

#

@minor lance pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I'm trying to get the items in an upcoming invoice. I'm only getting 10 items where I should be getting 17.

Related Request ID(s)
req_7mR8Ipu1BTs73R, I think

What have you already attempted?
This is the code I've tried so far,

        const upcomingInvoice = await this.stripe.invoices.retrieveUpcoming\({
            customer\: customer.id,
            subscription\: subscriptionId,
            expand\: \['lines.data.price.product'\],
            
        }\);

along with some other attempts that also failed.

#

@limpid pike pressed the 🤨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
I offer bank transfer payments to our connected tenants. I create payment intents with the `payment_method_options` `customer_balance.bank_transfer`. Bank transfer then appears in Stripe as a valid payment option, giving me the virtual IBAN. After sending the wire transfer I expected the payment to go through and fulfill our payment intent.

What actually happened?
After transferring the payment via my bank account, it is sent back with the notice "wrong iban". The transfer details are 100% correct.

Reproduction Steps
create checkoutsession with:

```
payment_method_options: {
customer_balance: {
funding_type: 'bank_transfer',
bank_transfer: {
type: 'eu_bank_transfer',
eu_bank_transfer: {
country: 'DE',
},
requested_address_types: ['sepa'],
},

```

Question
I get an error with sending the wire transfer while using bank transfer. Is this a problem on my side or on Stripe? Or might the other bank fail in some way? Mind this is a very big bank in Germany.

What are you working on?
Course management platform

#

@west hill pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
const setupIntent = await this.stripe.setupIntents.create({
automatic_payment_methods: { enabled: true },
payment_method_options: {
card: {
request_shipping_address: true,
},
},
});

Question
How can i make a shipping information mandatory for Apple/Google pay when using SetupIntents and EpressCheckoutElement from stripe-react-js

What have you already attempted?
Tried to google, tried to ask ChatGPT. The code above is the closest shot i can do. Anythig else sucks and not willing to compile.

What are you working on?
Some kind of auctioning app.

#

@faint kindle pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We would like to pass in the customer's email addr when we create a session so that they don't enter it. Both because we don't want them to have to and because we want to make sure they are using the same ID in our app and in Stripe.

Related Request ID(s)
req_22way6i0AiYfHX

What have you already attempted?
We have a Backend that creates the session and returns it. Everything works, we just want to specify the email addr.

What are you working on?
TruthSayer AI - A financial hedge-fund-in-a-box app.

#

@little sundial pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hey everyone, new to the Stripe API. Looking through the various Stripe docs and links as well as videos, I can't seem to understand the following:

Can a user accept payments into their bank accounts with a simple/standard account? To achieve this, would we use something like "Payouts" from our side? Can I payout to anyone as long as I have their banking details?

Does a user need a special account (any non-standard account), to use the tap-to-pay feature that Stripe provides?

What is a Stripe Connect account, vs a normal account? I can't understand the difference even after reading the docs.

(Sorry if any dumb questions, new to the Strip API :))

Doc/Guide Links
https://www.youtube.com/watch?v=UtN3c6hnils
https://docs.stripe.com/api/connected-accounts
https://docs.stripe.com/api/payouts
https://docs.stripe.com/api/accounts
https://docs.stripe.com/terminal/payments/setup-reader/tap-to-pay?platform=android

There are some youtube vids too.

What are you working on?
Some kind of transferring money between users app

#

@languid rapids pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Webhook events are not emitted by Stripe Connect in Test mode

Related Event ID(s)
evt_1QWhUyAw2dZTYBb9jAnVzzHS

What have you already attempted?
My StackOverflow post for pictures: https://stackoverflow.com/questions/79276521/stripe-w
The issue seems to be Stripe not sending the events. In the "Events" tab, I see the events that I trigger BUT in the "Webhooks" tab under my event destination and "Event deliveries" tab, there is nothing. Everything request seems to have succeeded in the "Logs" tab and there is nothing in the "Errors" tab. I also made sure that the webhook is set for "Connected accounts" events and that it is not Disabled. I have not yet secured this so it shouldn't have anything to do with my backend rejecting the calls.

What are you working on?
A parking app

cursive heronBOT
#

@hallow epoch pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
# 1. This is to set up my restricted key
$StripeSecretKey = "rk_live_•••XXXX"

# 2. setting up headers
$Headers = @{
Authorization = "Bearer $StripeSecretKey"
"Content-Type" = "application/json"
}

# 3. defining request body and registration
$Body = @"
{
"registration_code": "xxxx-xxxx-xxxx", # Replacing with reader
"label": "Reception",
"location": "xxx_xxx"
}

Question
Every time I attempt to obtain a response from the reader, the remote server returns the error 400 Bad Request. Specifically {
"error": {
"message": "Invalid request (check that your POST content type is application/x-www-form-urlencoded). If you have any questions, we can help at https://support.stripe.com/.",
"type": "invalid_request_error"
}
}

What have you already attempted?
try {
$Response = Invoke-RestMethod `
-Uri "https://api.stripe.com/v1/terminal/readers" `
-Method Post `
-Headers $Headers `
-Body $Body `
-Verbose

\# 5. For the response
Write\-Output "Response from Stripe\:"
$Response

}
catch {
Write-Output "Error Response from Stripe:"
Write-Output $_.Exception.Message
Write-Output $_.ErrorDetails.Message
}

What are you working on?
I am attempting to design an integration for my two WisePOS E readers.

cursive heronBOT
#

@vivid geyser pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
With the old version of Stripe checkout, I'd show a modal that collects payment info, and the success handler would return a token, which I would send to the server. Then I would make a call to Stripe to update the customer record with the token (i.e. the "source") and store the returned data, i.e. the last 4 digits etc.

How does this flow work with the modern version of Stripe Checkout, where I first create a session on the server, then display the fancy checkout form where they enter their payment info? From what I can gather, I'd be making different calls on the server.

Related Request ID(s)
None

What have you already attempted?
I read this https://docs.stripe.com/payments/checkout/migration#setup-mode

As well as the API docs

#

@cinder abyss pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Need to change 'Test Mode' to active mode. Also the amount is showing in US dollar not in AUD.

Related Request ID(s)
none

What have you already attempted?
Tried to turn-on turn-off on the stripe account but didn't work.

cursive heronBOT
#

@west vine pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I have a question concerning transfer payments and the transfer_group field.

I understand on both the Checkout session and Transfer payment we need to have a matching transfer_group.

One thing I wanted to confirm, is this a unique value for each pair of Checkouts and Transfers.

In our example we are an application that allows patients to pay for a consultation to get a medical certificate.

The patient will have a certificate ID. Could we use the certificate ID as the transfer_group on the Checkout and Transfer?

Doc/Guide Links
https://docs.stripe.com/connect/separate-charges-and-transfers?platform=web&ui=embedded-form

What are you working on?
Medical Certificate app.

#

@cinder abyss pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
The website runs in AUD but when moved to the payement gateway, the total amount is showing in USD, not in AUD. But the amount unchanged.

Related Request ID(s)
n/a

What have you already attempted?
none

#

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

Code
`= reader.ProcessPaymentIntent(
stripeReaderID,
params,
); err != nil {
return "", nil, errors.Wrapf(wrapStripe(err), "error processing payment intent")
}`

Question
Hi! We've been using the Stripe connect API for a while involving saving cards presented at the terminal. Recently, this feature stopped working and we were receiving an error `Missing required param: payment_method_data[type].` when trying to save a card presented at the terminal. Wondering when this became a requirement for presented cards/if this was an intentional change on Stripe's part!

What have you already attempted?
Nothing, and we are aware of how to fix (adding the field to the payment intent params) but just wanted context around why this was made a required field.

#

@hybrid silo pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Yes! Thank you for your response. I am wondering how to best implement a checkout flow including placing a hold. I currently use checkout sessions and I like them because they provide a great interface for the user and is simple for upselling, having a logical flow. I am hoping that I can integrate payment intents with this but not sure. Essentially I am asking what the smoothest (most used) checkout flow with payment intents and with preauthorization for a subscription based service is

I want user to go through this flow, whether that is with both payment intents and checkout sessions or no

Related Request ID(s)
None

What have you already attempted?
I attempted speaking with another stripe support but they closed the chat

What are you working on?
A subscription based service

#

@vale tiger pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Can you use AWS EventBridge with Stripe Test mode? I am using Stripe as a third-party processor in Shopify. Shopify only lets me use stripe test mode, not Stripe sandboxes. But it seems AWS EventBridge is only testable with Stripe Sandboxes?

How else can I test AWS EventBridge?

Related Event ID(s)
n/a

What have you already attempted?
I have already attempted to connect EventBridge to Stripe, but I can only do so on my live stripe, and not in test mode.

What are you working on?
Shopify site powered by Stripe as a third-party payment processor. Need to consume events in AWS lambda function (ideally with EventBridge and not webhooks)

cursive heronBOT
#

@digital tartan pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We are trying to implement Custom Checkout with Stripe Elements. Since this feature is in Private Preview, I would like to request that our org (lumoslabs) get invited to the Custom Checkout Beta.

Related Request ID(s)
req_0Rs5ojtP4Iwbfd

What have you already attempted?
I have followed the integration step of initializing stripe with the custom_checkout_beta=v1 header, but I get an error when attempting to set
ui_mode to 'custom' when creating a checkout session. This is because the SDK says that it is not a valid type

```
const stripe = Stripe(<our_secret_key>>, {
apiVersion: '2023-08-16; custom_checkout_beta=v1' as any,
});
```

What are you working on?
We are working on migrating from a stripe-hosted checkout to a custom checkout that uses the payment element (not and embedded checkout)

cursive heronBOT
#

@stiff sparrow pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hello, How do I update the billing anchor date for an existing subscription? I have a list of subscriptions that need to shift one day forward for their current period end, but I don't see that as an option in the subscription update api

Related Request ID(s)
NA

What have you already attempted?
na

cursive heronBOT
#

@opaque harbor pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
Can you manually spindown the render backend for testing?

Question
Can you manually spindown the render backend for testing?

What have you already attempted?
Can you manually spindown the render backend for testing?

cursive heronBOT
#

@vale tiger pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Why is client_secret included in payment_intent's? The webhook for payment_intent.succeeded includes the client_secret.

Is there anything the backend needs to do with this? If it was logged in plaintext to server logs, is that a risk? The docs state that it is used on the frontend to complete a payment, so why is it even in the webhook body?

Related Event ID(s)
evt_3QX8uGP8psK6ZRvL1OAb5KK6

What have you already attempted?
Read docs on client secrets: https://docs.stripe.com/api/payment_intents/object#payment_intent_object-client_secret

What are you working on?
A webhook to kick-off business processes after a payment succeeds

#

@hazy cipher pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Somewhat of a beginner/self-proprietor here, so forgive me if I say something dumb.

My question is basically about how to setup a subscription to start at a future date via the API when also trying to include a line-item in the same instance of a checkout session.

It would be really great if I could just set billing anchor date to whatever I wanted it to be and have the subscription start then.

Related Request ID(s)
req_bjmkO5cYGHHaXu

What have you already attempted?
Currently have it working with TrialEnd, but I would really prefer to set the billing anchor date as a future date, so that there’s no verbage of ‘free trial,’ but when I do that, it won’t let me include proration behavior = none, and so customers would be charged for the period up until I want the subscription to actually start. I got around this with the TrialEnd solution. So this is working, but the issue with this solution is that the trial end must be 48 hours in the future, and since (for business logic reasons) I want my billing anchor to be 24 hours before the subscription start time.

What are you working on?
I have a service industry company for which I’m using Stripe for payments/subscriptions.

cursive heronBOT
#

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

Question
We are adding Connected Accounts to our app so that users can purchase from them. When the user makes a product, how do we ensure it is made as the connected account's product, and not our product?

Also, we made Connected Accounts but they are all restricted, what is the best way to get all the information added? And how can we check on the backend if the account is restricted or not before allowing any actions/payments to be attempted that require it?

Related Request ID(s)
https://dashboard.stripe.com/test/connect/accounts/overview

What have you already attempted?
We created PaymentIntents on the backend and pass the price/currency/customer id etc, but it makes the product in our account instead of the connected account's account. It is all quite confusing.

#

@dusk gulch pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
$stripe = new \Stripe\StripeClient($this->config->item('stripe_api_secret'));
try {
$result = $stripe->paymentIntents->confirm(
'pi_3QX0LOIErBwOu8QA0pdKb6Gv',
[
'payment_method' => 'pm_1QX0CTIErBwOu8QAtGfVJHx6',
]
);
echo "<pre>";print_r($result);die;
} catch (\Stripe\Exception\CardException $e) {
if ($e->getError()->type === 'card_error' && $e->ge

Question
I create this code but it is not working code how to confirm my payment

What have you already attempted?
3DS payment error in webhook time how to resolve

What are you working on?
Subscription Webhook

cursive heronBOT
#

@echo coral pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Expired API Key provided:
Got this error when try payments

Related Request ID(s)
acct_1PSy7kLCBnbyvEki

What have you already attempted?
Call the refresh token just now, and received tokens from Stripe

What are you working on?
Striple plugin with OAuth authentication

cursive heronBOT
#

@twilit charm pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hi we are receiving and error when finalizing an invoice through API, "The payment method type `bacs_debit` is invalid. Please ensure the provided type is activated in your dashboard"

Related Request ID(s)
req_0eKCvENp9SAhp1

What have you already attempted?
We have created an invoice and try to finalize it

cursive heronBOT
#

@eager minnow pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
i have this error You might be having a network connection problem, the link might be expired, or the payment provider cannot be reached at the moment.

Related Request ID(s)
const express = require('express'); const Stripe = require('stripe'); const app = express(); // Configureer je Stripe-secret key const stripe = Stripe('sk_test_•••BTXW

What have you already attempted?
only this

What are you working on?
solving the error

cursive heronBOT
#

@opaque shore pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
const items = [
{
price_data: {
currency: 'eur,
product: product.id,
recurring: {
interval: "month"
},
unit_amount: payWhatYouWantAmount,
quantity: 1
},
},
];

        subscription = await stripe.subscriptions.create\({
            items

Question
How do i the recurring part correct using typescript ? i did not find any info in the docs

What have you already attempted?
search on github

What are you working on?
subscriptions with a recurring paywhatyouwant by creating a dynamic price

cursive heronBOT
#

@desert ether pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
<AddressElement
className="flex-grow"
options={{
mode: 'billing',
display: { name: 'split' },
fields: { phone: 'always' },
validation: { phone: { required: 'always' } },
allowedCountries,
defaultValues: getDefaultValues(),

      }}
    /\>

Question
Nextjs 14, "@stripe/react-stripe-js": "^3.0.0",

I'm using AddressElement with both mode 'billing' and 'shipping'.

Problem: there is always a checkbox (input with type checkbox) with id "checkbox-syncAddress", that i can not control or can get the value to use. On documentation i found "syncAddressCheckbox 'billing' | 'shipping' | 'none'

Used with the Address Element." -> but the version 3 of stripe do not recognize "syncAddressCheckbox"

What have you already attempted?
I tried a workaround:

`useEffect(() => {
const checkbox = document.getElementById('checkbox-syncAddress');
if (checkbox) {
const handleChange = () => {
console.log('Checkbox value:', checkbox.checked);
};

checkbox.addEventListener\('change', handleChange\);
return \(\) =\> checkbox.removeEventListener\('change', handleChange\);

}
}, []);`

but without success.

Solution needed: hide this checkbox or get access to this checkbox and his data

cursive heronBOT
#

@daring burrow pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hello, we have changed in the interface the name of our company (we've change recently from "You Dont Need a CRM" to "Positive Group Sales Solution". The day after 100% of the SEPA payments on old customers failed. It seems the SEPA request are made with the new company name in the SEPA mandate which is probably not the one that has been accepted by the bank.
We have a case ID at the support 18418835 but we do not get any serious answer and its been 1 week now.

Related Request ID(s)
pi_2QVjx01v0zyYBENi1syM76s8

What have you already attempted?
As we didn't get any serious answer we've tried some stuf.
First we create a new SEPA mandate on one of our accounts and charged it with 1€. It didn't failed, which means that a mandate with the new name seems to work.
As we can't ask our old customers to change their mandate we've rolled back yesterday our company name and charged 3 customers to check if it solves the issue.
We will know today if it works (payments were rejected in less than 24 hours).
Following the change of name we received an email asking for a W8 or W9 before December 31, which is not possible because of the new name.

#

@hidden tendon pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hello, I found out that stripe.Customer.retrieve gives different structure for the default source information.

Related Request ID(s)
none

What have you already attempted?
For example in our Gorgias test account dashboard for
https://dashboard.stripe.com/test/customers/cus_RQAfrmzStTxldZ

there is this GET https://dashboard.stripe.com/v1/customers/cus_RQAfrmzStTxldZ?expand[]=default_source......

which gives `default_source` as one flat object:
default_source: {
id: ...
brand: ...
last4: ...
....
}

but in the dashboard for https://dashboard.stripe.com/customers/cus_NGXwuNvFgaJDur

the same GET gives `default_source` not as a flat object:
default_source: {
"id": ...
"object": ...
"card": {
"brand":
"last4":
....
},
}

What are you working on?
FIxing a bug

cursive heronBOT
#

@sharp falcon pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We currently use Stripe and have added PayPal. Is it possible to update the integration to push the metadata into Stripe for PayPal donations as there's currently no additional information coming through.

Related Request ID(s)
N/A

What have you already attempted?
Tried reading Stripe documents but nothing unpacks this.

What are you working on?
Payment Gateway

#

@covert nimbus 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/attach

Question
How can I delete a payment method from a user but let the user add it again in the future? The docs say that if you are detaching a payment method you won't be able to add it again.

What have you already attempted?
Trying to add it again results in an error, obviously

#

@graceful marsh pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Question - How can we apply different trials on products for new users using Payment Link API?

Detail - Currently our system has 2 products - A and B. Our system uses payment link API to create a user and start a subscription with a trial of 3 months for product A in Stripe. Later on, this user can subscribe to product B having multiple quantities and this goes into the same subscription.

Now we have a new product C and our management wants the let the new users subscribe to products A and product C, but they want to have a different trial on Product C.

How can we make this change in our system?

Doc/Guide Links
https://docs.stripe.com/payment-links/promotions#add-promotion-codes

What are you working on?
A SaaS product.

cursive heronBOT
#

@viral spoke pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I would like to create an invoice with a hosted stripe page. So I can send the user the invoice via email and he can pay for his product. I checked the docs but couldn't find the field where I can add a product id or a price id (what the customer pays for). It would be perfect if the invoice will be directly finalized as well

Related Request ID(s)
in_1QXLnHGdgFrJRsM69l5kOLCa

What have you already attempted?
Creating an invoice. Checked the docs.

What are you working on?
Sending invoice to customers

#

@last anchor pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How do I get tax IDs using stripe/stripe-php?

Related Request ID(s)
For example for test user "cus_RQBvnpCZKHlat4"

What have you already attempted?
$customer = Customer::retrieve($user->stripe_id); This retrieves customer correctly, I can see address etc as expected. But $customer->tax_ids returns null. If we check the Stripe dashboard for this customer, we can see that tax id is present.

cursive heronBOT
#

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

Code
const customer = await this.createOrRetrieveCustomer(customerEmail);
const ephemeralKey = await this.stripe.ephemeralKeys.create(
{ customer: customer.id },
{ apiVersion: '2022-11-15' }
);
const paymentIntent = await this.stripe.paymentIntents.create({
amount: amount ,
currency: currency || 'usd',
customer: customer.id,
payment_method_types: ['card'],
});

Question
I am working on creating stripe payment-sheet api for frontend developer who is working with capacitor on Ionic react. And I have created this api on nestJs serverless framework with nx monorepo architecture. now the transaction gets created on stripe dashboard but after putting details in card transaction doesn't move forward it just remains incomplete. why is that?

What have you already attempted?
I attempted to create new api with same code on just express server. Payment was successful in this scenario.

What are you working on?
I am building an eCommerce app

#

@dawn iron pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We are making tap-to-pay with setup intent; we connected the reader, retrieved the setupIntent, collected the payment method, and confirmed setupIntent. we see that the payment method was created without the customer attached. am I missing something?

Related Request ID(s)
https://dashboard.stripe.com/test/setup_intents/seti_1QXLvfFdCE6n8elISlnr7DZy

What have you already attempted?
Function we using for this case:
Terminal.shared.retrievePaymentIntent(clientSecret: clientSecret)
Terminal.shared.collectSetupIntentPaymentMethod(setupIntent, allowRedisplay: .limited)
Terminal.shared.confirmSetupIntent(setupIntent)

What are you working on?
Tap to Pay before user went through KYC

#

@kindred horizon pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
What is the perfect flow (step by step call of api) to create subscription?

we observe if user add a card having 3DS enabled card, it's payment always get failed. Is this work that way only? or we are doing something wrong?

Related Request ID(s)
NA

What have you already attempted?
we are using create subscription api.
We do add card and attach the payment method to customer and set it as default in invoice.settings.default_payment_method

What are you working on?
Subscription and update subscription payment method.

#

@stoic cairn pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
Hey! Not sure if I put the code in here but basically.. I have a command that creates the invoice but when I do `/invoice {user} {product} {price}` it makes the invoice as $0 even if i made the payment $15 or $5 or even $2 its always $0

Question
How can I make the invoice say the correct amount?

What have you already attempted?
25+ times

What are you working on?
An invoice command via discord.

#

@versed igloo pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Where to find which payment_method_options are available for a particular currency?

I tried to create an Invoice for CAD currency, and there was 'us_bank_account' among payment_method_options. It gave me an error "The payment method type `us_bank_account` does not support the currency cad."

Related Request ID(s)
---

What have you already attempted?
---

cursive heronBOT
#

@golden bone pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Earlier we used plaid for instant bank verification but now we migrated to financial connection.
My question was that customers are already signed on plaid . Now we are depreciating the plaid. In this case if they have to again add payment method via financial connection and get instant verification or since they have already added to plaid, we can just migrate the verified bank accounts to financial connection, so they don't have to through instant verification again

Related Request ID(s)
No

What have you already attempted?
No

#

@twilit viper pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hey! I have a set of products that are taxed. I can configure an automatic tax behaviour on the dashboard. However, I have a product that should not be taxed. How can I exclude it from the global tax behaviour? Would setting tax_behavior:”unspecified” on the products’s price be the right approach?

Doc/Guide Links
https://docs.stripe.com/tax/set-up#:~:text=Tax behavior is a setting,each price in the transaction.

What are you working on?
Stripe markeplace app for subscription bundling

#

@covert nimbus pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
const addPaymentMethodHandler = async () => {
if (!stripe || !elements) {
return;
}

try {
  const { error } = await stripe.confirmSetup\({
    elements,
    confirmParams\: {
      return\_url\: 'https://example.com/account/payments/setup-complete',
    },
  }\);

  if \(error\) {
    setError\(error.message\);
  }
} catch \(error\) {
  console.log\({ error }\);
}

};

        <PaymentElement /\> \(from stripe\)

Question
Why do I get this error when using the PaymentElement and the confirmSEtup function.

What have you already attempted?
I tried changing the payment intent clients ecret.

#

@lucid bough pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I'm using stripe elements to generate payment method form to user. My issue is that when adding bank account connection user sees: "Stripe Financial Connections is requesting access to your .. account. This app would like to: See your accounts, cards, transactions and recipients.

Even though when creating SetupIntent I'm adding ""financial_connections": {
"permissions": {
"0": "payment_method"
}""

I need authorization only for payment method and don't want to scare users

Related Request ID(s)
req_ewTub615LRhyEw

What have you already attempted?
Not much, looks like financial connections permissions don't change anything

#

@spiral basin pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
<ExpressCheckoutElement
onClick={handleExpressCheckoutClick}
onConfirm={handlePaymentConfirmation}
options={{
buttonHeight: 48,
layout: {
maxColumns: 1,
maxRows: 0,
overflow: "never",
},
paymentMethods: {
applePay: "auto",
googlePay: "auto",

Question
How can I make it so that if Apple Pay is not available, Google Pay will be set as "always"? If I set it as always now, we will get a "See More" which is horrible - we only want 1 to show, and we want 1 to show always.

What have you already attempted?
I have attempted setting it as "always", setting maxRows = 0, overflow never.

What are you working on?
Adding tip functionality to a 1m user application

cursive heronBOT
#

@broken yew pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I have connected accounts linked to my main Stripe account, and I'm creating checkout sessions for those accounts. However, when the sessions are completed, my webhook doesn't receive the events for the connected accounts, even though it successfully listens to events for my main account.

Could this be due to a missing configuration? One additional detail is that I created the webhook before setting up the connected accounts. What steps should I take to ensure my webhook receives events from both my main account and the connected accounts?

Related Event ID(s)
Connected Account events

What have you already attempted?
See de console

#

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

Question
When I update a Subscription and change the "trial_end", it nullifies my billing anchor config, even when I specify billing_cycle_anchor: 'unchanged'. This is causing the billing cycle to be anchored on the end of the trial rather than the 1st of the month.

Related Request ID(s)
req_DkMqoCclnNLIIL

What have you already attempted?
Setting billing_cycle_anchor: 'unchanged' and not setting it. Changing just price_ids and not trial_end (which does not affect the billing_cycle_config)

#

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

Code
Exception: com.stripe.stripeterminal.external.models.TerminalException: Contactless transaction failed com.stripe.core.aidlrpc.AidlRpcException: Service never connected.
at com.stripe.stripeterminal.internal.common.adapter.CotsAdapter.callAidlWithExceptionConverted(CotsAdapter.kt:693)
at com.stripe.stripeterminal.internal.common.adapter.CotsAdapter.access$callAidlWithExceptionConverted(CotsAdapter.kt)

Question
How to fix the error Contactless transaction failed com.stripe.core.aidlrpc.AidlRpcException: Service never connected.

What have you already attempted?
I have tried different phones, Samsung S21,S23,S24, Pixel 7

cursive heronBOT
#

@ionic wigeon pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Is there any way to use something like "slug" to retrieve a product price?

Doc/Guide Links
Unfortunatelly havent found anything related to the topic

What are you working on?
Web storefront

#

@twilit viper pressed the 🤨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
Hey, I expect tax to be calculated automatically after configuring it globally on my dashboard. It worked once but not anymore

What actually happened?
out of a handful of subscriptions i created it only calculated it for 1 invoice. The rest it doesn't. I've tried it via both api and dashboard

Reproduction Steps
Used price_1QXO2CCvM03u8jXeCM286SKN to add to a subscription for the same customer cus_RQEe07ZPlcpji7

Question
Is this a bug or am i doing something wrong here?

#

@gritty pecan pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Trying to use get a breakdown of transactions onto an invoice when using metered billing with volume tiered pricing. Can't figure out how to send the line items via API so that they appear on the invoice.

Our client will have a Total charge for users. They will want to see a breakdown of the organisations / "departments" with a qty against each of those.

We can send all the discrete datapoints and I can see the total is always correct which hits the correct tiered volume price point. But I can't figure out how to get the breakdown to appear on the invoice.

Related Request ID(s)
req_UrOYAd7fS2IfmG, req_805cUKJ3qrm7yI, req_0ozNJp1ZwvV1NL, req_TIKBHOetsP78c4

What have you already attempted?
Originally had a static invoice with quantities updated via API and tried to use Metadata but couldn't get it to appear on the invoice.

Moved to Metered instead but same issue now that everything is in place. Can easily get an invoice with the total Qty but no breakdown.

Tried using different event_names, metadata, on meterEveents. tried to create 0 value invoice items via stripe.invoiceItems.

Searched the docs for a few hours but can't seem to find an article / guide for this so I think I'm missing something obvious!

What are you working on?
SaaS Per User Per month billing to parent client, but need to breakdown each child client underneath in the invoice rows with qty

cursive heronBOT
#

@warped gorge pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How to pass request data from one trigger to another?

Related Event ID(s)
webhook events

What have you already attempted?
I need to get first name and last name which I have created as a custom fields on checkout page. I can get these 2 from checkout.session.completed event but now I wanted to keep this value in invoice.paid event for further processing

#

@worn marsh pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I was trying to connect Stripe as a payment processor to an application I use to sell monthly subscriptions with automatically recurring payments. In the checkout of the application, I only see a credit card as a payment option, even though I have activated Sepa direct debit. Do I have to create the webhooks so that the Sepa direct debit procedure can be displayed at the client checkout? If so, how should I proceed here?

Related Event ID(s)
?

What have you already attempted?
I tried to set it up but i don't know how to setup the webooks.

#

@dense oasis pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Is it possible to add the metadata informations directly on the printing bill ? My app has pickup place and pickup time but people are confused since it's not written on their bill

Doc/Guide Links
Bills and Checkout Docs

What are you working on?
E-Commerce for a client

#

@high shuttle pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
we received a webhook with charge information for charge.refunded where the refunded key on charge level is true but we dont see refund data(json object) inside the charge. (evt_3Q2y8RBSIdLkVLLN2LelJPSp)

we asked this previously also to which we got response is that it is expected behavior. The refund field on Charge objects is marked as "Expandable" and for webhook events can't automatically expand any fields on objects.

But my question is why there are some webhook events that does have expanded refunds field. for example this event evt_3QVgOPIJwkxnVmNV0DsP6i8j.

Related Request ID(s)
evt_3Q2y8RBSIdLkVLLN2LelJPSp

What have you already attempted?
we tried another refund and there we are getting the refunds data in the charge so, why this different behaviour. Is there a way to configure this somewhere?
this is the event where we get the refunds evt_3QVgOPIJwkxnVmNV0DsP6i8j.
in this event we don't evt_3Q2y8RBSIdLkVLLN2LelJPSp

What are you working on?
We are maintaining a charge.refunded webhook handler

cursive heronBOT
#

@safe merlin pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
In the past I have seen an option to use test information when onboarding standard stripe connect accounts in test mode. I would like my functional test to access an onboarding account link and run through each step to complete the onboarding. I am prompted to enter an email and password with no option to use test values, after entering email and password I am then prompted to use an authenticator with no option to use a value like 000-000 which has worked in other situations. Is there a way I can avoid using real information and use test information instead?

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

What are you working on?
Playwright test that onboards a standard stripe connect account in test mode

#

@radiant canyon pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I'm adding paypal to a marketplace.
We would like to try some failing scenarios. We saw in Stripe documentation that some emails passed in billing_details can trigger some failing scenarios https://docs.stripe.com/payments/paypal/accept-a-payment?web-or-mobile=web&payments-ui-type=direct-api#test-scenarios . However our payments seem to succeed everytime. See request below for an example of a PaymentIntent that we could confirm and capture.

Related Request ID(s)
req_lVU3qDxdohcYdy

What have you already attempted?
Trying different emails from the doc.

What are you working on?
Paypal for a marketplace

#

@viral spoke pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I create invoices for my customers when they bought something inside my shop. Can I somehow automate that? So when the customer buys again the payment will automatically collected from the saved paymentmethod from the first invoice? And when this fails the user receives the email that he needs to pay and then this new payment method will be used for future purchases and so on...

Doc/Guide Links
The integration guide for invoices

What are you working on?
Sending invoices

cursive heronBOT
#

@devout drift pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I am hoping to get a total revenue for a Stripe product, including any refunded payments. I could not find an easy way to do this via the API

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

What are you working on?
Dashboard component on my frontend that is a total revenue of all transactions for a single Stripe product (as well as for all), including any refunds that were processed

#

@rich crane pressed the 🤨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
The payment form should have the same padding, margin, padding as iOS >= 15 in Chrome and Safari (Mobile+Tablet)

What actually happened?
The payment form on iOS <= 14 have some layout issues with padding around the payment options. (Mobile+Tablet)

Reproduction Steps
On iOS <=14 in either Chrome of Safari (Mobile+Tablet)

  1. go to http://v3staging.getflightpath.io/offer-01/
  2. Click "Order Flightpath" button this will take you to the offer section
  3. Click Buy Now on the 8 Pack bundle
  4. Click no thank you on the popup
  5. Fill out the contact form
  6. Observe the styling of the payment options

Question
Since the Stripe payment element is in an iframe, we can't alter the styles inside beyond what they open up for us to pass in.
We can pass in modifications to the RadioIcon, but we're not able to modify it in a way to prevent this problem.
Screenshots will be provided since it's hard for your end to test these older OS
What are the recommendations to fix this issue?

What are you working on?
Maintaining our e-commerce site and payment form

#

@wise shuttle pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hi, I have a question about:
Paying the last past_due invoice on a subscription sets the subscription status back to active
What if we have more past_due invoices in the past, what happens with them?

Related Request ID(s)
Subscriptions > Invoices

What have you already attempted?
After running the simulation the past_due invoices before this period just get set as "past_due" and we continue like nothing happened

What are you working on?
Creating a Stripe subscription integration for an internal app

#

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

Code
I don't know or have code

Question
Some of my payments are failing. I have no idea why, there is no indication that it's a bad CVV, Zip Code, etc

What have you already attempted?
Disconnecting Stripe, redoing stripe, testing

What are you working on?
Woocommerce

cursive heronBOT
#

@ionic wigeon pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Does recurring subscription creates a new invoice behind the scene while charging the user? (retreiving purchased products)?

Meaning:
Currently im fetching subscriptions using subscriptions api, but what about fetching purchased products?

My naive solution is retreive invoices with included products. But there could be a possible issue if subscriptions create a new invoice automatically (while paying for the next month/week/year).
So the question is does it create a hidden invoice

Doc/Guide Links
No links provided...

What are you working on?
Storefront

#

@neat acorn pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We have a use case where a user can pass his card details to Customer Support via phone, to later be used for example in a Subscription or a standalone payment. We currently have this working via Recurly, which underneath uses Stripe.

Since we operate only in the US, I believe there is not enforcement of 3DS, correct me if I am wrong.

At the moment I am using the approach from the docs linked here.

Is this the right way for such scenario?

I have also read about MOTO, but there are dependent on a terminal reader, I believe.

Doc/Guide Links
https://docs.stripe.com/payments/accept-a-payment-deferred?platform=web&type=setup

What are you working on?
Integrating Stipe Payment Methods to our Admin dashboard

#

@astral owl pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
```$account_session = $stripe->accountSessions->create([
'account' => $storefront->stripeAccountId(),
'components' => [
'account_management' => [
'enabled' => true,
'features' => [
'external_account_collection' => true,
// 'disable_stripe_user_authentication' => true,
]```

Question
Using connect embedded components, specifically the account manage component, can i disable / hide the Payment account authentication details section?

What have you already attempted?
n/a

#

@lucid cairn pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How do I update a subscription item for different intervals? For example, monthly to annual? I want proration to be none and the current subscription to remain until period end. So, when I update the subscription, the next billing period should after the monthly subscription ends and for 1 year. Billing should also be after 1 month. I cannot set the BillingCycleAnchor to unchanged if the interval is changed.

Related Request ID(s)
n/a

What have you already attempted?
These parameters for subscription update.

            var parameters = new SubscriptionUpdateOptions
            {
                Items = new\(\)
                {
                    new\(\)
                    {
                        Id = subscription.Items.Data\[0\].Id,
                        Price = planId
                    }
                },
                ProrationBehavior = "none",
                BillingCycleAnchor = SubscriptionBillingCycleAnchor.Unchanged
            };

What are you working on?
Updating the subscription item

cursive heronBOT
#

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

Code
i dont know the code

Question
doordash having issues with ssn

What have you already attempted?
deleting and downloading the app and trying to confirm my ssn but it wont work

What are you working on?
doordash

cursive heronBOT
#

@clever egret pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I have issue on stripe when add external bank account as test mode but status getting me new

Why not getting verified in test mode bank account

Related Request ID(s)
Stripe connectd account with external add bank account

What have you already attempted?
I have add bank external bank account but getting status new in test mode

What are you working on?
Add bank account in stripe

#

@halcyon scarab pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
PaymentIntentCreateParams params =
PaymentIntentCreateParams.builder()
.setAmount(1099L)
.setCurrency("usd")
.setAutomaticPaymentMethods(
PaymentIntentCreateParams.AutomaticPaymentMethods.builder().setEnabled(true).build()
)
.build();

		PaymentIntent intent = PaymentIntent.create\(params\);

Question
i have a created a payment intent how can i create a checkout page url link from that

What have you already attempted?
i tried with session builder then it is working

What are you working on?
i was integrating strip to my application

#

@humble rivet 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/charges?lang=python

Question
I noticed that when I made a payment using Link in Stripe checkout page, the charge token starts with "py_", just to confirm is it an expected token value?

What have you already attempted?
I use e.g. google_pay or card payment in stripe checkout page, the charge token starts with "ch_" .

What are you working on?
to integrate checkout with Link payment.

cursive heronBOT
#

@stiff sparrow pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
When query for a subscription, the item is missing the "quantity" property. Is it because of the billing scheme being per_unit?

Related Request ID(s)
subscription object

What have you already attempted?
NA

#

@prime nest pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Explain how I can create a usage-based billing product/subscription based on percent of product cost. I have advertising spots with a fixed monthly recurring price that need to be billed based on % of total ads that each advertiser had for the month in each spot. Each spot has a fixed capped price say $300 and at the end of the month, I would like to say bill 20% (0.2 x 300) to Advertiser 1, 30% (0.3 x 300), and 50% (0.5 x 300) to Advertiser 3.

Related Request ID(s)
No related request ids right now, just a how to approach this problem in terms of API and Stripe product, subscription, invoice usage-based billing concepts already in place

What have you already attempted?
I have researched the Usage-Based Billing parts of documentation, as well as metered-based ways to approach this and need confirmation from someone at Stripe that I am approaching this the right way.

What are you working on?
I am looking into creating a metered event for each time an advertiser runs an ad in a spot, but is it up to calculate the % of total ads in invoice from fixed $300 recurring price of product?

#

@fallen shoal pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
elements.update({
currency: currency.toLowerCase(),
paymentMethodTypes,
amount,
onBehalfOf: undefined,
])

Question
How can I reset the onBehalf of property on Stripe Element?

What have you already attempted?
See the code above. I tried to also reset it by setting it to empty string, but that seems to cause other issues where the restrictions enforced on paymentMethodType are not respected. E.g. I restrict paymentMethodTypes to `['card']` but Element also shows us bank account.

What are you working on?
trying to remove on_behalf_of to match on_behalf_of on server side payment flow where intent is created without on_behalf_of

#

@steady oriole pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Stripe webhook signature verification error on firebase function , I am using express js app as firebase functions

Related Request ID(s)
no id

What have you already attempted?
I have tried to search online solution but not getting

What are you working on?
website development

#

@umbral lance pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Quick question. When creating a transfer via Stripe Connect, how do I retrieve information such as the status of the destination_payment? The desination_payment has an id starting with py_, but I cannot seem to find any information on how I would go about doing this.

Doc/Guide Links
https://docs.stripe.com/api/charges/retrieve
https://docs.stripe.com/api/transfers/object

What are you working on?
I am currently building a mobile app. I am using Stripe Connect to allow users to withdraw money from the app to their bank accounts. I am currently creating a Stripe Account for each user and using Stripe Express to onboard.

cursive heronBOT
#

@viral spoke pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I send the customer an invoice to his email. And the customer opens this hosted page and pays. Can I somehow redirect the customer to a specific page after the payment is done?

Related Request ID(s)
-

What have you already attempted?
Searched thought the docs

What are you working on?
Sending invoices

#

@quasi radish pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We have setup both individual payments and subscription payments, Some customers are tax exempt so we are setting the tax exempt status on the customer to "exempt" through the api

When it comes to subscriptions however, it appears to be ignoring the customers tax exempt status and applying tax

Is there an additional step required to set the subscription to be tax exempt for only some customers?

Related Request ID(s)
-

What have you already attempted?
We have verified that the exempt status is on for the customer, and have verified that individual payments are not charging tax

What are you working on?
a website with product services that have both one off payment type products and monthly subscription type products

#

@misty knot pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I'm currently using Xero accounting software and I recently integrated Stripe. I want to be able to accept ACH and on the stripe website it says active but it's not showing active in Xero...only the ability to accept CC

Related Request ID(s)
none

What have you already attempted?
yes

#

@heady wyvern pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
var paymentElement = cardPaymentElements.create("payment", {
wallets: {applePay: "never", googlePay: "never"},
fields: {
billingDetails: {
name: "never",
address: "auto",
}
}
});
paymentElement.mount("#credit-card-payment-element");

Question
How can I enable AVS so that the address is required on the payment element?

What have you already attempted?
I"ve attempted to set the "address" to "auto", but it's only showing the zip code field.

What are you working on?
Implementing AVS

cursive heronBOT
#

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

Code
//client
export const stripe = new Stripe(STRIPE_SECRET_KEY, {
apiVersion: '2024-11-20.acacia'
});

//account creation
const account = await stripe.accounts.create({
controller: {
stripe_dashboard: {
type: 'none'
}
},
capabilities: {
card_payments: { requested: true },
transfers: { requested: true }
},
country: 'US'
});

Question
I setup stripe connect integration with stripe hosted onboarding. Everything seems to be working fine but when I create the new account it doesn't show up on the Stripe dashboard. and If I create the account on Stripe dashboard I can't access it from the sdk. When I try to access the session for bringing embed components, it says the account doesn't exist.

What have you already attempted?
I created a new account and setup a different branding and noticed that the stripe hosted onboarding page is using the original branding not the new one, even though I updated the api keys to match the new account.

I tried deleting and redoing the connect onboarding and also tried using a new sandbox. same problem.

cursive heronBOT
#

@tender tundra pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I have coupons in my org and was wondering if these could be applied to subscriptions. From reading the docs, it seems that the coupons must be in stripe in order to apply them. Is there any way to just pass a discount amount and have that apply against the Price?

Related Request ID(s)
sub_1QUaK9RV63Pk0C88tqJOnc7R

What have you already attempted?
Looked at docs here but could not figure it out
https://docs.stripe.com/billing/subscriptions/coupons?dashboard-or-api=api

What are you working on?
Subscriptions

cursive heronBOT
#

@open dagger pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I’m on interchange plus pricing. How can I see the network_cost associated to a set of payment intents and/or see the network costs incurred per day per connected account?

Related Request ID(s)
N/A

What have you already attempted?
I tried looking at a particular payment intent and balance transaction, could not find network_cost there

What are you working on?
Point of sale

#

@proper bronze pressed the 🤨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
I have a test clock advancing a subscription so that it will generate the next invoice and pay it. The subscription is "collection_method":
"charge_automatically". The test clock has advanced the simulation and my webhooks have marked the invoice as finalized. I expect the system to advance the invoice to paid after marking it finalized.

What actually happened?
The invoice is stuck in finalized state.

Reproduction Steps
Create a customer and a test clock. Create a charge_automatically subscription for that customer and initialize it, collecting the first payment. Advance the test clock such that the second payment becomes due. See that the invoice gets stuck in finalized state.

Question
Is this a test clock bug? Am I misunderstanding something?

cus_RQM1plPJ8xPbuX
sub_1QXVJGAQbHn4ElzTdhrYs7dm
in_1QXVJgAQbHn4ElzTIP8SWqL4

What are you working on?
subscriptions payment flow

cursive heronBOT
#

@errant creek pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
From the API, how can I determine the default payment method configuration for a Connect account?

Related Request ID(s)
req_DwPB0Od3NtexCG

What have you already attempted?
I've queried for payment method configurations associated with a connect account.
`% stripe payment_method_configurations list --stripe-account acct_1QX9QI2c1lHs2ojY`
This reports 3 payment method configurations (pmc_1QX9Qq2c1lHs2ojYgbSInNqz, pmc_1QX9Qp2c1lHs2ojYbwRyp1Pv, pmc_1QX9Qo2c1lHs2ojYPKNkB8Br). Two of which have name:'default' and is_default:true. I don't know which of the three PMC's to trust.

What are you working on?
I'm writing a status-check script that reports whether or not a given connect account has everything it needs to accept payments using Stripe Link.

#

@wild slate pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
My orders.create api call started failing. I'm trying to create an order with 1 product and a shipping address, and it says the tax calculation failed but no further helpful error.

Related Request ID(s)
req_JzS6OSaLI1LhY0?t=1734562719

What have you already attempted?
I called the TaxJar API directly and it does calculate the tax correctly. It fails with the Shopify integration.

cursive heronBOT
#

@feral crane pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Is there a way to programmatically add a surcharge for credit card payments with a payment link?

Related Request ID(s)
Payment links

What have you already attempted?
We generate a good number of payments for millions of dollars but we have been asked to apply a surcharge in CA for credit card payments

#

@vivid geyser pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How do I send test webhooks via the dashboard?

Related Event ID(s)
None

What have you already attempted?
I browsed the dashboard and added a local webhook endpoint to be able to receive webhooks. I swear you could send test webhooks before...

cursive heronBOT
#

@green falcon pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I have a webhook that is supposed to trigger when a checkout session completes. However this is not happening. It is supposed to work on connected accounts.. Really stuck with this.

Related Event ID(s)
there isn't an ID as it isn't attempting to deliver..?

What have you already attempted?
I have ensured that the correct API keys, secrets (Webhook key) are all correct..

What are you working on?
A mobile application with a firebase and stripe back end.

#

@rich robin pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We need an explicit Merchant Category Code (MCC) for our transit customer and just discovered that someone changed it to the wrong MCC and now we cannot modify it

Related Request ID(s)
req_h630g3l8MZSQlI

What have you already attempted?
POST https://api.stripe.com/v1/accounts/:account
business_profile[mcc] 4111

{
"error": {
"message": "You cannot change `mcc` via API if Stripe has assigned an MCC to the account. Please contact us via https://support.stripe.com/contact if you need to change the MCC associated with this account.",
"param": "business_profile[mcc]",
"request_log_url": "https://dashboard.stripe.com/acct_1Q8nTFIEjikm0dWG/logs/req_h630g3l8MZSQlI?t=1734570019",
"type": "invalid_request_error"
}
}

What are you working on?
Automatic fare collection system for transit (ferry) use case. MCC must be 4111 because transit benefits cards need to be accepted.

#

@frigid quartz pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I get this error `The `billing_cycle_anchor` cannot be before the Checkout Session creation time` even when the timestamp is in future

timestamp: 1735689600 which converts to Wed Jan 01 2025 00:00:00 GMT+0000

Related Request ID(s)
req_GVjnFUM1a6p8nf

What have you already attempted?
tried sending time in milliseconds and seconds both

cursive heronBOT
#

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

Code
为了更加安全,请让这个人用政府签发的身份证验证他们的身份。准备验证时出错
准备验证过程时发生了问题。请稍后再试。

Question
can't upload the identification ID document

What have you already attempted?
Tried with different browsers,no avail

cursive heronBOT
#

@ember owl pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We collect fees from international merchant. However, our platform account is in AUD. Because of that, collected fees are converted into AUD, is there a way to get how much stripe billed for the conversion?

Related Request ID(s)
None

What have you already attempted?
I've tried going into collected fees dashboard but it doesn't show

What are you working on?
International payment system for our sellers

cursive heronBOT
#

@grave heart pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
const stripePromise = loadStripe(api_key, {
stripeAccount: accountId
})

const options = {
layout: {
type: 'accordion',
defaultCollapsed: false,
radios: true,
spacedAccordionItems: false
},
payment_method_types: ['card', 'us_bank_account', 'acss_debit'],
mode: 'setup',
currency: 'usd'
}

return (<PaymentElement
options={options}
onChange={handlePaymentElementChange}
/>)

Question
I have acss_debit enabled on dashboard. (We have an api `Stripe::PaymentMethodConfiguration.list({}, { stripe_account: stripe_account_id })` to get all enabled gateway types and acss_debit shows as available: true and value: true). Yet, when I try passing it in options for payment element, the iFrame blanks out with invalid_request_error. Ref: https://dashboard.stripe.com/acct_1QUQQWKGWFLAi1jH/test/logs/req_iZfm7w53MYr7P6?t=1734593138

What have you already attempted?
I cross checked dashboard with my owner, they said it's enabled. I also verified via Stripe::PaymentMethodConfiguration.list({}, { stripe_account: stripe_account_id }) it says available

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

cursive heronBOT
#

@versed igloo pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Is that possible to charge application fee as a separate transaction for a customer? One transaction would be a direct charge to a Connected Account, and the other one - to the Main account?

Related Request ID(s)
----

What have you already attempted?
----

cursive heronBOT
#

@graceful night pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How to create subscription with billing_cycle_anchor and collection_method='send_invoice' that will immediately create proration invoice?

Related Request ID(s)
req_iteE7dDDTHkH3c, req_NMiHCsa4fU6wXf

What have you already attempted?
so I cancel old subscription of customer and try to create a new one
stripe.Subscription.create(
customer=subscription_info.stripe_customer_id,
collection_method="send_invoice",
billing_cycle_anchor_config={"day_of_month": 1},
days_until_due=7,
items=[{"price": default_subscription.stripe_price_id}],
)

I tried proration_behavior to always_invoice but its locked for creating subscription. I also tried to set trial_period and cancel it immediately. Today is the 19th of December and I expect to create invoice covering cost up to the 1 of January

What are you working on?
integrate stripe subscription flow to existing app

cursive heronBOT
#

@ashen aspen pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I have set up an automatic payment system in the backend, utilizing all the necessary functions and configurations to enable payment methods for my customers. Even though I have set the payment method setup with the off_session parameter, the payment is still failing and showing a status of "require_action."

Related Request ID(s)
req_P1M2zNG56R6YGn

What have you already attempted?
createParamsBuilder.setSetupFutureUsage(PaymentIntentCreateParams.SetupFutureUsage.OFF_SESSION);

What are you working on?
automatic payment from backend

cursive heronBOT
#

@kindred horizon pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We are using below test card to validate 3DS flow.
we are using setup intent of off_session, attach the payment method to customer.

on page customer choose desired subscription where we use subscription::create method to create subscription. A 3DS popup arise and flow get completed.

on next subscription cycle, we are receiving requires_action , Is it the case for all 3DS, that on every month, the customer need to enter 3DS?

Related Request ID(s)
NA

What have you already attempted?
setup intent with off_session

#

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

What did you expect to happen?
i have used setup intent and payment intent and on adding card details in setup intent it shows sometimes that payment method can't be used twice

What actually happened?
i have used setup intent and payment intent and on adding card details in setup intent it shows sometimes that payment method can't be used twice

Reproduction Steps
i have used setup intent and payment intent and on adding card details in setup intent it shows sometimes that payment method can't be used twice

Question
how to resolve this issue and when this issue arises?

cursive heronBOT
#

@west storm pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We acquired an overseas SaaS using Stripe for subscriptions. We took over the existing Stripe account but couldn’t add our bank account due to international restrictions, so we created a new Stripe account in our country. Customer data was transferred successfully.

We’re updating the SaaS API_KEY and WEBHOOK_SECRETS to the new account, and all webhook endpoints have been recreated.

Is there documentation for this process?

Is changing the API_KEY and WEBHOOK_SECRETS enough?

Will existing Stripe customers receive any notifications after the change? (We’ve already contacted them separately.)

Related Event ID(s)
sub_1N9AkYGfDOY198a9BSgMOBKH

What have you already attempted?
Searched for docs on this process, doesn't seem to be much for international transfer (or recreation of accounts when done internationally).

What are you working on?
Ecommerce SAAS

#

@shell shadow pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
```ts
// Internal Helper function for price creation
const createPrice = async ({
amount,
interval,
}: {
amount: number;
interval: 'month' | 'year';
}): Promise<Stripe.Price> =>
stripe.prices.create({
product: productId,
unit_amount: amount * 100, // Convert to cents
currency: 'usd',
recurring: { interval },
active: true,

  }\);

```

Question
I have created a product, there will be x no. of users subscribed to this product.
Creator can update the price, but in testing when I add a new price it is not marked as default as I see stripe dashboard.
How can I make the new price for that specific product as default. I see I can make the price default from stripe dashboard but not from code.

What have you already attempted?
The code I have provided you

What are you working on?
Stripe product subscription

#

@kindred horizon pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
code will provide in message.

Question
We are using below test card to validate 3DS flow.
we are using setup intent of off_session, attach the payment method to customer.

on page customer choose desired subscription where we use subscription::create method to create subscription. A 3DS popup arise and flow get completed.

on next subscription cycle, we are receiving requires_action , Is it the case for all 3DS, that on every month, the customer need to enter 3DS?

What have you already attempted?
given in message.

What are you working on?
recurring subscription.

#

@ashen aspen pressed the 🤨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
I expected that after the initial 3DS validation during the first payment, the payment method would be properly saved, and the monthly automatic payments would be processed without requiring further action from the customer.

What actually happened?
Every month, the automatic payment is declined because the customer is required to validate the 3DS again, even though the card was configured to prevent this issue.

Reproduction Steps
The customer subscribes to an internal monthly subscription (not using Stripe's subscription system).
They enter their card details and validate the 3DS if required.
The payment is processed successfully, and the subscription is created.
For subsequent months, the system attempts to process the payment automatically.
The payment fails because the customer is asked to

Question
Despite following Stripe’s instructions for setting up payments, the monthly automatic payments continue to be declined due to the 3DS validation request. Could you help identify the cause of this issue and provide a solution?

What are you working on?
I have developed an internal monthly subscription system for renewing licenses, and I use Stripe to process the payments.

#

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

Code
import { useStripe } from '@stripe/react-stripe-js'
...
const { error, setupIntent } = await stripe.confirmSetup({
elements,
confirmParams: {
return_url: returnUrl,
},
redirect: 'if_required',
})

Question
I receive an error for decline code `card_not_supported `, which does not contain `payment_method` field in the error object:
```
{
"error": {
"code": "card_declined",
"decline_code": "card_not_supported",
"doc_url": "https://stripe.com/docs/error-codes/card-declined",
"message": "Your card is not supported.",
"param": "number",
"request_log_url": "https://dashboard.stripe.com/logs/***",
"type": "card_error"
}
```
How to reproduce it on test env?

What have you already attempted?
All test credit cards available in documentation

#

@tribal fiber pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Can we offer an "invoice" option through stripe checkout, that basically creates an outstanding invoice in their customer profile?

Related Request ID(s)
-

What have you already attempted?
using bank transfer as a payment option, but this is apparently not creating an invoice (only on fund transfer)

What are you working on?
our goal is to offer invoices as a payment method through stripe checkout

#

@slim galleon pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Is there any way to access a full breakdown of fees by card type & country? I am looking to integrate a modal into our platform via Connect API which shows customers the fees they can expect to pay in a consolidated data grid view.

Related Request ID(s)
N/A

What have you already attempted?
I cant currently see any way to access this data other than consolidating it ourselves, which will require maintenance.

What are you working on?
Laravel

#

@warm zephyr pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
const customers = await stripe.customers.list({email:email});

Question
I want to search for the email on Stripe, the search should be case insensitive.

What have you already attempted?
above code is case sensitive.

What are you working on?
finding all the products user has subscribed too.

#

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

Code
Stripe::Checkout::Session.create(
payment_method_types: ['card'],
mode: 'payment',
payment_intent_data: {
application_fee_amount: application_fee,
transfer_data: { destination: }
},
line_items:,
success_url:,
cancel_url:
)

Question
AR is not currently supported by Stripe.
That was working a few days ago. Something happened. Stripe says my account has not been changed. I am using Connect.

What have you already attempted?
tried with on_behalf_on

What are you working on?
a booking service.

#

@sage phoenix pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
WebView(context).apply {
settings.javaScriptEnabled = true
settings.domStorageEnabled = true
settings.setSupportMultipleWindows(true)
webChromeClient = WebChromeClient()
webViewClient = WebViewClient()
settings.loadWithOverviewMode = true
settings.useWideViewPort = true
settings.setSupportZoom(true)
}

Question
We are currently implementing Stripe payments in an Android application. When launching the payment URL in a WebView, the Google Pay option does not appear. However, when opening the same link using Android Custom Tabs or simply in the Chrome browser, Google Pay is available. How can this issue be resolved? Is it an inherent limitation that cannot be overcome, meaning payments must be handled "outside the app" if we want to use Google Pay?

What have you already attempted?
I've tried opening the URL using Android Custom Tabs, as well as in mobile and desktop browsers.

What are you working on?
I'm working on implementing a payment process in an Android application by opening the payment URL in a WebView.

cursive heronBOT
#

@outer oasis pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I have implemented backend apis for a subscribe button and a cancel subscription button which makes sure that a subscription is not automatically renewed.

How can I implement the "renew now" functionality for users who want to renew subscriptions manually?

Related Request ID(s)
https://discord.com/channels/841573134531821608/1311553400961241158

What have you already attempted?
You can refer to the thread I have linked, but this is a new requirement. and I would like to be pointed to the right documentation for this. Thanks.

What are you working on?
I am making the nodejs backend for an android app.

cursive heronBOT
#

@lapis fog pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We currently use the S700 terminal with server-driven integration.

We would now like to enable our customers to use an app developed by us that enables Tap To Pay instead of the S700.

Is there a way to develop the app with tap to pay in such a way that this "virtual terminal" can also be controlled via server driven integration?

Doc/Guide Links
https://docs.stripe.com/terminal/payments/setup-reader

https://docs.stripe.com/terminal/payments/setup-integration?locale=de-DE

What are you working on?
POS System

#

@dreamy radish 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.google.com/document/d/1ahNxJdv_PiRjnetuuyP5l35LdxY9evimW3qRTFi4zx4/edit?usp=sharing

Question
I am trying to create connected account in uae in test mode, but it is always in resitricted status, so that i cannot able to move future, help me to fix the issue

What have you already attempted?
i have created connected account , with some sample test data

What are you working on?
I am working on stripe payment integration in my ecommerce website, for that implementation i initailly want to test those functionality

#

@shell shadow pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
const createPrice = async ({
amount,
interval,
}: {
amount: number;
interval: 'month' | 'year';
}): Promise<Stripe.Price> =>
stripe.prices.create({
product: productId,
unit_amount: amount * 100, // Convert to cents
currency: 'usd',
recurring: { interval },
active: true,
});

Question
I am implementing Stripe product price update feature I have done my coding part I want to check if I am on the right track or not.

What have you already attempted?
Coded all logic for updating stripe product price update.

What are you working on?
Stripe Product Price update

cursive heronBOT
#

@wind peak pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I have setup my stripe account using UAE details, I want to integrate Apply pay and Google pay

Related Request ID(s)
Don't have Log ID

What have you already attempted?
I have followed stripe documentation.

What are you working on?
Debit and Credit cards working fine but I want to integrate apple pay and google pay as well

cursive heronBOT
#

@shell shadow pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I have updated the price of a product on which multiple users are subscribed ( TESTING ).
When I update the price I see the price is updated but there is some calculation which I am not able to understand.

Related Request ID(s)
customer ID : cus_RKXUbToPahJFsW upcoming_invoice: sub_1QXjp6CuC33ZJzbkB4iaupdS product_id: prod_RQavN4MudFmHWX OLD price ID : price_1QXjjpCuC33ZJzbkpNqsuJwc new price ID : price_1QXjugCuC33ZJzbkN

What have you already attempted?
I can show you the code if you want.

What are you working on?
Stripe product price update

#

@unkempt hull pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I am experimenting with Connect and the Stripe OAuth, I just want to confirm that it takes a minute after authorize/deauthorize for the Dashboard to be updated. That's how long it takes for me, but just want to make sure I'm not doing it wrong.

Related Request ID(s)
"no results found"

What have you already attempted?
I'm using Python/Flask. It works, just want confirmation of behavior

What are you working on?
An event ticketing app

cursive heronBOT
#

@uncut vale pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
We have not yet written code. Sudo code only. Analysis phase

Question
We are wanting to integrate subscriptions (with direct debit), into our platform. We have a scenario where the subscriptions always start on 1st Jan each year, but if someone joins mid year, we want to charge them immediately today (for the full price), and then start their subscription on 1st Jan.

  1. Create a customer
  2. Attach invoice to the customer
  3. Finalise invoice
  4. Create the subscription with trial end 1st Jan
  5. retrieve invoice + PI
  6. Confirm PI

What have you already attempted?
As above

What are you working on?
A subscription system

cursive heronBOT
#

@steel goblet pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Does Stripe provide an API or documentation that lists the countries supporting application fees for platforms? My current company is based in Portugal (PT), and I received an error when trying to charge application fees for a connected account in Thailand (TH). I plan to use Stripe Atlas to establish a US-based company.

Related Request ID(s)
req_vUiaRx7nekywaC

What have you already attempted?
I had a call with your sales support team and they forwarded me to this discord server

What are you working on?
a booking system for yoga studios that shall be available in all countries where Stripe payments are available

#

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

Code
Business account SSN error

Question
Error:US tax IDs must have 9 digits

What have you already attempted?
Trying the same in Test mode but its getting accepted, customer credentials have 9 digits in field and make sure there is no spaces included.

What are you working on?
I am working on why my customer got this error.

cursive heronBOT
#

@honest vale pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
const elements = useElements();
const stripe = useStripe();
...

elements.update((update options of type StripeElementsUpdateOptions));

...

<PaymentElement options={(options with type StripePaymentElementOptions)} ... />

(I will elaborate, i can't paste too much text here)

Question
i cannot pass customPaymentMethods to the `elements.update` because that option is not present on StripeElementsUpdateOptions.

What have you already attempted?
We recently rebuilt our checkout page to use stripe elements with React. Custom payment methods are a beta feature and our account is already opted into it.

In the documentation (https://docs.stripe.com/payments/payment-element/custom-payment-methods#add-cpm-to-elements) there is an example of using the `stripe.elements(...)` syntax to initialize the elements object with the customPaymentMethods object. In our integration we are using the hook to get and configure elements

What are you working on?
adding custom payment methods to an existing integration

cursive heronBOT
#

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

Code
const secretPromise = stripe.apps.secrets.find(
{
expand: ['payload'],
name: SECRET_NAME,
scope: {
type: 'account',
},
},
{ stripeAccount: stripeAccountId },
);

Question
I am making this call for a connected account (authorized through a Stripe App).

I am getting some 404 errors on the secret, and I am trying to understand why.

When I look up the event in the dashboard, I can't see which connected account the error is for?
https://dashboard.stripe.com/workbench/logs?object=req_GM5YIDgOw02ARY&filtered=true

What have you already attempted?
I have tried to look up the event in workbench

cursive heronBOT
#

@drowsy dock pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I see testing in live mode is not allowed. I am curious what the best practice is with a go-live. I have a few places where I have stripe interactions like various lambdas and webhooks and I would love to know they are good to go/configured properly before pushing traffic to site etc

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

What are you working on?
go live of saas

#

@prime scaffold pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
switch (updatedPaymentIntent.next_action.type) {
case 'redirect_to_url':
console.log('Handling redirect_to_url flow');
return {
success: false,
message: 'Additional authentication required.',
actionUrl: updatedPaymentIntent.next_action.redirect_to_url.url
};
case 'use_stripe_sdk':
console.log('Handling use_stripe_sdk flow');
return {
success: false,
message: '

Question
Hi - I did not previously have a condition for when the next action type on a payment intent is "use_stripe_sdk". I am trying to build this correctly in my code now - however the test cards I am trying do not trifgger the SDK - instead they trigger the 3DS via a redirect URL.

I can't be confident in my implementation unless I can specifically test a card that triggers the payment intent next step as needing the SDK

What have you already attempted?
I have tried these cards:

4000002760003184
4000002760003184

What are you working on?
In my SaaS I have an early upgrade modal with a click once to upgrade.

cursive heronBOT
#

@viral spoke pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I am creating invoices via the api and would like to send also the email, that there is an open invoice to my customer. When I just created the invoice, nothing will be send. Which parameter do I need to change, so the email will be sent?

Related Request ID(s)
in_1QXh1tGdgFrJRsM6949mZ0Th

What have you already attempted?
I looked thought the docs and the params but couldn't find anything related

What are you working on?
sending invoices

#

@vivid geyser pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
When running a simulation to test `trial_will_end` webhooks on a subscription, canceling the simulation also cancels the subscription. Is there a way to simply revert the subscription to its previous state?

Related Event ID(s)
None

What have you already attempted?
I've read the docs but there's no mention of this behavior.

cursive heronBOT
#

@fast tulip pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Is it possible to use manual capture mode on "bancontact" payments? This used to be possible with the old Sources API, but now we are upgrading to PaymentIntents and this flow does not seem possible anymore?

Related Request ID(s)
req_VtdvH5yaqOj3vv?t=1734626707

What have you already attempted?
Capturing manually for bancontact

#

@timid ember pressed the 🤨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
Stripe report to contain information regarding IC fees

What actually happened?
Stripe report returned empty report file

Reproduction Steps
Report run request id:
frr_1QHhgDJ93KfFVesbJbQXtzZo
Report file url:
https://files.stripe.com/v1/files/file_1QHhgOJ93KfFVesbnXNDLFbc/contents

Question
We use the /v1/reporting/report_runs API for type card_payments_fees.transaction_level.2 on a daily basis to retrieve fees for our transactions. But in this particular case for the period Nov 1-Nov2 the report returned was empty

cursive heronBOT
#

@cedar osprey pressed the 🤨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
Pending subscription not take payments because it wasn't set to "automatically take payments."

What actually happened?
It took payments somehow which I don't know how to confirm if it was automatic or client accidently manually put card info. This caused a double charge to happen because we made a new subscription later with automatic payments.

Reproduction Steps
We are now forced to refund the client but because of the fees, we're losing $100 for no reason.

Question
How can we get around getting that $100 we lost for no reason back from Stripe because of this?

#

@untold spade pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hello, we are attempting to use the delete api for connected accounts but are recieving this message:

```
Live-mode accounts where Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts.
```

is it possible to delete a connected account once its created if stripe is responsible for negative account balances?

Related Request ID(s)
Turn off negative balance: req_Ejmc5wSKStOLKp Delete: req_MBluRfY3tR9tdW

What have you already attempted?
We have tried to turn off negative account balance via the ui, but it remains on. Also tried via api.

What are you working on?
https://blawby.com os a legal payment cms

#

@golden spade pressed the 🤨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
Customer cancelled their subscription via "cancel_at_period_end"

What actually happened?
New invoice was generated

Reproduction Steps
req_1kVQoDKoinpv0o

I think the issue was bc I had "billing_cycle_anchor: now" as a default value for requests sent to Stripe (which has since been rectified).

Question
Is there anything I can to to get the "subscription cancelled" webhook to send on Jan 16th, 2025, the date his subscription would have been "cancelled at period end" had the request not included "billing_cycle_anchor: now"?

What are you working on?
SaaS

#

@heady wyvern pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
var addressElement = elements.create("address", {
mode: "billing",
fields: {
name: "never"
}
}

Question
How can I disable/hide the "Full Name" field from the Address element, since I'm already collecting separately?

What have you already attempted?
var addressElement = elements.create("address", {
mode: "billing",
fields: {
name: "never"
}
}

What are you working on?
Adding AVS to our Stripe checkout form using the Address Element and the Payment Element.

cursive heronBOT
#

@wary girder pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We're making requests for extended authorizations. Our account manager at Stripe says that we should be able to secure 30 day authorized holds for all major card networks. We are able to get 30 day holds for MasterCard, but just 10 day holds for Discover, 7 day holds for VISA and 7 day holds for AMEX.

Related Request ID(s)
req_372eJEo3jxzpHq

What have you already attempted?
We've made the requests for creating/updating the payment intents with: "request_extended_authorization":
"if_available". This works wonderfully for MasterCard, but the other card networks have limited to no success.

What are you working on?
We've got an ecommerce website which holds the funds until completion and approval of an eligibility form.

cursive heronBOT
#

@nova crane pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I'm building a reporting app that allows anyone to connect their Stripe account. The app pulls in their transactions data to build reports. What client ID and secret do I need to use for Oauth? The only reference I can find is for Stripe Connect, but my app is not going to collect payments on behalf of others. It only needs to connect to their accounts to read data.

Related Request ID(s)
none

What have you already attempted?
I have tested with the Connect client ID but I don't want to use the wrong setup, hence my question.

What are you working on?
A reporting app

cursive heronBOT
#

@halcyon meteor pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How to get the fees from a SEPA DD from customer to platform?

Related Request ID(s)
req_NGMqIQ9tw6BCmj

What have you already attempted?
I tried with header and destination charges

What are you working on?
I build a SAAS plateform taht retrieve tips from emrchant and send to connected accounts

#

@wary girder pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We're making requests for extended authorizations. Our account manager at Stripe says that we should be able to secure 30 day authorized holds for ALL major card networks. We are able to get 30 day holds for MasterCard, but just 10 day holds for Discover, 7 day holds for VISA and 7 day holds for AMEX.

Generally the limitations are as follows:
https://docs.stripe.com/payments/extended-authorization?platform=web&ui=elements#availability-by-card-network-and-merchant-category

However, our account manager has granted us an exemption to which the aforementioned limitation doesn't apply to us.

Related Request ID(s)
req_372eJEo3jxzpHq

What have you already attempted?
We've made the requests for creating/updating the payment intents with: "request_extended_authorization": "if_available". This works wonderfully for MasterCard, but the other card networks have limited to no success.

What are you working on?
We've got an ecommerce website which holds the funds until completion and approval of an eligibility form.

cursive heronBOT
#

@urban shuttle pressed the 🤨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
I am experiencing an issue with the Payment Intent creation where the capture_method set to manual does not work as expected. Instead of allowing a pre-authorization (as intended), the payment is being captured immediately when the user completes the payment.

What actually happened?
I have configured the Payment Intent with the capture_method set to manual, intending to perform a pre-authorization.
However, when the payment is processed, the amount is captured immediately from the card, instead of being held as a pre-authorization.

Reproduction Steps
Payment Intent creation: The Payment Intent was created with capture_method: 'manual'.
Stripe Checkout session: The session was created, and the payment page was displayed correctly to the user.
Outcome: The payment was processed immediately, not authorized.

The payment should be authorized, but not captured.
I should be able to either capture or cancel the payment

Question
I am using the Stripe Checkout for the payment flow.
After the payment is authorized, I expect to manually capture the payment or let it expire.
The payment is charged immediately instead of being pre-authorized, and I cannot see any option to manually capture it later in the Dashboard.
Could you please assist me in resolving this issue and provide guidance on ensuri

What are you working on?
I want to rent a house with preauthorization in my personnal app

#

@hasty spire pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
how to disable the "Link" payment method in the prebuilt stripe PaymentSheet? please help. i remember turning off "Link" payment somewhere on the dashboard. But i couldn't find the website address for it right now.

Related Request ID(s)
pi_3QNGz805PIMIj7Fi0b5Ii8Bt

What have you already attempted?
i remember turning off "Link" payment somewhere on the dashboard. But i couldn't find the website address for it right now.

#

@stray trellis pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
I'm trying to create an add payment method form by using Stripe elements and Shadcn's dialog but for unknown reasons the following hooks:

- useElements
- useStripe
returns `null` and simply doesn't work when trying to submit the form. And also, when I modify any part of the code that forces a hot reload it magically starts working again.

Question
How can I solve this issue with Nextjs and Stripe

What have you already attempted?
- loadStripe resolves correctly (I did a console log by checking it)
- I tried to upgrade to Nextjs 15 and still the issue persists (nextjs 15 doesnt offer any cache by default I guess). I'm on Nextjs 14.2.13
- dynamic((), { ssr: false }) doesn't solve the issue
- I tried adding a useEffect to call the loadStripe and set it in a useState
- I tried calling the `loadStripe` at the main component and passing it by props to the <Elements>

What are you working on?
A SaaS based subscription with option to manage and remove credit cards

cursive heronBOT
#

@swift escarp pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Trying to build a SaaS Subscription integration with everything being managed in my app, no leaving my app and no using Stripe's UIs for payment processing. I am having issues understanding how everything is supposed to fit together and a lot of the documentation and other articles on the web seem to be outdated or incomplete. Particularly, how do I start a subscription for a user with a 30 day free trial? How do I ensure that they receive an invoice when paid as well as an invoice for upcoming charges directly from Stripe? Also, when a subscription changes statuses likes goes from active to paused or cancelled, is there a webhook I can use to trigger an update in my app?

Doc/Guide Links
I have looked at tons of documentation. Here's a few:

https://docs.stripe.com/products-prices/pricing-models#flat-rate
https://docs.stripe.com/payments/checkout/free-trials?payment-ui=embedded-form
https://docs.stripe.com/api/prices/create
https://docs.stripe.com/billing/subscriptions/trials?how=api

What are you working on?
SaaS Application for Private Encrypted Hosted Email w/ Unlimited Domains, Mailboxes, Aliases and Storage.

#

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

Question
if i make an authorisation hold, and i capture only say half of the held funds, do i need to cancel so that the rest can go back the account or it will automatically be returned back to the account

Related Request ID(s)
authorisation hold

What have you already attempted?
nothing

What are you working on?
an app tha pays service provider for services they render

cursive heronBOT
#

@hallow stratus pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How can I solve this issue?
You must provide a `return_url` when confirming a SetupIntent with the payment method type paypal.

React Native call:
const { error, setupIntent } = await confirmSetupIntent(clientSecret,
{
paymentMethodType: 'PayPal',
},
{
setupFutureUsage: 'OffSession',
}
)

Related Request ID(s)
req_MvugBFYobZPfvq

What have you already attempted?
Added return_url when creating setupIntent from my server

What are you working on?
Building a React Native App, trying to make PayPal "future usage" work

#

@torpid scaffold pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I currently have a "ledger" type system where I am crediting/debiting my customer's balance directly. The way my system works, I charge per-lead in my service and would like it to immediately reflect in my customer's balance. I want to avoid using invoices for each lead as I don't want them to be overwhelmed with invoices, and instead I generate a single invoice at the first of the month which is based on the customer balance.

Will this result in any issues down the road, and should I instead switch to holding my own db entries of lead charges and generating a monthly invoice this way?

Related Request ID(s)
N/A

What have you already attempted?
See question

#

@stray trellis pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
const stripePromise = loadStripe(env.NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY!)

<...>
<Elements
options={{
mode: props.mode,
amount: props.mode === 'payment' ? props.amount : undefined,
currency: props.currency,
paymentMethodTypes: ['card'],
appearance,
}}
stripe={stripePromise}
>
{props.children}
</Elements>

Question
Getting issues with Stripe and NextJS

What have you already attempted?
- loadStripe resolves correctly (I did a console log by checking it)
- I tried to upgrade to Nextjs 15 and still the issue persists (nextjs 15 doesnt offer any cache by default I guess). I'm on Nextjs 14.2.13
- dynamic((), { ssr: false }) doesn't solve the issue
- I tried adding a useEffect to call the loadStripe and set it in a useState
- I tried calling the `loadStripe` at the main component and passing it by props to the <Elements>

What are you working on?
A SaaS subscription with add payment method form

#

@west hill pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
const onClick = async ({ resolve }: StripeExpressCheckoutElementClickEvent) => {
resolve({
shippingAddressRequired: true,
allowedShippingCountries: ['US'],
shippingRates: [
{
id: 'default',
displayName: 'Auction Shipping',
amount: 100,
},
]
})
}

Question
Previously, I used the ExpressCheckoutElement to enable my users to place bids using Apple Pay or Google Pay. However, I don’t like the concept of having these buttons displayed separately, so I’m trying to migrate to the PaymentElement.
It’s critical for me to retrieve shipping information from the Apple Pay modal. Could you please assist me with the migration and possibly provide documentation on how to configure Apple Pay dynamically?

What have you already attempted?
I was able to request it successfully before using the code above, triggered by onClick.

What are you working on?
Auction like website

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/connect/funding#fund-from-bank-account

Question
Is there a way to fund a connected accounts issuing balance via a debit card instead of a external wire or ACH?

What have you already attempted?
External Funding, and bank account source creation and ACH pulls

What are you working on?
Connect + Issuing

#

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

What did you expect to happen?
Expected to receive an email receipt after succeeded CC payment

What actually happened?
No email received

Reproduction Steps

  1. CC payment using the hosted checkout session
  2. Emails are configured in Stripe Sandbox and the email customer email that I made the payment through matches that of the account owner.

Question
While we have disabled "Include PDF links and attachments on invoice emails and payment page" AND "Invoice payment page" as we do not want to public display and invoice URLS etc... I don't know why receipts for payments are not being emailed.

What are you working on?
suybscription management

#

@marsh lake 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/design-an-integration?connect-onboarding-surface=hosted&connect-dashboard-type=express&connect-economic-model=buy-rate&connect-loss-liability-owner=platform&connect-cha

Question
I would like to select dashboard access = stripe in these docs, but when doing the "where will sellers manage their account" step of the Connect setup:

if I select "express" the docs (integration guide) will show dashboard access = express.
If I select "embedded" it will show dashboard access = none.
If I select "build your own" it will also show dashboard access = none.

I cannot figure out what options in the Connect setup I need to select the correct option.

What have you already attempted?
All the different options for account management. I also tried changing some of the other options in the Connect setup and found that some of them remove the "express" option but did not find one that adds the "stripe" option.

I also contacted stripe support and they have no idea how it works. I'm hoping someone here does.

What are you working on?
A platform for mid term rentals. Specifically right now - trying to set up the app so we can take a cut of the payments and send the rest to the landlords.

#

@wheat lark pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We are getting the following error in production Invalid Stripe API version: 2020-08-27;invoice_payment_plans_beta=v1. You do not have permission to pass this beta header: invoice_payment_plans_beta. If you have any questions, we can help at https://support.stripe.com/ .

Related Request ID(s)
No idea.

What have you already attempted?
We have selectively feature toggled the feature for certain Stripe Connect accounts in our production environment.

What are you working on?
We are attempting to use the Invoice part payments beta with invoices created by Stripe Connect accounts.

cursive heronBOT
#

@rich robin pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We are doing Terminal server-driven integration and having issues with Collect Inputs API (beta). Question 1: Does the payment intent need to first succeed before initiating Terminal Collect Inputs API? Question 2 do have to use webhook event `terminal.reader.action_succeeded` to trigger Collect Input API or do we know something other way that the device is ready for Collect Inputs flow?

Related Request ID(s)
evt_1QXtiyIEeIH1gPwZAIbkoZxK

What have you already attempted?
Have tried transactions with and without Collect Inputs.

What are you working on?
Terminal payments using S700 and collecting inputs (beta) to send receipt via email and register customer name

cursive heronBOT
#

@desert rain pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I am trying to understand what `subscription.canceled_at` represents.

The subscription tied to the request is mapped to a subscription with a starting billing cycle of August 30, 2024.

The customer in question cancelled their subscription on the very same day. We are set up to have the subscription run until end of the billing cycle on cancellations.

It is my understanding the `subscription.canceled_at` is timestamp on the day of the cancellation request. And then gets updated to the final cancellation date when it happens.

The sub canceled today, but the timestamp is still tied to Aug 30

Related Request ID(s)
req_zDPVmC8W5fwvph

What have you already attempted?
Read the documentation: https://docs.stripe.com/api/subscriptions/object#subscription_object-canceled_at

What are you working on?
We use the `subscription.canceled_at` to calculate proration on their subscription when a customer purchases a one-time license fee.

#

@errant venture pressed the 🤨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
The Stripe Payment Element should render all dynamic payment methods enabled on the connected Stripe account (via OAuth).

What actually happened?
When using my Stripe account’s publishable key directly, the Payment Element correctly renders all dynamic payment methods.

However, when connecting the same Stripe account via OAuth, the Payment Element does not render any dynamic payment methods, even though they are enabled on the connected account.

Reproduction Steps
Use the direct publishable key from the platform Stripe account to render the Payment Element — all dynamic payment methods load correctly.

Connect the same Stripe account via OAuth, retrieve the publishable and secret keys, and use them to render the Payment Element.

Observe that the dynamic payment methods do not render.

Question
Is the dynamic payment method list influenced by both the platform account (our Stripe account) and the connected account (via OAuth)?

If the platform account does not have specific payment methods enabled, will it block those methods from rendering, even if they are enabled on the connected account?

How can we ensure that all dynamic payment methods enabled on the

What are you working on?
Building a SaaS application where end-users connect their Stripe accounts via OAuth to process payments. Using Stripe’s Pay

cursive heronBOT
#

@silk bramble pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I set up a webhook in my platform account. I want to use it to catch events related to external bank info changes (e.g., bank account numbers) in my connected accounts. For webhook settings, I use type connected account and enable all actions.
When I switched to a connected standard account and manually updated the bank account number, this operation didn't fire the `account.external_account.updated` event and nothing showed in the webhook events.

So any idea what's the problem with my settings?

Related Event ID(s)
webhook is here: https://dashboard.stripe.com/test/workbench/webhooks/we_1QXYK0AvCWSHxl8duBQq9sS2

What have you already attempted?
Other operations such as changing the payout schedule of a connected standard account trigger the `account.updated` event.
Read the documentation:
https://docs.stripe.com/connect/webhooks?locale=en-GB

https://docs.stripe.com/connect/payouts-bank-accounts?bank-account-collection-method=financial-connections

cursive heronBOT
#

@blazing spade pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
In stripe subscription.
Sample contract period: December. 20. 2024 - March. 20, 2025

When checking via stripe subscription dashboard, it also displays the UTC time conversion which is Dec. 19, 2024 - Mar. 19, 2025.

With this, when displaying the dates in front end it will show the December. 20. 2024 - March. 20, 2025, but on backend the contract period is Dec. 19, 2024 - Mar. 19, 2025..

I use the stripes object:
subscription.current_period_start
subscription.current_period_end.

Whats the best practice to handle this? Also to not let the user be confused. Do I need to use the time conversion like: PST • Your computer?

Doc/Guide Links
https://stackoverflow.com/questions/39242445/stripe-subscription-ending-date-and-time

What are you working on?
Currently building a website, which involves having plans.

cursive heronBOT
#

@woven coyote pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Could you please confirm if Stripe’s payment handling would be compliant with both platforms' guidelines, particularly in terms of in-app purchases and payment processing for subscription-based models and transactional charges?

Doc/Guide Links
https://docs.stripe.com/stripe-apps/review-requirements

What are you working on?
We are building an application where pharmacies can hire pharmacists through day-to-day bookings. We offer two pricing packages for pharmacies: 1. Basic: Pharmacies enter their card details, and during use, they are charged a p

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: ['us_bank_account'],
payment_method_options: {
us_bank_account: {
verification_method: 'microdeposits'
}
}
})

Question
I am implementing a stripe Payment element (React) with undeferred setup intent flow. I don't want to display only manual verification for us bank account, but the element doesn't load. Throws "unsupported_parameter".

What have you already attempted?
Tried using verification_method: 'skip', but it fails on create intent with "Invalid payment_method_options[us_bank_account][verification_method]: must be one of automatic, instant, or microdeposits" error.

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

#

@quartz owl pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We have a flow, where we need to confirm payment. After payment is confirmed. We need to call the sign-up api with the data entered by user in the form.

Doc/Guide Links
https://docs.stripe.com/payments/payment-element/design-an-integration

What are you working on?
We have an application where we give 2 packages: Unlimited - Subscription and Basic - We just store card details, later charging them on each booking they make.

#

@long gyro pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
$stripe = new StripeClient(env('STRIPE_SECRET'));

            $stripe\-\>paymentMethods\-\>attach\($request\-\>paymentMethodid, \[
                'customer' =\> $customerid
            \]\);

            $setupIntent = $stripe\-\>setupIntents\-\>create\(\[
                'customer' =\> $customerid,
                'payment\_method' =\> $request\-\>paymentMethodid,
                'usage' =\> 'off\_session',
            \]\);

            $setupIntentConfirmation

Question
We want to create a payment intent on behalf of an expert's connected account. After the payment is confirmed by the admin in our portal, we plan to transfer the funds to the expert's account. However, if the confirmation takes 10-20 days, we want the full payment to remain in Stripe's balance, with only our platform fee being transferred to our bank account. The remaining amount should not be transferred to our company account. Could you please guide us on how to achieve thi

What have you already attempted?
We have shared our code. Please review it. We have read the Stripe Connect documentation and tried various approaches, but we have not been successful.

What are you working on?
we are working on stripe connect api and transfer method we are using in the admin side .

cursive heronBOT
#

@quiet drift pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
No codeNo codeNo codeNo codeNo code

Question
We are using stripe UI to perform payments on Android application. The user can save a payment method and it will be displayed on Stripe UI on the next payment. We use FlowController to perform defered payments. No we want to to provide a custom screen for selecting saved payment methods, but continue using Stripe UI for adding a new one. So we want to hide the Stripes UI screen for selecting a saved payment method. Is there a way? We did not find something on the docs

What have you already attempted?
All the possible values of IntentConfiguration

#

@honest rover pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We have Bank-Transfer enabled for our Payment Methods Configuration. We also allow our Connected Accounts to adjust their supported payment methods via dashboard. One connected account of us however cannot create a checkout session even if bank transfer is disabled as a default on their side.

We haven't migrated our Integration yet, which means we still define the payment methods for the checkout session in code, although we plan to adjust our code according to the new defaults soon.

How can we help the connected account create the checkout session?

Related Request ID(s)
req_WnICYF8SAVsC6M

What have you already attempted?
Checked our configuration, tried to enable bank transfers with the connected account via call (missing information on their side)

What are you working on?
Event service for booking tickets etc.

cursive heronBOT
#

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

Code
This is reference to the following ticket ID with Stripe: 02485414

Question
I accidentally submitted my ABN account type as Individual instead of Business and need to go back to fix this.

What have you already attempted?
Trying to go back but there is not back button

cursive heronBOT
#

@silk depot pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
i have below filter use in stripe
https://dashboard.stripe.com/test/reports/balance?startDate=2024-12-16&endDate=2024-12-17&currency=usd&templateType=merchant&timezone=Etc%2FUTC

I want to create same report using api.

Related Request ID(s)
all BalanceTransaction

What have you already attempted?
$response = \Stripe\BalanceTransaction::all($params);

few data are missing in api as compere stripe report.

What are you working on?
balance report

#

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

Code
(There is no relevant code, it's just opening an URL)

Question
I am developing a stripe app. After installing the app, users should purchase my service to be able to fully use the app. Normally, I would do this by creating a payment intent and opening the URL. However, within a stripe app, opening URLs is blocked:
"Blocked opening xyz in a new window because the request was made in a frame whose 'allow-popups' permission is not set."

What is the recommended way of letting users purchase from a stripe app?

What have you already attempted?
I tried opening it in the same tab and in a new tab.

What are you working on?
A stripe app to send e-invoices based on stripe billing

#

@vernal prairie pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
paymentIntent = await stripe.paymentIntents.create(
{
amount: finalPaymentAmount,
currency,
payment_method_types: ["card"],
confirm: true,
application_fee_amount: adminFeeInCents,
payment_method: "pm_card_visa",
capture_method: "automatic",
},
{ stripeAccount: shopkeeper.stripeAccountId }
);

Question
From above code I am taking payments from card. Now I have also implemented tap to pay functionality. In that the payment is done successfully and displayed in stripe dashboard of admin account but not on the connected account dashboard. How can I get that entry based on above code.

What have you already attempted?
Tap to pay done on client side so no involvement of above code in that. So how can I get that transactions in the stripe dashboard pf connected account?

cursive heronBOT
#

@shell raptor pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Map<String, Object> paymentMethodOptions = new HashMap<>();
paymentMethodOptions.put("allow_redisplay_filters", Arrays.asList("always"));
paymentMethodOptions.put("payment_method_save", "enabled");

		params.put\("saved\_payment\_method\_options", paymentMethodOptions\); how to write same code to put in checkout Session object

Related Request ID(s)
none

What have you already attempted?
saw document, but nothing related to it was there, in stripe page java code is not there

What are you working on?
payment subscriptions

cursive heronBOT
#

@lethal rover pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hi, We have integrated Stripe as our payment system for online and in our app with Tap to Pay for both iPhone and Android

I have got a messaged from apple saying that my Apple Pay Merchant Identity is about to expire. I think this is handled automatically by Stripe and the certificate could have been created when we were using a different payment provider but I just wanted to check. Are you able to confirm this?

Let me know if you need any further details.

Doc/Guide Links
https://support.stripe.com/questions/enable-apple-pay-on-your-stripe-account#:~:text=Enable Apple Pay on your,website%2C complete each process below.

What are you working on?
Fundraising platform

cursive heronBOT
#

@uncut skiff pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
front-end
const options: StripeElementsOptionsMode = {
mode: 'payment',
amount: this.cartsService.cart?.total! * 100,
currency: 'eur',
paymentMethodCreation: 'manual',
appearance: {
theme: 'flat',
},
};

back-end
const intent = await this.stripe.paymentIntents.create({
confirm: true,
amount: order.total * 1000000,
currency: 'eur',
confirmation_token: order.stripeTransaction.confirmationToken,
});

Question
hello i am integrating stripe into my marketplace, i would like to confirm the payment in my backend, following docs.stripe.com/payments/finalize-payments-on-the-server, i create a token in the fontend which i then send to the backend, in the backend when i confirm the payment with a different amount i don't get any errors, how can i check the amount entered in the token before making the payment?

What have you already attempted?
Some error due to the amount difference between frontend and backend

What are you working on?
building, angular + nestjs

cursive heronBOT
#

@tawny nest pressed the 🤨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
Customer name is not collected for some customers.
From the data I have looked at it looks like this happens when the customer pay with apple pay and from the data I cant find any reference to the customers name.

What actually happened?
Customer gets transfered to the checkout page on stripe and they do not need to provide a name.

Reproduction Steps
Create a payment with apple pay?

Question
Is there any way to force the checkout to have a customer name field that will be used when the customer is created/update?

What are you working on?
I am helping a Stripe user to automate their bookkeeping and the bookkeeping software require a customer name to bookkeep.

#

@broken crown pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Why is the invoice item for the overusage price using the epoch of 1736208000 for 2025.01.07, while the flat price is using the real epoch of 1736249632?

Related Event ID(s)
evt_1QTMGkGhDr1u9rxFJNUJQUy2

What have you already attempted?
Nothing to attempt here, I'm looking to understand the model as this detail is not stated in the docs (or I couldn't find it)

What are you working on?
Implementing overusage model at the moment. My problem is that I record usage everyday for 00:00:00. So for this event I see that flat price ends at 11 which is clear. But why is the overusage diff?

#

@fast tulip pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Can we determine the Stripe Fee before capturing a PaymentIntent with manual capture_mode ?

Related Request ID(s)
req_123

What have you already attempted?
Created a PaymentIntent with manual capture mode and inspected the returned properties. The Stripe processing fees are not included before the PaymentIntent is captured.

#

@mellow sentinel 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/pay-by-bank/accept-a-payment

Question
I am a bit confused as to whether this is invite-only for everyone, or only invite-only for use in Germany. Can you please clarify is this feature is GA or not?

What have you already attempted?
I've read the doc page; there's a form I can fill in to register my interest - but only for Germany ("Interested in getting early access to Pay by Bank in Germany?") . Trying to use the payment_method_type returns:

```
Invalid payment_method_types[0]: must be one of card, acss_debit, affirm, afterpay_clearpay, alipay, au_becs_debit.....

cursive heronBOT
#

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

Code
const { error } = await stripe.confirmPayment({
elements,
clientSecret,
confirmParams: {
return_url: window.location.origin + BaseRoutes.wallet,
},
});

Question
When I click on the button to pay via Google Pay, it actually takes me to the payment page, I select my real card (I tried it with both test and real Stripe API keys) and try to pay. It takes about 30 seconds to load and I get a "REQUEST_TIMEOUT" toast from Google.
When I try to pay with Apple Pay, it takes forever to load.
Payment using a card goes through without errors.

What have you already attempted?
I uploaded the domain verification file for Apple at my-site-domain/.well-known/apple-developer-merchantid-domain-association and made it public.
I added the domain to the panel on the Stripe website.
I've gone through all the Apple/Google payment related Stripe documentation.
I tested payment with both test and production API keys using test and real cards.

What are you working on?
I'm trying to make a payment via Apple/Google Pay on my website.

#

@exotic horizon pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
When is the best time to create an order on an ecommerce nextjs app? Is it after payment_intent.succeed or charge.succeed.

Some say after payment_intent.succeed, but I am looking forward to grab the receipt_url in order to store it in the db and it only comes with charge event.

Related Event ID(s)
payment_intent.succeed, charge.succeed

What have you already attempted?
I attempted both events but receipt_url comes after charge.succeed.

What are you working on?
ecommerce website on nextjs

#

@minor pasture pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
What are best practices for the following:

Requirements
* SaaS platform with a free plan (not a trial, has no expiration) and a few paid plans
* User registers for an account on our SaaS platform before anything Stripe-related happens
* User can make a payment and upgrade to a paid account in the SaaS platform at any time
* The Stripe integration should be as no-code or low-code as possible

Questions

* Should we use checkout, payment links, or something else?
* How should we best handle/order the integration steps between our platform and Stripe?
* Once user enrolled in a subscription, should they manage it via the checkout page flow or their own customer portal?

Thanks!

Doc/Guide Links
https://stripe.com/use-cases/saas
https://docs.stripe.com/saas

What are you working on?
SaaS Platform

#

@sly dove pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We have our own app in the Stripe App Marketplace and we would like to know when one of our connected accounts updates the app and also know which version they updated to. Is there anyway we could get this information? Been looking at the docs but haven't found anything.

Related Event ID(s)
None

What have you already attempted?
Read the docs and check existing events

What are you working on?
We'd like to inform our customers when they need to update the Stripe app, in case there are new permissions needed to use a feature.

#

@lyric cedar pressed the 🤨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
I've tried to resend a charge.succeeded event with ID evt_3OmvhNBVfuMTCR400bQhaaKd from 2024-02-29 and expected this event to be sent again to my webhook endpoints.

What actually happened?
I received resource_missing error with the following message: No such notification: 'evt_3OmvhNBVfuMTCR400bQhaaKd'"

Reproduction Steps
Login into stripe CLI and run "events resend evt_3OmvhNBVfuMTCR400bQhaaKd --api-key SOME_SK_KEY_HERE"

Question
Why is this happening, shouldn't this event be available for resends?

What are you working on?
Lease to own financial startup

cursive heronBOT
#

@mortal cloud pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I want to show all saved cards for an existing customer so that he can choose that and then pay from that card with tap on it. As now he has to enter all card details again and again on each payment. Im using Flutter and Firebase mobile application

Related Request ID(s)
-

What have you already attempted?
I already tried to search api but didnt find

What are you working on?
Making a mobile application in flutter in which user can pay booing fee

#

@grizzled furnace pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
$checkout_session = \Stripe\Checkout\Session::create([
'success_url' => $successUrl,
'cancel_url' => $cancelUrl,
'payment_method_types' => ['card'],
'mode' => "subscription",
'allow_promotion_codes' => true,
'line_items' => $line_items,
'customer_email' => $customerEmail,
'client_reference_id' => $clientReferenceId,
'automatic_tax' => ['enabled' => true],
'tax_id_collection' => [
'enabled' => true,
],
'metadata' => [

Question
On the checkout page, we want the VAT to $0 when the "I'm purchasing as a business" box is checked

What have you already attempted?
It worked earlier but doen't work anymore

What are you working on?
A Squarespace extension, Spark Plugin

#

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

Code
document.addEventListener('DOMContentLoaded', function() {
let stripe;
let elements;
try{
stripe = Stripe("{{$StripePublicKey}}");
const clientSecret = "{{ $clientSecret }}"; // securely fetched from backend
const appearance = {
theme: "stripe",
variables: {
colorPrimary: "#0570de",

Question
[Violation] Permissions policy violation: payment is not allowed in this document getting this error

What have you already attempted?
trying to attempt the payment element

What are you working on?
checkout custom

#

@twilit viper pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Can the "days_until_due" be globally configured? It seems like it's mandatory every time i create a subscription with collection_method :"send_invoice"

Related Request ID(s)
N/A

What have you already attempted?
Checked docs https://docs.stripe.com/billing/collection-method and dashboard settings but couldn't find a global setting

What are you working on?
Stripe Marketplace App

cursive heronBOT
#

@shell shadow pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
const stripe = useStripe();
const elements = useElements();

const cardNumber = elements.getElement(CardNumberElement);
const result = await stripe.createPaymentMethod({
type: 'card',
card: cardNumber!,
});

formik.setFieldValue('payment_method_id', result.paymentMethod?.id);
formik.handleSubmit();

Question
The payment method ID generated from front-end doesn't work on the first attempt but when I use the same payment method ID second time I am able to but the subscription

What have you already attempted?
I am generating stripe payment method ID from my next js frontend.

What are you working on?
Stripe purchase subscription

#

@floral mist pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I'm wondering whether I can set a time for a radar list item to be auto removed from a list using the API like I can on the dashboard?

Related Request ID(s)
none

What have you already attempted?
Read the API docs at https://docs.stripe.com/api/radar/value_list_items

What are you working on?
I want to be able to whitelist emails/card fingerprints but not indefinitely - just for a year or month

cursive heronBOT
#

@vast notch pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Which debit card can I use to test the payout.failed event on connect counts instant cash out.

Related Request ID(s)
none

What have you already attempted?
Tried test cards provided by stripe but none of them worked for me. I know I have test this in the past but I can't find the test card that did the job. Can you help me please?

cursive heronBOT
#

@vocal aurora 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/object#payment_method_object-alma

Question
Hello !

I have a question about how Stripe works on the return of the payment method.

Context: I need to retrieve the payment type in order to apply a custom fee (for example, if someone pays with Alma in 4 installments, they have an additional 5.85% fee. If they pay in 2 installments with Alma, they have an additional 3.9% fee, etc.).

I found the doc I sent with the ticket, and in this enum, I see that I can have the information on Alma. I deduce that I should have a response with an "alma" field and data, but no idea of ​​the data, I can't find it in the doc. Thanks.

What have you already attempted?
Searching in docs

What are you working on?
I need to retrieve the payment type in order to apply a custom fee.

#

@toxic onyx pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
`elements.on('click', (event) => ...)`
// how do I remove the above listener if I want to replace it with a new one?

Question
Is there a way to clear event listeners from the `elements` object?

What have you already attempted?
I can pass a single event handler with logic in it to either execute or not execute a code block, but I'd prefer to remove the listener entirely

What are you working on?
StripeJS remove event listener from `elements`

cursive heronBOT
#

@steady oriole pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I want to enable users to upgrade or downgrade between multiple plans (monthly and yearly) in my app. However, in the Stripe billing portal, I can't add multiple prices for the same interval.

I noticed in this demo [https://docs.stripe.com/customer-management#:~:text=and downgrade subscriptions-,View demo,-FEATURE] that users can switch between plans easily, even with multiple prices for the same interval.

How can I implement this using the Stripe billing portal session API?

Related Request ID(s)
no id

What have you already attempted?
nothing

What are you working on?
website development

#

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

Question
Hi,

I'm having an issue with downloading the Stripe NPM package. When i run the command to install it globally it installs successfully. But it does not work if i run Stripe [insert command here] into the CLI on my project it doesnt not recognise Stripe.

Related Request ID(s)
no

What have you already attempted?
check the direcotry its in and seems to be correct.

What are you working on?
An express server that Stripe Needs to call to say a payment was successful.

#

@autumn solar pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I am currently trying to automate a flow that we are currently using at my employer. What I want to do is automate the customer portal flow. The thing is we aren't saving customer IDs and instead just letting them log into Stripe but we'd still like to generate the link to the customer portal login as well as set up the default config for the portal the same way we would if we logged in but through the API. Is this possible? I've tried generating a config through the API successfully but I'm not sure if there is a way to set it as the default and how to retrieve that link from the dashboard.

Related Request ID(s)
req_yVcTSTlSRkklrF

What have you already attempted?
I've gone through the docs on enabling the customer portal and I've successfully been able to generate my preferred configuration through the API and save it. I looked through the response from the API after saving the new config in the hopes that it would show me that URL that I mentioned before but no such luck.

cursive heronBOT
#

@median whale pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I have connected Stripe payment to my Hostinger platform website. I would like to enable automated tax calculation in the Stripe hosted checkout page. How do I edit the Stripe hosted checkout page code to enable automated tax with a Hostinger managed page?

Related Request ID(s)
none

What have you already attempted?
streipe cli api explorer

#

@stiff sparrow pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hello, when we create a checkout session for the existing customer, it is creating a new customer record, which is not ideal, do you know what we can do to create the check session utilizing the existing customer record? We did pass in the customer email.

Related Request ID(s)
NA

What have you already attempted?
create check out session

cursive heronBOT
#

@worthy osprey pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
const meterEvent = await stripe.billing.meterEvents.create({
event_name: "try_ons",
payload: {
stripe_customer_id: row[0].stripe_id,
value: "1",
},
});

Question
Is it possible to send absolute numbers, meaning no increments, as the value in meter events? We are building a usage based service for virtual try on where we charge by try on. A team engineer is concerned about the frequency of sending events and performance, as try ons could happen frequently and in large numbers. Any tips for handling these cases so we aren't sending a meter event for every try on.

What have you already attempted?
I've successfully sent events to update the invoice, but looking for suggesting to attempt sending meter events less frequently. Batching events? Is there a way Stripe could periodically pull from our data and update the invoice that way?

What are you working on?
A usage based subscription for customers doing virtual try ons. Charging per try on.

#

@hollow hawk pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I'm setting up a usage-based, per tier, graduated subscription. With the way our app is, I only know the total usage for a user per billing period. I'm having trouble understanding how to report the "total usage so far for the period". It seems like the stripe meters either expect to receive usage as it happens, so it adds it up, or aggregated by hour or day. How can I just report the total usage and have stripe take the highest value reported during a billing period?

Doc/Guide Links
https://docs.stripe.com/billing/subscriptions/usage-based/recording-usage#configure-meter

What are you working on?
We are a app that pulls in analytics records from ad platforms. We need to bill based on how much ad spent our users do on those platforms

cursive heronBOT
#

@round sundial 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/use-cases

Question
How to change a billing cycle from monthly to yearly for a subscription and don't charge until current cycle ends?

What have you already attempted?
I saw there are 2 options:
- Subscription Schedule
- Cancel Subscription and Create new one

I'm not sure which is the simplest or more convenient one.

#

@sterile garden pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
In test mode are invoices emailed out? If not how do I test to make sure emails would go out?

Related Request ID(s)
None

What have you already attempted?
Sending emails in test mode

What are you working on?
Ministorage management software

cursive heronBOT
#

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

Code
No code...............

Question
Tennessee tax registration needs my LegalName instead of my business name as a sole-proprieter individual. How can I adjust that or push through the tax registration.

What have you already attempted?
I can't find where to change from individual to business to be able to provide my name for Tennessee in Stripe.

What are you working on?
Tax Registration

cursive heronBOT
#

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

Code
stripe.confirmSetup({
elements,
confirmParams: {
return_url: '<?=url('secure-checkouts')?>',
},
redirect: 'if_required'
}).then(function(result) {
if (result.error) {
// Display error message
$('#card-errors').removeClass('d-none');

Question
card load some time and some time does not

What have you already attempted?
card stripe details loads sometime and some time stopeed

What are you working on?
checkout custom

cursive heronBOT
#

@silver saffron pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How can I set a higher mandate maximum amount on checkout session creation, without changing the price of the product?

Related Request ID(s)
req_55RDN4m57oUUfL

What have you already attempted?
My subscription quantity can change month to month and recurring payments for Indian customers always fail if they go up, I think because it's now above the mandate maximum amount. Having them cancel and recreate the subscription every period is not a (sane) option.

What are you working on?
Approximated.app, a SaaS that connects custom domains to platforms, marketplaces, etc.

cursive heronBOT
#

@hallow stratus pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I would like to display and save for future payments my users wallet card on iOS using Stripe Apple Pay API. See screenshots, for now it asks for Card infos

Related Request ID(s)
null

What have you already attempted?
reading the Apple Pay doc

What are you working on?
Building Apple Pay for my marketplace on React Native (expo)

#

@weary crescent pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
export const stripeAddressOptions: StripeAddressElementOptions = {
mode: 'billing',
display: {
name: 'full',
},
};

<AddressElement options={stripeAddressOptions}/>

Question
is it possible to hide address line 1 when using the AddressElement? I see the docs show configuration to show/hide phone only

What have you already attempted?
We have a version of checkout that uses its own address fields where we do not collect address line 2 and it's included with address line1. Our new checkout uses AddressElement but we'd like to hide address line 1

#

@jade basin pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
i want to create webhook php script for Stripe to send me info on session checkout. i can read the input but i dont know how to parse this output from Stripe in PHP so i can then access variables.

s:3370:"{
"id": "evt_1QWgwfCacZAIV0DJxOkNz3SW",
"object": "event",
"api_version": "2017-06-05",
"created": 1734365697,
"data": {
"object": {
"id": "cs_test_a10dNN05nD0KEGZjkEE0nOFVydG00EYUgiH8TdrQnpv8NwcwkHqvMfb5fc",
"object": "checkout.session",
"adaptive_pricing": {
"enabled": false
},
"after_expiration": n

Related Request ID(s)
none

What have you already attempted?
i tried json_decode but it doesnt work. how do i decode this Stripe's output and assign it to variables?

What are you working on?
charge card to customer, API reports successful charge (i have to intercept and parse it)

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.

This Discord server is closed for the holidays but we look forward to chatting with you again when we return on January 2nd!

cursive heronBOT
#

✅ Stripe developers are currently available on Discord!

cursive heronBOT
#

@languid rune pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hello! I'm trying to build a custom checkout portal using https://docs.stripe.com/checkout/elements-with-checkout-sessions-api/changelog and an external payment method here: Scalapay.

Related Request ID(s)
req_N6rOQ9MfOqqFQJ

What have you already attempted?
When using the Elements without the CheckoutProvider then I can pass `externalPaymentMethodTypes: ["external_scalapay"]` as an option. But I can't find a way to use external payments via the Checkout / Session API.

I think I can get it to work via creating payment intent, but I would lose so much and my client won't be able to use the full potential of Stripe. (+ I'd love to use Elements with Checkout Session)

What are you working on?
I'm building an e-learning platform for a gym (>100k/monthly)

cursive heronBOT
#

@storm bloom pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hey, I am using stripe subscriptions service for our products. At the end of every month I want to reset their usage of product to 0 that we keep in our DB. Now this works fine with a monthly subscription as stripe sends us customer.subscription.updated at the end of month. But when it comes to annual stripe will send customer.subscription.updated after an year. Is it not possible to make stripe send it monthly too? Or I will have implement something on our side for this?

Related Event ID(s)
NA

What have you already attempted?
I tried to read docs for create subscription api but it does not mention any config for that

What are you working on?
Building platform that automates sales, survey and support for a company using AI

cursive heronBOT
#

@hidden stratus pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
getPaymentIntent({
token: stripeToken,
payment: {
state: 'initiated',
device_type: 'mobile',
automatic_payment_methods_enabled: 'true',
gateway_details: {
success_url: `${Config.BASE_URL}/payments/complete?token=${stripeToken}`,
type: 'session'
}
}
});

Question
I'm using same backend for both web (react app) and mobile (react-native) app and I'm getting the correct response and payment methods in the response. But I'm only able to see one out of six payment methods on app but all the methods on web. Not sure what is causing this.

What have you already attempted?
I have made sure I'm on the latest react- native stripe sdk. I have checked if im sending correct currency and amount. I have checked stripe dashboard for enabled payment methods.

What are you working on?
Adding more payment methods in existing stripe payment gateway

#

@grave heart pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
response = Stripe::PaymentMethodConfiguration.list({}, { stripe_account: stripe_account_id })
result = response.data

Question
Hi, I want to fetch the payment method configuration to obtain all the payment methods that are enabled **for a specific account** on Stripe dashboard, so I am using `PaymentMethodConfiguration` call for the same. However, I am getting an array of 2 configuration objects in the response, one with `parent` and one with `parent` as null. Which configuration should I choose?

What have you already attempted?
As far as I could validate, the object with parent ID gives me the proper configuration, but I want to be sure

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

#

@pale coral pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
public async withdrawGoCoins(
userId: string,
amount: number,
currency: string
): Promise<{ response: string; message?: string; payout?: object }> {
const userData = await this.userRepository.findUsingId(userId)
if (!userData) {
throw new CustomError(USER_RESPONSE_MESSAGES.USER_NOT_FOUND, 404)
}
if (!userData.stripeAccountId) {
throw new CustomError(PAYMENT_RESPONSE_MESSAGES.ACCOUNT_NOT_FOUND, 404)
}

Question
I am creating connected account for every user, to transfer funds from the connected account of the organization [owner] to users.

What have you already attempted?
I have tried, creating stripe.transfer, then stripe.payout

What are you working on?
this is a freelancing website, with wallet, where user can add funds, and withdraw it too.

#

@slim pulsar pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
```
const { error: stripeError } = await stripe.confirmPayment({
elements,
clientSecret,
confirmParams: {
return_url: `${window.location.href}&redirect_status=succeeded`,
},
redirect: "if_required",
});
```
and there's an 'AddressElement' in the HTML/JSX part of the code which is conditionally rendered for Afterpay.

Question
Question about "Afterpay" integration and submitting of 'shipping address' - I am getting 'card declined' generic error -
```
{
"error": {
"code": "payment_intent_payment_attempt_failed",
"decline_code": "generic_decline",
"doc_url": "https://stripe.com/docs/error-codes/payment-intent-payment-attempt-failed",
"message": "The payment failed.",
...
...
"type": "card_error"
}
}
```

What have you already attempted?
I am trying to follow 2 step payment process with -

  1. Creating 'paymentIntent' without a 'shipping address' (using server-side secret key and Java SDK)

  2. Confirm payment using 'Stripe JS' sdk using client-secret and sending 'shipping address'.

This second step is giving me the error.

Earlier, I've tried sending 'shipping address' with the PaymentIntent creation on the server-side but that leads to 'confirm' failing due to the address being sent automatically again.

What are you working on?
Trying to integrate Afterpay (through Stripe) for a travel website client I am working for.

cursive heronBOT
#

@dark fox pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
stripe
.handleCardPayment(
response.intent_secret
)

Question
Why iam getting error
payment_intent_unexpected_state
You cannot confirm this PaymentIntent because it has already succeeded after being previously confirmed.

What have you already attempted?
iam using
$intent = WC_Stripe_API::request( $request, 'payment_intents' );

	if \( ! empty\( $intent\-\>error \) \) {
		$intent\_id = $order\-\>get\_meta\( '\_stripe\_intent\_id' \);
		if \( $intent\_id \) {
	$intent = WC\_Stripe\_API\:\:request\( array\(\), "'payment\_intents'/$intent\_id ?expand\[\]=payment\_method", 'GET' \);

What are you working on?
Iam giving oneclick upsell compatiblity of express checkout of woocommerce stripe plugin for my plugin 'Cartflows'

#

@buoyant vale pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We have integrated Stripe Financial and we are using it for ACH payments with Stripe, but we are also using other ACH payment gateways like ACHQ, USAePay, so we want to use Stripe Financial for those as well just for getting complete account information like full account number and routing number, so that after authorization we can pass the account information to the concerned gateway. My question is can we get complete information of account number after authorizing with Stripe Financial?

Related Request ID(s)
req_tXZyl3pz64UcjI

What have you already attempted?
I tried to pass
account_number in following permissions but it gives error:
"permissions": [
"payment_method",
"balances"
],

cursive heronBOT
#

@unique epoch pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
our current subscriptions are created with Monthly and Yearly billing periods with stipe (using calendar-based billing cycles)
const price = await stripe.prices.create({
currency: 'usd',
unit_amount: 1000,
recurring: {
interval: 'month',
},
});

Question
We're encountering a challenge aligning Stripe subscription billing cycles with an external coupon system.
current subscriptions are created with Monthly and Yearly billing periods with stipe (using calendar-based billing cycles)
Coupons generated by an external service for exactly 30 days (monthly) or 365 days (yearly)
Issue: Calendar-based billing cycles don’t align with fixed-day coupon expiration.

What have you already attempted?
Planed Solution
Create New Prices:
Monthly: interval: day, interval_count: 30
Yearly: interval: day, interval_count: 365
Migrate Existing Subscriptions with a scipt: Update active subscriptions to use these new prices with the same amounts but adjusted intervals.

cursive heronBOT
#

@pale coral pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
const topup = await stripe.topups.create({
amount: 5000,
currency: 'cad',
source: 'btok_us_verified',
description: 'Test adding funds to balance',
})

console.log('Top-up successful:', topup)

Question
I am trying to add balance in my stripe account but getting error Top-up creation is not supported for country CA and currency CAD, I want to test stripe.transfer from stripe account to a connected account for CAD only

What have you already attempted?
I have directly tried transfer in test mode and have gotten insufficient error

cursive heronBOT
#

@slim pulsar pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
const { error: stripeError, paymentIntent: stripePaymentIntent } =
await stripe.confirmPayment({
elements,
clientSecret,
confirmParams: {
return_url: `${window.location.href}&redirect_status=succeeded`,
payment_method_data: billingDetails
? {
billing_details: {
address: billingDetails.address,
name: billingDetails.name,
email: billingDetails.

Question
I am getting 'card_error' on Afterpay 'confirmPayment' step. Payment intent link - `/v1/payment_intents/pi_3QcjzAPHzT7aV8oo0QJO0ptJ/confirm`.

What have you already attempted?
I've tried sending both 'billing' and 'shipping' address as part of the 'confirmPayment' request using the StripeJS method. Raising a new thread because the original thread seems to have closed or doesn't let me add new messages.

What are you working on?
Integrating Afterpay through Stripe for AU based customers.

cursive heronBOT
#

@azure shore pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Is there a webhook events that triggers if a invoice due date is past, so the invoice status is set to past due?

Related Request ID(s)
in_1Qbh8PRqhluqhk6Oui9gLJaX

What have you already attempted?
I already have attempted to use invoice.overdue and invoice.update, however it does not seem that there is a update event that triggers when an invoice switches status to past due.

cursive heronBOT
#

@haughty stream pressed the 🤨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
emails would be send before renewing the subscription to end users

What actually happened?
Users reported they did not get any mail regarding the upcoming charges

Reproduction Steps
not sure how to reproduce that as We were expecting end users to get the email

Question
why did the subscription renew email did not trigger at required time period

What are you working on?
working on creating a seat based subscription system

#

@drifting tiger pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
const stripe = await loadStripe(stripeApiKey, {
stripeAccount: organization.value.payment_provider_account_id,
});

Question
Is there any recommended way to use Stripe JS for this scenario? https://docs.stripe.com/connect/direct-charges-multiple-accounts

I need to first instantiate Stripe js without `stripeAccount` (as I first create a setupIntent for the platform) but then I need to call handleNextAction for a stripe instance with `stripeAccount` (as the final payment intent is a direct charge on the connected account)

What have you already attempted?
I've got it to work by calling loadStripe twice but was thinking that in order to avoid performance issues I could just

#

@rare meadow pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
i am using the Generate Card Token API
but in the documentation it says that i need to enable access to raw card data APIs but i replied that to send the mail i need to provide some additional compliance documents (Self Assessment Questionnaire (SAQ) D or On-site Attestation of Compliance (AoC)) to you or your vendor. but i am just testing is there any way to Enabling access to raw card data APIs

Related Request ID(s)
0

What have you already attempted?
test case

What are you working on?
dev

#

@marble lava 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/using-link-to-save-your-payment-information?locale=zh-CN

Question
we are already stripe user and use stripe to accept user payments. Now we have some question regarding to LINK.

  1. how do we use LINK to set up autopay on our website? could you please provide us an example?
  2. If we set up auto payment method using LINK, do we still risk to store or keep user private identification information or user billing information will be stored on Stripe (on your side)? Do you suggest if we update our privacy policy update or improve our database security level or user information will be safe to store on your end?

Thank you for your help!
Best regards,

What have you already attempted?
User can click button on our website to pay using stripe

What are you working on?
Setting up autopay for our website using LINK

cursive heronBOT
#

@pale coral pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
const paymentIntent = await stripe.paymentIntents.create({
amount: 20000, // Amount in cents (e.g., $20.00 CAD)
currency: 'cad',
confirm: true,
payment_method: 'pm_card_visa',
payment_method_types: ['card'],
capture_method: 'automatic_async',
confirmation_method: 'automatic',
})

Question
I am adding funds to stripe test mode using above code, its successful but the funds are not available to use for transfer (I want to test transfer to connected account),

What have you already attempted?
Balance: {
object: 'balance',
available: [ { amount: 0, currency: 'cad', source_types: [Object] } ],
connect_reserved: [ { amount: 0, currency: 'cad' } ],
livemode: false,
pending: [ { amount: 28710, currency: 'cad', source_types: [Object] } ]
}

when I print the balance object, its keeps adding it in pending, and its never available

#

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

Question
please i need documentation, i want todo this
Accept a payment
Securely accept payments online.
https://docs.stripe.com/payments/accept-a-payment?platform=react-native&ui=payment-sheet

but i am including a stripe connect account,
what do i need to do differently

Related Request ID(s)
none

What have you already attempted?
i have implemented what is on this page
https://docs.stripe.com/payments/accept-a-payment?platform=react-native&ui=payment-sheet

but on the react native application,
it says payment no such payment id, but the payment intent is created on my dashboard against the connect account successfully

#

@snow basin pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
stripe trigger same invoice.payment_failed event multiple times in each payment failure attempt

Related Event ID(s)
invoice.payment_failed [evt_1QcZBHDzTJ2CWr9AuiWltUcF] 2025-01-02 01:10:19 <-- [200] POST http://localhost:8080/webhook/stripe-webhook [evt_1QcZBHDzTJ2CWr9AuiWltUcF]

What have you already attempted?
for example if payment failed 1st attempt it's been fired once if failed second time it's been fired 2 times and increase accordingly also in each attempt it creates new invoice and change attempt count for each invoice.

And also it charges for all invoices created during time of failure not only for the most recent one

cursive heronBOT
#

@raw coral pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I got charged double with invoice

Related Request ID(s)
https://dashboard.stripe.com/test/payments/pi_3QclXEDCTH2V3EmJ1S2P4FHe

What have you already attempted?
I create an invoice, add a 1200 Baht line item, and when finalize that invoice, I get a 2400 Baht Payment Intent.

What are you working on?
When I check with other invoice, there is not Applied balance like this one

#

@wise lantern pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
const updatedSubscription = await stripe.subscriptions.update(subscriptionId, {

items: [{
id: itemId, // The current subscription item ID
price: selectedPrice, // The new price ID

}]
});

Question
How can i make sure that the subscription update at the next billing cycle

What have you already attempted?
as describe in the code

What are you working on?
downgrade plan flow

cursive heronBOT
#

@tribal tree pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
const session = await stripe.checkout.sessions.create({
success_url: 'https://example.com/success',
automatic_tax: {
enable: true
},
line_items: [
{
price: 'price_1MotwRLkdIwHu7ixYcPLm5uZ',
quantity: 2,
},
],
mode: 'payment',
});

Question
If customer enter Quebec Canada address, they will get tax, but only total tax, it's not split tax like we see in the preview of product price.

How can I have slit tax showing in the checkout sessions like below?
GST 5% $250.00
QST 9.975% $498.75

Thanks

What have you already attempted?
I tried create tax rates and send it via API, it works.
But with that solution I need know customer address to do that (I don't have address for all my customers)

What are you working on?
My website need a checkout solution in Stripe for our service subscriptions

#

@violet spruce pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I have a SaaS with monthly and yearly subscriptions. Now I wanted to add a lifetime option, but there is literally no webhook that I could use to identify if a certain customer has made a purchase of a product. E.g. I tried to test purchase something with a 100% off discount, but I didn't get anything that I could use.

Related Event ID(s)
evt_1QcmugEfPMyDfTy9oYF8Cswl

What have you already attempted?
Well, I went through the Webhook Events but found nothing that could link these two together

#

@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 a prorated invoice. Is there any way to do this without invoicing? And when adding the free trial days it just results in a new invoice after the free trial ends. How to just move the date to the retry?

Doc/Guide Links
https://docs.stripe.com/billing/subscriptions/billing-cycle?locale=en-GB#changing

What are you working on?
Sports data with subscription based charging

#

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

Question
What is the best way to get into a video call with someone to discuss the potential implementation plan I made for my customer to implement SEPA Direct debit from scratch?

Related Request ID(s)
?

What have you already attempted?
I have read the API docs and created a flow chart with the needed API requests that I (think I) need for my implementation. I would like to discuss this with someone to see if I missed anything and if there are any other scenarios that I need to keep in mind.

What are you working on?
Implemeting SEPA Direct Debit into the ERP I'm building for my client

cursive heronBOT
#

@tribal merlin pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
<Modal
>
<ModalContent>
<ModalHeader className="flex flex-col gap-1">
{t("modal.title")}
</ModalHeader>
<ModalBody>
<Elements stripe={stripePromise} options={options}>
<CheckoutForm
monto={carrito?.total_a_pagar}
codigoCarrito={codigoCarrito}
lng={lng}
onLoading={async (loading) => {
}}
/>
</..>
</..>
</..>
</..>

Question
I’m having trouble with Stripe’s PaymentElement in a React/Next.js checkout. In many cases, the payment form simply never loads the fields for the user to enter their card details—it just spins indefinitely on the frontend. These PaymentIntents remain stuck in INCOMPLETE status.

There are no errors in my console, and no errors in my backend logs.
The PaymentElement container appears, but it never renders the input fields.

https://paste.pics/SM21Y

What have you already attempted?
- I checked the Stripe logs in the Dashboard to confirm the PaymentIntent is being created. It shows no subsequent confirm step for some of these incomplete attempts.
- I added console logs in my frontend code to ensure the submit event triggers. It appears to be firing, but I’m not certain if `stripe.confirmPayment` is returning an error that is silently swallowed.
- I reviewed the Stripe docs on PaymentElement and `confirmPayment` usage.

What are you working on?
I’m building an e-commerce-like checkout for digital patterns (using Next.js + React). Stripe’s PaymentElement is supposed to let users enter card details.

#

@heavy berry pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question

  1. A logged in user's id is being passed inside metadata while checkout session is being created. This data is being accessed from the event checkout.session.completed but not in invoice.payment_failed while payment is being failed. I am using subscription during checkout session creation. How to retrieve metadata in the invoice.payment_failed event?
  2. A customer is being created even if payment is failed. I want to reuse that id if I change the checkout session. How?

Related Event ID(s)
evt_1Qcmq1Fsy1Qna4k3Kejt718S

What have you already attempted?
$checkoutSession = $this->stripe->checkout->sessions->create([
'payment_method_types' => $paymentMethods,
'line_items' => [[
'price' => $priceId,
'quantity' => 1,
]],
'mode' => 'subscription',
'metadata' => [
'user_id' => Auth::user()->id,
],
]);
return response()->json(['id' => $checkoutSession->id]);

#

@frosty coyote pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We're seeing an increased amount of "funds unavailable" on refunds, and I am trying to work out if this is just natural or if we have a problem somewhere.

I want to clarify some behavior that I am unable to test as the balances don't clear for 7 days in test mode (and I cant wait 7 days to resolve this).

If I have a direct payment on a connected account for 1000 with an application fee of 100. If I was to refund that payment including refunding the application fee. What would happen, if the platform account didn't have the balance to refund the application fee?

Related Request ID(s)
N/A

What have you already attempted?
I attempted to setup this scenario in test mode, but its difficult to test owing to the application fees not being available for 7 days.

#

@manic igloo pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I am trying to implement tax in my platform. I have customers and then connected express account. I am trying to charge my customers with tax included and keep getting error i am not able to resolve. The Error is "resource_missing - customer".

Related Request ID(s)
req_G38oRomSAIWZ94

What have you already attempted?
I tried to go through the documentation but couldn't find what i am doing wrong

What are you working on?
I am building an app where i provide a software platform for washers and customers for laundry.

#

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

Question
How can I get in a chat with someone to discuss my integration plan? I cannot reply to the post in dev-help since I don't have the right permissions and I can also not send @soma a message since I'm not in the friend list. What is the easiest way to get in touch with someone in a private chat for easier communication?

Related Request ID(s)
?

What have you already attempted?
Get in touch via dev-help

What are you working on?
Integration SEPA Direct Debit into the ERP we're building for our client

#

@unkempt edge pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We have an integration with Stripe that processes two types of refund events: "charge.refunded" for creating refunds and "refund.updated" for updating them. In our DEV environment, we occasionally encounter an issue with CARD payments where both events are received almost simultaneously. This can lead to inconsistencies in the refund amounts created.

Are you aware if this scenario is also occurring in the production environment? Unfortunately, we’re unable to conduct direct testing in production.

Related Event ID(s)
re_3QcnuTLOFmVUUygj1hAIvebP

What have you already attempted?
In our code we create a Refund Transaction when we recevide a SUCCEEDED charge.refunded event. Later on, when we receive the refund.updated we check in Database if there's already a transaction created, if so we update otherwise we create if needed. Right now since both events are almost received same time there's no time to create a transaction before checking it's existance.

#

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

Question
I have used un-captured payment to put the amount in escrow and then transferred to the connected account using transfer api. If it is not captured for more than 7 days it is cancelled automatically.

Related Request ID(s)
req_Vk8Gb9gADlZVOm

What have you already attempted?
we are charging the card with uncaptured payment and after user action in couple of days, when user action to transfer it to another user, then we capture that payment and with that charge id the amount is transferred to another customer.

What are you working on?
Building a task management system, where the client put the task along with the payment at the same time, and payment is transferred to the user once the task is completed on user's action

cursive heronBOT
#

@pliant meadow pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We had a price migration for the 1st of Januar 2025 for all subscriptions. From 49€ to 58€
Around 160 subscriptions were not migrated by us due to a faulty backend code on our end.
Now the customers only paid 49€ instead of 58€. Is it possible to charge the remaining 9€ and set the new price for the next billing cycles?

If it's not possible we will just migrate them to 58€ and then the customers were lucky to save 9€

Related Request ID(s)
none

What have you already attempted?
n

cursive heronBOT
#

@graceful night pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hello I have a question regarding subscriptions. My boss wants to let customers have some paid, optional feature they can opt in/out anytime in our app. How to best implement this?

One way that I have seen is to in API add line item to the draft invoice for subscription

The other is add a new price for the subscription product, but that way I can't add this to the customer portal and I dont want to create separate product object

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

What are you working on?
an app with automatic subscription model

#

@wind sparrow pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Im using the stripe api for java, but when i try to cast the event to a session it gives me an error, and the event object doesn't even contain the raw json object

Related Event ID(s)
checkout.session.completed

What have you already attempted?
if (event == null) {
return;
}

    switch \(event.getType\(\)\) {
        case StripeEventType.CHECKOUT\_SESSION\_COMPLETED \-\> {
            event.getDataObjectDeserializer\(\).getObject\(\).ifPresentOrElse\(
                    object \-\> handleCheckoutSessionEvent\(\(Session\) object\),
                    \(\) \-\> System.out.println\("Unable deserialize " + event.getType\(\) + " event"\)
            \);
        }

What are you working on?
Im creating a discord bot that adds roles and creates channels when a user completes a payment, and to do this im setting the stripe checkout client_reference_id to the discord user id

#

@hushed jasper pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I want to offer a subscription that is 9.99 per month OR 99.99 per year. I do not know the best way to do this. My preference would be to control it all via my code and the API. Minimize the need to login in to your control panel

Related Request ID(s)
NA

What have you already attempted?
Looking at subscriptions->create() docs. I see you pass in items.price. Does this allow for dynamic control of price? I don't see a way to change the frequency (daily, weekly, monthly or yearly).

#

@wintry timber pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hi,
I've setup webhooks for connect accounts. I can see this when I check the details of the webook endpoint in the Stripe workbench.

Recently some connected accounts got their accounts restricted due to requirements. My understanding is that changes in requirements would result in an account.updated event which I am listening for already but I don't think I received any events for these accounts. I looked at the history of received account.updated events and I confirmed I did not get any. Is there something else I have to configure to get events for connected accounts?

Related Event ID(s)
evt_1QUvUAH2wLHuCKJpuI38vCdo

What have you already attempted?
I have set up the webhook endpoint which I have confirmed it works because during onboarding I also get these events.

#

@obtuse schooner pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
For PaymentIntents that do not have an associated invoice (i.e., where invoice is null), I can find the discount amount as a plain number in the session data. However, I need to identify which coupon was applied for the discount, specifically the coupon ID. For PaymentIntents with an invoice, I can retrieve the coupon details through the discounts field in the invoice object. But for PaymentIntents without an invoice, I cannot find the associated coupon ID. Could you clarify how to retrieve the coupon ID for these PaymentIntents?

Related Request ID(s)
-

What have you already attempted?
-

What are you working on?
I am working with the Stripe API to retrieve and process PaymentIntent data

cursive heronBOT
#

@rapid siren pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
I have Google and Apple Pay options enabled and configured on my dashboard.

Question
I need to be able to debug or test the Google and Apple Pay integration, as there are qualifying devices and this payment option is not showing up. This is bringing me a lot of problems and I would like to detect the problem.

What have you already attempted?
N/A

#

@hushed dragon pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
What's the best practice for customer management when handling Discord accounts?
I'm mainly using webhooks and the API (stripe-node) and I recently discovered the topic of 'customers'.
I currently let Stripe handle customers but I'm unsure if I should handle them.
My questions now: Should a customer be created for every subscription? Or one customer per Discord user? (If yes, how do I bind a Discord user ID to a customer and ensure that only one customer exists)
So what is recommended here?

Doc/Guide Links
https://docs.stripe.com/api/events/types?api-version=2024-11-20.acacia
https://docs.stripe.com/api/invoices/object

What are you working on?
Premium Subs for my Discord Bot

#

@unkempt edge pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We have an integration with Stripe that processes two types of refund events: "charge.refunded" for creating refunds and "refund.updated" for updating them. In our DEV environment, we occasionally encounter an issue with CARD payments where both events are received almost simultaneously. This can lead to inconsistencies in the refund amounts created.

Are you aware if this scenario is also occurring in the production environment? Unfortunately, we’re unable to conduct direct testing in production.

Related Event ID(s)
re_3QcnuTLOFmVUUygj1hAIvebP

What have you already attempted?
In our code we create a Refund Transaction when we receive a SUCCEEDED charge.refunded event. Later on, when we receive the refund.updated we check in Database if there's already a transaction created, if so we update otherwise we create if needed. Right now since both events are almost received at same time there is no time to create a transaction before checking it's existance.

#

@leaden leaf pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I have a Laravel 10 web application and would love some help getting the setup correct so I can test my webhook processing locally.

Related Event ID(s)
N/A

What have you already attempted?
I've got the Stripe CLI installed and authorized. I also manually entered my webhook URL into Postman to verify the URL and debug breakpoints.

cursive heronBOT
#

@light shell pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Webhook failed in succession - to succeed on retry

Related Event ID(s)
evt_1QcGKEIG0PHzRMlg9brT655j, evt_1QcGNDIG0PHzRMlgfoC2KNqh, evt_1QcGNoIG0PHzRMlgmK7o9LwU, evt_1QcGLyIG0PHzRMlgGqAYoyQ6, evt_1QcGL5IG0PHzRMlgXYMvhC3N

What have you already attempted?
We are looking to test our AWS Endpoints using Stripe test mode, but are unsure how to trigger a big batch of webhook requests using the Stripe time clock (max subscriptions of 3 at a time per clock)

What are you working on?
How can we test our api endpoints connected to stripe webhook before subscriptions renew next month

cursive heronBOT
#

@dusky fable pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We have a Java application using Stripe's Java SDK to interact with the Stripe API. It utilizes two Stripe accounts: one for customer payments via Stripe Connect and another for collecting payments from our customers. For Stripe Connect, we include the beta header `unified_accounts_beta=v1` in a static block like this:
```
static {
Stripe.addBetaVersion("unified_accounts_beta", "v1");
}
```
Since both Stripe accounts use the same SDK, calls for the non-Stripe Connect account result in this error:
```
Invalid Stripe API version: 2024-06-20; unified_accounts_beta=v1. You do not have permission to pass this beta he
```

Is there a way to overcome this?

Doc/Guide Links
https://docs.stripe.com/connect/accounts

What are you working on?
Stripe integration that allows our customers to collect payments

#

@proven pine pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
migrate plaid with stripe financial accounts for adding account details

Related Request ID(s)
Needs to know what api call i need to use

What have you already attempted?
https://api.stripe.com/v1/setup_intents/{{clientSecret}}
and gives error as provide secret key , but adding this code on client side not sure which is correct api call
This API call cannot be made with a publishable API key. Please use a secret API key. You can find a list of your API keys at https://dashboard.stripe.com/account/apikeys.

#

@prime yoke pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
After updating Stripe from v40.14.0 in my .NET application, I changed AddExpand from charges.data.balance_transaction to latest_charge.balance_transaction. However, the balance_transaction field in the latest_charge object of a PaymentIntent now always returns null. I need help understanding why this happens and how to resolve it.

Related Request ID(s)
req_LOyV2uYssdkECD

What have you already attempted?
Verified that the AddExpand("latest_charge.balance_transaction") option is correctly set.
Checked the PaymentIntent response and noticed the latest_charge field exists but has a null balance_transaction.

What are you working on?
Upgrading stripe from 40.14.0 to 47.1.0

#

@fallen fog pressed the 🤨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
Expect a given past due status subscription (for a connected account, in test mode) to appear in results when using Subscription list endpoint (via Python library).

What actually happened?
Subscription not appear in results of subscription list via Python/API, but does appear when using Stripe CLI in workbench, and also retrievable via subscription.retrieve via Python/API.

Reproduction Steps

  1. Create a subscription in Stripe dashboard using 4242 card number as default payment method.
  2. Add test clock.
  3. Update payment method on sub to declined card.
  4. Advance test clock so sub is in past_due state.
  5. Call `stripe.Subscription.list(status="all", stripe_account="acct_<redacted>").auto_paging_iter()` and iterate over results. Expected sub not found.

Question
I'm trying to understand why a given subscription I've created in test mode that is past_due does not appear in subscription.list results but is retreivable via subscription.retrieve.

What are you working on?
Bug fix and QA instructions re: an app for contributing to news orgs

#

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

Question
We're using stripe connect with standard accounts. We're the platform. Once we send the user to hosted onboarding and they return how do we link to the users specific dashboard? For example in our work flow the user could have one strip account with 2 locations. We would like to have two link buttons to take the user to the dashboard. Where do we get this?

Related Request ID(s)
https://docs.stripe.com/api/connected-accounts

What have you already attempted?
Cannot find anything in the API Docs.

cursive heronBOT
#

@dull python pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We have recurring payments that have recently been failing with the error: "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."

We set up future payments with `setup_future_usage` to `off_session` and past off-session payments have been successful, so we are puzzled why the most recent one has been failing.

Related Request ID(s)
https://dashboard.stripe.com/acct_1ETDQ5LQBKvCmVQC/logs/req_Kr6UGk5XMl8PAd?t=1735681126

What have you already attempted?
We looked at past successful charges for the customer and we noticed that the payment method ID, for the same recurring payment, has been changed from `card_...` to `pm_...`. Could this have something to do with the error?

What are you working on?
We sell subscriptions, i.e. recurring payments

#

@golden bone pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I implemented affirm. In test mode when I cancel the payment it is redirecting to the stripe home page instead of the redirect URL. I have passed the redirect URL to the confirm payment intent

Related Request ID(s)
NA

What have you already attempted?
NA

#

@eternal basin 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/migrate-to-stripe

Question
I am working on health related project and a client wants to migrate to our platform and is asking if we could transfer his stripe account data.

what I need:
There is a connected account on stripe A and want to migrate all of it's data to stripe B.

want to know:
the process for achieving this task?
currently the goal is to move express type account but it would be helpful to know if the process is same for standard type as well.

What have you already attempted?
Not yet. currently looking into docs.

What are you working on?
Health related project mainly used for therapy.

#

@haughty patrol pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Duplicate Apple/Google Pay Cards on Customers While Using Payment/Setup Intents

Current Behaviour: Each Apple/Google pay transaction creates a new payment method token, resulting in multiple entries of the same card in the customers wallet.

Issue: Customers see multiples of the same payment method

Note: A lot of our customers opt in to autopay so need to support off session re-occurring payments in the future with multiple cards.

Any stripe recommended approaches for handling this?

Doc/Guide Links
https://support.stripe.com/questions/how-can-i-detect-duplicate-cards-or-bank-accounts#:~:text=Stripe%3A Help %26 Support-,How can I detect duplicate cards or bank accounts%3F,to detect a returning customer.

What are you working on?
Existing online store that sells a service - customers can purchase monthly access or set up card to charge them monthly.

cursive heronBOT
#

@hasty idol pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Just want to get a reality check:
When creating a product in `product_data`, there is NO way to specify the "quantity" indicator, right?

Related Request ID(s)
none

What have you already attempted?
Searched through the documentation, just making sure.

#

@unkempt hull pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I have Stripe connect for users to sell tickets on my platform. If I don't want to deal with calculation of taxes and jurisdictions and I don't want to take a fee on this particular event, can I tell my user that the price they set will be tax inclusive and then they just have to deal with taxes on their own. If so, does it matter what I show on my paymentIntent?

Doc/Guide Links
https://docs.stripe.com/api/payment_intents/create?lang=python

What are you working on?
An event ticketing app

cursive heronBOT
#

@hollow wolf pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I have written an API that creates payment intent usinga financial connection account ID, The payment intent status is succeded in test mode but not in live mode, its status is processing in live mode . Am I missing something?

Related Request ID(s)
https://dashboard.stripe.com/test/payments/pi_id

What have you already attempted?
$response_obj = $stripe->paymentIntents()->create([
'amount' => $amount,
'currency' => 'usd',
'customer' => $customer->id,
'confirm' => true,
'source' => $ba->id,
'payment_method_types' => ['ach_debit'],
// 'payment_method' => $achData['stripeToken'],
'description' => 'Donation to Ummah Relief International',
]);

cursive heronBOT
#

@prime ember pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I recently added an invoice.payment_succeeded event to production webhook.

I want to send this event that has occurred earlier today.

how can i "resend" these events to be picked up by my new endpoint?

Related Event ID(s)
evt_1QbjuIRwZsexd3LvcLFgAVCW

What have you already attempted?
stripe events resend evt_1QbjuIRwZsexd3LvcLFgAVCW --api-key {KEY HERE} --live --webhook-endpoint={ENDPOINT HERE}-c

when i send the event, it appears as success in the dashboard but my webhook never received the event. when i look at the event, i see the following values

"pending_webhooks": 1
webhooks_delivered_at: null

is there something i'm missing? can these events be resent?

#

@glad furnace 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/create_preview/

Question
Hi team,
We currently calculate taxes using an external system and update invoices with manual tax amounts as outlined here: Manual Tax Amounts Documentation.(https://docs.stripe.com/invoicing/taxes/manual-tax-amounts)

The issue we're encountering is that I cannot find a way to include tax amounts from our external system when creating a preview invoice. I’m wondering if this functionality is unsupported or if there’s something I might be missing.

What have you already attempted?
I’ve attempted passing tax_amounts in the payload while creating a preview invoice using the Create Invoice Preview API, but it doesn’t seem to work as expected.

What are you working on?
Our system lets customers preview invoices with tax calculations. Could you clarify if this is supported or suggest any workarounds?

cursive heronBOT
#

@marsh ferry pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hello Stripe Team,

I’m seeking your guidance regarding a feature for payments that require time to clear, such as ACH. Specifically, I’d like to know if there’s a way to configure Stripe to send:

  1. A custom webhook when a payment is initiated but still pending.
  2. Another webhook if the payment remains pending after a specific number of days, to provide an update on the delayed status.

Does such functionality currently exist in Stripe, or is there a workaround to achieve this behavior? Your assistance would be greatly appreciated.

Thank you!

Related Event ID(s)
https://dashboard.stripe.com/workbench/inspector/sub_1QWp45P5z4SsTbbxbfrKxNWv/events

What have you already attempted?
I've tried existing webhook events but it is hard to distinguish ACM payment from other payments

#

@median dome 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://github.com/stripe/stripe-ruby/wiki/Migration-guide-for-v13/

Question
The guide says "For configurable options that are not specified or not currently available on StripeClient, we fall back to the global StripeConfiguration." However that doesn't seem to be the case.

What have you already attempted?
Global config is NOT used, this example shows `open_timeout` being ignored

```
Stripe.api_key = YOUR_KEY
Stripe.api_version = YOUR_VERSION
Stripe.log_level = 'debug'
Stripe.open_timeout = 0.01

Stripe::PaymentIntent.retrieve('pi_3QUbknF2v1Yns8Jb0n84xrPS')
# Shortened to fit
# ERRO Failed to open TCP connection to api.stripe.com:443 (execution expired)"

c = Stripe::StripeClient.new(YOUR_KEY, stripe_version: YOUR_VERSION)
c.v1.payment_intents.retrieve('pi_3QUbknF2v1Yns8Jb0n84xrPS')

# DEBU ConnectionManager request complete
```

cursive heronBOT
#

@cinder tendon pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Is there any way via API to return the detailed breakdown of a sales tax rate, e.g. state tax 6%, county 2%, etc?

Related Request ID(s)
n/a

What have you already attempted?
Searched API doc

What are you working on?
Sales tax rate calculator screen

#

@toxic onyx pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
const stripe = useStripe();
const elements = useElement();

const { error: submitError } = await elements.submit();

const { error, confirmationToken } = await stripe.createConfirmationToken({
elements,
params,
});

Question
I am using StripeJS elements (both the PaymentElement and the ExpressCheckoutElement) with React. I am generating a confirmation token client-side, like so https://docs.stripe.com/payments/build-a-two-step-confirmation#create-ct.

I would like to know - which Stripe-returned errors from the above code should I show to the customer? Versus which are automatically shown by stripe as red text on the StripeJS elements, or which contain technical errors a customer should not see?

What have you already attempted?
N/A

What are you working on?
Showing customer errors with StripeJS

#

@weary crescent pressed the 🤨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
I'm downgrading a customer's subscription to a lower tier subscription by refunding the original invoice, charging them for a one-time invoice, and updating their subscription. This works for annual to annual subscription changes, but when I downgrade a customer from annual to monthly there is an additional invoice generated and charged upon subscription update.

What actually happened?
An additional PaymentIntent is created as a result of the subscription update API call we make. This is unexpected and I want to know what triggered it

Reproduction Steps
My test customer who was downgraded from annual to monthly:
cus_RVvrQYeVPQRH6f
Unexpected invoice:
in_1Qcu0qGcOvBbq6SsM0fRQHSd

Test customer who was correctly downgraded from annual to a lower tier annual subscription:
cus_RVw5ZF0k6e1vq9

Question
What triggers the new PaymentIntent/Invoice creation upon subscription update for the new monthly subscription but doesn't happen for the annual subscription?

What are you working on?
Downgrades to monthly subscriptions & refunds

#

@stiff tangle pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I'm trying to upgrade our API version from 2020-08-27 to 2024-12-18.acacia but having difficulties with the Create Payment Intent response.

In 2020-08-27 `POST https://api.stripe.com/v1/payment_intents` returns a value in `balance_transaction` in `charges.data[0]`.

However in 2024-12-18.acacia the same request returns `latest_charge.balance_transaction: null`. I understand `charges` has been replaced with `latest_charge` but I'd still expect there to be a balance_transaction available.

Is there a way I can create a Payment Intent and receive the balance transaction ID in a single request?

Related Request ID(s)
req_LXZy88PEiCtgAa

What have you already attempted?
- Confirmed that Creating Payment Intent with 2020-08-27 returns balance transaction id as expected
- Retrieving a Payment Intent after creation with 2024-12-18.acacia includes the balance transaction id

#

@pallid sparrow pressed the 🤨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
I expected to have a membership active.

What actually happened?
For some reason, the membership doesn't exist on Stripe. BUT. I can see it on Test Mode.

Reproduction Steps
This was working before without any problem. My code didn't change in 2 weeks.

Question
WHY a subscription says it doesn't exist when I can see it on the dashboard of Stripe?

cursive heronBOT
#

@wicked cosmos pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Sometimes we receive the stripe webhook without the “client_reference_id”, it just says “null”.

We don't understand why because often they are old customers and other times they are new customers who have just made a payment, but it simply says “null”

Can anyone help us with this problem?

Related Event ID(s)
evt_1QcnS6INqpiPA6Yb3XO7rOh9

What have you already attempted?
I don't know how to proceed but some clients simply arrive with the webhook in this “null” form

cursive heronBOT
#

@raven hamlet pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
val cancelable = terminal.collectPaymentMethod(
paymentIntent,
object : PaymentIntentCallback {
override fun onSuccess(paymentIntent: PaymentIntent) {
Log.i(
TAG,
"Successfully collected payment method for intent: ${paymentIntent.id}"
)
currentCancelable.set(null)
readerListe

Question
I have a payment flow to accept in-person payments via the m2 reader. users can update payment intent amounts which will cancel the collection, via the cancelable, update the payment intent and start collection from a new. however, if a user updates the value many times. i run into this error
`Operation in progress wasn't completed before starting new operation` and new collection can't start anymore.

What have you already attempted?
i've tried having the cancelation locked in a mutex so old cancelations have time to get cancelled.

What are you working on?
in person payment system where users can change the payment intent amount at the press of a button

cursive heronBOT
#

@lyric loom pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Need help with Stripe Portal. I have security checks in my UI that prevent fraudulent downgrades (users can only change plans after deleting excess ads). However, when users access the Customer Portal, they can downgrade without this verification. I know I can disable 'customers can switch plans' in dashboard, but this breaks my app which needs this functionality. Is there any way to just hide the 'Update subscription' button in Portal while keeping the function active?

Related Request ID(s)
req_2gIecQ7SLmyA0y

What have you already attempted?
// NextJs 15, app router
//src/app/api/stripe/subscription/portal/route.ts

import { stripe } from '@/lib/stripe'
import { NextResponse } from 'next/server'

export async function POST(request: Request) {
try {
const { customerId } = await request.json()

	const session = await stripe.billingPortal.sessions.create\({
		customer\: customerId,
		return\_url\: \`${process.env.NEXT\_PUBLIC\_APP\_URL}/dashboard/assinaturas\`,
		locale\: 'pt\-BR',
	}\)

	return NextResponse.json\({ url\: session.url }\)
} catch \(error\: any\) {
	console.error\(error\)
	return NextResponse.json\({ message\: error.message }, {

What are you working on?
Building

cursive heronBOT
cursive heronBOT
#

@hollow burrow pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We're using stripe connect unified beta with standard accounts. We're the platform. Once we send the user to hosted onboarding and they return how do we link to the users to their Stripe dashboard? The issue is our connected account logins could have multiple “accounts”. Is there a way to link them to the specific account and not a general login page?

Related Request ID(s)
Connected accounts unified beta

What have you already attempted?
API docs

#

@pale coral pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
const account = await stripe.accounts.update(
'{{CONNECTED_ACCOUNT_ID}}',
{
settings: {
payouts: {
schedule: {
interval: 'manual',
},
},
},
}
);

Question
when some users pays through stripe, that amount is deducted from his account and added to my stripe account, then its gets transferred to my bank account in some T+2 days or so, but I don't want that amount to be settled automatically, I want it to happen either manually or at least wait for 90 days to get settled in my bank account, how can I achive this?
The above code is only for connected accounts.

What have you already attempted?
https://docs.stripe.com/connect/manual-payouts
this is for connected accounts only

cursive heronBOT
#

@frosty light pressed the 🤨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
Success url to be triggered so my app knows payment has finished.

What actually happened?
Nothing happens.

While I've set up the routing to acknowledgement using success url for credit card and that works fine.

Reproduction Steps
Real scenario: User clicks PayNow option > QR is shown > User screenshots QR > Opens their own banking app to upload screenshot

I'm trying it in test mode where I click the authorise payment button but nothing happens.

Question
Hi! I'm integrating Stripe Checkout with my iOS app. Upon payment success, Stripe will trigger the success url which I will then use to route to my payment acknowledgement screen. However, when I try it with a Singaporean payment option called PayNow, the success url is never triggered so I can't route to acknowledgement.

What are you working on?
iOS app using Stripe Checkout to top up wallet balance

cursive heronBOT
cursive heronBOT
#

@dark fox pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
$intent = WC_Stripe_API::request( $request, 'payment_intents' );

	if \( ! empty\( $intent\-\>error \) \) {
		$intent\_id = $order\-\>get\_meta\( '\_stripe\_intent\_id' \);
		if \( $intent\_id \) {
			$intent = $this\-\>retrieve\_intent\( 'payment\_intents', sanitize\_text\_field\( $intent\_id \) \);
			if \( ! empty\( $intent\-\>error \) \) {
				wcf\(\)\-\>logger\-\>log\( 'Create Intent request Error\: ' . wcf\_print\_r\( $intent, true \) \);
				return $intent;
			}
		}
	}

Question
I am using same intent creation code for both express checkout and card payment. But for express checkout iam getting this error.

"message": "You cannot confirm this PaymentIntent because it has already succeeded after being previously confirmed."
"type": "invalid_request_error"

What have you already attempted?
I tried debugging. But I cant find exact from where this error coming.

What are you working on?
Iam giving one-click upsell compatibility for woocommerce stripe plugin from my plugin 'Cartflows'

cursive heronBOT
#

@severe forge pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I am using stipe checkout with php as my backend and react native as my frontend. The issues is when i close the UI which is generated with the help of the api given in the documentation. If i click the cross/x/close button i still receive

payment_intent.succeeded
charge.succeeded

how would i tell that the payment failed when i am getting same events even when i do the payment and close the the payment box. The events in the webhooks are the same

Related Request ID(s)
none

What have you already attempted?
$ephemeralKey = $stripe->ephemeralKeys->create([
'customer' => $customerID,
], [
'stripe_version' => '2024-09-30.acacia',
]);

        $paymentIntent = $stripe\-\>paymentIntents\-\>create\(\[
            'amount'         =\> $amount,
            'currency'       =\> 'usd',
            'customer'       =\> $customerID,
        \]\);

$data = [
'paymentIntent' => $paymentIntent->client_secret,
'ephemeralKey' => $ephemeralKey->secret,
'customer' => $customerID,

What are you working on?
building a saas

#

@fiery whale pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
myAddToCartFunction(cartId, options)
.then((updatedCart) => {
console.log("Success! Updated cart:", updatedCart);
return updatedCart;
})
.catch((error) => {
console.error("Error updating cart:", error);
});

Question
Error creating product or adding to cart: TypeError: (0 , backend_cart.myAddToCartFunction) is not a function

What have you already attempted?
const updatedCart = await myAddToCartFunction(cartId, options);
console.log("Success! Updated cart:", updatedCart);
} catch (error) {
console.error('Error creating product or adding to cart:', error)
------------------------------------------------------
and logging

What are you working on?
Eloboosting website on wix with custom product creation.

cursive heronBOT
#

@hidden stratus pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
const { error: errorInInitialization } = await initPaymentSheet({
merchantDisplayName: "Amber Healthcare Solutions Pvt Ltd.",
paymentIntentClientSecret: clientSecret,
allowsDelayedPaymentMethods: true,
returnURL: "stripe-test://stripe-redirect",
})

Question
I have test stripe app, where im testing out different payment options. The payment options display fine and im able to see the in app browser, but whenever i authorize or cancel the payment, the in app browser doesnt close

What have you already attempted?
i have verified the url scheme and merchant identifier

cursive heronBOT
#

@visual star pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I have a question about the Subscription / SubscriptionSchedule / Subscription Item API structure

Related Request ID(s)
-

What have you already attempted?
I have trouble changing prices on an ongoing subscription and I would like to see that with one of your agents

cursive heronBOT
#

@atomic helm pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hello,
We use stripe in a software which is used by a group, and there is more than one company in it. Each company does have his stripe account.
We did face a problem. The first Stripe account we used was created a while ago, so the API version on it was a bit old. We did integrate the .jar file corresponding to this version of the API in our software. But the new accounts we integrated after, were in newer versions of the API. So we had to update everything:
-API Version on the old account
-Delete/Recreate our webhook on the old account
-Update the .JAR file in our software.

Related Request ID(s)
req_kNoCrSswI0anmv

What have you already attempted?
We are planning to include other Stripe accounts in the future, and we would like to avoid this kind of inconvenience.

So we thought we'd create a sort of gateway, which would allow us to select the right jar depending on the API version of the account being used.

Unfortunately, I didn't see any endpoints allowing us to get the API version of the account.

Is there any better way to do this ?

What are you working on?
a project to allow our customers to pay on their customer space page

#

@clever egret pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How can I test mode trasaction stripe invoice generated virtual bank account deatils for to pay with bank transfer send funds to :
account number
sort-code etc

Related Request ID(s)
req_e6a1pWY05zHsjs

What have you already attempted?
I have pay funds using card details

What are you working on?
How to pay funds using bank details in test mode

#

@silk depot pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I want to retrive "py_1OZsWrIErBwOu8QAY4CZMM36" payment.

Related Request ID(s)
.

What have you already attempted?
i do not know which API i need to user for it.

What are you working on?
balance summary report

cursive heronBOT
#

@obsidian saddle pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
集成api后,使用cny币种测试支付成功,使用usd提示不行,问一下怎么在平台设置

Related Request ID(s)
pi_3QZSbLIWCYVeLww12LWZ99O2

What have you already attempted?
集成api后,使用cny币种测试支付成功,使用usd提示不行,问一下怎么在平台设置

#

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

Question
Invoice emails not being sent for weekly subscriptions?

Related Request ID(s)
NA

What have you already attempted?
I'm creating subscriptions via API. The subscription is a weekly susbcription with usage based events. Some of my customers reported they didn't received the invoices via E-Mail. Isn't Stripe handling emails for invoices automatically? Do I need to pass a parameter when creating a subscription so that Stripe handles the invoice emails?

- Subscription product ID: prod_R1T3CUnTffgIjl
- Finalized invoice that has not been sent via email ID: in_1QcpVJEQTxIQh7eR0EYhJ026

What are you working on?
Facebook API SaaS

cursive heronBOT
#

@frosty coyote pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Does `account.updated` webhook event come through on platform account webhooks, or does it only come through on connected account webhooks?

Follow up , if it only comes through on connected accounts, it looks like the CLI event forwarding doesn't match this behavior

Related Event ID(s)
N/A

What have you already attempted?
Tried to understand why I cant find an account updated event

#

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

Question
Dear support team,
I need to build a special invoice tool for my customer that outputs the linked payments for the invoices.
I already use the /v1/invoices endpoint for the invoices. Unfortunately, the payments linked to the invoice are not stored in the response. Which endpoint do I have to use for this?
I look forward to your feedback!

Related Request ID(s)
-

What have you already attempted?
-

What are you working on?
Implementing a special invoice tool

cursive heronBOT
#

@nova hamlet pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I don't understand the new change that takes place from 27 january 2025.
How can a customer have a subscription if the checkout session is open? We have different services that perform these actions (cancel sub,void invoice) but before we perform these actions, we get the subscription from the customer (to get the subscription id). If they don't have a subscription, nothing happens. If they do have a subscription, we may cancel it but as i've understood it you cant have a stripe subscription if the checkout session has status open? When does this happen?

Related Request ID(s)
no related request ids

What have you already attempted?
I have tried expiring the checkout session if its open, when we cancel a subscription or void the last invoice but the status is always in complete. So that is why i'm confused, when does this actually happen?

What are you working on?
Payment services

#

@grizzled furnace pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
$checkout_session = \Stripe\Checkout\Session::create([
'success_url' => $successUrl,
'cancel_url' => $cancelUrl,
'payment_method_types' => ['card'],
'mode' => "subscription",
'allow_promotion_codes' => true,
'line_items' => $line_items,
'customer_email' => $customerEmail,
'client_reference_id' => $clientReferenceId,
'automatic_tax' => ['enabled' => true],
'tax_id_collection' => [
'enabled' => true,
],
'metadata' => [

Question
I want customers purchasing as a business to be exempted from tax. Tax should be $0 for these category of customers, whenever the business box is checked and a valid Tax ID is provided

What have you already attempted?
I've enabled Tax on the Dashboard. I'm not sure what I've missed

What are you working on?
A Squarespace extension, Spark Plugin

#

@silk depot pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
how to get bulk charge id by date in api and that charge metadata.

Related Request ID(s)
.

What have you already attempted?
i try multiple in api

What are you working on?
I want date vise balance transaction and after that source and using source i retrieve there metadata.

cursive heronBOT
#

@limpid stream pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Is there a way to have 'Set up Apple Pay' button on hosted checkout? From my testing, if the user has setup card in Apple Wallet, then hosted checkout shows Apple Pay button. But if the user does not have a card setup then best practices (https://docs.stripe.com/apple-pay/best-practices?locale=en-GB#offer-to-set-up-apple-pay-within-your-app-or-website) suggest to show button to set up the wallet. Is there a config option, when creating checkout session, to enable prompting users to setup the wallet?

Related Request ID(s)
stripe-node -> checkout -> session -> create

What have you already attempted?
payment_method_* options in the stripe-node

cursive heronBOT
#

@unique epoch pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We are trying to migrate current monthly and yearly active subscriptions to plans with 30days and 365 days recurrent plans. But we want this changed from their previous subscription start date (current_period_start) to the end date set from the new 30days plan. We are using `stripe.subscriptionSchedules.create` using `from_subscription` and `stripe.subscriptionSchedules.update`

Related Request ID(s)
tested subscription id (with create_prorations ) :`sub_1Qd9vxKk6Qk5jHuWNAdtWuVi`
 (with no prorations): `sub_1QdAHFKk6Qk5jHuWRrK4Vadz`

What have you already attempted?
const schedule: Stripe.SubscriptionSchedule =
await stripe.subscriptionSchedules.create({
from_subscription: subscriptionRecord.stripe_subscription_id,
});

await stripe.subscriptionSchedules.update(schedule.id, {
end_behavior: 'release',
phases: [
{
start_date: subscription.start_date,
proration_behavior: 'none',
items: [
{
price: 30daysPlan,
plan: 30daysPlan,
},
],
},
],
});
```

This setup works when we migrate plans the same day subscription is created.

cursive heronBOT
#

@clever egret pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
export const createConnectedAccount = async (user, stripeFileId) => {
try {
const account = await stripe.accounts.create({
type: 'custom',
country: 'GB', // Specify United Kingdom
individual: {
first_name: user.firstName,
last_name: user.lastName,
dob: formatDob(user.dob),
email: user.email,
phone: '+447911123456',
address: {
line1: '221B Baker Street',
line2: 'Apt 3',
city:

Question
const EXTERNAL_ACCOUNT_STATUS = {
NEW: 'new',
VALIDATION_FAILED: 'validation_failed',
VERIFIED: 'verified',
VERIFICATION_FAILED: 'verification_failed'
};

What have you already attempted?
I am getting an account status in the stripe account perftt pending to verifed but which time to geeting pending to verifed where to getting weebokk

What are you working on?
now same thing for external account need verification status currently getting me new only when whhic time to get status

#

@leaden leaf pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
$checkoutSession = \Stripe\Checkout\Session::create([
'payment_method_types' => ['card', 'amazon_pay', 'link', 'us_bank_account'],
'line_items' => [[
'price_data' => [
'currency' => 'usd',
'product_data' => [
'name' => $title,
'description' => $refundPolicy,
],
'unit_amount'

Question
I'm attempted to set metadata for a Stripe Checkout session but when I look at the test event, no metadata is passed.

What have you already attempted?
I'm not sure where to start with trying to debug Checkout

#

@blazing nebula pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I'm trying to create a payment flow with stripe connect for a client that involves payment to individuals with card imprints. The goal is that no money transits on the platform, all would be paid to the connected accounts, with the platform taking an application fee as well as the accounts paying stripe fees directly on each payment they receive. We would prefer to use stripe onboarding and make it as quick as possible, without requiring signup on stripe. We also want a limited access to the dashboard for our connected accounts.

Related Request ID(s)
tbd

What have you already attempted?
I've tried creating Standard accounts through the API but as far as I could tell, the onboarding requires the connected account to actually create a stripe account. The dashboard also gives too many permissions, such as manually capturing the funds from the card imprint, which goes against our needs.

I have also tried making Express accounts through the API, the dashboard provided with a loginlink corresponds to our needs (limited action, can however see payouts and change bank information) but it seems to add more responsibilities on our platform as well as more fees.

What are you working on?
A platform that will let users pay for a service, with a card imprint, to other individuals.

cursive heronBOT
#

@boreal sedge pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Is there a way to disable hosted-invoice-url on PDF and email via API ("send_hosted_payment_email":
"false")?

Related Request ID(s)
req_iBM4FPGv1BUHMP

What have you already attempted?
It is possible to disable it via dashboard but I couldn't find a way to disable the feature via API in the invoice creation call.

cursive heronBOT
#

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

Question
Hello, I am using webhooks for coupons / promo codes. As you can see in this update event (evt_1QUGZHG3IfdFt7QVLCpgooeS) they have redeem_by and expires_at defined to Dec 26th. However, looking at all events for the promo code (promo_1QRfjJG3IfdFt7QV34BrONgN) there is no webhook on the expiration date moving it to active=false or the coupon to valid=false.

Related Event ID(s)
evt_1QUGZHG3IfdFt7QVLCpgooeS

What have you already attempted?
My understanding is any time a promo code updates it should fire
a webhook. https://docs.stripe.com/api/events/types#event_types-promotion_code.updated

What are you working on?
I am using stripe connect and built a coupon / promo code wrapper for our customers to offer coupons

cursive heronBOT
#

@sand whale pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hi Stripe team,
is it possible customize iOS SDK PaymentSheet by adding additional attributes to UI Elements to support test automation ?
Example : iOS Stripe payment Sheet doesn't contains unique IDs (like Accessibility IDs) to identify UI elements for test automation scripting.

Doc/Guide Links
https://github.com/stripe/stripe-ios#Examples

What are you working on?
In app payment used iOS SDK

cursive heronBOT
#

@hallow dawn pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hello, I have a question, what is the best practice to configure Stripe across different environments? For example I'd like to create a local sandbox, after I configured the customer portal, the products, radar, etc I want to create a stg env from this local sandbox, then I want to create prod based on stg...when I do a change locally I want to update stg based on the new config and the same with prod...

Doc/Guide Links
I couldn't find a link

What are you working on?
SAAS

cursive heronBOT
#

@blazing fox pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I want to add tax data to my transactions. Right now I have an option where a bunch of orders are processed and shipped to one location based on each of those sales.

I see I can create a payment intent first then pass that into my checkout session.. but I'd rather create the stripe checkout session first then update the paymentIntent with the shipping to address.

Is this an option and will it properly reflect the tax I need to send based on my nexus configuration for the address I update in the payment intent?

Related Request ID(s)
--

What have you already attempted?
Tax data turned on.

#

@shy bluff pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How can I retrieve connected account-related data (e.g., account ID or connected account details) in the payout webhook? The payout object contains the destination field (e.g., ba_...), but I need to map this back to the connected account ID in my system. Is there a way to include metadata or another approach to achieve this?"

Related Event ID(s)
-

What have you already attempted?
Mapping the destination field (ba_...) to the connected account ID using the Stripe.BalanceTransactions.retrieve() method.
Attempted to find metadata in the payout or balance_transaction object that links it to a host or connected account.
Checked the Stripe API documentation for both payouts and balance transactions. Despite these attempts, I couldn't find a direct way to map the payout webhook back to the connected account data stored in my system.

What are you working on?
I’m building a booking platform, where payouts are made to hosts using Stripe Connect. I need to associate each payout.created event with the host in my system to track earnings.

#

@vivid geyser pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Scenario: a subscription expires and becomes "unpaid" after multiple failed payment attempts on the most recent invoice. Three weeks later, the customer provides a valid payment method to reactivate their subscription. What is the best practice? Should we try to pay the most recent "Failed" invoice, or generate a new invoice, pay that, and reset the billing cycle?

Doc/Guide Links
https://docs.stripe.com/billing/invoices/subscription

What are you working on?
SaaS app

cursive heronBOT
#

@celest pier pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Is it possible to use Stripe invoices for some customers and use Payment links for others? Each of our individual payments is rather large (and done via ACH). We noticed that Stripe Invoices charges 0.8%, whereas payment links (which would work for the vast majority of our customers) are capped at $8 for ACH.

Doc/Guide Links
https://stripe.com/payments/payment-links

What are you working on?
Migrating from Quickbooks

#

@short jay pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Following a successful payment intent (i.e. status = succeeded), how quickly is the associated balance transaction object available? I am trying to determine the Stripe fee in a synchronous operation.

Related Request ID(s)
null

What have you already attempted?
Documentation, Stripe AI assistant

What are you working on?
Website using Stripe for payments

cursive heronBOT
#

@woven heron pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I'm trying create one setupIntent in a subAccount using StripeConnect, but, even the info exiting in my dashboard, the function JS return:

No such setupintent: 'seti_1QdERGBSyKcPws6BU2xhZ6H7'

i need help urgent!

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

What have you already attempted?
I'm try do many things in my structure, i'll send my example in front.

stripe.confirmCardSetup\(
            intentSetupToken,
            {
                payment\_method\: {
                    card\: card,
                    billing\_details\: {
                        name\: document.getElementById\('stripe\-name'\).value,
                        email\: document.getElementById\('stripe\-email'\).value,
                        phone\: document.getElementById\('stripe\-telephone'\).value
                    }
                }
            },

What are you working on?
I'm building one system of many SubAcconts using Stripe Connect.

cursive heronBOT
#

@robust cosmos pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We are using Stripe invoices to allow users to make payments, but we prefer not to use Stripe’s hosted invoice page and instead redirect users to our own custom payment page. However, we noticed that the PDF version of the invoice automatically generated by Stripe includes a link to the hosted payment page. Is there a way to remove or disable that link from the PDF?

Doc/Guide Links
https://stripe.com/docs/invoicing/hosted-invoice-page
https://stripe.com/docs/api/invoices/send

What are you working on?
We’re building a custom payment page to handle invoice payments directly on our platform, avoiding the default Stripe-hosted payment flow. Our goal is to use the Stripe API to programmatically create invoices and ensure that use

#

@peak cloak pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I'm trying to implement the collect surcharge feature that is in beta, so I'm trying to add a webhook to listen for the terminal.reader.action_updated event, but I can't find it in the dashboard

Related Event ID(s)
terminal.reader.action_updated

What have you already attempted?
I have tried changing the api version, to see if the event would be shown when using the newer version, but it didn't work

cursive heronBOT
#

@golden spade pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
About 2 or 3 years ago I noticed that the `promotion_code.updated` webhook did not fire when a PromotionCode's `active` field changed from `True` to `False` due to `expires_at` or `times_redeemed`. When I noticed this, I reported it here, and was told that a bug report has been filed.

I'm wondering if someone can confirm this behavior has been addressed so I can remove some old code on my machine. Thanks :)

Related Event ID(s)
N/A

What have you already attempted?
N/A

What are you working on?
SaaS

cursive heronBOT
#

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

Code
await StripeTerminal.initialize({ tokenProviderEndpoint: 'https://example.com/token', isTest: true })
const { readers } = await StripeTerminal.discoverReaders({
type: TerminalConnectTypes.TapToPay,
locationId: "***",
});
await StripeTerminal.connectReader({
reader: readers[0],
});
await StripeTerminal.collectPaymentMethod({ paymentIntent: "pi_****_secret_****" });

Question
Tech used: Ionic, Capacitor, Vue, TS, and the plugin "capacitor-community/stripe-terminal".

I am getting an error when trying to collect the payment method using Stripe Tap to Pay: "A required parameter was invalid or missing" even though I have passed in the payment intent ("pi_****_secret_****").

Can you see what I'm doing wrong? It used to be working great but something seems to have broken.

What have you already attempted?
I have looked into the code and have found that the retrieve payment intent part works fine, it's the collect payment method is failing and throwing the error.

What are you working on?
An app which you can collect payments using Stripe Tap to Pay.

cursive heronBOT
#

@manic igloo pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I am having issue with create tax transaction after calculating tax and creating a payment intent. I am keep getting this error " No such calculation {calculation_id}"

Related Request ID(s)
req_T07Ay0iG1MEDH6

What have you already attempted?
I tried to read the documentation but couldn't find any help their

What are you working on?
I am trying to calculate tax for my platfrom account and the connected express account is resposible for paying taxes

#

@wild heron pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
What's the difference between `Stripe::Subscription#start` and `Stripe::Subscription#start_date`? I can't find any documentation about the `start` attribute. Only about the `start_date`: https://docs.stripe.com/api/subscriptions/object#subscription_object-start_date - Both fields return different values in production.

Related Request ID(s)
req_lLkzkYtuo5DJvZ

What have you already attempted?
I'm trying to find the answer. I'm sharing with you a production request where you can see in the response body both fields (start and start_date).

I can't find any documentation about the `start` attribute. Only about the `start_date`: https://docs.stripe.com/api/subscriptions/object#subscription_object-start_date - Both fields return different values in production.

cursive heronBOT
cursive heronBOT
#

@storm bloom pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hey I am using stripe meters for charging based on usage at end of month. So I am recording usage events in stripe. Now I am trying to get the usage for billing cycle of subscription but looks like it does not accept any random date time it needs date time to be aligned with granularity that is being asked for. The problem with that is that I can't get to know my total usage for a meter for a customer for that billing cycle because it can have extra usage.

Related Request ID(s)
NA

What have you already attempted?
Used the stripe api for getting it and researched online could not find a way

What are you working on?
Building a platform for automating

#

⛔️ 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
#

@storm bloom pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hey I am using stripe meters for charging based on usage at end of month. So I am recording usage events in stripe. So I tried to submit meter event using stripe dashboard and api both but it does not reflect there.

Related Request ID(s)
NA

What have you already attempted?
Used the stripe api docs and researched online but could not find a way

What are you working on?
Building a platform for automating sales/survey/support for a company using our AI

#

@wide valley pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I need to remove transfer_data -> destination and application_fee_percent from the subscription.

Related Request ID(s)
DS01

What have you already attempted?
I have updated the subscription by setting application_fee_percent to null and transfer_data['destination'] to null using the following code:
\Stripe\Subscription::update($order->subscription_id, [
'application_fee_percent' => null,
'transfer_data' => ['destination' =>null],
]);

cursive heronBOT
#

@willow oriole pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
PaymentIntentCreateParams.builder()
.setAmount((long) amount)
.setCurrency(currencyCode)
.setDescription(desc)
.setStatementDescriptor(statementDescriptor)
.setCustomer(customer)
.setConfirm(true)
.setPaymentMethod(paymentMethodId)
.putAllMetadata(metadata).build();

Question
We are migrating our backend from token based Charges API to Payment Intents. So the flow is that we will be getting confirmation token from the frontEnd, and in the backend we will be creating Customer and inorder to get paymentMethodId we will be calling Create Setup Intent. Then we will be calling Create Payment Intent with confirm as true. Just wanted to know if the flow is correct and what are the parameters we need to set while calling payment intents from backend.

What have you already attempted?
We tried setting the params mentioned in the code above in the create payment intents API. But still we are asked to set return_url or else disable redirect based payment methods. So please advise on what are the recommended params to be set while calling create payment intent from backend.

What are you working on?
We are working on migrating our backend from token based Charges API to Payment Intents API

cursive heronBOT
#

@fallen ginkgo pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I'd like to test the BLIK integration, but I can not see the payment method in my dashboard, how can i activate the BLIK and start testing?
My sandbox account ID is acct_1BklElHv726MzAnz

Doc/Guide Links
https://support.stripe.com/questions/activate-a-new-payment-method#:~:text=To enable or manage payment,to accept the payment method.

What are you working on?
BLIK integration.

#

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

Question
I think my older thread from last week was closed, but I would like someone to take a look with me at my proposed solution to implement SEPA direct debit for my customer from scratch. I've worked out a schema that I think will solve this, but would like someone to take a look before I start implementing :D

Can someone give me permission to write in the thread?

Related Request ID(s)
-

What have you already attempted?
Created my own schema and read documentation

What are you working on?
I will type this out in the thread.

#

@severe wraith pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
If there's any API supports query the detail invoice list of some promotion code.

Related Request ID(s)
https://docs.stripe.com/api/invoices/search

What have you already attempted?
Traverse through all the historical invoices to see the coupon object in the invoice item. And filter out. But it costs too much time, it's ineffient.

What are you working on?
If you can add a param in the invoice list search query like promotion_id=xxxx

#

@past aurora pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Recurring 1 day and multiple events fired for subsciption update... why?

Related Event ID(s)
evt_3Qd9AxB0CfNv4ZW51l3M2NNi

What have you already attempted?
Recurring 1 day and multiple events fired for subsciption update... why?

What are you working on?
Subscription update

cursive heronBOT
#

@orchid path pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
My client salesforce org is registered in Costa Rica. As i know the stripe doesn't support in Costa Rica. Is there any alternative to integrate stripe.

Related Request ID(s)
My client salesforce org is registered in Costa Rica. As i know the stripe doesn't support in Costa Rica. Is there any alternative to integrate stripe.

What have you already attempted?
My client salesforce org is registered in Costa Rica. As i know the stripe doesn't support in Costa Rica. Is there any alternative to integrate stripe.

#

@sand cliff pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How can i make use of stripe embedded components in a blazor app. Since blazor is .NET i cant use the stripe-js npm module. So i need to figure out a way to do so differently.

Doc/Guide Links
https://docs.stripe.com/connect/embedded-onboarding?lang=dotnet
https://docs.stripe.com/connect/get-started-connect-embedded-components#account-sessions

What are you working on?
I am working on a markerplace platform.

#

@proper garden pressed the 🤨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
Payment when the first payment was canceled

What actually happened?
I can't do the payment because the address field is empty and read-only

Reproduction Steps
1 - Payment with a fake card -> error payment
2 - Click on the link to the payment page on my email
3 - I can fill my new card but the field adress is empty and read-only, i cannot pay.

Question
How can Stripe accept payment when the first one was canceled?

cursive heronBOT
#

@vital veldt pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We are dealing with multiple stripe accounts in single backend server. Appropriate account is chosen by currency. Is Stripe.apiKey thread safe? How to handle this scenario?

Related Request ID(s)
Nothing

What have you already attempted?
Nothing

#

@unique lintel pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
i can't understand how to setup a local webhook, even with the documentation

Related Event ID(s)
-

What have you already attempted?
I have already installed stripe CLI, forwarded all event to a endpoint on php

What are you working on?
It's a simple website for creators to sell thing

cursive heronBOT
#

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

Code
error_code=testmode_charges_only error_message='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.' error_param=None error_type=invalid_request_error

Question
I received the following error message in our backend and I would like to know what I can do to prevent / change this. Is it due to the account not using a correct stripe account id or rather the account missing necessary information / validation to proceed live charges?

What have you already attempted?
I've googled and checked a couple of forums but without success.

#

@mystic roost pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
in AddressElement when we select on address from the autocomplete for india state is not getting filler

Related Request ID(s)
AddressElemets

What have you already attempted?
gone through docs and tried it in docs also same issue in docs also

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

#

@stoic trail 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/payment-intents

Question
i want to know how to modify a py_129886456, which field are mandatory and which endpoint do i need to call ? because i didn't find a page in the doc talking about py_16587489(random number) i only found payment intent

What have you already attempted?
i attempted using the payment intent endpoint with POST request but i got errors trying and i was wondering if it was this endpoints i should call and if it is what are the mandatory field to pass in the body

What are you working on?
it is to write the description of the py_5641856 so the connect account(seller) know what the transfer im making to his account is about and where it came from

cursive heronBOT
#

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

Question
How do I capture the finished process of the Embedded Stripe Connected Account?

Related Request ID(s)
https://dashboard.stripe.com/test/workbench/logs?selected=req_DwPuBXsvZMbITh

What have you already attempted?
I have the creation started in my app, it correctly embeds the creation process and the user can create a connected account and when it is finished, i see the network has some returns with all the good info I want... but the embedded items dont' catch that data and I can't proceed.

What are you working on?
helping onboard connected accounts.

#

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

Code
FAILED: Received unknown parameter: payment_method_options[card][mit_exemption]

Question
What is this error related to when I'm using Stripe as a integration in another platform?

What have you already attempted?
N/A

What are you working on?
I'm trying to take a payment

cursive heronBOT
#

@bleak rivet pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We don't understand why when some users try to pay with SEPA, it first fail the payment and 7 days later.

When SEPA fails, it cancel the subscription on our side so we need more information about this logic if you can. I'll send a screenshot in the thread too.

Related Event ID(s)
.

What have you already attempted?
We have a complete custom logic that handles the SEPA transaction pending payment

cursive heronBOT
#

@icy cradle pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
```javascript
for (const subscription of subscriptions) {
try {
const result = await stripe.subscriptions.cancel(subscription.id, {
prorate: true,
});
console.log(result);
} catch (error) {
if (error instanceof Stripe.errors.StripeError) {
console.error(`Stripe error for subscription ${subscription}:`, {
type: error.type,
message: error.message,
code: error.code,
});
} else {
}
```

Question
I cancelled existing subscriptions using the code above. Expectation is subscriptions that have remaining unused time would be refunded. On the dashboard, I don't see the refund transactions actually processed. On the logs, it only says `invoiceitem.created` - "a proration adjustment was created", but the actual refund transaction has not been procssed.

What have you already attempted?
Im accounting refunds and total amount received, but i noticed my dashboard is incomplete. I havent tried anything officially yet since it's on prod.

#

@frosty sequoia pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
const STRIPE_SIGNATURE_HEADER = "stripe-signature";

export async function POST(request: Request) {
try {

    const sig = request.headers.get\(STRIPE\_SIGNATURE\_HEADER\);
    const body = await request.text\(\);

    let event\: Stripe.Event;

    if \(!sig\) throw new Error\("Signature not found"\);
    event = constructWebhookEvent\(body, sig\);

    switch\(event.type\) {
        case "customer.subscription.created"\:
            {

...

Question
For some reason, the event.type in the switch statement is always undefined. I've used this template Stripe Webhook route handler for many Next.js projects and had never encountered this issue before. I am using a local listener.

export const constructWebhookEvent = (body: string, sig: string) => {
return stripe.webhooks.constructEvent(body, sig, WEBHOOK_SECRET);
};

Supplementary code ^ due to character limits

What have you already attempted?
I can confirm that:

- Webhook events from Stripe are being sent and responded with a 200
- The Webhook Secret Signing Key is Correct and initialized
- The Correct Events are being sent
- Logged the "body" variable from "await request.text()" and can confirm that the correct data is found in the body.

Honeslty I have no idea what could be causing this issue. I was almost certain it had to do with the Webhook signing secret however I checked it like 5 times and its crrect

#

@obtuse schooner pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I have a declined payment intent log, I need to rerun it with one changed value. "setup_future_usage" change from "off_session" to null, can I do that from Stripe dashboard or only programmatically?

Related Request ID(s)
-

What have you already attempted?
Asked general stripe support, they didn't understand from payment intent field is.

What are you working on?
Decline payment support.

cursive heronBOT
#

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

Code
When calling "stripe.confirmPayment" with cash app pay for an connected account we receive the following error "redirect_error". Only happens in mobile browser, not in desktio.

Question
Whats going on? How do we fix this?

What have you already attempted?
Debugged and found this error. Redirect page is not opening for cashapp pay.

#

@winter oyster pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
@stripe/stripe-identity-react-native v0.2.14 has not been published to npm.

Question
I previously complained about an issue with the selfie verification controller where it was intermittently not working. On further investigation now trying to replicate I have found that it's actually been acknowledged and fixed in stripe-ios v24.1.3, which gets pinned to @stripe/stripe-identity-react-native v0.2.14.

The problem is it seems v0.2.14 has been published on github but not published to npm.

What have you already attempted?
The latest version of the sdk: https://github.com/stripe/stripe-identity-react-native/releases/tag/v0.2.14

The npm page, which shows the latest published version is 0.2.13: https://www.npmjs.com/package/@stripe/stripe-identity-react-native

#

@austere pawn pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
PaymentIntent extends ApiResource
{...
@SerializedName("charges")
ChargeCollection charges;
...}
.
.
.

ChargeCollection charges = paymentIntent.getCharges();

Question
we are using stripe java version 21.3.0 and setting charges collection as above. we would like to upgrade stripe java version to 28.1.0 and couldn't find a way to get the charge object. the only way to retrieve it is like below but it doesn't work, returns null in our integration. is there a way to retrieve charge object as charge list like in stripe java version 21.3.0? or any suggestions?

What have you already attempted?
PaymentIntent extends ApiResource
{...
@SerializedName("latest_charge")
ExpandableField<Charge> latestCharge;
...
}

.
.
.
Charge charge = paymentIntent.getLatestChargeObject();

What are you working on?
Stripe payment intent

#

@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 we select the address from autocomplete the state is not filled in case of country selected as india.

What have you already attempted?
gone through docs same issue

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

cursive heronBOT
#

@shell wind 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/in/guides/payment-methods-guide

Question
Suppose i have a website and we have multiple offline store, as of now we provide customers an option to place order and then they can pay offline in cash at any of our store. How do i implement this in Stripe? like i want to collect the cash and mark the order as paid and get invoice from stripe

What have you already attempted?
I checked docs but couldnt find much from an API perspective

cursive heronBOT
#

@boreal moss pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
const stripeConnectId = useQuery(api.users.getUsersStripeConnectId, {
userId: user?.id || "",
});

console.log(stripeConnectId);

const isReadyToAcceptPayments =
accountStatus?.isActive && accountStatus?.payoutsEnabled;

useEffect(() => {
if (stripeConnectId) {
fetchAccountStatus();
}
}, [stripeConnectId]);

if (stripeConnectId === undefined) {
return <Spinner />;
}

console.log(isReadyToAcceptPayments);

Question
My next app works on localhost dev test mode on Stripe but when I deploy with Vercel I get an error with every stripe integration: Error fetching account status: Error: An error occurred in the Server Components render>

With this code in production I'm able to get the stripeConnectId but for the isReadyToAcceptPayments i only get undefined, whether in development I get a true on that.

What have you already attempted?
Checked all environment variables and tried changing my code to return error instead of throwing.

What are you working on?
Ticketing marketplace

cursive heronBOT
#

@heavy berry pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How does US phone number format created from the customer API works as prefilled in the checkout session form

Related Request ID(s)
req_hz17wJGgASOJ3z

What have you already attempted?

  1. My phone number input is 6102347764 in the customer API
  2. Using the customer ID created from the previous API in the checkout session API.
    'customer' => $customerId,
    But +61 is added as code and shows phone number wrong.
cursive heronBOT
#

@hidden stratus pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
<SafeAreaProvider initialMetrics={initialWindowMetrics}>
<ErrorBoundary catchErrors={Config.catchErrors}>
<StripeProvider
publishableKey={STRIPE_KEY}
urlScheme={urlScheme}
merchantIdentifier={APPLICATION_ID}
>
<KeyboardProvider>
<AppNavigator
linking={linking}
initialState={initialNavigationState}
onStateChange={onNavigationStateChange}
/>

Question
I am trying out more payment options in a react native app, for which I have provided the return url. But this return url is not redirecting correctly.

What have you already attempted?
I have created a standalone app with react native 0.76 and 0.71. I am using same configuration and same stripe sdk versions, but it is working for 0.76 and not for 0.71. What am i missing here?

#

@tulip talon pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Is there a list of supported values that can be send under the payment_method_types field when creating a PaymentIntent using the Ruby SDK?

Related Request ID(s)
NO

What have you already attempted?
I'm trying to activate Google Pay and Apple Pay, I'm currently sending card and link under the payment_method_types link, but Google and Apple Pay are not showing in the dashboard when trying to pay a PaymentIntent using Stripe Payment Elements

cursive heronBOT
#

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

Question
I keep getting this error when trying to view an upcoming invoice

"error": {
"message": "Cannot specify proration date outside of current subscription period or current phase. The value should be between 1735518777 and 1738197177.",
"param": "proration_date",

Related Request ID(s)
req_58kVEyVNJGdbyK

What have you already attempted?
We are on a subscription based model so changing proration dates feels risky. Not sure what is the best way

#

@dark kiln pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
we have an e-commerce app and we want to implement wallet feature into the app, we want users to withdraw money from their wallets to their bank accounts, what are the best practices for that ?

Related Request ID(s)
a

What have you already attempted?
we have an e-commerce app and we want to implement wallet feature into the app, we want users to withdraw money from their wallets to their bank accounts, what are the best practices for that ?

cursive heronBOT
#

@full beacon pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
val intentConfig = PaymentSheet.IntentConfiguration(
mode = PaymentSheet.IntentConfiguration.Mode.Payment(
amount = 1099,
currency = "usd",
)
)

    val address = PaymentSheet.Address\(country = "US"\)
    val billingDetails = PaymentSheet.BillingDetails\(
        address = address
    \)

    val googlePayConfiguration = PaymentSheet.GooglePayConfiguration\(
        environment = PaymentSheet

Question
[GooglePay] PaymentSheet does not work with GooglePay environment = Test

What have you already attempted?
Looked into Stripe Dashboard. Tried different articles

What are you working on?
We are trying to open payment sheet with Card and Google Pay option.

#

@wintry timber pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hi,

I have a connected account that needs to update its bank account info. Because of this a payout failed.

Is there an API I could call and to check about this issues so I can let the connected account owners know about this before is too late or maybe a webhook event I can listen to?

Related Request ID(s)
req_etcvkk5B1IL7kn

What have you already attempted?
I pulled account details but I don't see any issues there or requirements.