#dev-help

1 messages · Page 89 of 1

cursive heronBOT
#

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

What did you expect to happen?
when I add a 3DS card, it should work without any issues on React Native

What actually happened?
When I add a 3DS card, it doesn't work. however for non 3ds cards, it works without any issues

Reproduction Steps
card
4000 0027 6000 3184
10/28 125
US
10001
and call confirmPaymentSheetPayment from `@stripe/stripe-react-native`
I'm getting this error message
`message:authenticationPresentingViewController is already presenting. You should probably dismiss the presented view controller in `prepareAuthenticationContextForPresentation`.`

Question
how do I make it 3ds cards can be added?

#

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

What did you expect to happen?
I want to make 100 US Donation, Stripe processing fees is 2.9% of the donation amount and 30c per transaction.
our application also charges 1% for each transaction. We also have an option that allows the user to cover processing charges. When this option is enabled then the donor will pay 100 USD and also will cover processing fees.

What actually happened?
We add the $0.30 Stripe fixed fee to the donation amount.
We divide the result by (1 - Stripe percentage fee - application fee) to get the total amount X.
Finally, we round the result to two decimal places for currency accuracy. The total amount is 104.37

Reproduction Steps
When reverse calculating the original donation amount should be 100 but it comes out 101.3

Question
Why is stripe calculating fees inaccurately.

#

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

Code
Verifying the 3d secure flow with new app integration

Question
I am working through verifying the 3d secure flow. I am creating a payment intent on my server, using the payment element to capture a confirmation token, applying the token server side and then returning the "requires_action" status so that I can call "handleNextAction" on the elements.

It all seems to be working, and I see a new window open up with the visa logo but it stays stuck on a spinner and then a white screen

What have you already attempted?
Is this a known issue? Maybe the visa test servers having issues? I'm unsure, no errors I can see in the console.

What are you working on?
Payment flow for my website

cursive heronBOT
#

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

Code
$stripe->subscriptionSchedules->create([
//...
'phases' => [
[
'items' => [
[
'price' => {{stripe_price_id}},
'quantity' => 1,
]
'billing_cycle_anchor' => 'phase_start', //HOW TO USE?
],
],
],
], ['stripe_account' => ...]);

Question
My "Connect" customers like that they can set a billing cycle anchor to always bill a subscription on the 1st of the month.

That said, now we are figuring out if we can offer "future" subscriptions, where they can schedule a subscription to start on some random upcoming day.

BUT, they still would want that first payment to be prorated based on the billing cycle (like the 1st of the month).

I'm having trouble figuring out how to do that with billing_cycle_anchor

What have you already attempted?
Trying to use the billing_cycle_anchor values of subscription schedules, but don't understand how to use "automatic" or "phase_start" to achieve what I need to make happen.

My normal subscription start code uses default_settings.billing_cycle_anchor_config = 'day_of_month': 1, 'hour' : 14

https://docs.stripe.com/api/subscription_schedules/create#create_subscription_schedule-phases-billing_cycle_anchor

What are you working on?
Kilnfire.com, a platform for pottery studios, using Stripe Connect for payments

#

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

Question
I am pulling the charges data from the API using the Customer ID and getting the value from the "amount" field. US states have different taxes and I think this field I'm using includes the tax. I want to know if there is a way of getting the amount removing all the taxes.

Related Request ID(s)
NA

What have you already attempted?
I tried to find in the documentation, but couldn't

What are you working on?
Generating Invoices for clients via api

#

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

Code
// ===== Init payment sheet to show ===== //
await initPaymentSheet({
merchantDisplayName: 'Cinch',
customerId: profile.stripeCustomerId,
setupIntentClientSecret: createIntent.stripeClientSecret,
allowsDelayedPaymentMethods: true,
primaryButtonLabel: t('ADD_PAYMENT_METHOD'),
});

  // ===== Show payment sheet ===== //
  const {error} = await presentPaymentSheet\(\);

Question
Currently, this is my code where I initialize the PaymentSheet and present it, creating the payment method (ACH/Card) for each Stripe customer (I can verify this from the dashboard). The problem is that if I add the same card or bank account, it gets duplicated. Is there a way to prevent this?

I’m working in “Test mode.”

What have you already attempted?
Still just gathering information.

#

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

Question
I am calling Transfer.list(). The API docs say that the `created.gte` value should be an integer, but when I try to send in a timestamp for that value, it doesn't seem to work. When I send as a datetime object (python), it works. Am I misunderstanding what the API docs mean when it says "integer"? Does that mean datetime object?

Related Request ID(s)
req_eqMjhwk23n9n1u

What have you already attempted?
It works to send a timestamp, just wondering if I'm misinterpreting the docs. We're upgrading our Stripe version so wanting to make sure we get this right.

What are you working on?
We use Stripe extensively for our work and are upgrading.

cursive heronBOT
#

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

Question
Is there a way to configure Stripe Subscriptions to bill in arrears?
Day 1: create subscription, customer gets access
Day 30: invoice the customer for usage from days 1-30

Related Request ID(s)
n/a

What have you already attempted?
might be possible with usage-based product? But we don't actually want to bill differently based on usage

#

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

Question
Looking for the suggested API guidance on provisioning a trial on a subscription.

Customer has subscription with subscription item product of Foo. What we're wanting to achieve is updating their subscription to have item trial period of Bar product and when the trial expires they go back to having Foo as their product.

Doc/Guide Links
Reviewed trial documentation

What are you working on?
Stripe integration

#

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

Question
hello. Certain business cases have arisen which call for hitting stripe’s credit card apis directly from our backend servers. I believe we are currently only configured to use stripe elements. How do we enable being able to handle credit card information on our backend? (e.g. python server)?

Related Request ID(s)
na

What have you already attempted?
read doc

cursive heronBOT
cursive heronBOT
cursive heronBOT
#

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

Question
For a checkout session, how do payment_intent_data.setup_future_usage and saved_payment_method_options.payment_method_save interact (or are they totally unrelated)

Doc/Guide Links
https://support.stripe.com/questions/prefilling-saved-cards-in-checkout

What are you working on?
I'm building checkout for subscriptions and individual purchases via payment intents.

cursive heronBOT
#

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

Code
No code applicable for this

Question
We are using Stripe payment terminal. We are testing it on US store, it doesn't seem to accept Canadian Debit cards. Is this a thing or do we need to enable something in our account configuration?

What have you already attempted?
Try using Canadian Interac debit card on store in US

cursive heronBOT
#

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

Question
Building a web page using stripe terminal. Taking payments is fine in terms of creating a payment intent and passing to the reader. Not sure of the best practice in the browser for checking if the payment intent has succeeded (I’m capturing automatically) and showing it right there. Have a working webhook for the payment intent already so the processing is fine, it’s just updating the webpage appropriately. Should I do an Ajax call in a continual loop to check the status of the payment intent? Or should I check the status of the reader? Or something else. The docs say to poll the reader and Paymentintent but no good practice on how to do that

Doc/Guide Links
https://docs.stripe.com/terminal/payments/collect-card-payment

What are you working on?
Stripe terminal PHP server side

cursive heronBOT
#

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

Question
I cannot access my live secret key. It prompts me to connect my phone or insert a USB and neither ways get me a key. Everything I've looked up tells me that it is given to me and its not something that I create.

Related Request ID(s)
Dashboard > Developers > API Keys

What have you already attempted?
I've gone through all options and I still cant get a LIVE secret key.

#

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

Question
I wanna create "Create a Payment Method" with Postman, If I use an example curl script, I can make a payment method without an issue, but when I sign in and use my secret_test_key, I get ""message": "Sending credit card numbers directly to the Stripe API is generally unsafe" error message, and I don't know how to pass this step with my secret_key or with my test account. There is no video or example on any of your docs site

Related Request ID(s)
?

What have you already attempted?
I went over all docs site, https://docs.stripe.com/testing, and replaced card info at postman with `tok_visa` etc did not work

What are you working on?
testing creating a payment method with my secret_key using postman

cursive heronBOT
#

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

Code
'proration_behavior' => 'always_invoice'
'billing_cycle_anchor' => 'automatic' //phase_start??

Question
Trying to create a subscription schedule that takes happens in three steps:

  1. Subscription doesn't start immediately, waits a week or so
  2. First phase is shorter than a month, say 10 days, should prorate typical monthly payment to be roughly 1/3 the price
  3. Second phase ends on the 1st of the month, bills full amount

What have you already attempted?
Been hitting the API for several hours trying to get the right combination of params

What are you working on?
Kilnfire.com, a pottery studio management app

cursive heronBOT
#

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

Question
We have the Stripe S700 and was wondering if there's a way to use it to capture the credit card's information for the Payment Element?

Related Request ID(s)
NA

What have you already attempted?
NA

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
#

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

Question
For immediate updates replacing price in Subscription, is there a way to specify when the subscription starts or is renewed?

Related Request ID(s)
nothing

What have you already attempted?
We are trying to offer several subscription plans, which can be upgraded or downgraded. We would like the subscription timing for this subscription to be 00:00 on the day the subscription starts/renews.
https://docs.stripe.com/api/subscriptions/update

We have identified a way to specify the time when the subscription starts.

```ts
const roundedNow =
Math.round(new Date().getTime() / (1000 * 60 * 60 * 24)) * 60 * 60 * 24;
billing_cycle_anchor_config: {
day_of_month: now.getDate(),
hour: 0,
minute: 0,
second: 0,
},
```

Can a similar operation be performed on renewal?

cursive heronBOT
#

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

Question

  1. Are Stripe fees added to the transaction total we submit via the API or should we consider it and add it to the amount we submit and Stripe takes it once the consumer pays?
  2. We know Stripe has several ways we can send and receive payments. But is it right to assume that Choosey as a marketplace would use the connect way? In other words, the App sends a payment transaction (invoice) where a payer pays a payee and Choosey is paid via the “application_fee_amount” in that transaction?
  3. How does GST work in this scenario? Do we need to create a Stripe Tax on the connected account and use it

Related Request ID(s)
Clipboarddeveloper

What have you already attempted?
We are trying to determined the steps

cursive heronBOT
#

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

Question
payout metadata, i have included payout metadata in session create but in payout that metadata is not showing

Related Request ID(s)
payout metada

What have you already attempted?
payout metadata, i have included payout metadata in session create but in payout that metadata is not showing

#

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

Question
I use
The /v1/checkout/sessions API created a GooglePay order. I wrote metadata in the order. After I completed the order, the metadata I created could not be found in the information received by the webhook. How can I obtain the metadata information of this record?

Related Request ID(s)
pi_3PpSPqRofqPnRUz50ztyMcNm

What have you already attempted?
I tried using the order number obtained by webhook to search for order information, but there is only an API to obtain all orders and there is no API based on the order number. When there are too many orders, it is impossible to do mapping.

cursive heronBOT
cursive heronBOT
#

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

Question
I plan to offer 2 options for my SaaS project.
1 option where users subscribe in CHF, and the other one where users can subscribe in EUR, + the change fees my bank charges me for currency conversion. I'd change the EUR pricing on a regular basis to align with the CHF current value, (to let people pay with their local payment methods, to increase conversion rate). Is that possible with Stripe or is there some workaround for this

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

What are you working on?
SaaS

cursive heronBOT
#

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

Question
Hello, I'm trying to get all the subscriptions of a given price. Except that I only ever get one.

Related Request ID(s)
req_2o5v0Ui33yRJwT

What have you already attempted?
```
val params = SubscriptionListParams
.builder()
.setPrice(pricesMigration[0].first)
.setStatus(SubscriptionListParams.Status.ALL)
.setLimit(100)
.build()

val subscriptions = Subscription.list(params).autoPagingIterable().toList()
```

But it always return only 1 element

#

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

Question
testing2 testing2 testing2 testing2

Related Request ID(s)
testing2 testing2 testing2 testing2

What have you already attempted?
testing2 testing2 testing2 testing2

What are you working on?
testing2 testing2 testing2 testing2

#

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

Question
How to Set Up the Following Billing in Stripe

Our SaaS app offers two plans with a flat price, each with a limited number of API executions. We want to charge customers more if they exceed this execution limit.

Method 1:

I created a product, Plan A, with a flat price and included tiered pricing for usage. However, the usage price on the invoices displays the same name as the main product, making it unclear to customers what the usage charge is for.

Method 2:

Create separate products for the flat price and usage-based pricing, and attach these products to the customer’s subscription. This method ensures that the invoice items are clearly named.

Which method is better?

Doc/Guide Links
https://docs.stripe.com/billing/subscriptions/usage-based/pricing-models

What are you working on?
Building a subscription model for a SaaS

cursive heronBOT
#

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

Code
CI-Error in https://github.com/stripe-samples due to outdated use of `docker-compose` instead `docker compose`

Question
I was wondering if people can upgrade https://github.com/stripe-samples, like https://github.com/stripe-samples/sample-ci and https://github.com/stripe-samples/subscription-use-cases to use `docker compose` instead of `docker-compose` as Github removed `docker-compose` from their `ubuntu-latest` image

What have you already attempted?
I opened two pullrequests:

  1. https://github.com/stripe-samples/subscription-use-cases/pull/1141
  2. https://github.com/stripe-samples/sample-ci/pull/18
#

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

Question
How can I fetch users of my stripe account for user and access management?

Related Request ID(s)
31222412

What have you already attempted?
I attempted to call the person's endpoint but apparently, this fetches the contact person of my connected account, whereas I am looking for fetching my own account users and role - basically who has access to the stripe account and what is the role of each one.

What are you working on?
An SSPM Integration for safeguarding user access role management and misconfigurations

#

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

What did you expect to happen?
Creating a subscription schedule for backdated subscription with 2 phases of monthly price. First phase is having 2 iterations, and second one has 10 iterations. ex: backdated start date is 15 july and today is aug 26. Start date is July 15. scheduled is created with proration. i expected a invoice starting from 15 july to 15sep on sub creation.

What actually happened?
But i got the invoice for the period, July 15 to Sep 26. Then the september invoice is adjusted with the amount with amount deducted for the period sep 15 - sep 26.

Reproduction Steps
Create a backdated subscription schedule with 2 phases and check the invoice generated.

Question
Why the proration is not working for the phases as created above?

#

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

Question
I created a website where sellers can list their products and buyers can purchase them. Now, I want to send the money to the seller's bank account after the seller requests it.

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

What are you working on?
I created a website where sellers can list their products and buyers can purchase them. Now, I want to send the money to the seller's bank account after the seller requests it.

cursive heronBOT
#

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

Question
The Google and Apple Pay is not showing on my website. I am using Payment Elements to take card payments directly on my website, but the only express payment button that is coming up is Link.

Related Request ID(s)
N/A

What have you already attempted?
Both Google and Apple pay is enabled in the Stripe account settings and I did go through the setup process meaning I added the domain and verified it so it all looks good within Stripe.

What are you working on?
Checkout page

#

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

Question
I have created a product with a flat fee and three additional products for usage-based billing. Each subscription will include a flat fee and usage-based products.

If a customer selects a monthly plan, there are no issues with charging for additional usage. However, if a customer chooses the yearly plan, how can I bill them for extra monthly usage?

Doc/Guide Links
https://docs.stripe.com/billing/subscriptions/usage-based/pricing-models

What are you working on?
Building a subscription model for a SaaS

cursive heronBOT
#

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

Question
We are doing integration of strip with python based software. we are importing all the transaction from stripe. Stripe is returning the total amount we want to see these info total amount, deduction by stripe and net amount.

Related Request ID(s)
Stripe api

What have you already attempted?
check the docs but not able to find the any api

What are you working on?
We are doing integration of strip with python based software. we are importing all the transaction from stripe. Stripe is returning the total amount we want to see these info total amount, deduction

#

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

Question
I am creating InvoiceItems and Invoices via API. I am looking for a way to create an Invoice using only certain InvoiceItems and not all open ones. Is that possible in any way?
Thanks!

Related Request ID(s)
...

What have you already attempted?
I tried creating the invoice directly (without InvoiceItems), but then I can only provide a single amount and not multiple ones. If I could list multiple items without InvoiceItems, that would also be a solution.

cursive heronBOT
#

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

Question
Following the "Build a subscriptions integration (custom flow)", I want to allow user to change their mind and go back and choose another plan, before they click "Subscribe". That would happen after the subscription is created, but before the first payment is made. What is the recommended way to implement this? Is it ok to just create a new Subscription in this case and let Stripe expire the previous one automatically after 23h? I tried to update a Subscription Item but failed, since it "results in a new invoice or invoice items".

Doc/Guide Links
https://docs.stripe.com/billing/subscriptions/build-subscriptions?platform=web&ui=elements

What are you working on?
I'm building a pretty generic integration to let users subscribe to one of three plans, very similar to one described in the guide.

cursive heronBOT
#

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

Question
# Entitlements and Features

  1. Is it advisable to use entitlements and features in my case? (I would like to use features to limit the orders limit for each subscription plan and some other features like premium support, restaurant locations limit, products limit, etc)
    If yes, do I need to create separate features for each order limit?
    Examples:
    • 100 orders limit
    • 300 orders limit
    • 600 orders limit
    • 1,200 orders limit (yearly)
    • 3,600 orders limit (yearly)
    • 7,200 orders limit (yearly)

  2. How can I effectively manage the features available during the free trial period?

  3. Should I use webhooks or the Stripe API for this entitlements and features integration?

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

What are you working on?
I'm building a webapp with sveltekit and supabase (postgresql database) SAAS for restaurants where I want to limit the orders a restaurant can receive based in their plan with three plans (monthly/yearly) with a flat fee price

#

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

Question
Hello!

We need to check if there is an existing customer with the verified bank account having the given fingerprint.

Currently we iterate over all customers (chunks of 100) and for each customer we call sources endpoint with object="bank_account" filter. And we check each account if it has the same fingerprint with the searched one.

However, this is not ideal solution as the customer list grows the processing time increases.

We need an endpoint/way to get all list of bank account list with given fingerprint so we can get customer id.

Thanks

Related Request ID(s)
-

What have you already attempted?
Iterating over all customers and all bank accounts for each customer

cursive heronBOT
#

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

Question
In the dashboard, it's possible to assign a invoice template when creating the subscription. But I can't see the info when using retrieve subscription API call, or we can't assign a invoice template when creating the subscription with an API call. How can I do this ?

Related Request ID(s)
N.A

What have you already attempted?
Attempted to create a subscription using API call, with specific invoice template (that will hide or group some line items on the PDF)

#

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

Question
Is Stripe hosted checkout allow you enter custom amount? In docs I see you need to have price_id

Related Request ID(s)
none

What have you already attempted?
I tried to use official docs. Now a bit delay, coz need
In order to use Checkout, you must set an account or business name at https://dashboard.stripe.com/account.

And I want to make sure I'm going in right direction.

What are you working on?
I'm migration token checkout to intent checkout. I'm thinking to make it similar to paypal. So User clicks on pay with stripe, get redirected to paypal with right intention and pay on stripe hosted p

#

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

Question
When adding another price in a different currency in the Dashboard has an auto-conversion to that currency. If adding the same in the API does the currency get auto-converted? Do these currencies get updated or will have to be manually updated? Any chance for Adaptive Pricing for subscriptions?

Related Request ID(s)
Any

What have you already attempted?
Have added prices in Test Mode on the Dashboard. Looking into doing Manual Currency management for exchange rate changes.

What are you working on?
Showing local currencies in Stripe Checkout for subscriptions to open up more payment methods.

#

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

Question
I am creating a scheduled subscription like this-

  1. create one off invoice for 10% of the amount
    if success then

  2. 0 amount for phase 1 as 10% taken
    3, 2nd phase set for 90% payment

  3. 3rd phase set for normal price
    so there's where you create a subscription schedule to charge for the remaining 90% at a later point in time
    the Subscription Schedule can look like :
    phase 1 : $0 price to take into account the 10% that was already paid
    phase 2 : 90% remaining amount (start date will be 48 hours before col. date)
    phase 3 : regular pricing
    phase 4: 25% discount if applicable after 3 months

Related Request ID(s)
123

What have you already attempted?
I have tried this using phases -

Here is my code to set phases -

public function setupSubscriptionPhases($requestData, $twentyFivePercentDiscount)
{
// Define the subscription schedule phases
$phases = [];

    $products = $this\-\>setSubscriptionCreateItems\($requestData\['products'\]\);
    $items = $products\['recurringItems'\];
    $charges = $products\['charges'\];
    
    $startOfPhase2 = strtotime\($requestData\['collection\_date'\]\) \- \(48 \* 60 \* 60\); // 48 hours before collection date

So having issues in setting 48 hours before collection date to phase 2

What are you working on?
creating subscription

#

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

Question
In the dashboard, I can add a memo for each invoice. In the description https://docs.stripe.com/invoicing/customize#memo-field, it says that I can also do this via the API. I would expect to be able to do this via invoice/create or invoice/update, but I can't find an option there. How do I do this?

Related Request ID(s)
...

What have you already attempted?
https://docs.stripe.com/invoicing/customize#memo-field

#

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

Question
I am trying to fetch secrets using the secrets endpoint but reciebving a 403 error although my API key has all the needed scopes

Related Request ID(s)
req_mUqyOJu7U31BmT

What have you already attempted?
https://api.stripe.com/v1/apps/secrets tried to run this endpoint but am getting this error:
The provided key 'rk_test_*********************************************************************************************FNWnug' does not have the required permissions for this endpoint on account 'acct_1PXUGGRrj4b9domq'. Having the 'rak_secret_read' permission would allow this request to continue.

but my key has all the relevant scopes

What are you working on?
SSPM integration for our SSPM pltform

cursive heronBOT
#

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

Question
Hi! Looking for best practice advice on the follow:

We have customers on a given active subscription with access to a product (e.g. Basic).

At any given moment, we want to automatically transition them to a 14 day trial of another product (e.g. Pro). Afterwards, if they did not upgrade while trialing, we want to switch them back to Basic and continue their previous subscription.

We want to opt them into the trial opportunity immediately and not schedule it.

Doc/Guide Links
I feel like the suggested path either includes:

  1. Updating the subscription + Scheduling the transition back to the original subscription
  2. Or potentially pausing collection + updating to Pro product, followed by undoing this to go back to their original subscription

What are you working on?
Subscription based billing and custom stripe integration

cursive heronBOT
#

@delicate steeple 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/taxes

Question
Currently, many my customers use subscriptions with tax_behavior set to inclusive. I want to switch them to exclusive, while ensuring the following based on their VAT:
In jurisdictions with tax obligations, apply the local tax rate for digital services or a 0% rate (Reverse charge) in some cases.
In jurisdictions without tax obligations, invoices will be issued without tax until the threshold is exceeded.
I read about setting exemptions in Checkout Session, but I want to display this to the user dynamically when they enter their VAT

What have you already attempted?
Read documentation fully

#

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

Question
Regular i18n based on Stripe error codes do not always work. For example, for amount_too_small, the actual error message gives the minimum amount , like "Amount must be at least $0.50 usd". Do you provide minimum amounts via some API call, or how would we translate that into the local language?

Related Request ID(s)
N/A

What have you already attempted?
Called the API

Doc ref: https://docs.stripe.com/currencies#minimum-and-maximum-charge-amounts

What are you working on?
International merchants

cursive heronBOT
#

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

Question
We are building our backend to use pay per seat monthly subscription for our users. Now I do want know what should be the pricing models as I see multiple options which one to choose for monthly recurring priceid.

Related Request ID(s)
req_mstOLB1T8iz0Mq

What have you already attempted?
We need help regarding this.

What are you working on?
Currently following this docs https://docs.stripe.com/products-prices/pricing-models

#

@ember 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/api

Question
It's not a question as much as it is a concern with the API reference itself. When I am scrolling through it keeps jumping to the top, making it impossible to search for the information I need.

What have you already attempted?
I haven't messed with it, I'm going to play with dev tools and see if there's some snap scrolling, or javascript that is causing it

What are you working on?
I am just trying to figure out what items I need for a subscription based platform, as well as what settings I can give a user to maintain their subscriptions.

#

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

Question
I added a 2nd monthly sub product.
When I had 1 product I guess webhook events were going to the only available and enabled endpoint.

Now that I have a second product, where do I have to link enpoints-to-products?

Related Event ID(s)
invoice.paid

What have you already attempted?
Cannot find 'linking' options between endpoints and products

What are you working on?
website backend

cursive heronBOT
#

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

Question
We are building our backend to use pay per seat monthly subscription for our users. Now I do want know what should be the pricing models as I see multiple options which one to choose for monthly recurring priceid.

Related Request ID(s)
req_mstOLB1T8iz0Mq

What have you already attempted?
I need help regarding this issue

What are you working on?
I have been recommended to follow this doc https://docs.stripe.com/products-prices/pricing-models#per-seat but my question is very clear what shoud be billing type to choose from the list?

cursive heronBOT
cursive heronBOT
#

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

Question
Conflict in Custom Checkout Beta: express checkout doesn't confirm properly in the handle, I'm getting the error: An error has occurred confirming the Checkout Session.

Related Request ID(s)
req_wHI4igOaW9ceeN?t=1724442948

What have you already attempted?
All my attemps have done using live mode:

  1. I modified the session cration parameters, to use payment instead of subcription, but same result.
  2. I tried with beta 3, but same error.
  3. I tested using regular elements, using payment intent was successfull, but using setup intent i got the error declined card.
  4. I tried to update phone number, bulling address into the custom checkout instance in the express checkout handler, but same error.

What are you working on?
We built a custome checkount using Custom checkout beta, right is in production, but we have to remove the express checkout element since is not working.

cursive heronBOT
#

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

Question
I'm working with invoice line items. I noticed that the Dashboard terminal is returning a `computed_amount` value for invoice line items, but that this value isn't documented in the API docs and I can't get it when using my local copy of the Stripe CLI. I'd really like to be able to use this value, as I'm finding values like `amount_excluding_tax` to be inaccurate. The docs say that `amount_excluding_tax` also takes discounts into account, but I'm not seeing that on some test invoices of mine.

Will this value be available in a future API update?

Related Request ID(s)
in_1PrmpqB6upHt2yhLAhM1pq9p

What have you already attempted?
- Stripe Dashboard workbench returns `computed_amount` on invoice line items
- No `computed_amount` available when using Stripe CLI locally on the latest version. No `computed_amount` mentioned in public API documentation or changelogs.

What are you working on?
I'm working on an app that syncs Stripe data into an accounting SaaS

#

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

Question
Stripe Connect Testing SC&T International (Canada)

I have setup Stripe Connect and want to double check that this payment flow works (platform has the products, connected accounts need a payout split of the revenue from a specific product. 2 of my connected accounts are Canadian bank accounts. Can I collect payment as the platform and then use the Stripe transfer to payout the percentage to the connected account needed? And is this testable in test mode?

Related Request ID(s)
n/a

What have you already attempted?
Set up Stripe Connect, connected accounts, products and payment links.

What are you working on?
Stripe Connect Platform collecting subscriptions from clients of connected accounts

#

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

Question
Created virtual card using Stripe issue, how we can see the full card information, like card number. so I use for further processing.

Related Request ID(s)
Nothing

What have you already attempted?
Nothing is available on the internet, or you might not be able to see

What are you working on?
Stripe Issuing, Physical and Virtual Card, I need to see the virtual card

#

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

Question
My customer can upgrade (update existing subscription) and cancel (cancel subscription) from my app. But i'm using the invoice.created event to add more line items to the invoice, seems not fired when the subscription is updated or cancelled.

Even if using AlwaysInvoice as Proration Behavior for update subscription, and invoice now for cancellation

Why ?

Related Event ID(s)
N.A

What have you already attempted?
Try to cancel/update subscription, but I want to generate an invoice now, and try to charge the customer (this need to fire invoice.created event) or maybe another one similar ?

cursive heronBOT
#

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

Question
I understand that when a payout fails, i'll receive a webhook update indicating so.

Are payouts then paused? What field in the API response indicates that payouts are paused?

Related Request ID(s)
https://dashboard.stripe.com/acct_1PqJy1Q6Ih1Xp57c/test/workbench/events/evt_1Pr8QwQ6Ih1Xp57cnQRmZdvW

What have you already attempted?
I went over the docs but it is not obvious to me what's going on.

I assumed that payouts_enabled would be false

What are you working on?
Custom Connect integration

#

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

Question
Follow up Stripe Connect TOS Connected Account
https://discord.com/channels/841573134531821608/1277660097400537088

When I retrieve the connected accounts that I have in production, the `tos_acceptance` parameter only has a date value and no other child attributes. With regards to the RSA discussed previously, is that an issue?

Related Request ID(s)
N/A

What have you already attempted?
Retrieved Stripe Account from API.

#

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

Question
I use the api to create a subscription for my users, but it creates 4 customers, tries and only 1 of them has a successful subscription, i have no idea how i can fix this.

Related Request ID(s)
req_TNB1GEwXCnV3oW req_bNok9DkPxpThvh req_6JP3FYHw3GdJy3 req_Yw1aOOhWWK0xUM

What have you already attempted?
Tried rewriting everything but no luck, this is my api handler

cursive heronBOT
#

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

Code
This is not a code related bug

Question
A user discovered a bug in the Stripe subscription renewal process. The user tried to renew. The payment failed. Then, the subscription got canceled. Finally, the user used a link to finalize the payment that failed. After paying, the subscription was still cancelled in Stripe state. The user paid for nothing.

What have you already attempted?
We refunded the user, cleaned the mess generated in our database and made him create a new subscription. We'd be thrilled if this could be prevented in the future ^^

What are you working on?
An app for disabled students in classrooms

cursive heronBOT
#

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

Question
We need a test card that we can attach as a payment method for a customer, but during authorization, it should return one of the following three errors: 'try_again_later', 'processing_error', 'issuer_not_available'. This is necessary for us to test error handling on our side.

Related Request ID(s)
NA

What have you already attempted?
We tried using the credit card 4000000000000341

What are you working on?
test error handling on our side

#

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

Code
write("I need Help")

>>> import stripe
>>> from django.conf import settings
>>>
>>> # Set the Stripe API key to the test secret key
>>> stripe.api_key = settings.STRIPE_API_KEY
>>>
>>> # Check if the user account has a Stripe account ID
>>> if user_account.stripe_account_id:
... try:
... # Create a test account link for onboarding
... account_link = stripe.AccountLink.create(
... account=user_account.stripe_account_id,
... refre

Question
We are trying to setup or force our users to setp stripe account to get paid. But we are still in development mode and we don't have a bussniess bank account setup yet. Stripe pervent us from testing and trafering funds in sandbox mode. Can someone from stripe team help us to bypass bank setup

What have you already attempted?
>>> import stripe
>>> from django.conf import settings
>>>
>>> # Set the Stripe API key to the test secret key
>>> stripe.api_key = settings.STRIPE_API_KEY
>>>
>>> # Check if the user account has a Stripe account ID
>>> if user_account.stripe_account_id:
... try:
... # Create a test account link for onboarding
... account_link = stripe.AccountLink.create(
... account=user_account.stripe_account_id,
... refresh_url="http://localhos

What are you working on?
service bussniess but we need to be able to test tranfering funds to clients in test mode before we go live.

#

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

Question
Lets say I have a subscription in stripe (starting on 2021-10-01), and at the end of the first billing cycle on 2021-11-01

stripe attempts to charge the card on file
lets say that transaction fails due to insufficient_funds
stripe retries again after 2 days (on 2021-11-03), this time the transaction is successful.
now the subscription will again charge the user again on 2021-12-01 even though the prev payment was done on 2021-11-03

I do not provide services to the user (2021-11-01 to 2021-11-03) when they payment is not complete

What is the solution to update the sub for the new dates?

Related Request ID(s)
None

What have you already attempted?
I have tried with updating the subscription with billing_cycle_anchor' => "now"
'proration_behavior' => "none"
But the invoice is being generated and charging the customer again

What are you working on?
An artist fans platform that accepts Stripe as payment provider for monthly, yearly subscriptions

#

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

Question
we are trying to implement google pay and apple pay i am trying to create google pay payment intent but its keep getting failed and failed

Related Request ID(s)
N/A

What have you already attempted?
i have tried with payment_method_types:["cards"] it create but not with google pay

What are you working on?
Apple pay / Google Pay

#

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

Question
If I update the card details using ngx stripe card elements.
what should I do?

Related Request ID(s)
1

What have you already attempted?
1 customer created
2 subscription with trails started
3 On frontend I am using confirmCardSetup

What are you working on?
what if my customer is created and subscription started and activated and recurroing payments successfully paid. Later if customer wanted to updated its card details what I need to do

#

@merry rapids 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/radar/rules

Question
We want to prevent payments from locales we do not support and we're not sure which country code to use for a Radar rule.

What have you already attempted?
When reading the documentation, found the billing_address_country, shipping_address_country, and card_country attributes. Do we need to block the payment if any of those do not fall into our supported locales?

Here's a rule we're currently testing. It seems to work, but we want to verify it won't potentially cause other issues.

Block if not (:billing_address_country: in('US','CA','AU','NZ','GB')) or not (:shipping_address_country: in('US','CA','AU','NZ','GB')) or not (:card_country: in('US','AU','NZ','GB','CA'))

What are you working on?
We want to control where people submit payments from so we can avoid unwanted sales tax issues.

cursive heronBOT
#

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

Question
How do I show all saved payment methods a customer has during checkout using embedded checkout for a subscription?

Related Request ID(s)
req_rSc1uftpVfgHca, req_2WiE0MCJJcAq52, req_eZ93Uss2y2pupZ, req_MEMwXBPZjEwPll

What have you already attempted?
- set allow_redisplay_filters = ['always', 'limited', 'unspecified'] on the checkout session.
- Updated the payment methods manually to be allow_redisplay='always'
- Set payment_method_save=enabled, to see if explicit opt-in of saving payment method would fix it.

What are you working on?
I'm building an MVNO, a virtual carrier in the telecom space.

#

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

Question
If a customer makes a 1 time payment in a cart compared to a subscription, I should use the payment_intent.succeeded rather than the invoice.paid webhook, correct? The invoice should be for subscription payments and payment intents for 1 time payments?

Related Event ID(s)
N/A

What have you already attempted?
Nothing, just want to be sure before I do it.

cursive heronBOT
#

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

What did you expect to happen?
I changed my email in the system settings for both business and profile.

What actually happened?
However, when I send an invoice out, my old personal email keeps showing up at the bottom of the email as the Customer Support email. Help please.

Reproduction Steps
I send an invoice, and the wrong email shows at on the invoice that gets emailed out.

Question
How can I fix this? I do not want my personal email going out to every client.

What are you working on?
Just sending invoices with the correct email showing as customer support

#

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

Question
Customer on Retrieve of the sources, I see the default limit is 10, Can we increase the limit in this
PaymentSourceCollection sources = Customer.retrieve(customerId).getSources() to set the limit

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

What have you already attempted?
I tried direct as but in the expand i do not see any option to update the limit

#

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

Question
I am setting up the embedded form to collect billing information, with a webhook set up to receive the `checkout.session.completed` event. How do I set the attached payment_method as the customer's default method? Can it be done automatically as part of the form submission?

Related Event ID(s)
evt_1Ps9AbHTHZMmFuxlzd9jnDCZ

What have you already attempted?
When it comes in, I want to set the newly attached payment method as the default on the customer and remove any other payment tokens they may have. When I attempt to set the default using Stripe client, I get an error saying the customer doesn't have the payment method attached. If I try to attach it first, I get an error saying it's already attached.

cursive heronBOT
#

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

Question
What would be the best way to obtain the subscription product id for customer id? I am using Events.CustomerSubscriptionCreated, Deleted, Paused, Resumed, Updated and Completed. Are there other triggers to listen to? Thanks

Related Event ID(s)
CustomerSubscriptionCreated, Deleted, Paused, Resumed, Updated, Completed

What have you already attempted?
Learning to do this correctly.

What are you working on?
Subscription with Customer Portal Session, need to get the subscription product id or name to update my database.

#

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

Question
how can i trigger a subscription delete endpoint without having to wait for the subscription to end

Related Event ID(s)
none

What have you already attempted?
i have tried to set it to immediately cancel the subscription after the user cancels without waiting for it to end

What are you working on?
im building a saas with a no code editor bubble

cursive heronBOT
#

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

Question
I am trying to pass in an array of dictionary objects into stripe checkout metadata with python. Getting errors. Then I want to extract the value in payment_intent.success webhook.

Related Event ID(s)
req_m3lQmqBGDBMFsa

What have you already attempted?
checkout_session = stripe.checkout.Session.list(payment_intent=payment_intent_id,expand=["data.line_items",]).auto_paging_iter()

updated\_course\_ids\_and\_prices = checkout\_session.metadata.updated\_course\_ids\_and\_prices
#

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

Question
Simulated Reader does not work with Native Surcharge

’m trying to capture a terminal payment with a surcharge using the Stripe API. We are using the Native Surcharge feature, and it seems to work fine. When I use a dev terminal (S700) to test it, the amount captured is correct. For example, an amount of 100 with a 3% surcharge would result in a captured amount of 103. However, when I use a simulated reader, the surcharge is not being captured; the simulated reader seems not to send the surcharge in the confirm payment intent method. Resulting in 100 amount captured, without the surcharge

Related Request ID(s)
Payment with simulated reader (req_PzfHPqWiToAFVj) Payment with real reader (req_nVxkP6cxYFa4SB)

What have you already attempted?
I have tried using different kinds of cards in the simulated reader.

What are you working on?
Taking payments with surcharge on simulated reader

#

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

Question
I'm trying to mark an open invoice as uncollectible and I'm getting this error: "An error occurred while processing payment on this invoice, so it cannot be marked as uncollectible. Try again in a bit, reattempt payment, or void this invoice."

Related Request ID(s)
req_e8tmUTf47dwgBT

What have you already attempted?
Calling the API and in the dashboard.

What are you working on?
Maintaining an application

#

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

Question
Test Stripe's Affirm integration (fail and success)

Related Request ID(s)
pi_3PsAVoLYbD2uWeLi1X0AXKXo

What have you already attempted?
I did get a mail from Stripe support over the weekend, telling me to "Test your Affirm integration with your test API keys by viewing the redirect page. You can test the successful payment case by authenticating the payment on the redirect page."

It is not clear how that is done with the node client and using the client_secret from frontend?:
```stripe
.confirmAffirmPayment(clientsecret, { …
```

What are you working on?
order form with affirm support

cursive heronBOT
cursive heronBOT
#

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

Code
"code": "payment_intent_payment_attempt_failed",
"doc_url": "https://stripe.com/docs/error-codes/payment-intent-payment-attempt-failed",
"message": "The payment failed.",
"payment_intent": {
"id": "pi_3PmwwDIlR9VWnEGJ0IampXYS",
...
"last_payment_error": {
"code": "payment_intent_payment_attempt_failed",
"doc_url": "https://stripe.com/docs/error-codes/payment-intent-payment-attempt-failed",
"message": "The payment failed.",
...
}
}

Question
A user submitted a SEPA direct debit payment. When we called `paymentIntents.create` (with `confirm: true`), it returned a 402 with type: StripeInvalidRequestError. However, when I check the dashboard, it says that the payment was blocked, which doesn't appear in the error. It also says that the request to create the PaymentIntent failed, but that a payment was created, an attempt to fulfill it failed, and that a payment failed. What's going on here—did I call the API wrong?

What have you already attempted?
I've read all of the error docs, looked at the error we received, the event logs in Stripe, and the transaction page. I'm very confused by what I'm seeing—there's a reference to a "payment" with an ID prefix of `py_`, and no reference in the API logs of a block. I'm not sure how to handle this in our system.

What are you working on?
An e-commerce site.

cursive heronBOT
cursive heronBOT
#

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

Question
I am trying to put an array of dictionary items into checkout session metadata.

File "/home/user/video-membership-master/webhooks/views.py", line 844, in stripe_payment_intent_success_webhook
checkout_session_metadata = checkout_session.metadata
^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'AnyIterator' object has no attribute 'metadata'

Related Event ID(s)
req_kY24zIYqAGZwzc

What have you already attempted?
if event.type == 'payment_intent.succeeded':
print('payment intent succeeded webhook event')

customer\_id = event.data.object.customer
customer\_email = event.data.object.receipt\_email
payment\_intent\_id =  event.data.object.id
checkout\_session = stripe.checkout.Session.list\(payment\_intent=payment\_intent\_id,expand=\["data.line\_items",\]\).auto\_paging\_iter\(\)

print\('checkout session payment intent ', checkout\_session\)
checkout\_session\_metadata = checkout\_session.metadata
print\('checkout session metadata ', checkout\_session\_metadata\)
cursive heronBOT
#

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

Question
Usinging `Stripe::Charge.list` to get payments for a customer. Some of the payments for the customer are not returned with `list`. The missing payments are all ACH payments created w/ the Plaid integration. Is this expected? How can I list those charges?

Related Request ID(s)
n/a

What have you already attempted?
listing all the charges, searched the returned charges for the known payment id.

What are you working on?
billing system for an event company.

cursive heronBOT
#

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

Question
Is it good practice to create a Product or Price for a one-time payment such as an overage?

Related Request ID(s)
nothing

What have you already attempted?
We offer subscriptions as our own service, but apart from that we use an immediate payment facility for overage use.
https://docs.stripe.com/api/invoices/pay

Is it a good practice to create a product, price for invoices for excess payments in order to set a fixed description for invoices by subscription or individual payments for this excess?

cursive heronBOT
#

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

Question
I use
The /v1/checkout/sessions API created a GooglePay order. I wrote metadata in the order. After I completed the order, the metadata I created could not be found in the information received by the webhook. How can I obtain the metadata information of this record?

Related Request ID(s)
pi_3PsG9CRofqPnRUz50VXvVKG1

What have you already attempted?
I tried using the order number obtained by webhook to search for order information, but there is only an API to obtain all orders and there is no API based on the order number. When there are too many orders, it is impossible to do mapping.

cursive heronBOT
#

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

Question
Hi, I'm trying to integrate the Apple Pay and Google Pay buttons to my stripe checkout. But I see the Google Pay button on the chrome browser only, there is no Apple Pay button on the safari browser.

Related Request ID(s)
req_r676WtvBINedlw

What have you already attempted?
I'm using stripe ruby API to create the stripe checkout session with this payment_method_types parameter: `%w[card bancontact ideal link paypal sepa_debit sofort]` .
I also checked this URL https://docs.stripe.com/stripe-js/elements/payment-request-button, but I saw the "Pay with Link" button only. I would really appreciate your help!

cursive heronBOT
#

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

Code
im trying to integrate gpay payment method for react native using payment sheet

Question
i have integrated that but since i am from india i am not able to test it.. the client is Uk .. how can i test it

What have you already attempted?
i want to test it being in india how cn i do it

https://docs.stripe.com/payments/accept-a-payment?platform=react-native&ui=payment-sheet#react-native-google-pay

cursive heronBOT
#

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

Question
I would also love to payout directly to the Daycare bank accounts from Stripe without them creating an account (as I will have their bank information) instead of routing to my bank first and paying an additional bank fee and manual workflow. Would be a big help to automate this.

Related Request ID(s)
I would also love to payout directly to the Daycare bank accounts from Stripe without them creating an account (as I will have their bank information) instead of routing to my bank first and paying an

What have you already attempted?
I would also love to payout directly to the Daycare bank accounts from Stripe without them creating an account (as I will have their bank information) instead of routing to my bank first and paying an additional bank fee and manual workflow. Would be a big help to automate this.

What are you working on?
I would also love to payout directly to the Daycare bank accounts from Stripe without them creating an account (as I will have their bank information) instead of routing to my bank first and paying an

cursive heronBOT
#

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

Question
How can i confirm the google & apple pay payment intent since i am not attaching any payment method while creating payment intent

Related Request ID(s)
N/A

What have you already attempted?
N/A

What are you working on?
Apple Pay & Google Pay

#

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

Question
Is there no account.created event? There is only an acocunt.updated event, however, that doesn't seem to be fired upon account creation. It fires only during onboarding or whenever capabilities are updated. How do I circumvent this?

Related Event ID(s)
.

What have you already attempted?
.

cursive heronBOT
#

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

Question
A third party platform that I'm integrating with needs me to tokenize a payment method without creating a customer/attaching it to a customer. Is there a "good" way to do this using either Elements or Checkout? I'd like to avoid, if possible, handling customer payment details server side.

Not sure if setupintents allow this?

Doc/Guide Links
https://docs.stripe.com/api/tokens
https://docs.stripe.com/payments/save-and-reuse?platform=web&ui=embedded-form

What are you working on?
Online store integrating with another SaaS platform.

cursive heronBOT
#

@chrome nest 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'm building a website which offers thousands of items to buy (one-time payment). I'd rather not create product and price for every item. I found a way to generate checkout session with non existing product and price by specifying them in line_items object. Under the hood Stripe creates product automatically. The product is already "archived" and can't be unarchived. Is it a valid approach to create such checkouts? What are the disadvantages and risks? If checkout session is created for the same product name, will the product have the same stripe ID?

What have you already attempted?
I have already created checkout session with "custom price". What concerns me is that the product created this way is archived and it can't be found in product catalog, even in archived tab.

What are you working on?
Selling thousands of OTP in e-commerce shop.

cursive heronBOT
#

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

Question
Why the invoice link in invoice.paid event expired? Merchant in our platform want the invoice but the link save from invoice.paid event was expired.

Related Event ID(s)
in_1Pdnjg2U0oKjtQRhy6uuZ3HJ

What have you already attempted?
The invoice details in Stripe Workbench contain a valid invoice URL, but it's difference from the URL in invoice.paid that we received one month ago.

cursive heronBOT
#

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

What did you expect to happen?
If because of coupon code there is due amount get 0 so there should not be card details required

What actually happened?
stripe, so if the due payment get 0 because of 100% discount so i am trying to complete the checkout without entering the card details but decline me,

Reproduction Steps
go to the checkut page and add the coupon code which has 100% discount and try to checkout without entering the payment details

Question
Is there is any way to remove card validation if there is due amount is 0

cursive heronBOT
#

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

Code
require('dotenv').config();
const stripe = require('stripe')(process.env.STRIPE_SECRET_KEY);
const cron = require('node-cron');

// Virtual database that stores employee information
const employees = [
{ id: 1, name: 'John Doe', bankAccount: '000123456789', routingNumber: '110000000', salary: 5000 },
{ id: 2, name: 'Jane Smith', bankAccount: '000987654321', routingNumber: '110000000', salary: 6000 },
];

async function processPayroll() {
for (const employee of employees

Question

  1. Please check if this test node.js code is still valid.

What have you already attempted?
not yet.

What are you working on?
MediKnocks

cursive heronBOT
#

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

Code
const {error} = await stripe.confirmPayment({
elements,
confirmParams: {
return_url: "https://example.com/order/123/complete",
}
});

if (error) {
// This point will only be reached if there is an immediate error when
// confirming the payment. Show error to your customer (for example, payment
// details incomplete)
const messageContainer = document.querySelector('#error-message');
messageContainer.textContent = error.message;
}

Question
Following this guide (https://docs.stripe.com/billing/subscriptions/build-subscriptions?platform=web&ui=elements#collect-payment), I stumbled upon a scenario, where `stripe.confirmPayment()` can fail with "400 Bad request" instead of returning an object with `error` property. This cannot be caught by `try/catch`, and the JS script breaks. Is there a way to handle this gracefully in frontend?

What have you already attempted?
So far I can only think of building my own backend endpoint, which would make an API call just to check the status of that subscription, and call it from javascript before calling `confirmPayment()` in frontend. But I did not try it yet.

What are you working on?
An app very similar to the one described in the guide.

cursive heronBOT
#

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

Code
import express, { Request, Response, NextFunction } from "express";
import morgan from "morgan";
import routes from "./src/routes";
import "./src/setup/mongoo";
import stripe from "./src/utils/stripe";
const app = express();
const port = process.env.PAYMENT_PORT ?? 3004;

// Use JSON parser for all non-webhook routes
app.use((req, res, next) => {
if (req.originalUrl === '/api/v1/webhook') {
console.log('Webhook route detected');
express.raw({ type: 'application/jso

Question
im getting error from this code while im trying to access webhooks

What have you already attempted?
was running code from documentation and from webhook page

What are you working on?
app for managing and shopping in restaurants

cursive heronBOT
#

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

Code
const { error: stripeError } = await stripe.confirmPayment({
elements,
confirmParams: {
return_url: `${window.location.origin}/return`,
},
});

Question
Can I pass meta data using the Stripe.confirmPayment method?

What have you already attempted?
I'm looking through the docs right now.

What are you working on?
General web store

#

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

Question
Is the documentation at https://pub.dev/packages/flutter_stripe official from Stripe? Also, is it possible to register a customer directly from the Flutter frontend?

Related Request ID(s)
You can mention any related request IDs you have from your Stripe Dashboard, or leave this section blank if you don’t have any.

What have you already attempted?
I’ve reviewed the documentation on the Flutter Stripe package, but I couldn’t confirm whether it’s officially maintained by Stripe. I’ve also tried searching for examples on how to register a customer directly through the Flutter frontend but found no clear guidance.

What are you working on?
I'm working on integrating Stripe payments into a Flutter application and need to understand if the package mentioned is officially supported by Stripe and how to register customers directly from the

#

@small grotto 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/payouts

Question
we am using stripe our product for while

Now we have new scinario comes

We want to payout normal user They do not have business and any other stuff which account need

How can we transfer funds to user without all information need to create account

What have you already attempted?
I did reached it say need to create account it is fine but we are not able to provide any details to i

we can only provide
address ,email , name and payout account details

apart from this nothing else

What are you working on?
We want to reward our users based on activate they completed on our app

#

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

Question
Create paymentIntent for orders below 50cent

Related Request ID(s)
initialise payment sheey

What have you already attempted?
I have attempted to work around the stripe payment but the initialising payment sheet is failing due to the order being of value zero

#

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

Code
This is not a code related bug

Question
A user discovered a bug in the Stripe subscription renewal process. The user tried to renew. The payment failed. Then, the subscription got canceled. Finally, the user used a link to finalize the payment that failed. After paying, the subscription was still cancelled in Stripe state. The user paid for nothing.

What have you already attempted?
We refunded the user, cleaned the mess generated in our database and made him create a new subscription. We'd be thrilled if this could be prevented in the future ^^

What are you working on?
An app for disabled students in classrooms

cursive heronBOT
#

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

Question
stripe-node "stripe.customers.search is not a function" error without dashboard upgrade

Related Request ID(s)
N/A

What have you already attempted?
[context]
The team I'm in had been using the "2020-08-27" version as default for a while (for both our server & webhook integration).

Setup wise, it had been always be initialised via `new Stripe(0x00, { apiVersion: '2020-08-27'` })`

[problem]
Recently, we had a need to utilise the `await stripe.customers.search()` function. But whenever I called it, it always ends up with an error of "Error searching customers: TypeError: _app.stripe.customers.search is not a function"

What are you working on?
Integrating with `await stripe.customers.search()` on server side

cursive heronBOT
#

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

Question
I would like to know if it is possible to force a payout async failure in test mode for testing a use case we have

Related Event ID(s)
NA

What have you already attempted?
I have try to execute a payout for a connected account without rKYC but it fails sync, I would like to do that in a way I can test the payout.failed events

cursive heronBOT
#

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

Question
So was using the node sdk, nut than i enabled ts for it but since than I am getting error for properties not able to be definied which worked previously

Related Request ID(s)
.

What have you already attempted?
.

What are you working on?
.

#

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

Question
I want to know if its possible to use PIX (brazilian method of payment) in recorrent payment

Related Request ID(s)
0

What have you already attempted?
I want to know if its possible to use PIX (brazilian method of payment) in recorrent payment

#

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

Question
We are building quadratic donation matching for the Gitcoin ecosystem. This means that if 10 people donate $10 each to a project, that project will receive more matching funds than if 1 person donated $100. To make sure every donation is from a different person, we are looking for an API access that allows us to check if someone is checking out using their real name.

Related Request ID(s)
None

What have you already attempted?
We've seen that Visa has a payment account validation API which has an option to check someone's real name as they make a payment. Does Stripe have access to this API and perhaps something similar from MasterCard?

#

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

Question
If I update a subscription's effective tax rate, is there a way to guarantee that the upcoming invoice will take that change into account?

Related Request ID(s)
req_Lnr68i7Rv1vhlN

What have you already attempted?
I've tried updating the subscription's `default_tax_rates[0]` to reflect a new tax rate (the subscription has no `tax_rates`), and last week, I was able to see a change in the upcoming invoice's tax rate, but I cannot reproduce that behavior yesterday.

cursive heronBOT
#

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

Question
When I call the balance api why do I not get instant_available.net_available for this account id but for other account ids I do get this value?

Related Request ID(s)
acct_1PoQrVH647NVA5sq

What have you already attempted?
I have tried creating multiple accounts and for some it does show but for some it doesnt.

What are you working on?
In person payments solution.

#

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

Code
Is there a way to trigger validation on payment element without submitting it?

Question
We have a 'review order step' in our checkout and we need to validate the payment element prior to reaching this step and display the validation errors, like incorrect credit card number, expiry date in the past.

What have you already attempted?
paymentElement.on('change', event=>) but this just tells if its complete or not, it does not trigger the validation messages on the payment elements

What are you working on?
Rebuiling the checkout

#

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

Question
Hi I am running into an issue where my api is throwing errors. I am not sure what the API is for. I am inheriting some tech so just needed some assistance

Related Request ID(s)
evt_1PsQolI8IkWHMKds3i8yzDp0

What have you already attempted?
Tried learning about what the reason for this api could be for

What are you working on?
fixing these errors

#

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

Question
I need to get a total count of transactions, so I can include custom pagination links in my proxy API. Is there a way to do this that doesn't involve fetching every "page" of results beforehand?

Also, is there a way to sort results, again, without having to fetch every record beforehand.

Related Request ID(s)
N/A

What have you already attempted?
I've read the documentation

What are you working on?
Proxy API for our PAAS solution

cursive heronBOT
#

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

Code
account_link = Stripe::AccountLink.create(
{
account: @account.account_id,
refresh_url: onboarding_url(nonprofit_id: @account.nonprofit_id),
return_url: onboarding_return_url(host: Rails.application.routes.default_url_options[:host], protocol: Rails.application.routes.default_url_options[:protocol]),
type: 'account_onboarding',
collect: 'eventually_due',
},
{ api_key: standard_connect_api_key}

Question
We are using webhook to listen to when a customer has completed onboarding. The problem is that the return_url is getting invoked even when the capabilities are pending and the charges_enabled are false. we want the return_url invoked only when charges_enabled is true

What have you already attempted?
not sure what else to try here

#

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

Question
Hi!

Currently with Stripe we have simple subscriptions but we have been looking to change the way our users pay for their account. We will still have subscriptions but users will be able to purchase various add-ons.

I am thinking through the payment journeys and I just want to know if we want to host the payment upgrades on our UI or through stripe. we want to show the following upgrades in settings

Persona Pro Licenses (1) - $1k/m - 500k memory
Persona Basic Licenses (4) - $100/m - 50k memory
No-persona Members (10)
It would be great for users to be able to navigate to billing and be able to see their plan/limits.

Doc/Guide Links
https://docs.stripe.com/connectors/netsuite/custom-payment-application#connector-addons

What are you working on?
I am working on various payment journeys for users to be able to see limits on their account in settings and be able to purchase to increase limit

#

@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/payments/finalize-payments-on-the-server?platform=web&type=payment&client=react

Question
How do I pass the Payment Element billing details (name, address 1, address 2, etc.) as params to my backend for processing?

What have you already attempted?
I read the doc linked above, and am attempting to send it via params to my backend route.ts. I'm unsure how to pass the Payment details as params.

What are you working on?
I created a 4-step form. On the last step, the user inputs `Address` and `Payment` into Stripe Elements.

#

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

Question
Continuation of https://discord.com/channels/841573134531821608/1277817911469281444

Usinging `Stripe::Charge.list` to get payments for a customer. Some of the payments for the customer are not returned with `list`. The missing payments are all ACH payments created w/ the Plaid integration. Is this expected? How can I list those charges?

Related Request ID(s)
na

What have you already attempted?
na

cursive heronBOT
#

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

Question
Hi everyone,

I want to implement the subscription system through Elements, and I plan to give a 14 days trial. What would be the best way to avoid creating duplicate transactions? (Eg if someone creates the intent, then refresh the page, would it recreate the subscription)

Doc/Guide Links
https://docs.stripe.com/billing/subscriptions/build-subscriptions?platform=web&ui=elements&lang=node

What are you working on?
SaaS project

cursive heronBOT
#

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

Code
const payout = await stripe.payouts.create(
{
amount,
currency: "usd",
method,
},
{ stripeAccount: account.account_id }
);

Request made in Node.JS; issue is with live mode API using real cards.

In test mode, everything already works flawlessly.

Help please!

Question
Stripe Connect Payouts to MasterCard Debit Cards Not Working --

For context, we obtain card tokens from stripe-react-native's CardField, pass the token to our server, and link the card to the user's connected account using stripe.accounts.createExternalAccount. Debit card linkage works fine and everything looks good in out Stripe dashboard - instant payouts to the card is supported, etc.

When we attempt payouts to the debit card, it only works for Visas and not Mastercards.

What have you already attempted?
We've tried 3 Visa debit cards - instant and standard payouts work flawlessly.

We've also tried 4 Mastercard debit cards - neither instant nor standard payouts work. They all fail within a few minutes simply with:

"failure_code": "declined",
"failure_message": "The bank has declined this transfer. Please contact the bank before retrying."

These cards are all real, active, and work fine for charges. Do Stripe connect payouts not work for Mastercards? What is the issue here?

cursive heronBOT
#

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

Question
Stripe doesn't currently support application fees for platforms in US with connected accounts in MX.

Related Request ID(s)
CMmxyY-Hga3EPw" Error: Stripe doesn't currently support application fees for platforms in US with connected accounts in MX.

What have you already attempted?
We talked with Support and they had no idea about this error. We had to literally disable platform fees for Mexico. Hurting us a lot!

What are you working on?
Event Ticketing Marketplace with Connect

cursive heronBOT
#

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

Question
We want to be able to offer certain prospects the equivalent of a coupon code to be able to start a free trial for a subscription product. To be clear, we do not want to offer everyone a free trial, but we want to be able to offer this selectively by. We use Stripe Billing and Stripe Checkout.

What is the best way for us to do this? We've explored options using coupon codes, free trials, and no-cost orders, but haven't been able to find the right combination of how to do this yet.

Doc/Guide Links
https://docs.stripe.com/billing/subscriptions/coupons
https://docs.stripe.com/payments/checkout/no-cost-orders
https://docs.stripe.com/payments/checkout/free-trials

What are you working on?
Offering free trials for a subscription product using Stripe Checkout.

#

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

Code
applePay: {
recurringPaymentRequest: {
paymentDescription: 'My subscription',
managementURL: 'https://example.com/billing',
regularBilling: {
amount: 2500,
label: 'Monthly subscription fee',
recurringPaymentIntervalUnit: 'month',
recurringPaymentIntervalCount: 1,
},
},
},

Question
Hey, is there a way how to define multiple line items when adding a Apple Pay merchant token? The official API apparently supports multiple lines

What have you already attempted?
Tried using an array, but that doesn't work

cursive heronBOT
#

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

Question
How can I set a memo description on the first invoice generated from creating a new Subscription that involves a payment?

Related Request ID(s)
(none)

What have you already attempted?
Looked at the API docs on creating subscription

What are you working on?
Putting additional details on invoices for subscriptions.

cursive heronBOT
#

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

Question
I've tested a live subscription twice and the same thing is happening. After successful `invoice.payment_succeeded` and `invoice.paid` events with everything going well, almost exactly an hour later my webhook gets sent a `invoice.payment_failed` even though this isn't reflected in the real subscription. The subscription remains active and OK, but this phantom `invoice.payment_failed` event gets sent an hour after subscription creation.

Related Event ID(s)
in_1PsTsGI61fHTBUSGuqQ7hbLs

What have you already attempted?
I've looked through docs and StackOverflow but can't find anybody with a similar issue.

What are you working on?
I am building a web app that involves user subscriptions.

copper reef
cursive heronBOT
#

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

Question
If a subscription has the status of `past_due` because a renewal payment failed, and then the customer updates the payment method for that subscription (via an API call from our app, not the Customer Portal), does Stripe immediately retry the failed payment, or does it wait till the next scheduled "Smart Retry"?

Related Request ID(s)
n/a

What have you already attempted?
I've run simulations in Test Mode and it does NOT appear that Stripe immediately retries the failed invoice payment when the default payment method is updated. Instead, I am manually triggering the payment using the stripe.invoices.pay() method.

This seems to work, but I want to make sure I'm not doing unncessary work by triggering the payment.

What are you working on?
Making it easier for customers to handle failed subscription payments in our app.

#

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

Question
I'm trying to do some testing with test clocks, and part of what i'm doing is grabbing the current time (or when using a test clock, using the simulated time). But invoice.paid's created value seems to reflect the real time and not the test time. Is this correct?

Related Event ID(s)
evt_1PsWjQGaywuyFzhTbuexGOob

What have you already attempted?
N/A

midnight marlin
cursive heronBOT
#

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

Question
We're building a Connect integration with our product. We have two types of users of our product. Customers and Partners. Our Customers pay their Partners commissions we calculate.

Our issue is that we cannot figure out how to correctly signup Customers to add a bank account as a funding source.

This IS NOT a checkout flow. Rather, this is a business to business payment that we would deduct the funds from our Customer split and pay to their respective Partners.

We've gone back and forth with regular stripe support and quite literally get a different answer each time someone responds.

Related Request ID(s)
the setup intents all comeback unknwon

What have you already attempted?
Originally we were told to sign Customers up as express Connect accounts, create a customer object, create a setup intent and then get our Customer to connect their bank account. We were never able to get that to actual work because our setup intents kept erroring on us when trying to be used on the front end.

It's import to note all of our Customers will pay via ACH but we need to support US/Canada, EU, and Australia.

We've also tried linking existing Stripe accounts via OAuth to our connect platform to see if that flow would work but we've encountered the same issue.

What are you working on?
We're building a Connect integration with our product. We have two types of users of our product. Customers and Partners. Our Customers pay their Partners commissions we calculate.

#

⛔️ 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.

Discord APIs are experiencing an outage - see discordstatus.com for details. We will reopen the channel once the issue is resolved.

cursive heronBOT
#

✅ Stripe developers are currently available on Discord!

#

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

Question
I am currently calling https://api.stripe.com/v1/payment_intents to charge my customers. This call does not appear to allow me to create "items" which appear on the receipt emailed to customers, like I can when I create a subscription. Is this possible with this call, or do I need to make some other call? Thanks.

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

What are you working on?
marketplace

#

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

Question
I am getting an error when trying to create a checkout session with the subscription_data property set. I am working on Node.js and I am using the Stripe package v16.1.0 and whenever I am trying to create a checkout session the Stripe API will throw an error saying the following:

Error: Missing required param: subscription_data[items].

Related Request ID(s)
Looked in the Dashboard logs and the version of the API I am using is 2024-06-20

What have you already attempted?
I have tried putting the items property inside the subscription_data object but TypeScript throws an error saying that the 'items' property does not exist in that object.

#

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

Code
theme: 'stripe',
labels: 'floating',
const options = {
allow: 'payment *',
mode: 'payment',
amount: 50,
currency: 'usd',
paymentMethodCreation: 'manual',
appearance: appearance,
};

Question
how to disable the "Save your info for secure 1-click checkout with Link" prompt ?

What have you already attempted?
tried disableLink: false, but didn't work

#

@cunning delta 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/create

Question
We are doing a backend API integration with Stripe to replace an existing vendor. Current use-cases dictate we perform a $1 auth to verify the users card AND check if the card is an FSA/HSA one, in real-time. The PaymentIntents Api appears to rely on webhooks for feedback and is not real time. Would using the deprecated ChargeAPI allow us this functionality where receipt of an "Your card does not support this type of purchase" error would indicate it's an FSA card? Eventually we will use SetupIntents/PaymentIntents, so this is a stopgap solution for us as we transition from old vendor

What have you already attempted?
Have read up on Payment/SetupIntent, webhooks, and charges apis

What are you working on?
New Java SDK backend API integration for subscriptions to replace old Vendor

#

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

Question
Updating a Dispute - what's the correct format for the "shipped_date" value?

Related Request ID(s)
req_0oIpM8qSlJ8chu

What have you already attempted?
I've tried formatting as "YYYY-MM-DD", and as "MM-DD-YYYY". The docs just say "The date on which a physical product began its route to the shipping address, in a clear human-readable format." https://docs.stripe.com/api/disputes/update#update_dispute-evidence-shipping_date

#

@sterile shadow pressed the 📚 Doc or Guide button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

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

Question
We had previous developers set new subscription products for each customer so that they set custom prices. We are now cleaning up the code to have proper Subscription products that all customers subscribe to. How can we migrate existing customers to this new subscription products with their payment details intact and not have to get the customers involved ?

What have you already attempted?
Looked at docs but nothing there to migrate existing customers.

What are you working on?
Consolidate products and customers

cursive heronBOT
#

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

Question
Is there a way to specify an Invoice memo on a new Subscription that has an initial payment?

Related Request ID(s)
req_V3Hb7TLQVy73sE

What have you already attempted?
Tried to update the invoice after the fact, does not appear to be allowed for finalized invoices #1278068842861690900 message

What are you working on?
Updating subscription invoice memo

cursive heronBOT
#

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

Code
its my whole site its not 1 code its loads

Question
I am getting Network error [errno 28]: Failed to connect to api.stripe.com port 443: Timed out but I have not updated my code or my server and everything has been running fine for over a year

What have you already attempted?
when I goto api.stripe.com in my browser on remote desktop it also timesout?

#

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

Question
I am trying to understand the onComplete callback from the frontend when I am using the embedded option. What I want to test is what would happen when the payment has an intermediate step. I tried the 3DS and it executed the callback. Question is, when the payment redirects you to some authorization page from the bank, will the onComplete callback still be executed? I can't find a way to test this.

Related Event ID(s)
I couldn't execute this scenario

What have you already attempted?
I create a callback using onComplete.
I tried 3DS which is calling the callback

What are you working on?
Implementing Stripe in our portals

#

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

Question
We use Stripe Connect to link to our users Stripe accounts. For some Stripe accounts that our users made through Thrivecart the Stripe Connect authorize screen says "Re-use this business to create a new account."

How might we connect to this Stripe account instead of making a new account? Our users want to use ThriveCart and our affiliate tracking dashboard for the same Stripe account.

Related Request ID(s)
I can't find a request ID in the logs for Stripe Connect. Here's a random one from my account: req_IMQ0h1rEnMxFGE

What have you already attempted?
We've tried connecting other users' Stripe accounts that they also have connected to ThriveCart and they've worked.

What are you working on?
We're building an affiliate sales management platform Rootabl.com that connects with our users' Stripe accounts to see which transactions can be credited to affiliates.

cursive heronBOT
#

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

Question
I wonder how to set up webhook when the custom connected account's payout was created, not when our platform's payout is created

Related Event ID(s)
payout

What have you already attempted?
I read this documentation: https://docs.stripe.com/connect/payouts-connected-accounts

What are you working on?
we create custom connected account when service provider signs up on our platform, and we need to show when the money already sent to their bank account

#

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

Question
I'm integrating stripe's subscription flow, i came to a scenario where i need to send the user to a checkout/payment page to pay for a bill after the trial period.
I have the payment_intent for that bill and also the invoice.
How can i create a checkout session for that payment_intent/invoice?
I tried to set "payment_intent": ${payment_intent_id} on the session create endpoint, but it says the parameter is invalid

I don't want to redirect the user to the invoice hosted link because there is no way to set redirect parameters back to my website after the payment.

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

What are you working on?
Subscription managing with trials

cursive heronBOT
#

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

Question
I have a marketplace using Stripe Connect. We use transfer_ids to automatically make sure the funds from the buyer are transferred directly to the seller. We hold the funds for a set amount of time before initiating the payout.

We want to offer discounts for new users, like "$20 off your first purchase". The Marketplace will eat this cost, rather than the seller.

If we just use Discounts API with transfers, then the seller will receive $20 less. We want them to receive the full amount and have the $20 extra come from the Platform (us).

How should we implement?

Related Request ID(s)
https://docs.stripe.com/api/coupons

What have you already attempted?
We've read all the docs on Discounts and Connect, but there is nothing covering this case. Ideally we don't have to re-implement our entire payout logic for both discounted and non-discounted transactions to make this work (i.e. storing a transfer source of truth in our DB just so we can track discounts that need a top up to the seller)

What are you working on?
Large B2C marketplace

#

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

Code
i Recently had stripe with a custom developed web app now trying to switch to woo_commerce but for somereason place order not functioning

Question
i Recently had stripe with a custom developed web app now trying to switch to woo_commerce but for somereason place order not functioning

What have you already attempted?
i Recently had stripe with a custom developed web app now trying to switch to woo_commerce but for somereason place order not functioning

What are you working on?
Web App

#

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

Code
I got an email stating my account is in violation of the Stripe Services Agreement.

Question
I would like to know why my account would be in Violation.

What have you already attempted?
I haven't tried anything yet.

What are you working on?
I am building a store for twitch streamers

cursive heronBOT
#

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

Question
I want to see stripe webhook response.

Related Event ID(s)
1

What have you already attempted?
Implemented successfully webhooks

What are you working on?
I want to see on stripe official documentation about the object that stripe webhook event send as body

#

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

Question
We setup the UK card via setup intent API , which has prompted for 3ds and this has been fulfilled to get the setupintent confirmation as success. however while we use the saved card to pay using payment intent\ , we are again recieving the 3ds prompt. we have already satisfied 3ds during setup however this is again prompted.

Related Request ID(s)
req_a2qcCX5uCDnyDD

What have you already attempted?
SetupIntent completed with 3ds
payment intent with the same payment method is again asking for 3ds. Should customer have to do 3ds everytime then?

#

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

Code
$json_obj = \json_decode(\file_get_contents('php://input'));
$params = [ 'id' => $json_obj->id, 'expand' => [ 'customer', 'customer.address' ] ];
$options = $account !== '' ? [ 'stripe_account' => $account ] : [];
$pi = PaymentIntent::retrieve($params, $options);
$params2 = [ 'expand' => [ 'customer', 'customer.address' ] ];
$results = $pi->capture($params2,

Question
We're updating to the latest library and attempting to get the zip code off the payment intent capture. Should we expect to see a zip code or any customer info when expanding come back when using the test card with the terminal.

What have you already attempted?
[Tue Aug 27 21:57:16.602120 2024] [php7:notice] [pid 2103309] [client 107.197.61.222:50036] Stripe\PaymentIntent Object\n(\n [id] => pi_3Psc4IBJelVBLiSM0bCX1uGb\n [object] => payment_intent\n [amount] => 1190\n [amount_capturable] => 0\n [amount_details] => Stripe\StripeObject Object\n (\n [tip] => Array\n (\n )\n\n )\n\n [amount_received] => 1190\n [application] => ca_Ktoc3lJYlsvGpl9qY4wHECrFAgP8Dc

What are you working on?
getting customer info for payment

cursive heronBOT
#

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

Question
I am developing a subscription system and I am not sure if I am doing things correctly. I want to subscribe for products, the products are kind of "monthly usage quota" of our app.

Is there any simple way to achieve the similar goal? I just want to subscribe multiple products, and some of the products can be downgraded. Each product will mean some usage quota in our app. Is putting things in metadata not a good approach or can you suggest me a better way to do this.

Related Request ID(s)
N/A

What have you already attempted?
I have tried to put the order record in my own database which saves all the order detail. Then I put the orderId into the metadata of my subscription/subscriptionItem so that when a `customer.subscription.updated` event hits our webhook, I trace the order detail by looking for the orderId embedded into the retrieved event, then do relevant database changes for increasing/decreasing client's usage quota in our application. Sometimes it appears in subscription, sometimes it appears in all the products inside a subscription (so that later I need to put createdAt into metadata for filtering).

cursive heronBOT
#

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

Question
Using `prefetch` while creating payment intent, will automatically trigger refresh API and hence, FC balance refresh webhook?

Related Request ID(s)
none

What have you already attempted?
Tried using prefetch but didn't see any update in balance in FC or any webhook.

cursive heronBOT
#

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

Code
@csrf_exempt
def stripe_webhook(request):
payload = request.body
sig_header = request.META['HTTP_STRIPE_SIGNATURE']
event = None

try\:
    event = stripe.Webhook.construct\_event\(
        payload, sig\_header, settings.STRIPE\_WEBHOOK\_SECRET\_TEST
    \)
except ValueError as e\:
    \# Invalid payload
    return HttpResponse\(status=400\)
except stripe.error.SignatureVerificationError as e\:
    \# Invalid signature
    return HttpResp

Question
I am constantly getting 403 errors concerning my csrf token for my Webhooks. This is a Django, html, css, js project. Despite multiple attempts I am not able to resolve this.

What have you already attempted?
I have tried using stripe hosted checkout pages to no avail.

What are you working on?
I ma building a website and want to use stripe to handle payments.

#

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

Question
I have a marketplace using Stripe Connect. We use transfer_ids to automatically make sure the funds from the buyer are transferred directly to the seller. We hold the funds for a set amount of time before initiating the payout.

We want to offer discounts for new users, like "$20 off your first purchase". The Marketplace will eat this cost, rather than the seller.

If we just use Discounts API with transfers, then the seller will receive $20 less. We want them to receive the full amount and have the $20 extra come from the Platform (us).

How should we implement?

Doc/Guide Links
https://docs.stripe.com/connect
https://docs.stripe.com/api/discounts
https://docs.stripe.com/api/coupons

What are you working on?
B2C Consumer Marketplace

#

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

Question
We would like to submit evidence for a dispute using the Update a dispute API, but there is no field to set [Why should you win this dispute?]. Every time I check to submit evidence using the API, this option is blank. Is there any way to resolve this?

Related Request ID(s)
None

What have you already attempted?
None

cursive heronBOT
#

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

Code
// Step 1: Create the invoice and attach the payment method
$invoice = $stripe->invoices->create([
'customer' => $requestData['customer_id'],
'auto_advance' => true,
'collection_method' => 'charge_automatically',
'default_payment_method' => $requestData['default_payment_method'],
'metadata' => [
'franchise' => $requestData['franchise_id'],
'prod

Question
We are creating one time invoice, we don't find any option to pass products when creating it. So when invoice is created, in its response we don't have the products, discounts,coupons for which we have created the invoice and we need to show those products somewhere in our project. So how can we do this, so that we can show the products associated with the invoice.

What have you already attempted?
We have created invoice

What are you working on?
creating one off invoice.

cursive heronBOT
#

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

Question
Dear Tech Support,

In Live mode, we had try without 3D Secure credit card to pass 3D Secure. However, this card without 3D support, went through the 3D secure url: https://hooks.stripe.com/3d_secure_2

Is this card triggered 3D Secure? Our payment intent id: pi_3PsLRtP5uFmX1iFn1hBPI9Rv

Thank you for your support

Related Request ID(s)
pi_3PsLRtP5uFmX1iFn1hBPI9Rv

What have you already attempted?
In Live mode, we had try without 3D Secure credit card to pass 3D Secure. However, this card without 3D support, went through the 3D secure url: https://hooks.stripe.com/3d_secure_2

#

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

Question
There is a list of mandatory fields for passing Visa 3DS: cardholder name, email address, phone number. But you don't have a card type in setup_intent.payment_method_data. How can I fill in billing details in SetupIntent for cards?

Related Request ID(s)
seti_1PsPzD2eAB6s7U3SYJn7L1vk

What have you already attempted?
-

#

@solemn turret 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/stripe-data/import-external-data/connectors/s3

Question
Hi team,

I am currently in this step

Accordion to the documentation, it said:
" To create your permission policy, select JSON and replace the existing policy text by copying and pasting the provided code block"
However, it is quite confusing to me which is the provided code block you are referring to? Is that the code block you provided to me somewhere in the documentation?

What have you already attempted?
As above

cursive heronBOT
#

@torpid walrus 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/trials

Question
Is it possible to start a free trial without a selected product?

If not, is it possible to change the product of a free trial during the trial period?

What have you already attempted?
Still nothing tried

What are you working on?
I'm building a good-better-best with a usage-based enterprise model. I would like to add a free trial without the need of the user to choose at signup

#

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

Question
There is a list of mandatory fields for passing Visa 3DS: cardholder name, email address, phone number. But you don't have a card type in setup_intent.payment_method_data. How can I fill in billing details in SetupIntent for cards? You wrote to add information for the customer, but this information is related to the payment method, what happens if the customer adds a new card for which this information is not relevant?

Related Request ID(s)
seti_1PsPzD2eAB6s7U3SYJn7L1vk

What have you already attempted?
-

cursive heronBOT
#

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

Question
I am using Stripe's Checkout method (hosted payment page) and Payment Intent for payment functionality. I want to add Apple Pay to both the Checkout and Payment Intent processes. Could you please help me with how to integrate this? I am using a test account.

Doc/Guide Links
https://docs.stripe.com/apple-pay

What are you working on?
Subscription Payment Functionality for web used stripe hosed page: checkout method and for iOS Use Payment Intent API

#

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

Question
Payment Link made with API isn't displaying payment method type IDEAL in the checkout form when currency is euros and its a dutch connect account.

Related Request ID(s)
req_AP8H7UG02kSxQX

What have you already attempted?
Creating a payment link with currency code as euros in the dashboard will display IDEAL in the checkout form

cursive heronBOT
#

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

Question
Using intent checkout webhook, is there easiest way to get session id by intent.
I'm using

```
$session = \Stripe\Checkout\Session::all([
'limit' => 1,
'payment_intent' => $paymentIntent->id,
]);
```

Related Request ID(s)
none

What have you already attempted?
using

```
$session = \Stripe\Checkout\Session::all([
'limit' => 1,
'payment_intent' => $paymentIntent->id,
]);
```

What are you working on?
checkout using intent

#

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

Question
A few questions here to make sure i understood everything
- Is it recommended to collect billing details when people are subscribing to my SaaS solution?
- How would I prevent the email address from being edited by the customer?

Doc/Guide Links
Not applicable here I guess?

What are you working on?
SaaS project with Stripe Web Elements (React)

#

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

Code
const paymentIntent = await stripe.paymentIntents.retrieve(
paymentIntentId,
{
expand: ["latest_charge.balance_transaction"],
},
);

const fee = paymentIntent.latest_charge.balance_transaction.fee;

Question
I call this code inside my webhook 'payment_intent.succeeded', i got the following error : Cannot read properties of null (reading 'fee') which mean paymentIntent.latest_charge.balance_transaction is null. How it's possible ?

What have you already attempted?
I tried to get some payment from my flutter app and then transfer the payment (minus stripe and app fees) to my merchant users.

#

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

Question
I'm trying to implement OAuth2 in my web app, following the guidelines provided in this Stripe documentation. However, when I reach the second step where I need to test my app:

Test Your App

Navigate to your app’s details page.
Open the External test tab and click Get started to set up an external test.
Access the authorization links in the Test OAuth section. You can use these links to test with different accounts.
Unfortunately, I can't access the External test tab as it doesn't appear on the page. I only see the Version history and Settings tabs.

Related Request ID(s)
123

What have you already attempted?
xx

What are you working on?
Create OAuth2 config for my web app

cursive heronBOT
#

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

Question
I used stripe-java with 26.7.0 version (maven)
I have endpoint for handle web hook relate to customer.subscription.create or updated.
I use this logic in this endpoint:
EventDataObjectDeserializer dataObjectDeserializer = event.getDataObjectDeserializer();
if (dataObjectDeserializer.getObject().isPresent()) {
but this if return false always.
I checked your documentation and I could not find root cause of this issue.

Related Event ID(s)
evt_1PsgUCGjGngNzw7ydmxRuRAd

What have you already attempted?
I read stripe document. I used stripe extension in firebase. this extension will be expired. I write handle webhook in my endpoint with stripe documentation.
but this not work for me. please give me java (spring boot) for resolve this issue. we need to fix this urgently.

#

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

Question
I am trying to update old active subcription with new product price id

but I am getting error from stripe dashboad

The customer must complete an additional authentication step.

Related Request ID(s)
1

What have you already attempted?
this is my code
const { data: subscriptions } = await this.stripe.subscriptions.list({customer: body.customerId,}); const latestSubscription = subscriptions.reduce((latest, current) =>
current.created > latest.created ? current : latest,);
payment method
const subscription = await this.stripe.subscriptions.update(
latestSubscription.id, // Your subscription ID
{
items: [
{
id: latestSubscription.items.data[0].id,
price: 'price_1PZL8KFrwl37tCGiAOd8u8Pd',
},
]
}
)

What are you working on?
to update my old active subscription with new product priceId

cursive heronBOT
#

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

Question
I would like to add a discount coupon to my product

Related Request ID(s)
none

What have you already attempted?
I create the coupon on my stripe dashboard and i specify my product that i want, but still can not see where can i write the coupn code in to the payment page

What are you working on?
working in the best task manager taskavel.com

cursive heronBOT
#

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

Question
My customers can cancel an offer, and subscription (maybe multiple times) and to subscribe I'm using a checkout session in setup mode (to collect credit cards and billing address, update if necessary)

But the problem here, is that, if the customer has already a credit card (from a previous checkout session), the new session will add this new credit card.

So my customer can have a lot of credit card (even if it's the same already registered)

is it possible to change this workflow ? (maybe no ask always, to ask to reuse another payment method ?)

Related Request ID(s)
N.A

What have you already attempted?
I'm trying to update multiple settings of my checkout session (created via API), but nothing seems to reflect what i'm trying to do

#

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

Question
This PaymentIntent requires a mandate, but no existing mandate was found. Collect mandate acceptance from the customer and try again, providing acceptance data in the mandate_data parameter.

Related Request ID(s)
not found any

What have you already attempted?
I tried passing Confirm = true to payment intent api

cursive heronBOT
#

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

Question
parsing event webhook in java sdk has issue.

Related Event ID(s)
we_1PsNAiGjGngNzw7yi0rPRtK0

What have you already attempted?
I attempted with stripe account but I could not fix issue

What are you working on?
time management start up

cursive heronBOT
#

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

Question
We have recently rebuilt our website and as a result of this, the Gravity Form ID’s have changed. Whilst we have updated the Gravity Form callbacks, we are having issues with the Little Oaks form choosing the wrong Stripe connector (Droitwich). On investigating, the new ID for Little Oaks is 37, but this was the ID previously assigned to Droitwich. So could it be a caching issue within the Stripe system?

Related Event ID(s)
Look in LODN ltd > Developers > Webhooks

What have you already attempted?
We have disconnected the stripe feed from the gravity form, changed it to another stripe feed and then switched it back and it didn't work. We also tried creating a new webhook, adjusting the =fid and nothing is working.

What are you working on?
Stripe payment feed for families to pay registration fees.

#

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

Question
we are using google pay but the problem is that i have 2 apis one is payment intent and the other one is confirm payment intent after the confirm payment intent i drop the amount in users wallet in DB but there is a blocker from FE ( React Native ) after using stripe sdk method confirmPaymentIntent the intent already been confirm so i cant be confirm again

Related Request ID(s)
N/A

What have you already attempted?
N/A

What are you working on?
Google pay / Apple pay

cursive heronBOT
#

@untold jetty pressed the 📚 Doc or Guide button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Link to the Doc/Guide in question
https://docs.stripe.com/payments/accept-a-payment-deferred?platform=web&type=subscription

Question
Hi, I am following this provided stripe doc guide to build a custom payment flow that enables the Payment Element, create a Subscription, and confirm the payment from the customer’s browser.

But With this flow, If the user's card fails/declines. An incomplete subscription gets created on the stripe dashboard. I don't want that.
I need a way to confirm the payment method or card before creating the subscription.

And I am using Payment element.
Also i need my integration flow on single page. Can't break down the process.

What have you already attempted?
Unfortunately, I go through a lot of stripe documentation. Didn't find anything to solve my problem.

cursive heronBOT
#

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

Question
How do I send a webhook that has been sent more than 15 days ago?

Related Event ID(s)
evt_1PlYydDYKqU0SNyZaQfoO7EQ

What have you already attempted?
I tried to access the event page but there is no resend option

What are you working on?
Health Plan

cursive heronBOT
#

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

Question
Dear Stripe,
I want to detect events when an payment/invoice is uncollectible, i.e. when no attempts will be made and we did not receive the money, to send a slack message.

I was told to use the uncollectible webhook (invoice.marked_uncollectible)

However I detected cases where the invoice is "uncollectible" but this webhook was not raised. And I can show you one such event from stripe where the payment failed, and had insufficient funds and it will not be retried and it did not trigger this uncolllectible webhook. How can I detect cases where money was not transfered and wont be tried?

Related Event ID(s)
evt_1Prz3RHzzIMXxbBCLRe7O6tz

What have you already attempted?
I already use webhooks: invoce.marked_uncollectible
and invoice.payment_failed, as well as invoice.updated Thanks a lot for your help

#

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

Question
I'm using accounts.create() to create a stripe connected account and then accountLinks.create() to provide a link for the user to complete onboarding. The problem is the bank information (account number, routing...) is not collected via that link.

What am I doing wrong?

Related Request ID(s)
acct_1PsksZENCgkRsIhT

What have you already attempted?
I have capabilities cardPayments and transfers requested when creating acc and collection_options eventually_due when creating account link.

#

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

Question
Does balance.available webhook send the connected stripe account id with it? How can I from just the balance object find the connected account its for?

Related Event ID(s)
-

What have you already attempted?
-

What are you working on?
In person payments platform

cursive heronBOT
#

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

Question
We're building a Connect integration with our product. We have two types of users of our product. Customers and Partners. Our Customers pay their Partners commissions we calculate.

Our issue is that we cannot figure out how to correctly signup Customers to add a bank account as a funding source.

This IS NOT a checkout flow. Rather, this is a business to business payment that we would deduct the funds from our Customer split and pay to their respective Partners.

We've gone back and forth with regular stripe support and quite literally get a different answer each time someone responds.

Related Request ID(s)
the setup intents all comeback unknown

What have you already attempted?
Originally we were told to sign Customers up as express Connect accounts, create a customer object, create a setup intent and then get our Customer to connect their bank account. We were never able to get that to actual work because our setup intents kept erroring on us when trying to be used on the front end.

It's import to note all of our Customers will pay via ACH but we need to support US/Canada, EU, and Australia.

We've also tried linking existing Stripe accounts via OAuth to our connect platform to see if that flow would work but we've encountered the same issue.

What are you working on?
We're building a Connect integration with our product. We have two types of users of our product. Customers and Partners. Our Customers pay their Partners commissions we calculate.

#

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

Question
In the dashboard when I look at a payout I can see the related transactions on the dashboard, but I can't see a way to link the transactions to the payout through the api. When receiving a payout webhook we would like to also list the associated transactions.

Related Event ID(s)
evt_1PsahKEx8pB9i4TyBR2aGIao

What have you already attempted?
I've read the docs relating to payouts https://docs.stripe.com/api/payouts/object

What are you working on?
reporting tool

#

@untold jetty pressed the 📚 Doc or Guide button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Link to the Doc/Guide in question
https://docs.stripe.com/payments/accept-a-payment-deferred?platform=web&type=subscription

Question
Hi, I am following this provided stripe doc guide to build a custom payment flow that enables the Payment Element, create a Subscription, and confirm the payment from the customer’s browser.

But With this flow, If the user's card fails/declines. An incomplete subscription gets created on the stripe dashboard. I don't want that.
I need a way to confirm the payment method or card before creating the subscription.

And I am using Payment element.
Also i need my integration flow on single page. Can't break down the process.

What have you already attempted?
I created a thread before.
I got this response:
"Unfortunately that's not really supported today. You can sort of 'validate' the card initially, and assuming that suceeds then create the subscription. But overall that's not really recommded nor will it prevent all kinds of declines/errors (such as insufficient funds)"

But I have one question.

I am using payment request button on the same page for Apple/G pay.
And it works by craeting a payment method first,
Then i attach that payment method to the customer and then create Subscription.

Can't I use the same flow?

#

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

Question
How do I get the total gross or net volume in an account via the API?

Related Request ID(s)
N/A

What have you already attempted?
Balance. But that just lists the current balance for next payout.

cursive heronBOT
#

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

Question
Hi, I have a use case that I'm unable so solve, here is what is happening.

1) We're a subscription based business.
2) At the time of creating a scheduled subscription, we only take 10% of the first invoice (first billing cycle) of the subscription.
3) We then collection the reminder 90% 48 hours prior to subscription start date.

Related Request ID(s)
123

What have you already attempted?
Hi, I have a use case that I'm unable so solve, here is what is happening.

1) We're a subscription based business.
2) At the time of creating a scheduled subscription, we only take 10% of the first invoice (first billing cycle) of the subscription.
3) We then collection the reminder 90% 48 hours prior to subscription start date.

Now to achieve this, I've tried the following approaches -

Approach 1:

Assume subscription start date is 10th of Sep.
Phase 1:
Duration: 28th Aug - 8th Sep
Product: ProductA/monthly
Price: <using price override> to pass the value of 10%.
Needs to raise

What are you working on?
creating subscription

#

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

Question
I'm using stripe.checkout.sessions to create a payment session, from the session object I'm able to get the request ID. Does exist an API endpoint to check programmatically the status of the payment? I couldn't find it

Related Request ID(s)
.

What have you already attempted?
.

#

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

Question
Is there any API endpoint from where I can pull the data related to "verifi RDR disputes"? This is how the data is presented in the platform:

Lost dispute
This was a Verifi RDR dispute and the payment provider does not allow you to submit evidence for this dispute. The disputed amount of $36.00 USD has not been returned to you.

Related Request ID(s)
req_ElBlDbPhvRMvlM

What have you already attempted?
I unsuccessfully checked the following API objects: charges, disputed, paymentintents

#

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

Question
The Stripe Link in Form element is hiding when changing the country

Related Request ID(s)
Stripe payment element with Link

What have you already attempted?
I tried searching for the settings but not able to find.

What are you working on?
I am building an application to pay through Stripe, the Link is showing when we enter the payment details, but if we change the country, then the Link is getting hidden.

cursive heronBOT
#

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

Question
Hello there! My team and I are working on adding the stripe API to a custom site we created. Client wants to create a subscription model that is one product code used for each individual product without creating a billing nightmare for the clients each month. We have offered up solutions that would prevent this, but they are insistent on have it be 1:1. Any ideas on how to make this work without having a lot of admin management issues later on?

Related Request ID(s)
N/A

What have you already attempted?
We have not done anything yet. We are still working out how to do this in a way that the client wants it without over complicating things.

What are you working on?
New AirBnB Style Website

#

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

Question
Is it possible to make stripe checkout payments link available longer than 24 hours? (create session)

Related Request ID(s)
stripe checkout

What have you already attempted?
I tried to use param expires_at param but has 24 hours max .

What are you working on?
I'm working on onboarding process and there is a feature where account owner can send link to his clients in email. Client should click link and pay through stripe. (deafult mode)

cursive heronBOT
#

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

Question
I have recently upgraded our API version, we were previously using a very outdated 2019 version.

We had some webhooks set up to go to Zapier, and then send a Slack notification when a subscription changes is made.

One of the checks we did on Zapier was to check the `previous_attributes` but this non longer seems to be available in Zapier, however I can see this on the Stripe dashboard

This problem appears to tie in with the date I did the upgrade so much be related.

Related Event ID(s)
evt_1PlWegEXq1GrSRVnr9f3nNTu

What have you already attempted?
I have tried updating the version of the Stripe app on Zapier and recreating the Zaps from scratch but the `previous_attributes` does not come through therefore I cannot compare the values.

What are you working on?
Internal Slack notification via Zapier triggered from Stripe Webhook

cursive heronBOT
#

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

Question
I'm having an issue with a limit on line items attached to an Invoice. I'm acutally wondering if there is a limit to the number of items you can add to an invoice? I have a customer who added more than 70 items to an order, but in both cases, the line items were truncated to 43 items. Does this at all make sense or could possibly be limited by Strip backend?

Related Request ID(s)
None

What have you already attempted?
My customer has tried processing multiple invoice with 108 items the first time, than 55 invoices the 2nd time and each case the result was a charge for 43 items.

What are you working on?
This is a membership site.

cursive heronBOT
#

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

Code
Can I make a subscription with stripe api that will last 35 months and will be unextandable and unreactivable and will cancel after 35 months.

Question
I have task where I am creating checkout session in payment mode for product. And after based on this I have to create stripe subscription that customer can't extend, pay for. What I mean is that subscription is canceled after 35 months and user can't do anything about it

What have you already attempted?
Currently I have webhook that listen for checkout.session.completed and in metadata of checkout session i have some data like product_id etc. and then I am creating based on this event using stripe api Subscription for customer which i set on trial, but it's extendable and user can reactivate it

What are you working on?
Payment system for paying for subscriptions

#

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

Question
Id like to know if this triggers any webhook event at the end of the period, so I can remove the plan from the user.

await stripe.subscriptions.update(subscription.id, {
cancel_at_period_end: true,
})

Related Event ID(s)
.

What have you already attempted?
.

What are you working on?
.

#

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

Question
I'm working on integrating iDEAL in a React widget. Looking at https://docs.stripe.com/payments/ideal/set-up-payment for guidelines.
I'm wondering why the setup intent succeeded webhook only references the iDEAL payment method (which coincidently cannot be grabbed through retrievePaymentMethod and will return null). Why do I have to request the setup intent again (with expand "latest_attempt") to be able to see the details of the actual underlying payment method?

Related Event ID(s)
we_1PsVmNK2LJ3kGqAoL2qupESv

What have you already attempted?
To give more context, we just want to show the user more than just "iDEAL" in their account and were quite a bit surprised that the iDEAL payment method cannot be retrieved through the API.

#

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

Question
Stripe test environment has a policy to auto-cancel subscriptions after some time. This can be disabled in the dashboard by clicking in Actions and then `exclude from auto-cancellation`

Is there a way to do that using the API instead of having to login to the dashboard and do that for each subscription?

Related Request ID(s)
N/A

What have you already attempted?
https://docs.stripe.com/api/subscriptions/

#

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

Question
What API endpoint should be used to find if a transaction was a "Verifi RDR" dispute?

Related Request ID(s)
req_ElBlDbPhvRMvlM

What have you already attempted?
I checked all relevant endpoints - charges, disputes, paymentintents

cursive heronBOT
#

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

What did you expect to happen?
Credit Card added to customers.

What actually happened?
I got the message: The auth session is in an invalid state for this action.

Reproduction Steps
This is happening when customers are trying to add credit cards to their profiles. The flow is working for all customer except one.

Question
I have a product being used by different customers, each of them with their own stripe account. The product includes a mobile app and web app. In the mobil app I'm using a webview in order to add credit card to members but one of my customers reported me the message above. For all customers is not happening so I'm not sure what is happening.

What are you working on?
I have a mobile app and web app.

cursive heronBOT
#

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

Question
I'm using plaid to listen to customer transactions and charge them a small percentage after a certain amount of money has been spent. I want to charge them via ach and send that money to a stripe connect account. Wondering if Stripe connect is the product to be using to charge my customers or should I be using ach direct debit and charging my customers that way.

Doc/Guide Links
https://docs.stripe.com/connect/account-capabilities#transfers
https://docs.stripe.com/payments/ach-debit

What are you working on?
A platform similiar to acorn

#

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

Question
A customer of ours has received a message of "unexpected error occured", however the payment has been taken according to Stripe Transactions. I doubt there is anything wrong with the implementation because I just used what Strip docs provided using the Payment Elements.

Related Request ID(s)
pi_3PrjGNGD3tLaWDmJ1lFT9DQI

What have you already attempted?
...

What are you working on?
Payment System

#

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

Question
How to Save Customer Card Details only in the Customer ID so that we can use that Card Later when we want to charge the Customer?
Package: https://pub.dev/packages/flutter_stripe

Step 1: Create a new Stripe customer to get customerId
Step 2: Create a SetupIntent for the customer by passing customerId to get client_sectret
Step 3: Initialize the payment sheet with the customer and clientSecret
Step 4: Present the payment sheet to collect card details (Cant Proceed Ahead)
Card details have been saved successfully for the customer (Cant Proceed Ahead)

Related Request ID(s)
cus_QkIDeNoRey6Pmo

What have you already attempted?
BUG: The main issue in client_secret Id is not correct that's why we can't initialize init payment sheet and popup is not opening something went wrong. I am getting this error when I am sending customer and setupIntent client_secret id into paymentsheet to open card details pop up

Unhandled Exception: StripeException(error: LocalizedErrorMessage(code: FailureCode.Failed, localizedMessage: Invalid Payment Intent client secret: seti_1Psnd7H7zwh96ywsQroGWs0H_secret_•••McGA, message: Invalid Payment Intent client secret: seti_XXXXX, stripeErrorCode: null,declineCode: null

What are you working on?
Flutter, (Android, iOS)

#

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

Question
Hi there - we are using the tax calculation API - https://docs.stripe.com/api/tax/calculations - to calculate sales tax on meal kits. Our main revenue through stripe is healthcare copay/coinsurance so this is the first time using sales tax for us. When testing the API in dev with tax code txcd_30011000 we are consistently receiving the "taxability_reason": "product_exempt" response, despite the fact that this tax code is taxable. What do we need to do here to enable this to work across the US?

Related Request ID(s)
req_xiELKaXepjSRKn

What have you already attempted?
We tried adding a test registration for NY and saw that tax was then properly calculated. In prod and dev, do we need to add registrations for all 50 states for any sales tax to be calculated? Are registrations required for this API to work?

What are you working on?
Tax calculations

cursive heronBOT
#

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

Question
I want to know why the mandate isn't being configured when using the POST /v1/setup_intents

Related Request ID(s)
req_YWHwNrm24EvbHS

What have you already attempted?
I've executed the POST /v1/setup_intents using the following body, but the response didn't return the mandate configured.
```json
{
"payment_method_data": {
"type": "card",
"card": {
"token": "tok_1PsGKL49NNKdO11vrtUoERs3"
}
},
"usage": "off_session",
"customer": "cus_QjjmcvfqwZc7fF",
"mandate_data": {
"customer_acceptance": {
"type": "offline",
"accepted_at": "1724728247"
}
},
"confirm": "True",
"payment_method_types": {
"0": "card"
}
}
```

What are you working on?
I'm working on saving a credit card to be attached to a specific customer. The idea is to use this card to purchase new subscriptions, pay invoices, and handle payment renewals in the future offline.

#

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

Question
If I run create_checkout can I have it on checkout success each line_item item be created as a real product and not just shown as archived.

Currently under line_items I just generate the name, unit amount, etc and I want it so that after successful checkout it creates the product in the stripe dashboard and doesn't leave the status as archived.

Related Request ID(s)
none

What have you already attempted?
I haven't seen anything on the docs.

What are you working on?
A custom 3d printing with customized pricing.

#

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

Question
Using connect, when i post the company[registration_number], it is not updating the SIREN (french business id) and i have to do it manually (it should be done by the customer via form)

Related Request ID(s)
https://dashboard.stripe.com/test/workbench/logs?object=&direction[0]=self&direction[1]=connect_in&direction[2]=connect_out#wb-N4Igdghgbglg5hALjA9mEAuUEDGyoCmAKhAEaYgA2KcAziADQiJkASMtiKATgJ6YBtALpNuKA

What have you already attempted?
i created a token that hold the user infos, included the registration_number, but when i go on the user connected account, the SIREN(id for french business) is not taking the data of the registration_number

cursive heronBOT
#

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

Question
i want to do something like instacart a customer can make an order e.g. it costs 50euro 10 euro for the worker who delivers the food and 5 % for me can i do that with stripe connect? or what do i need to use ?

Related Request ID(s)
i want to do something like instacart a customer can make an order e.g. it costs 50euro 10 euro for the worker who delivers the food and 5 % for me can i do that with stripe connect? or what do i need

What have you already attempted?
i want to do something like instacart a customer can make an order e.g. it costs 50euro 10 euro for the worker who delivers the food and 5 % for me can i do that with stripe connect? or what do i need to use ?

What are you working on?
something like instacart

cursive heronBOT
#

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

Question
I'm getting an error when trying to add a testing card using our new account when that account is in test mode and I'm using the Test Mode API Keys.

Through our criterion.com checkout interface I go through our normal "Add a Credit Card" modal form. When I do this, the criterion.com user gets added to our new account in Test Mode as a customer, and I can see that customer in the Stripe admin, but a failure occurs when adding the testing card to that new customer. Therefore, the credit card info never appears in our database, and the new new Stripe customer in the Stripe admin doesn't have...

Related Request ID(s)
??

What have you already attempted?
...a credit card. Which, in turn, means I can't complete the checkout process.

I think I've isolated it to an API call. The 500 error I see in my server response is "Call to a member function create() on null." The related code in our application is:

$customer->sources->create()

..where $customer is an instance of the Stripe customer.

I'm using version v8.12.0 Stripe PHP API library (from July 2022), which is the same code that we are running without errors in production.

Is it not possible to add cards, via this API, in test mode, even though creating the customer worked? Or, is there...

What are you working on?
Your form doesn't allow me to enter all the details of my question.

#

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

Code
How to add TOS checkbox to payment element?

Question
Looking to add TOS checkbox to payment element.

What have you already attempted?
I tried looking through the docs but it only speaks about setting this on the server side.

What are you working on?
E-Commerce

cursive heronBOT
#

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

Question
I am using customer portal to handle customer upgrade and downgrade. However, the customer portal does not support the our upgrade/downgrade design. Currently, we have three plans with price from low to high: basic, plus, premium. When a user upgrade from a lower plan to higher plan, we want to charge the full price of the new plan, stop the old subscription, and start new subscription (with the corresponding webhook). When user downgrade, we wait until the current subscription period ends and change to the new plan.

Related Request ID(s)
N/A

What have you already attempted?
Currently we don't refund user when they cancel the plan, and we don't want to any proration due to the mechanism of our subscription benefits

What are you working on?
Saas platform

#

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

Question
I've set up a SetupIntent with a card that requires 3DS authentication. However, when I create a Subscription in offline mode, the API returns an error requesting additional steps related to 3DS authentication. Is this behavior expected? Why is the API asking for 3DS authentication again if the card was already set up?

Related Request ID(s)
SetupIntent -> seti_1PsGKZ49NNKdO11vd3Eijzhh; Payment -> req_GXTkZT7eGmlV29

What have you already attempted?
I've created a subscription using the lastest stripe python library.
```python
subscription : Subscription = Subscription.create(customer=customerId,
items=[{
"plan": planId
}],
payment_behavior="error_if_incomplete")
print(f"Subscription created: {subscription.id}")
````
Previously I configured a setup intent.

What are you working on?
I'm working on saving a credit card to be attached to a specific customer. The idea is to use this card to purchase new subscriptions, pay invoices, and handle payment renewals in the future offline.

#

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

Question
I'm trying to retrieve all the products/plans that i already have in the stripe account. I only need the active ones not all of it,

Related Request ID(s)
req_BWBeNCgFrsk5vo

What have you already attempted?
I'm using this:

stripe_plans = stripe.Plan.list(limit=100, active=True)

What are you working on?
i want to get all the actives products that i have created in the stripe account.

cursive heronBOT
#

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

Code
$components = [
'payment_details' => [
'enabled' => TRUE,
'features' => [
'capture_payments' => FALSE,
'destination_on_behalf_of_charge_management' => TRUE,
'dispute_management' => TRUE,
'refund_management' => FALSE,
],
],

Question
When an inquiry is submitted, the embedded component still show the send refund button. I would expect not to show since refund_management is FALSE

What have you already attempted?
I double checked my implementation and I want to ensure I am not missing something here

What are you working on?
Custom Connect - Destination Charges - on_behalf_of

cursive heronBOT
#

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

Question
Stripe Connect Account Onboarding

Related Request ID(s)
N/A

What have you already attempted?
I have set up stripe connect accounts via API and Dashboard but have a clarifying question based on the last discussion we had where I needed a recipient service agreement for CA transfers to be possible

What are you working on?
Stripe Platform in which we collect payment for clients and transfer payments to them

cursive heronBOT
#

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

Question
I received a message saying: "We're reaching out about a change that you'll need to make to your
Stripe integration for Levelset. You are currently accepting ACH Credit
Transfer payments using the Sources API, a legacy integration that
will be deprecated on October 15, 2024.
Starting October 15, all non-card source types will be turned off on the
Sources API. In order to continue accepting ACH Credit Transfer, you’ll
need to upgrade to the Payment Intents API."
I am not sure how to save ACH in the user's payment methods as I am currently using the sources API along with Plaid.

Related Request ID(s)
Can't find one

What have you already attempted?
I tried attaching the payment method to the customer after generating a plaid token

What are you working on?
Migrating to the payment intents API

#

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

Question
Im getting the same subscirber (invoice.paid) twice for the same cosumter and product

Related Event ID(s)
invoice.paid

What have you already attempted?
the only thing that changes is the create timestamp

What are you working on?
backend code

cursive heronBOT
#

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

Question
How can I offer interest-free monthly payments from Elements, but I need the client to pay the interest, meaning in monthly installments with interest?

Related Request ID(s)
Stripe API > MSI

What have you already attempted?
I already have the service implemented, both with checkouts and with Elements, but the customer is charged in Months without interest. And I want to see if I can configure it so that it becomes Months with interest. That is, the customer pays this amount.

What are you working on?
Developer fullstack

#

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

What did you expect to happen?
Field default_payment_method on customer.subscription.updates not null because client has a payment method

"previous_attributes": {
"default_payment_method": "pm_1NjloGDSGSYbnsrw3ET7s8lB"
}

What actually happened?
Field default_payment_method on customer.subscription.updates suddenly was converted to null

1) Here is correct: https://dashboard.stripe.com/acct_1Ksa2EDSGSYbnsrw/events/evt_1Nv0dBDSGSYbnsrwvJiOzzLJ
2) Next subscription dissapear:
https://dashboard.stripe.com/acct_1Ksa2EDSGSYbnsrw/events/evt_1O46DiDSGSYbnsrwgYZ2Rzme

Reproduction Steps
Was an automatic event in a client subscription

Question
Why this happened? Because it was an automatic event and suddenly the field is null

#

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

Code
https://docs.stripe.com/stripe-js/react

Question
We recently upgraded from react-stripe-elements
to your new package @stripe/react-stripe-js and we noticed that the ZipCode element has been removed. My team is trying to understand why that is as it use to be a required field to take payments

What have you already attempted?
Nothing has really been done as it is more of a question

What are you working on?
Web Application

cursive heronBOT
#

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

What did you expect to happen?
stripe.PaymentIntent.create() to return a payment intent containing a list of charges containing 1 Charge object

What actually happened?
stripe.PaymentIntent.create() returned a payment intent with an empty list of associated charges

log for request that exhibits this behavior:
https://dashboard.stripe.com/acct_1Nj6GXLnJjenxupO/logs/req_nkTxYz3LUeymTK

payment intent:
https://dashboard.stripe.com/connect/accounts/acct_1Nj6GXLnJjenxupO/payments/pi_3PjdCCLnJjenxupO0Xc5Q5lA

Reproduction Steps
add BACS payment method via a stripe checkout session
process payment using newly added BACS payment method

Question
in the past couple months, we started accepting BACS as a payment method for our UK connected accounts

we see some cases where the response of the payment intent does not contain any charges and some that do.

what are the scenarios / why would a payment intent with the status processing not contain a charge object in the response?

What are you working on?
investigating application crashes causing payments to not be recorded in our platform but have been collected from end user

cursive heronBOT
#

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

Question
If I'm making my own Shopping Cart model for a website that sells SaaS subscriptions, should the cart hold Stripe Products or Stripe Prices?

Doc/Guide Links
None for this particular question.

What are you working on?
SaaS site for economic data subscriptions. Currently my carts hold references to Stripe Prices, but I'm working on a refactor and just wanted to see if there was a best practice for this kind of thing. thanks!

#

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

Question
Our ORG is currently limited to 1 testing per day, but require additional testing after setup. One of the issues we've encountered: Stripe Payment did not Auto-Deposit due to a RequestContext.getUser() null bug, because this was a webhook, hence there was no user context. Our team has found Stripe's webhook is extremeley hard to test both manually and unit test/QA wise. unit tests we mock a lot of external api calls, and manually its hard to retrigger webhooks from stripe in test mode. Please note, I'm not a technical employee. In short, is there a way to increase the number of testings that can be done per day between our Org and Stripe?

Doc/Guide Links
N/A - happy to share a brief explanation upon request.

What are you working on?
Ensuring all auto-deposits work accordingly. Please note, I am NOT a technical person.

cursive heronBOT
#

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

Question
if I create an express account, could you elaborate on how chargebacks are handled? will my platform be responsible for chargeback fees or will that be handled between stripe and my user?

Related Request ID(s)
no related request

What have you already attempted?
using webhook to keep my records up to date.

cursive heronBOT
#

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

What did you expect to happen?
I have created a Subscription with a value of $0.10 for testing. When I add a "seat" I get the following upcoming invoice:
29 SEP 2024 - 29 OCT 2024
Per -seat subscription QTY: 1.
Unit Price: $0.10
Subtotal: $0.10
Total: $0.10
Applied Balance $0.10
Amount due $0.20

I expected the amount due to be $0.10 instead of double that price

What actually happened?
The value being charged is double the amount. I have previously posted this situation and Pompey (Stripe help) told me to set `proration_behavior` to `always_invoice` and I did, but apparently I am still getting charged double which makes no sense to me

Reproduction Steps
Generate a subscription product and change the QTY to 1.

Question
Why am I getting charged double in the subscription? The subscription ID is the following: sub_1PsxNaBYrQRSoqF2pWDBWb5v

cursive heronBOT
#

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

Question
I am trying to update user old active subscription with new product price_id.

I am thinking of deleting the old active subscription and unattach it with customer and then create a new subscription

Related Request ID(s)
1

What have you already attempted?
what I have done so far.

update the subscription without deleting the old active subscription. and add new product price_id
and then get the hosted_invoice_url.
Sent this url to customer email so customer can active using 3DS.

What are you working on?
I am thinking of another flow

cursive heronBOT
cursive heronBOT
cursive heronBOT
#

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

Question
Stripe Link payment method is loading after its logged out from the Payment element

Related Request ID(s)
no

What have you already attempted?
I have checked the Strip events and log. But no clue

cursive heronBOT
#

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

Question
need to know how to set up a Stripe Connect account under my admin account.

Related Request ID(s)
N/A

What have you already attempted?
I do RND and found that we have to register an account using

const account = await stripe.accounts.create({}); and after that call

const accountLink = await stripe.accountLinks.create({
account: account,
refresh_url: `${req.headers.origin}/refresh/${account}`,
return_url: `${req.headers.origin}/return/${account}`,
type: "account_onboarding",
});

What i need to understand is a user registered under my admin stripe account or if the newly created account is individual account

What are you working on?
Building E-commerce web site in Next Js

cursive heronBOT
#

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

Question
I have granted the access to the address verification check in identity check, but i cannot find any documentation on how enable the feature, can you help me?

Related Request ID(s)
none

What have you already attempted?
look at https://docs.stripe.com/identity/verification-checks?type=address#address-availability and
https://docs.stripe.com/identity/verification-sessions#create
and

https://docs.stripe.com/api/identity/verification_sessions/create

What are you working on?
test address verification step on identity

#

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

Question
I am trying to enable payment options like Google Pay and Apple Pay etc. in addition to the Card and Link options that we already have enabled. I am trying to first test different payment flows using our test Stripe account in my local environment. For some reason, I do not see the Google Pay option show up even when I am on Chrome and logged into a Google account with Google Pay enabled and card added. For now I am testing using a Stripe-hosted checkout session and have also added checkout.stripe.com under "Payment method domains". What am I missing here?

Related Request ID(s)
-

What have you already attempted?
Enabled Google Pay from the dashboard and added checkout.stripe.com as a payment method domain.
This is an example Checkout session (I have it set up to expire after 8 hours from now):
https://checkout.stripe.com/c/pay/cs_test_a1FAYZKqMz5A8nTsTlDYaOLhl4IKh6Xv1ntYDswWk1Nukkkm0Zx5xkoFCT#fid1d2BpamRhQ2prcSc%2FJ0twa2xxaicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaZ11IT0dEfUtAYzBSc0xrazMxS2sydzZvJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpscWBoJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl

What are you working on?
Enabling Google Pay for Checkout

cursive heronBOT
#

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

Code
const session = await stripe.billingPortal.sessions.create({
customer: subscription.customerId,
return_url: `${process.env.NEXT_PUBLIC_URL}/billing`, // Replace with your app's dashboard URL
});

Question
I want to make a change payment method portal in my app. In stripe when I go to the customers page I can share the customers update subscription link. When I go to it I can update my card information and more. But I need to do this using api and my code. But I am not finding a solution.

What have you already attempted?
I have attempted payment intents.

What are you working on?
Stripe change payment method portal.

cursive heronBOT
#

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

Code
const creditBalance = proratedAmount ? baseAmount - proratedAmount : 0;
if(discountAmount){
await stripe.invoiceItems.create({
customer: customerId,
amount: discountAmount * 100,
currency: 'usd',
description: 'Discount Amount',
});
}

    const subscriptionItems = {
      customer\: customerId,
      coupon\: coupon\_code,
      items\: plans.map\(\(plan\) =\> {
        return {

Question
here i need to charge credit to the particular subscription subscription

What have you already attempted?
none

cursive heronBOT
#

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

Question
We tried to make a SEPA debit payment using payment intents API with capture_method as manual for most requests. The same functionality is working for similar other accounts, but not for this specific account. Could you let us know what we are missing?

Related Request ID(s)
req_DNjye9vsoip7wO

What have you already attempted?
We are passing the following parameters in create payment intent API:

paymentIntentParams.put("amount", amount);
paymentIntentParams.put("currency", currencyCode);
paymentIntentParams.put("capture_method", "manual");
paymentIntentParams.put("confirmation_method", "manual");
paymentIntentParams.put("confirm", true);
paymentIntentParams.put("setup_future_usage", "off_session");

#

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

Question
What is the best practice if we could not receive the webhook regarding the payment (eg. charge)? Will stripe try to send it again (based on error response) or how should we do it?

Related Event ID(s)
no specific id

What have you already attempted?
still considering workarounds

cursive heronBOT
#

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

Question
I recieved an email saying: "We're reaching out about a change that you'll need to make to your
Stripe integration for Levelset. You are currently accepting ACH Credit
Transfer payments using the Sources API, a legacy integration that
will be deprecated on October 15, 2024.
Starting October 15, all non-card source types will be turned off on the Sources API. In order to continue accepting ACH Credit Transfer, you’ll
need to upgrade to the Payment Intents API."
I am a bit confused. Does this mean that I can continue using the sources API to create, and update Sources normally?

Related Request ID(s)
N/A

What have you already attempted?
From what I understand we use the charges API to charge for ACH payments. Do I need to use the Payment Intents API here instead?

#

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

Question
How do I get the Payout object from a connected account when I have the ID of the invoice on my platform account?

Related Request ID(s)
req_dgXgQhBeZMZu8B

What have you already attempted?

  1. I have the `in_*` invoice ID.
  2. I'm able to get the charge by `ch_*`
  3. I'm able to get the transfer by `tr_*`
  4. I'm able to get the destination charge by `py_*`, with the `connect_account` request option set.
  5. Not sure what do I do to get the `po_*` payout object that this charge was paid out in. Is this even possible?
#

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

Question
setup intent or paymentintent intent with setup_future_usage supports 3ds cards when payment intentent is created later

Related Request ID(s)
pi_3Pt5rpFnc067YdKn0qtTYHN7

What have you already attempted?
Payment is declined

#

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

Question
I currently have a marketplace that processes transactions and transfers the money to our sellers through stripe connect. they all have express accounts. Our platform is using the separate charges and transfers method. The end goal is to have the transfers be done directly after the sale so my connected accounts can login and see their balance accumulate, and then have the money be paid out to my connected accounts 30 days after the transactions process to protect us (the platform) from fraud.

Related Request ID(s)
n/a

What have you already attempted?
tried to set delay on the dashboard to 30, which didnt work and the money was paid out as soon as the transfered funds were available. my next/current attempt would just be manual payouts through the API, However, I was wondering if I send multiple payouts for the same account on the same day, will stripe add the payouts, or just send the last one. I'm sending my transfers per transaction, and was going to pair my payouts with my transfers but delay them 30 days. so If a seller had multiple txns on the same day, 30 days later, they would get a payout call for each txn. would that be an issue?

#

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

Code
CardField(
preferredNetworks: [CardBrand.Mastercard, CardBrand.Visa],
controller: controller.controllerCard,
),

Question
i cant custom Cardfield UI, CardEditController

What have you already attempted?
i have read tutorial, problem solving, github

What are you working on?
custom UI saving payment method

cursive heronBOT
#

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

Question
I need some clarification on how to handle Upsells. I want my customer to be able to upgrade their subscription from specific "products" to other specific "products"

Doc/Guide Links
haven't found anything

What are you working on?
Ab testing platform

cursive heronBOT
#

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

Code
const options {
clientSecret : clientSecret,
}
paymentElement.mount

Question
I want to be able to the scan card via web so it autofills the card details in the form via my payment element

What have you already attempted?
I saw JS plugins but nothing relating to it on the docs

What are you working on?
a tipping system using laravel

cursive heronBOT
#

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

Question
Is there a way to set up future payment methods via the stripe API that doesn't require require using the stripe js library?

Our preferred way would be to write our own API calls.

Related Request ID(s)
n/a

What have you already attempted?
n/a

#

@native cloud pressed the 📚 Doc or Guide button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Link to the Doc/Guide in question
https://docs.stripe.com/api/balance_transactions/object#balance_transaction_object-fee

Question
Although the documentation clearly says that these values are integer in charges, I get a decimal values:

10000 (amount) = 160 (fee) + 9840 (net)
2708 (amount) = 43.328 (fee) + 2664.672 (net)

What have you already attempted?
checked https://support.stripe.com/questions/rounding-rules-for-stripe-fees which is not what I get

cursive heronBOT
#

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

Question
I'm running into 500 internal error when testing a new webhook (next.js) set up in test mode.

Still the error persists after my attempts to solve the issue and I'm not sure where the problem could lie.

Related Event ID(s)
checkout.session.completed invoice.paid

What have you already attempted?
I've cross checked the environment variables like
- webhook secret
- test stripe api key

As well as that the api version and webhook url configured in stripe and the platform match.

When running the local listener the events come through successfully.

What are you working on?
sign up - checkout flow for a saas platform

#

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

Question
hi there. trying to figure out the best patterns for handling 3DS on transactions that are part of an in-house payment plan. we have users agree to keep their card on file and charge monthly for N months. some set of users get some portion of the way through their installments and then have 3DS cause a monthly installment to be incomplete. since it's working in the background "magically" for them rather than in a UI with a form that can report back the 3DS issue, what would the best practice be for handling this with a user in this asynchronous fashion?

Doc/Guide Links
https://docs.stripe.com/payments/save-and-reuse
https://docs.stripe.com/payments/3d-secure

What are you working on?
payment plan capabilities for our ecom sites

cursive heronBOT
#

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

Code
https://github.com/stripe/stripe-php/blob/master/lib/Collection.php

Question
With PHP 8.2, we have a problem with Stripe/Collection. Here's the error :
Could not convert database value to 'object' as an error was triggered by the unserialization: 'Creation of dynamic property Stripe\Collection::$_requestParams is deprecated

What have you already attempted?
We directly patched our local vendor/Stripe (last version available : 15.x.y) by declaring a new Class attribute this way :
...
protected $_requestParams;

#

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

Question
There's a subscription_schedule from a subscription that still uses the deprecated attribute coupon. It also uses discounts attribute too, containing the same coupon inside. When we try to update this subscription_schedule, this error shows up: invalid_request_error - phases[0][coupon]
You may only specify one of these parameters: coupon, discounts.

This subscription phase already ended 6 months ago, yet it's causing this error. Is there a problem removing the coupon attribute from it?

Related Request ID(s)
req_qFbzhdnzwTUlYD

What have you already attempted?
I've already tried to replicate the error in this: req_BgcijbYgp3b77N
Seems that the phase[0] needs to be expired, or it only happened on an older version of the API.
Also read this:
https://docs.stripe.com/api/subscription_schedules/object

What are you working on?
Updating subscription schedules.

#

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

Question
in my stripe account we have two versions (the test one and the one used in production). When the payment link is created for a specific country using the api for the test account the tax is assigned but when the same process is done but from the production account the tax is not applied. Could you tell me why this is happening?

Related Request ID(s)
(PRODUCTION): req_4hRKVTzA86KCnm (TEST): req_uiDxLO30DZW9FF

What have you already attempted?
I have created both links using the same object, the only difference is that one is in the test account and the other is not.

What are you working on?
Payment Links

#

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

Question
I'm using Stripe's payment holding feature, where funds can be held before capturing. I understand that if no action is taken, the payment status changes automatically after 3 days, and the funds are refunded to the buyer. Is there a way to extend this holding period beyond 3 days before the funds are automatically refunded? If so, how can this be configured?

Related Request ID(s)
dashboard>developers

What have you already attempted?
Not much since this is a feature stripe provides

What are you working on?
Im am developing a car-auction webapp focussing on selling to professionals only. In my flow i hold the payment until after the car has been checked in a physical appointment to confirm the goods.

#

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

Question
Is there any plan to add industry_product_code (https://docs.stripe.com/api/issuing/transactions/object#issuing_transaction_object-purchase_details-fuel-industry_product_code) for the items in `puchase_details.receipt`?

Related Request ID(s)
N/A

What have you already attempted?
General API Question

What are you working on?
Implementing transaction reports to partners that include the numeric product codes for all receipt items

#

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

Question
How can I know why the event account.application.deauthorized was from Source automatic ? What happens here

Related Event ID(s)
evt_1PsmHG7CkWHLJLBs67uKtPHC

What have you already attempted?
Looking at the event / logs and there is nothing tell me what happend here

What are you working on?
A fleet management system where you can rent electric bike / any type of vehicle we implement

cursive heronBOT
#

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

Question
I have created two zaps (Zapier) transferring subscription data from Stripe to Salesforce.

Among other fields, the zaps include the following fields: Trial end, Trial start, Created, Cancel at, Canceled at.

Question: Our customers start with a 7 day trial subscription. Afterwards they might convert to a different subscription. Does this second, new subscription still include the trial dates of this customers? If not, will my zap overwrite Trial start and Trial end if the new subscription has no Trial values?

Related Request ID(s)
n/a

What have you already attempted?
n/a

cursive heronBOT
#

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

Question
Is there a way to pass prefilled_email to the payment links create endpoint via API? Or is this only via payments page?

Related Request ID(s)
req_TyEfpn7Vy4HORI

What have you already attempted?
Tried sending create Payment Link call with prefilled_email param

What are you working on?
Chrome Extension

#

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

What did you expect to happen?
tax to be added manually being exclusive.

What actually happened?
only giving an inclusive when setting it up, however i had it set correctly and it somehow got deleted

Reproduction Steps
setting in invoice as a manual tax code

Question
how to set the tax code to be added manually as exclusive

What are you working on?
billing

#

@cunning delta 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/create

Question
We would like to perform a $1 authentication of a User's Credit Card to validate it in real-time. Is this possible in the Stripe Platform?

What have you already attempted?
I've read https://docs.stripe.com/payments/save-and-reuse, payment method, intents, and charge API documents. We also have a working test integration that adds customer, payment method, and subscription.

What are you working on?
New Java SDK backend API integration for subscriptions to replace old Vendor

#

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

Question
Is there any API to fetch custom stripe fee pricing for a connected account? FYI, we are using destination charges.

Related Request ID(s)
n/a

What have you already attempted?
tried looking through stripe documentation

What are you working on?
I am trying to do calculations for finalizing application fee that will be deducted from total amount to be charged.

#

@normal nest 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/terminal/locations/create

Question
POST /v1/terminal/locations
Is there any validation of fields of address when creating a location like char count etc

What have you already attempted?
I know certain fields are required in address objects but I am not sure if there is validation on those values like max char count etc

What are you working on?
I am creating an API endpoint that calls Stripe to create Location object for a Tap-to-pay terminal

cursive heronBOT
#

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

Question
Why were these payout requests rejected?

Related Request ID(s)
req_49mp8vWSkopGd7 req_Jp0Uw6vZ35MU5T

What have you already attempted?
We're logging things on our end, but would just like to see whether you can give us some info.

What are you working on?
Notch

#

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

Question
I performed a checkout session where the interest-free months were used, but this payment appears on my dashboard but in commissions it is only deducting the normal Stripe 3.6% + 3 and also the VAT. I want to know at what point they charge me the commissions for having selected months or where I see that?

Related Request ID(s)
API > Checkout Sessions

What have you already attempted?
Please see the payment details in the dashboard section

What are you working on?
Checkout session - installments

cursive heronBOT
#

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

Code
stripe front-end javascript card element

Question
When we see an "invalid_request_error" as a failure during a 3DS setup-intent, consistently for a given debit card, is there anything that can be done to resolve this issue for a user?

What have you already attempted?
Turned off 3DS integration

cursive heronBOT
#

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

Question
I would like to see an example of a "customer.subscription.updated" event that is called when the recurring payment is failed

Related Event ID(s)
.

What have you already attempted?
.

What are you working on?
.

cursive heronBOT
#

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

Question
My situation. There is a main project example.com and a secondary project app2.example.com on the same domain, but on completely different stacks and with other databases.
Both projects belong to the same company, but each uses its subscription logic.

  1. https://example.com/webhook/stripe
  2. https://app2.example.com/webhook/stripe

Does it make sense to try to use two projects on one account? Or is it better to create a second account with the same email address for the second project?

My concern is that if we have 2 accounts, our revenue will not be summed up, and we will not get discounts.

Related Event ID(s)
API > Webhook

What have you already attempted?
Using metadata, I can implement webhook work for different environments for the same project https://app2.example.com/webhook/stripe. Theoretically, I can increase the complexity of the metadata logic by using another webhook and working with two other projects

What are you working on?
Selling subscription services

#

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

Question
I am using customer portal to handle customer upgrade and downgrade. However, the customer portal does not support the our upgrade/downgrade design. Currently, we have three plans with price from low to high: basic, plus, premium. When a user upgrade from a lower plan to higher plan, we want to charge the full price of the new plan, stop the old subscription, and start new subscription (with the corresponding webhook). When user downgrade, we wait until the current subscription period ends and change to the new plan.

Related Request ID(s)
N/A

What have you already attempted?
Currently we don't refund user when they cancel the plan, and we don't want to any proration due to the mechanism of our subscription benefits

What are you working on?
Saas platform

cursive heronBOT
#

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

Question
Is there a Stripe element that will display a list of saved payment information, and editing of saved payment information?

Related Request ID(s)
n/a

What have you already attempted?
Searched the documentation, but not seeing anything like this. Could be a work in progress that is not documented?

What are you working on?
Trying to create a payment system for our company that will allow users to view / edit a list of saved payment information

#

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

Question
I am using Stripe elements to charge a customer.

My objective is to charge a customer and then store payment details for a subscription that I can charge a customer for later. I will not be using Stripe's built in subscription feature. I will be scheduling subscription charges on the server.

Currently, I create a payment intent and that renders the elements but I am missing the step or part of the step to save the payment method.

Do I need to create a checkout session?
https://docs.stripe.com/payments/save-and-reuse?platform=web

Or https://docs.stripe.com/payments/save-during-payment

Related Request ID(s)
None right now

What have you already attempted?
This is a PHP app, and I am currently tried creating a checkout session, retriving the session via the id to get the setup intent and then using the setup intent to get the payment intent to create a setup_future_usage=> 'off_session' id to store that in our database.

What are you working on?
I am building an ecommerce plugin for WordPress that will allow users to create subscriptions and charge customers

#

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

Question
Cannot refund to a PaymentIntent due to amount being greater than unrefunded amount on charge

Related Request ID(s)
req_1MtSueS4FjPITz

What have you already attempted?
Trying to find if our webhook stopped working. What event would that be?

What are you working on?
API Integration

#

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

Question
How can our customers test their Stripe apps integration code?

Our customer wants to install our Stripe app in test mode for their staging environment so they can test their API integration with us, but they can't have both live/test mode installed. They could create another organization, but because they already have their staging environment hooked up to their current org's test mode, this would be a bit annoying for them.

What's the best way to do something like this?

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

What are you working on?
dispute response service

#

@junior panther 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/discounts

Question
The discounts doc gives no information on Connect. In a marketplace with buyers and sellers, how do you recommend implementing Discounts for buyers, where the platform is eating the cost of the discount rather than the seller?

For example, Buyer goes to purchase $50 product from Seller and has a "$20 Welcome Offer" on their new account. Buyer should pay $30 in this case, and Seller should receive $50. $30 of the dollars Seller receives came from Buyer, and $20 from the Platform.

Today every payment intent has a transfer id associated with it. But this means Seller doesn't get enough.

What have you already attempted?
Reading all Connect + Discount docs. Can't figure this out.

What are you working on?
Consumer Marketplace

cursive heronBOT
#

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

Code
Small code for reference:
stripe.confirmSetup({
elements,
confirmParams: {
return_url:window.location.href.split('?')[0] + suffix,
payment_method_data: {
billing_details: {
address: data['address']

                                    }

Question
I have a software used by multiple customers and some of them started reporting messages like: "The auth session is in an invalid state for this action" or that they are not able to add credit cards. I'm using an app built with flutter and a web view to the cc interactions.

I got this setup intent id seti_1PtAkdED5AA3AxuuJDQY8RZm, could you please take a look and see what could be happening?

What have you already attempted?
The integration is solid and it is working for the majority of my customers so I don't know what exactly could be causing those issues. Btw, customer reporting those issues are from United States, Spain and United Kingdom (not sure if that info helps).

Btw, just to be clear:

Flutter App shows the web view with my url in charge of the intent creation flow.

What are you working on?
A Saas product with a mobile app and web app.

#

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

Question
Stripe developer dashboard isn't showing GET API requests in the Logs, even though they must exist

Related Request ID(s)
req_f1UbADfJtGlf6G

What have you already attempted?
The logs show POST Requests, but no GET requests, even though i checkmarked "GET" under the Method filter

What are you working on?
We are trying to investigate into an issue of double payment, and as part of that investigation we are looking into the stripe logs to see what GET requests were made on the Payment intent

cursive heronBOT
#

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

Question
How to identify if a provided connected account id is created with test mode or not? Is there any API to fetch that details?

Related Request ID(s)
How to identify if a provided connected account id is created with test mode or not? Is there any API to fetch that details?

What have you already attempted?
How to identify if a provided connected account id is created with test mode or not? Is there any API to fetch that details?

#

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

Question
Hi! We are trying to reset a billing cycle for migrated subscriptions. We have been using Subscription Schedules and phases, but since these are really long-lived they block some use cases for changes for our customers. We'd like to be able to do an update on a specific time and reset the billing anchor to that date (or as close to it as possible). But when trying to do a subscriptionUpdate with BillingCycleAnchor.NOW we don't get any invoice immediately (using proration = 'none'), and the invoicing skips 1 iteration apparently. Any pointers?

Related Request ID(s)
-

What have you already attempted?
We have used scheduled subscriptions with phases
We have tried updating an existing subscription with BillingCycleAnchor.NOW

What are you working on?
Stripe Billing as our engine for subscriptions for a streaming service

cursive heronBOT
#

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

Code
const date = new Date();
const timestamp = Math.floor(date.getTime() / 1000);
console.log(
'timestamp:',
timestamp,
date.toUTCString(),
date.toISOString()
);

        this.stripe.billing.meterEvents.create\({
          timestamp,
          event\_name\: 'hourly\_based\_rate',
          payload\: {
            value\: \`${deployment.cpu + deployment.memory}\`, //

Question
The stripe api keeps telling me a weird error. It is 9 O clock in the evening here, 7 o'clock UTC in the evening.

StripeInvalidRequestError: The event timestamp cannot be in future. Expected a timestamp less than or equal to 1724935290.

This absolutely makes no sense to me.
Also the Docs say the timestamp is optional, if I use the sdk with nestjs, it keeps telling me and the models says that it is mandatory and not optional.

What have you already attempted?
I used the code from the docs:

// Set your secret key. Remember to switch to your live secret key in production.
// See your keys here: https://dashboard.stripe.com/apikeys
const stripe = require('stripe')('sk_test_•••ZCD2');

const meterEvent = await stripe.billing.meterEvents.create({
event_name: 'alpaca_ai_tokens',
payload: {
value: '25',
stripe_customer_id: '{{CUSTOMER_ID}}',
},
});

cursive heronBOT
#

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

What did you expect to happen?
stripe.PaymentIntent.create() to return a payment intent containing a list of charges containing 1 Charge object

What actually happened?
stripe.PaymentIntent.create() returned a payment intent with an empty list of associated charges

log for request that exhibits this behavior:
https://dashboard.stripe.com/acct_1Nj6GXLnJjenxupO/logs/req_nkTxYz3LUeymTK

payment intent:
https://dashboard.stripe.com/connect/accounts/acct_1Nj6GXLnJjenxupO/payments/pi_3PjdCCLnJjenxupO0Xc5Q5lA

Reproduction Steps
add BACS payment method via a stripe checkout session
process payment using newly added BACS payment method

Question
I was told I could reproduce this behavior in Test Mode with the acct number 90012345 from the test cases

that didn't reproduce the case where the charge wasn't created immediately. how can I reproduce in Test Mode to validate my fix for this case?

What are you working on?
working on a hotfix to handle the case where a charge object is not created upon creating a paymentIntent using BACS

#

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

Question
We run a connect platform and have webhooks configured to handle subscription payments on the connected accounts. When the invoice.payment_succeeded webhook is received, we renew a membership. One of our merchants let us know about 3 customers who were charged and their memberships didn't renew, so I want to look into the status of the webhooks that should have been sent to us.

These payments were about a month ago, but it seems that the Stripe Dashboard doesn't show webhook requests that were more than 15 days ago, so I need to pull from the API, but i can't find how.

Related Event ID(s)
evt_1Phkz9HWIVnaCUOBOTi3o7kx, evt_1PkIwtHWIVnaCUOBC6udH1mx, evt_3Piqt1HWIVnaCUOB0DNP6j5P

What have you already attempted?
Searched the api docs

What are you working on?
A multi-tenant platform that includes the ability for merchants to sell monthly memberships, we use Stripe Connect with standalone accounts.

cursive heronBOT
#

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

Question
want to offer my customers the option to end their trial period early and activate their monthly plan immediately.

Related Request ID(s)
Subscription

What have you already attempted?
I tried

// const updatedSubscription = await newStripe.subscriptions.update\(
//   subscription.id,
//   {
//     cancel\_at\_period\_end\: false,
//     proration\_behavior\: 'create\_prorations',
//     items\: \[{
//       id\: subscription.items.data\[0\].id,
//       price\: subscription.plan.id,
//     }\],
//   }
// \);

console.log\("🚀 \~ upgradePlanController \~ subscription.id\:", subscription.id\)
// End the trial immediately and start billing
// Update the subscription to end the trial immediately and apply the new price
const updatedSubsc

What are you working on?
A api or api req body, so user can end trial early and active their monthly subscription

#

@polar hedge 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/treasury/moving-money/payouts#top-ups

Question
This doc covers moving funds from a Platform Financial Account to the Platform Balance, but how would a Connected Account do this? Move funds from *their* FA to *their* balance

What have you already attempted?
I converted the Financial Account to an External Account for the Connected Account, setting that as the default payout. Then when I perform a Create TopUp API call, the API says "You cannot perform Top Ups on behalf of connected accounts"

cursive heronBOT
#

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

Question
I'm using Stripe to send invoices, and the email (which can be tested from https://dashboard.stripe.com/settings/branding, then "Email receipts") includes a support URL, phone and email. Can we hide the email and leave just the support URL?

Related Request ID(s)
N/A

What have you already attempted?
I tried to update the URL, but the UI says it's mandatory.

#

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

Question
I am trying to take a one time payment with checkout sessions. I am able to create a session but my payment keeps being returned as an error "json object requested, multiple or no rows returned'

However when I look up the error code its not showing up
https://docs.stripe.com/error-codes

Is this error coming from stripe? Or is this coming from somewhere else. I am not sure how to proceed to get this payment through

code: 'PGRST116',
details: 'The result contains 0 rows',
hint: null,
message: 'JSON object requested, multiple (or no) rows returned'

Related Request ID(s)
req_mdxZzaegZCJrMk

What have you already attempted?
logs to verify that my variables exist before creating the session

What are you working on?
Registration app

cursive heronBOT
#

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

Question
Test mode webhooks are being sent to my prod webhook URL. The URLs are different. The error rate on prod is not affected by these errors but they appear in the list anyway. This seems like a bug with Stripe and is triggering lots of error notifications in our production server.

Related Event ID(s)
evt_1PtEYWGCU3u7cB8qAoZZyjO5

What have you already attempted?
Checked the webhook URLs

#

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

Question
Can we charge a PaymentIntent for an accidental refund?

Related Request ID(s)
na

What have you already attempted?
Looked in Docs, unclear if it will cause an issue with client's bank

What are you working on?
API Integration

#

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

Question
How to distinguish express accounts with status: restricted from the data returned from Accounts API

Related Request ID(s)
v1/accounts

What have you already attempted?
..

What are you working on?
listing all the accounts with their status

cursive heronBOT
cursive heronBOT
#

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

Question
payment_intent is null when checkout session mode is 'subscription'

Related Event ID(s)
cs_test_a1UPj95pdA6MC0OffOpsNLkdNnL3ji7stvt5xr8Ni2DvwCYxAGotV6fTSo

What have you already attempted?
trying to figure out how to get card.brand and card.last4

#

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

Question
How to implement payment sheet with swiftui correctly?

Related Request ID(s)
req_h1FFRPH5K7b8hb

What have you already attempted?
I try to use the Stripe payment sheet to be able to place a credit/debit card or pay with Apple Pay. The "buy" button appears, the sheet tries to be displayed but closes automatically showing the following error:

Payment failed: There was an unexpected error -- try again in a few seconds

What are you working on?
Building

cursive heronBOT
#

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

Question
I am currently enabling google pay to be active in the Payment Element but for some reasons, it is not showing up at all in our test environments. I noticed that there is a call made from v1/elements/sessions that returns an object noting that google pay is disabled. I was wondering what are the ways in which google pay can be disabled for the payment element. Do note that we are creating the payment intent after collection of payment details on the payment element, as well as manually creating the payment method.

Related Request ID(s)
N/A

What have you already attempted?
I have setup my test environment according to the doc: https://docs.stripe.com/payments/accept-a-payment?platform=web&ui=elements#apple-pay-and-google-pay. I have also made sure that my google pay is configured correctly on my browswer

What are you working on?
Integrating the Payment Element to replace my existing checkout form

cursive heronBOT
#

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

Question
When I fetch a subscription schedule that has a coupon applied to it, it returns an object with both `coupon` and `discounts` fields.

If I try to modify this same subscription schedule it gives me 400 saying "You may only specify one of these parameters: coupon, discounts."

What should I do in this case?

Related Request ID(s)
req_9Ob1gMxPYDgx9M

What have you already attempted?
I retrieved like this:
sub_schedule = stripe.SubscriptionSchedule.retrieve("sub_sched_1PtH6K2sUqBdMwXyvbboci63", stripe_version="2024-04-10")

And then from this object I grabbed the phases like this:
phases = sub_schedule["phases"]

And then using the very same phases list to modify this subscription schedule:
stripe.SubscriptionSchedule.modify("sub_sched_1PtH6K2sUqBdMwXyvbboci63", phases=phases, stripe_version="2024-04-10")

cursive heronBOT
cursive heronBOT
#

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

Question
I've spent the last few hours reading through PCI Compliance for Stripe Checkout or SAQ A.

The SAQ A and AOC is a bit mind-numbing. Are there any resources that help customers fill out the Self-Assessment Questionnaire (Section 2) properly when using specific Stripe products, like "Stripe Checkout."

Doc/Guide Links
https://docs.stripe.com/security/guide?csp=csp-js
https://stripe.com/guides/pci-compliance

What are you working on?
Making my app PCI compliant.

cursive heronBOT
#

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

What did you expect to happen?
Hey, I've been having issues when i updated to stripe/stripe-terminal-react-native: 0.0.1-beta.20

when discovering readers, it seems to timeout / return an empty array.

What actually happened?
0.0.1-beta.20:
- load a new android build onto terminal device. It wont discover readers
- sideload an update to the terminal, and it will read devices.

0.0.1-beta.19:
- I've reverted back to 19, and discovery has no issues

Reproduction Steps
I've built a barebones expo / react native app following documentation for the connection token, and reader discovery. Reinstalling between 0.0.1-beta.20 & 0.0.1-beta.19 makes the difference between a successful discovery or not

Question
I guess, at this stage, I'm just wondering if this is a known bug?

What are you working on?
Terminal App

cursive heronBOT
#

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

Question
Hey, I have a conceptual question about what the right way is to handle the following scenario: I want have reseller agreements with various people bringing me customers. I offer a subscription based service. In my own DB I know that a user has been brought on by another customer. What is the "right" way in Stripe to automate something where a certain fee of their subscription goes to this reseller through Stripe connect? This can be an ongoing %, or a one time only (first payment only).

I know there is a nice transfer fee set up, but it conceptually feels from for me to take an "application fee" on the payment and the payment actually going to the reseller.

Doc/Guide Links
https://docs.stripe.com/connect/collect-then-transfer-guide

What are you working on?
SAAS

cursive heronBOT
#

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

Code
Alipay Secondary Merchant Status Error

Question
When the user selects Alipay as the payment method, a SECONDARY_MERCHANT_STATUS_ERROR occurs. I checked the documentation, which mentions to watch out for an email. However, no email has been received, and I haven't found any other way to resolve this issue. Please provide assistance.

What have you already attempted?
document: https://support.stripe.com/questions/alipay-secondary-merchant-status-error?locale=en-US

What are you working on?
I don't know how to resolve this issue.

cursive heronBOT
cursive heronBOT
#

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

Question
For search in Customer and other objects, does the api provide support for Search in json-structured value? i.e. myJsonMap { cookies= 1, coffee=2} as customer metadata, and perform search with query clause metadata ['myJsonMap.cookie']=1

Related Request ID(s)
none

What have you already attempted?
read the docs

cursive heronBOT
#

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

Question
Apple pay not working in stripe element.

Related Request ID(s)
req_SFc3tAHf6yjCkf

What have you already attempted?
I'm using the checkout session API, I have added the domain and completed the Apple Pay verification process. But when the Stripe element mounts it doesn't show.

cursive heronBOT
#

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

Question
I'm getting the following error using a webhook when i use your code from the docs section of the website otice: Undefined index: HTTP_STRIPE_SIGNATURE in /home2

https://dashboard.stripe.com/test/webhooks/create?events=setup_intent.succeeded

Related Event ID(s)
Webhook

What have you already attempted?
$sig_header = $_SERVER['HTTP_STRIPE_SIGNATURE'];

What are you working on?
web element pay for online shopping

#

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

Question
How can i trigger the customer.source.expiring webhook?

Related Event ID(s)
n/a

What have you already attempted?
The event `customer.source.expiring` is not supported by Stripe CLI. To trigger unsupported events, use the Stripe API or Dashboard to perform actions that lead to the event you want to trigger (for example, create a Customer to generate a `customer.created` event). You can also create a custom fixture: https://docs.stripe.com/cli/fixtures

What are you working on?
I'm trying to detect when the customer's card is going to expire for an active subscription

#

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

Question
I would like to control if the stripe receipt / refund e-mails should be sent or not according to the use-cases. Different systems in our company uses the same stripe account hence we can't disable the global e-mail settings. I see in the payment-intent-api that says if the receipt e-mail is made available in the create call, it is sent out, I did it. But there are saved customers in Stripe they already have e-mail addresses available. When I create the payment-intent, it seems that the -email address of the customer is picked up internally.
any suggestion on this?
thanks

Related Request ID(s)
n/a

What have you already attempted?
the payment-intent-api that says if the receipt e-mail is made available in the create call, the receipt is sent out, I did it

What are you working on?
Payment-Intent & Customer API

cursive heronBOT
#

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

Question
Constant errors creating checkout session

Related Request ID(s)
N/A

What have you already attempted?
```js
const session = await stripe.checkout.sessions.create({
line_items: lineItems,
mode: 'payment',
submit_type: pay,
currency: "aud",
success_url: '/success',
cancel_url: '/cancel',
shipping_address_collection: ['AU'],
shipping_options: {
shipping_amount: 1000
}
});
```

What are you working on?
Online Store

cursive heronBOT
#

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

Question
Would like to know if the data flow of my app can be made with stripe api's

Related Request ID(s)
No request id's

What have you already attempted?
I already created a merchant with bank account

What are you working on?
I am building a plateform that collect tip by terminal and redistribute with plateform.

cursive heronBOT
#

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

Code
const paymentElement = this.elements.create('payment', {
layout: {
type: 'accordion',
defaultCollapsed: false,
radios: false,
spacedAccordionItems: true
},
defaultValues: {
billingDetails: {
'name': this.customer.object.name,
'email': this.customer.object.email,

Question
I am trying to set the default country/region on Stripe Elements but it does not seem to take my value, it always defaults to UK and not my hardcoded value

What have you already attempted?
I have read the docs but couldn't find what I was looking for

What are you working on?
Subscription component for SaaS

#

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

Code
Is there any API to find out if a stripe connected account is created using test mode keys or live mode keys?

Question
Is there any API to find out if a stripe connected account is created using test mode keys or live mode keys?

What have you already attempted?
Is there any API to find out if a stripe connected account is created using test mode keys or live mode keys?

#

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

Question
I need to update the billing subscription date of all my customers

Related Request ID(s)
N/A

What have you already attempted?
I only can update that information by Dashboard, but i have a lot subscriptions, at this moment, all their subscriptions are paused, it's the perfect momento to updated the next billing date at 1 of September.
How can i do this by API?

#

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

Code
const stripe = Stripe(stripePublicKey);

			//const appearance = { /\* appearance \*/ };
			const options = {
			  clientSecret\: clientSecret,
			  // Fully customizable with appearance API.
			  appearance\: {/\*...\*/},
			  layout\: {
			    type\: 'tabs',
			    defaultCollapsed\: false,
			    disablelink\: true
			  }				  
			};

			// Set up Stripe.js and Elements to use in checkout form, passing the client secret obtained in step 5
			const elements = str

Question
I am using payment elements on my site and cannot for the life od me get rid of the "Secure,1-click checkout with link" link on my payment element. I have only cards, paypal, good and revoly payment methods enabled. All others are turned off including "link" on my setting page.

This is on testmode and production.

Also, when fill in my card details the checkbox comes up below: "Save your info for secure 1-click checkout with link".

What have you already attempted?
I have gone through docs which says all i need to do is turn the link feature off on my dashboard (which I have).

Any ideas?

cursive heronBOT
#

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

Question
I'm integrating the new event destination webhooks. I couldn't find anywhere in the documentation how to create an event destination from the API. The Webhook.Create API does seem to only support the standard "url" integration. https://docs.stripe.com/api/webhook_endpoints/create
Are these APIs public yet?

Related Request ID(s)
None

What have you already attempted?
Looking at the doc and using the CLI auto-complete

cursive heronBOT
#

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

Question
Klarna payment not working,there was an error showing on Klarna hosted page saying "We didn't catch your addressSeems like our system couldn't validate the address you've entered. Please review your information and try again"

Related Request ID(s)
req_t4yFRQpsx9EC1A

What have you already attempted?
Tried to pay using Klarna

cursive heronBOT
#

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

Question
Hi there, we're looking into Tap to Pay integration and referring to the documentation, and we have a question regarding error handling.
The documentation says: "Re-use the same PaymentIntent after a card is declined (for example, if it has insufficient funds), so your customer can try again with a different card."
If the customer doesn't retry the payment because they don't have another card to use or the card was used fraudulently, what is the best practice for handling PaymentIntent? Is it better to cancel the PaymentIntent by calling the API, or is it harmless to leave it as is?

Doc/Guide Links
https://docs.stripe.com/terminal/payments/collect-card-payment?terminal-sdk-platform=ios#collect-cancel-collection

What are you working on?
Stripe terminal (tap to pay) integration.

cursive heronBOT
#

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

Question
We added Link to the product, and now, first, a window appears to pay with Link or standard. And then when I choose standard, the height of the window is recalculated incorrectly, because of which the content is cut off by height and the form cannot be used

Related Request ID(s)
@stripe/react-stripe-js

What have you already attempted?
@stripe/react-stripe-js

What are you working on?
sellix embed

cursive heronBOT
cursive heronBOT
#

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

Question
we rely on transfer.created events and the existence of the destination_payment value to initiate the transfers to the connected accounts. Sometimes we receive "You have insufficient available funds in your Stripe account" errors.

What is the best way not to hit this problem? should we rely on another event?

Related Request ID(s)
req_xuYC9jxpc5mt2G

What have you already attempted?
We have started providing source_transaction parameter in the transfer request parameter but not helpful though.

What are you working on?
Transfers to the connected accounts

#

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

Question
Hi there,
We are using stripe custom checkout.
According to this page (https://docs.stripe.com/checkout/custom-checkout/submit-the-payment), we can use confirmationRequirements (https://docs.stripe.com/js/custom_checkout/session_object#custom_checkout_session_object-confirmationRequirements) to get all missing values.

For us canConfirm is always false.

Related Request ID(s)
-

What have you already attempted?
-

What are you working on?
Building a stripe custom checkout page.

#

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

Question
Aquí tienes la traducción al inglés:

"I'm trying to create a payment link via the API, and I'm passing this JSON in the body, but it returns that the `line_items` parameter is missing."**

Related Request ID(s)
req_99G8LCSM9qDxpt

What have you already attempted?
{
"after_completion": {
"type": "hosted_confirmation"
},
"allow_promotion_codes": "false",
"automatic_tax": {
"enabled": "false"
},
"billing_address_collection": "auto",
"consent_collection": {
"terms_of_service": "none"
},
"customer_creation": "always",
"invoice_creation": {
"enabled": "true"
},
"line_items": {
"0": {
"price": "price_1PtUEtHULDptDsF0jXf1AsvT",
"quantity": "1"
}
},
"payment_intent_data": {
"setup_future_usage": "off_session"
},
"phone_number_collection": {
"enabled": "false"
},
"restrictions": {

cursive heronBOT
#

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

Question
Expired API key provided; Platform access may have been revolked.

Related Request ID(s)
N/A

What have you already attempted?
We're trying to authenticate users from our Stripe App, but we're getting returned expired API keys.

What are you working on?
Embeddable pricing tables and price experiments.

#

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

Question
If I create custom connect accounts, can I still let Stripe handle the fees and avoid pay the two dollars per month per active account and the payout fee or I need to have a standard account for that?

Related Request ID(s)
connect

What have you already attempted?
I spoke to someone on the phone from the Stripe team and she sent me an email that says that only standard accounts qualify for that to allow to collect the fees and avoid all the other fees, but on the website and only talks about charges not the specific account type that you are creating

What are you working on?
I am working on a payment platform to allow users to transfer money to one another

#

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

Code
pubspec yaml
flutter_stripe: ^9.5.0+1

android build gradle

implementation 'com.stripe:stripe-android:20.48.6'

Execution failed for task ':app:checkDevDebugAarMetadata'.
> Could not resolve all files for configuration ':app:devDebugRuntimeClasspath'.
> Could not resolve com.stripe:stripe-android:20.48.6.
Required by:
project :app
> Could not resolve com.stripe:stripe-android:20.48.6.

Failed to list versions for com.stripe:financial-connections.

Question
I am getting an error when building my flutter project in android.
It had been working fine last month but it keeps throwing those errors above now.

This is my flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.7.9)
[√] Android toolchain - develop for Android devices (Android SDK version 33.0.2)

What have you already attempted?
I had tried changing the gradle version

What are you working on?
I have my company app which uses stripe payment to gateway to process al our customer transaction

#

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

Question
What is the order of the event charge.refunded and charge.refund.updated. Does Stripe send always first the `charge.refunded` event?

Related Event ID(s)
n/a

What have you already attempted?
We will use these two webhooks `charge.refunded` and `charge.refund.updated`.

What are you working on?
Stripe refunds events

#

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

Question
I have express CONNECT account and external bank account is linked with it, I want to update the external account details. how can I do that.

Related Request ID(s)
Dashboard > Products > Connect

What have you already attempted?

  1. first I get the external account linked with CONNECT account
  2. Create a new External account with default_for_currency as True,
  3. Then deleted the previously linked external account by id (got from 1st step)

What are you working on?
In my application user can add the bank details and we create CONNECT account with it, Now if the user updates any info through app we are unable to make updates in already created external account

cursive heronBOT
#

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

Question
Why isn't invoice.payment_succeded triggered after the subscription transitions from free trial to paid?

Related Event ID(s)
evt_1PtVaYJ4ILijjURSWvtlXUrt

What have you already attempted?
I have used the test clock & waited for the event

#

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

Code
paymentElement.mount(divStripeContainer);

Question
We are trying to find a way to know in advance if the stripe element will render more than one tab (GPay and Apple Pay) programatically.

What have you already attempted?
I read the documentation and I cant find anything related to that

What are you working on?
We are using Stripe to accept payments from a plugin and thats why it is important to use to show that

#

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

Question
Do I need to implement a /webhook endpoint in order to deploy the PaymentSheet in SwiftUI?

Related Request ID(s)
req_Djsvy6ACd5sL1u

What have you already attempted?
The payment attempt responds with a status of 200 but the sheet to select the user's payment method cannot be displayed, the client_secret, ephemeralKey, publishableKey and customerId arrive correctly to the client.

What are you working on?
Building

#

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

Question
What is the average time between sending request to Stripe for payment intent creation and when Stripe will send to us payment_intent.requires_action ?

Related Event ID(s)
.

What have you already attempted?
I am using "/v1/payment_intents" endpoint to create payment intent with payment method event type cash balance.

Without a delay, as soon as I create the payment intent I receive payment_intent.requires_action webhook event in test mood.

Is it the same for both production and test modes? Will it take longer to emit payment_intent.requires_action event in the production environment?

#

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

Question
Is there any way to see how many billing attempts remain for a given subscription when payment fails? and I would like to know after the last one is rejected, how long after it is cancelled?

Related Event ID(s)
.

What have you already attempted?
.

What are you working on?
.

#

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

Code
const { error } = await initialize().catch(error => ({ error }));
// [...]
const { error } = await discoverReaders({
discoveryMethod: 'localMobile',
simulated: !Device.isDevice || __DEV__,
}).catch(error => ({ error }));
// [...]
const { error } = await connectLocalMobileReader({
reader: reader,
locationId: constants.stripeLocationId,
autoReconnectOnUnexpectedDisconnect: true,
onBehalfOf: merchantAccount?.merchantId,
}).catch(...

Question
Error connecting to a reader after the first install. If I kill and launch again the app, it works.

What have you already attempted?
I already opened an issue here a few weeks ago and we were'nt able to find the issue. Since then, I implemented a simple debug screen on my app to test the steps one by one and see where it fails. Here is the link to the video https://drive.google.com/file/d/10wkry7sYilTnpt5FLOkz-WRDPxw7DQr3/view?usp=sharing

What are you working on?
Tap to Pay on an Expo app using react @stripe/stripe-terminal-react-native SDK

cursive heronBOT
#

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

Code
try {
const { amount } = req.body;
if (!amount) {
return res.status(400).send({
error: {
message: "Amount is required.",
},
});
}
const paymentIntent = await stripe.paymentIntents.create({
currency: "usd",
amount,
automatic_payment_methods: {
enabled: true,
},
});

Question
I have implemented Stripe PaymentElement to an e-commerce and its working fine. My question is, is it possible to set payment in installments with credit card as a payment method? If so, should my client set it up on his Stripe account, or should I set it up in the backend code myself? I am using node.js as backend

What have you already attempted?
I haven't attempted anything yet, I just have that doubt

#

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

Question
I need offshore devs to be able to test webhooks locally (with stripe CLI?), but as I understand this requires they have a dashboard account with dev access. The problem is that they should not be able to view live mode data. Is it possible to have a dashboard account with dev access for test mode only?

Related Event ID(s)
--

What have you already attempted?
--

#

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

What did you expect to happen?
Billing cycles to remain the same when upgrading / downgrading subscriptions with prices of the same characteristics.

What actually happened?
The billing cycle got updated

Reproduction Steps
- Create a product with a monthly price of 0
- Create a product with a monthly price of 19
- Upgrade and dowgrade a subscription of a customer between these two prices.
- See that the billing cycle of the subscription gets updated.

Question
I'm looking at the `current_period_start` field of the subscription. Is this the right field?

#

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

Question
Hello, the Stripe dashboard is telling us that we have a high percentage of 3DS failure on a random day, but we can't analyse it cleary, because when we are trying to download the reports and see what's happening, we only have a 'payatt_' id, can you help me understand what is this id and how can i look onto my payment intent that was used for this threedsecure challenge here please ?

Related Request ID(s)
Look in the analytics dashboard

What have you already attempted?
CLI, Dashboard, documentation.

Nothing is a reference, and i can't link any resources with it

cursive heronBOT
#

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

Question
Bonjour, je suis entrain de créer une implémentation de stripe connect dans mon application en typescript. Je cherche à comprendre le processus point par point quand nous habitons en France pour pouvoir effectuer des virements bancaires à nos vendeurs depuis stripe. (En france nous ne pouvons pas créer de compte connecté depuis le dashboard).

Related Request ID(s)
Don't understand where find this.

What have you already attempted?
Je sais que Stripe exige qu'une KYC soit effectué pour chaque compte connecté. Chose que je réalise à l'aide de veriff.com. Mainteant je souhaite comprendre l'ordre des étapes pour parvenir à mes fins.

J'ai cru comprendre que en France, il fallait passer par des tokens ? Mais ensuite ?

What are you working on?
Je construis un SaaS dans lequel les vendeurs sur ma plateforme seront payés par virement bancaire suite à la prise d'une petite commission.

cursive heronBOT
#

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

Question
Can I use my custom idempotency keys for request that will be retried after 24h? I see that keys generated by Stripe can be reused after 24h, but I cannot find any confirm/deny that this will happen with custom provided keys.

Related Request ID(s)
req_E0Qip07h0KZtRb

What have you already attempted?
I looked through the docs, only thing remotely connected I've found is:
`make sure the tokens being used are sufficiently unique to unambiguously identify a single operation within your account over the last 24 hours, at a minimum.`

With that wording I'm unsure that if I use my own key it will be valid for, for example, a week, or still get expired after 24hrs.

#

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

Question
trying to invoke https://api.stripe.com/v1/terminal/device_deploy_groups/tmddg_FIakOQsM63PjwP
Getting
{
"error": {
"message": "Unrecognized request URL (DELETE: /v1/terminal/device_deploy_groups/tmddg_FIakOQsM63PjwP). Please see https://stripe.com/docs or we can help at https://support.stripe.com/.",
"request_log_url": "https://dashboard.stripe.com/test/logs/req_Gu37QuptXLJkvX?t=1725035435",
"type": "invalid_request_error"
}
}

Related Request ID(s)
req_Gu37QuptXLJkvX

What have you already attempted?
Trying to delete deploy group as in the API documentation. Getting error that API not valid

#

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

Code
Having trouble getting the saved payment cards to display in the payment element.

Question
I am checking the 'save payment for future use' checkbox, but when I check out again, I am not seeing any saved payment methods.

What have you already attempted?
I tried following this guide:

https://docs.stripe.com/payments/accept-a-payment?platform=web&ui=elements#save-payment-methods

What are you working on?
Trying to build a payment page that can save credit card payment methods

cursive heronBOT
#

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

Question
We just started getting a new error when updating a subscription:

When set, the pending_invoice_item_interval must be more frequent than the natural subscription interval.

Related Request ID(s)
req_yZm8DtsZXqdnl8

What have you already attempted?
This has been working correctly for many years now, and just started failing today in our test environment.

#

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

Question
If I have different stores with different bank accounts and I want purchases to be recorded in Stripe independently of each store, is this possible?

Related Request ID(s)
req_Djsvy6ACd5sL1u

What have you already attempted?
I have already configured the payments effectively but now I need each payment to go to the account corresponding to the store where I purchased the product.

What are you working on?
Building

#

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

Code
Not Applicable N/A N/A

Question
I have an issue with my account, it’s being closed. I have contacted support but is not answering.

What have you already attempted?
Contacted support, provided more information, others. I need help.

#

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

Question
I don't know how to set a default payment method, so that stripe doesn't fail to collect the subscription payment after the free trial

Related Request ID(s)
N/A

What have you already attempted?
Will past working code

#

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

Question
next_action property appearing on prod but not thru testing, basically on my stripe dashboard it says there is a next_action property appearing even though through my code I redirect the user back to my initial web application.

Related Request ID(s)
req_rivYTvujtSte70

What have you already attempted?
I’ve attempted to look into the next action property but not sure where to use this necessarily as I have my backend code (where I used C# to handle stripe logic) and is separate from my client code where I only have a simple form to send order details to the backend.

What are you working on?
I’m working on a web application to sell products to users

#

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

Question
I'd like to have more information about the SEPA directe debit in Europe

Related Request ID(s)
no req

What have you already attempted?
Create a connected account bank account

What are you working on?
a platform that collect tips from restaurant and redistribute to waiters

#

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

Code
i recently received an email from stripe that included a link i needed to click on, however when i clicked the link, i received an error message indicating that the link was invalid or expired.

Question
i recently received an email from stripe that included a link i needed to click on, however when i clicked the link, i received an error message indicating that the link was invalid or expired.

What have you already attempted?
i recently received an email from stripe that included a link i needed to click on, however when i clicked the link, i received an error message indicating that the link was invalid or expired.

cursive heronBOT
#

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

Question
My testing webhook is consistently showing this error for each payment_intent.succeeded event:
"Timed out connecting to remote host".

But I'm pretty sure the tunnel is generally working and available, because I can hit the same call from Hoppscotch and it hits my local env as expected, via Expose (an ngrok alternative), with no special setup or anything. Just posting to the same exact URL shown in my Stripe workbench.

Related Event ID(s)
evt_3PtZ6TLBSNgilYpn1TnPcJvT

What have you already attempted?
Accessing the tunnel URL from several remote services, to confirm the URL is publicly accessible.

What are you working on?
Just this testing webhook for a payment form.

#

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

Question
When collecting sales taxes, it seems the process is:

  1. call stripe.tax.calculations.create()
  2. record the tax transaction with tax.transaction.createFromCalculation()

then separately, you create a paymentIntent and in in the amount property you include the product price + the sales tax amount, but there is not direct reference to the tax calculation created before.

Is this correct?

Related Request ID(s)
no related id

What have you already attempted?
Provided in question.

cursive heronBOT
#

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

Code
can't get the saved payment element to show

Question
i'm submitting a payment over https, but when i return to the page with the same customer, i'm not getting the saved payment

What have you already attempted?
i tried following this guide

https://docs.stripe.com/payments/accept-a-payment?platform=web&ui=elements#save-payment-methods

What are you working on?
payment page with saved payments

cursive heronBOT
#

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

Code
OfflineMode with BBPOS WisePOS E reader

Question
I have configured my account for offline mode, but I receive error 10107 when trying to use the internet reader.

What have you already attempted?
I'm following the docs here: https://docs.stripe.com/terminal/features/operate-offline/collect-card-payments?reader-type=internet and updated all the configuration objects listed here: https://docs.stripe.com/terminal/fleet/offline-mode, but when I try to create a payment intent with ForceOffline I get the 10107 error.

What are you working on?
I'm build a POS app

cursive heronBOT
#

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

Question
I want to send an email when a payment was unsuccessfully, for example due to an invalid payment method or not sufficient funds. I have found that this option can be enabled from the backend and an email with the CTA "Update your payment method" is being send. Question: 1) This button redirects to the business page. Is there a way I can enter a direction URL just for this case? 2) Generally, how am I supposed to handle this? Should I redirect the user to my application and handle the payment method update or can I also redirect the user to some Stripe customer dashbiard?

Related Request ID(s)
N/A

What have you already attempted?
Docs I have read: https://docs.stripe.com/billing/revenue-recovery/customer-emails#:~:text=Failed payment notifications,-Notify your customers&text=Enable Send emails when card,customer after each failed payment.

What are you working on?
SaaS

cursive heronBOT
cursive heronBOT
#

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

What did you expect to happen?
I created a product with a usage-based pricing based on 2 tiers. That pricing is linked to an Active Users meter where we send to Stripe our count of Active Users per product.
The first tier of the pricing has $0 for unit price but has flat amount of $200. My expectation is that the flat amount of $200 is charged to the customer at the beginning of the billing cycle.

What actually happened?
In our initial tests (around May/June timeframe), we could very well see that the expected behavior was working but since July/August, every subscription we create with this product and price, the flat amount is only charged at the end of the month.

Reproduction Steps
Our account is Emburse Spend

  1. Create a new subscription
  2. Add either Emburse Spend Basic or Emburse Spend Plus products to the subscription
  3. Start the subscription
    You'll see that the flat fee is charged at the end of the billing cycle.

Question
This change in behavior is a little strange and we'd like to understand if there's any attribute to the subscription, product or pricing that we can use to determine that the flat fee is charged at the beginning of the billing cycle with usage adjustments happening at the end of the period.

cursive heronBOT
#

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

Question
Hey! I'm trying to allow users to change their subscription easily.

For all subscriptions (including first) I use the checkout API via `stripe.checkout.Session.create()` but every time I go to the page, I have to enter a NEW payment method each time instead of being able to select already added ones. Is this normal?

Then when I go to the Customer Portal, under Payment Methods and there's lots. But they're all the same card details. I don't understand why it duplicates them (i am using customer_id).
Func args: `customer`, `line_items`, `mode="subscription"` and
```
saved_payment_method_options={
"payment_method_save": "enabled"
}
```

Doc/Guide Links
https://support.stripe.com/questions/prefilling-saved-cards-in-checkout?locale=en-GB#:~:text=Stripe Checkout offers Link—a,and reuse their payment information.
https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-saved_payment_method_options-payment_method_save

What are you working on?
Subscription Management

#

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

Question
Retrieve Subscriptions API (Node.js)

Related Request ID(s)
N/A

What have you already attempted?
Tried to fetch all the subscriptions, using the SDK in my node.js application.
not all active subscriptions are being returned. I have debugged the issue. I am only getting the subscriptions with no test clock. How can I solve this?

What are you working on?
I need to retrieve all subscription with status !== 'canceled'

#

⛔️ 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.

Due to a bank holiday in the US and Canada, Discord will stay closed on Monday throughout the day and reopen on Tuesday September 3 around 10am SGT.

cursive heronBOT
#

✅ Stripe developers are currently available on Discord!

cursive heronBOT
#

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

What did you expect to happen?
Serbia not found on list.

What actually happened?
I tried opening a new account and i saw there is no serbia listen i need help to open it in serbia

Reproduction Steps
so i was trying to make account and there was list where im from and there is no option to select serbia

Question
how can i fix this and if there is way to open account in serbia.

What are you working on?
making a new account.

cursive heronBOT
#

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

Question
Is it possible to lump sum invoices using the customer payment portal?

Related Request ID(s)
req_U91fMdgMEnWsUH

What have you already attempted?
Creating multiple invoices and trying to multi select from the customer portal page.

cursive heronBOT
#

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

Code
Id like to add customer portal in my application. may be using iframe. Is this possible?

Question
However, Id like to remove left section which explain business portal.

What have you already attempted?
I am attempted to research this solution on doc

cursive heronBOT
#

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

Question
What is the difference between the "forgive" parameter in /v1/invoices/:id/pay with marking an invoice as uncollectible /v1/invoices/:id/mark_uncollectible?

Related Request ID(s)
1111111

What have you already attempted?
Originally we want to integrate with the mark_uncollectible API, but we saw the forgive parameter

#

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

Question
I want to generate an invoice for a customer that automatically gets executed at a certain date. That is stripe should charge the customer automatically at that date.

Related Request ID(s)
NA

What have you already attempted?
I tried using the days_until_due, due_date and effective_at date but the invoices gets triggered immediately.

#

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

Question
The problem I’m experiencing is that the balance transaction and ID are null at the time of confirming the payment intent for the new version of the library.
The previous behaviour was that the transaction is returned at the time of payment intent confirmation.

The workflow depends on this data being returned with the confirmation request, or immediately after (via a separate api request).
It seems like it takes about a second for the data to come through on a GET request - that is too long.

Is there anything I’m missing here to get this working as it was before but under the newer version?

Related Request ID(s)
req_vVxAvE2SDbLPmv

What have you already attempted?
// v27.24.0
PaymentIntentCreateOptions {
Confirm = true,
ConfirmationMethod = "manual",
ReturnUrl = null,
Expand = ["charges.data.balance_transaction"],
// […]
}

// v45.7.0
PaymentIntentCreateOptions {
Confirm = true,
ConfirmationMethod = "manual",
ReturnUrl = null,
PaymentMethodTypes = ["card"],
Expand = ["latest_charge.balance_transaction"],
// […]
}

The workflow depends on the charge and balance transaction being returned to process the payment (as in v27.24.0).
This applies both to creation in the confirmed state and to confirming it later.

What are you working on?
Upgrading Stripe Library: v27.24.0 to v45.7.0 [.net]

#

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

Question
In my backend, using nodejs, I want to list all a customer's saved payment methods, including, for each method, the payment intent or setup intent used to create that method. For each method I want to show whether it's optimized for on_session or off_session payments.

I have the code working that saves each method using either a payment intent if the customer wants to just make on-demand payments with the method, or with a setup intent if the customer wants automatic recurring billing. But, when I retrieve the saved methods I don't know the best way to get each method's payment intent or setup intent.

Doc/Guide Links
In the dashboard I can go under Customers, expand a customer's payment method, and see the "Set up for future use" field that shows the method's payment intent or setup intent. This is what I'm looking to get using nodejs. Right now I'm using stripe.customers.listPaymentMethods(), but it doesn't include any payment intent or setup intent info.

I've looked at listing payment intents using https://docs.stripe.com/api/payment_intents/list, and https://docs.stripe.com/api/setup_intents/list, but I don't know how to list just the intents that have saved payment methods associated.

What are you working on?
Writing the API endpoint that lets a customer manage his payment methods.

cursive heronBOT
cursive heronBOT
#

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

Question
Id like to know if I can create a payment link, when a payment fails on a subscription and it it marked as past_due, so the user can pay by its side

Related Request ID(s)
.

What have you already attempted?
.

What are you working on?
.

#

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

Question
Hello
I'm developing startup.
in this startup we used stripe extesion in firebase.
this extesion will be expired.
I attempt to write my logic.
we had a ability in this extesion for manage subscription in stripe host (for exmaple cancel or upgrade subscription without authentication and api)
I wanna implement this in spring boot with customer portal link.
but documentation for this does not work for me.
Can you help me that is correct approach and how can do this?

Doc/Guide Links
Hello
I'm developing startup.
in this startup we used stripe extesion in firebase.
this extesion will be expired.
I attempt to write my logic.
we had a ability in this extesion for manage subscription in stripe host (for exmaple cancel or upgrade subscription without authentication and api)
I wanna implement this in spring boot with customer portal link.
but documentation for this does not work for me.
Can you help me that is correct approach and how can do this?

What are you working on?
payment in startup

#

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

Question
I have created subscription using subscription scheduled API. So invoice has been created for initial payment. At the same time, I have finalizing the invoice and paying the invoice.

But when I retrieve the invoice_pdf url, it says amount due in invoice pdf whereas the invoice is showing paid in stripe subscription. So why it is showing due amount in invoice_pdf.

Related Request ID(s)
123

What have you already attempted?
I have used invoice retrieve api and get invoice_pdf.

What are you working on?
Getting invoice pdf to download it later on

cursive heronBOT
#

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

Question
Web hook payment recurring date issue,

I am every time get this key but next date i am not getting how to resolve this issue

you can provide this
"period": {
"end": 1725708654,
"start": 1725276654
},

Related Event ID(s)
evt_1PuZRZBZi1m6nlLFzUBohI93

What have you already attempted?
I have already two attempt

What are you working on?
Subscription

#

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

Question
Not able to received account.updated on QA .

although I am able to do it on local machine

Related Event ID(s)
No event getting genrated

What have you already attempted?
try second webhook with connected account still result is same

#

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

Code
Invalid value for stripe.confirmPayment(): elements should have a mounted Payment Element

Question
I have a checkout page and an order confirmation page.

My code flow is I load the Stripe Payment Element in the checkout page, and pass the details in the order confirmation page (which is the page I would be using confirmPayment), but when I do that I get the error.

I would ideally want that flow, and not have all of that in one page.

What have you already attempted?
I have looked at Stripes "Two-Step Confirmation" guide, but I don't think that helps with the mounting problem.

What are you working on?
Side project

cursive heronBOT
#

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

What did you expect to happen?
Reactiveate subscription

What actually happened?
Subscription staied in canceled

Reproduction Steps
My system setup is to retry subscription 3 times.
If all retries for a payment fail: cancel the subscription
If all retries for a payment fail, mark the invoice as uncollecible

Make 3 retries that fails and and wait for system to mark invoice as uncollectible and cancel subscription.
After that pay the invoice

Question
Why my system is not reactiveating subscription after invoice is payed after 3 retries. (Invoice paied from the link in invoice which is 30days active according to the docs.)
How should i configure system to reactive subscription after invoice is paied after system retries

#

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

Question
I want to retrieve the allow_redisplay parameter from the payment_method_preview of a ConfirmationToken

I work in Typescript, with @stripe/stripe-js library - the property is actually present, but typescript does not compile

Related Request ID(s)
none

What have you already attempted?
adding // @ts-expect-error works, but is not my desiderata

cursive heronBOT
#

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

Code
const session = await stripe.checkout.sessions.create({
billing_address_collection: 'auto',
customer: user?.stripe.customer.id,
line_items: [
{
price: price.id,
quantity: 1
}
],
subscription_data: {
trial_period_days: 30,
},
mode: 'subscription',
cancel_url: `${process.env.ADVERTISER_URL}/dashboard/subscription`,
success_url: `${process.env.ADVERTISER_URL}/dashboard/subscription?

Question
Can the same customer get the free trial of a subscription if they subscribe to the subscription through a stripe checkout session again after canceling it?

What have you already attempted?
https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-subscription_data-trial_period_days

https://docs.stripe.com/billing/subscriptions/trials

#

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

Question
I would like to send the copy of the stripe receipt as an attachment to our order confirmation email. I am creating and sending the email on checkout.session.completed event. But the latest charge doesnt seem to be ready

Related Event ID(s)
pi_3PurcCR3vYtB7my31ViLAkz7

What have you already attempted?
await new ChargeService().GetAsync(checkoutSession.PaymentIntent.LatestChargeId)

Stripe.StripeException: 'No such charge: 'ch_3PurcCR3vYtB7my31pz8sUCU''

cursive heronBOT
#

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

Question
I want to handle payment_method.attached webhook, but only if the event is generated after an API request. Not if the payment is attached from the customer portal. There is a way to handle this ?

Related Event ID(s)
evt_1PurboR7014ITf84jagA8DOu

What have you already attempted?
I try to find a source field or something that can say source: "customer_portal" but seems not fields exists

#

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

Code
// src/pages/PricingPage.tsx

import React from 'react';
import Header from '@/components/Header';
import Prices from './Prices';
import Footer from '@/components/Footer';

const PricingPage = () => {
return (
<div className="flex-grow">
<Header />
<main className="container mx-auto px-4 py-8">
<h1 className="text-5xl font-bold text-center mb-8">Choose Your Plan</h1>
<Prices />
</main>
<Footer />
</div>
)

Question
Hello, on my pricing page I am getting `Error: Failed to load Stripe.js` but only when the user is logged into my website. The Error is due to Content-Security-Policy. I tried setting a meta tag allowing the stripe call but then the rest of the buttons inside my page don't work. I am using supabase for auth. Does anyone know why this is happening and how to solve it?

What have you already attempted?
Changing the meta tag, but if 1 thing works the other doesnt

What are you working on?
start up using stripe for payment

#

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

Question
Hey there, we are creating PaymentIntents via API for Stripe Connect accounts and including a description in the parameters. This description is correctly displayed in the Stripe Dashboard. However, when the Connect account holder opens their Customer Dashboard, views the payment, and downloads the CSV file of their payments, this description is not visible. In the CSV file, the description field is empty.

Related Request ID(s)
pi_3Pus0NFBg2hW2NtV1lajhqRy

What have you already attempted?
I searched the API documentation for a field mapping to assign a Stripe Connect description, but unfortunately, I couldn't find anything.

#

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

Question
May I ask what validation is present on diplay name and the different address fields of POST /terminals/locations

Related Request ID(s)
req_zF1qgVOH8F6QrJ

What have you already attempted?
I have tried special characters, lengthly strings and all seems to go through. Is there any validation on values, char count, valid address etc?

cursive heronBOT
#

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

Code
var elementOptions = {
mode: 'payment',
amount: paymentdetails.total.amount,
currency: eh_payment_request_params.currency_code,
};
console.log(elementOptions);
var elements = stripe.elements(elementOptions);console.log(elements);
const expressCheckoutElement = elements.create("expressCheckout");console.log(expressChecko

Question
I am migrating from payment request button to express element - Gpay is not visible in my site.
The container is #eh-stripe-payment-request-button and when I inspect iframe is render inside this container but not visible the button
https://wordpress-319567-2021527.cloudwaysapps.com/index.php/product/kurta-kopie/

What have you already attempted?
https://docs.stripe.com/elements/express-checkout-element/migration

Followed this

#

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

Question
I have enabled the collection of the VAT ID during my checkout. However, i would like to make it MANDATORY to fill in the VAT ID before purchasing. Is there a way to make the "Purchase as a business" checkbox mandatory? Or the VAT ID and Business Name field after it is clicked.

Related Request ID(s)
VAT ID Checkout

What have you already attempted?
I have enabled the collection of the VAT ID during my checkout, but since i only offer company invoices in my platform, i would like to make the VAT input MANDATORY for each purchase.

cursive heronBOT
#

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

Question
Product has a few Plans(Prices). Subscription has monthly billing cycle and generates invoices automatically. Unfortunately all Plans(Prices) are added to invoice under Product name (so I end up with invoice having Product name 4 times). Is it possible to add some Plans(Prices) description(name) to invoice?

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

What are you working on?
Payment system

#

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

Question
We are trying to integrate Gpay in our React native app. We have used the stripe react native sdk for displaying the payment sheet, but the option of Gpay does not appear in the payment sheet, then we tried the checkout method in which we displayed the stripe's checkout page in WebView, but the button of Gpay does not appear in the payment methods sheet in either of these integration methods. As we were testing it in India, so we asked our client to test the same from USA, but they also faced the same issue.

Related Request ID(s)
-

What have you already attempted?
We have also followed the official documentation: https://docs.stripe.com/payments/accept-a-payment?platform=react-native&ui=payment-sheet

#

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

Question
Does stripe "resend" webhook if the previously delivery failed even in the testing mode? if yes, what is the delay between the attemps?

Related Event ID(s)
not particular event

What have you already attempted?
this is just a question

#

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

Question
I have been trying to find where I use ACH credit transfers in my code, but I couldn't find anything. The logs in Stripe say that I use ACH credit transfers. Is there any way to find where I use ACH credit transfers in the code?

Related Request ID(s)
N/A

What have you already attempted?
N/A

What are you working on?
Migrating to the payment intents API because ACH credit transfers will get deprecated

#

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

Question
Do the stripe payment intent and payment method API errors have language support?

Related Request ID(s)
req_Z5M0dPirgfoaP5

What have you already attempted?
We have tried translating the errors on the front end side however it seems inefficient

What are you working on?
We want to translate error messages based on locale

#

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

Question
Is there an endpoint to retrieve mandates directly?
Thanks

Related Request ID(s)
N/A

What have you already attempted?
I think I can use the setup_intent endpoint and expand to mandate but it does not seem optimal

What are you working on?
I want to handle mandate status in my app. I'm already listening to mandate.updated webhook but need to migrate info from Sitrpe to my db.

#

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

Question
Tap to pay for android is not working on production release ever since i upgraded from stripe terminal 2.x.x to 3.x.x

com.stripe.stripeterminal.external.models.TerminalException: Contactless transaction failed java.lang.IllegalStateException: App Error: SERVER_ERROR 'An unknown error has occurred: java.lang.VerifyError: Rejecting class com.s.cb.DashboardF15381 that attempts to sub-type erroneous class com.s.by.AsG12984 (declaration of 'com.s.cb.DashboardF15381' appears in /data/user/0/com.workiz/Anonymous-DexFile@1319834860.jar)'.

Related Request ID(s)
none

What have you already attempted?
Checking pro guard rules, and playing with dependencies. nothing wortk

What are you working on?
Android app

#

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

Question
Hi: We are developing a new feature and would like to update our payment method based on the current Stripe settings.

Requirements:

  1. When a customer buys the first seat, Stripe should send a payment confirmation, allowing the customer to start using the service.
  2. If the customer wants to buy additional permissions, they should be able to select the desired number of seats. Once the payment is completed, Stripe should send back the permissions.

You can image, I bought a music streaming plan for 1 device, after a while, I want to buy more permission for my other devices, and I need to see how many permission I have in my dashboard.

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

What are you working on?
Like my description, read the document - Quantity, but not very sure the feasibility, is it possible to make? thnaks

cursive heronBOT
#

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

What did you expect to happen?
I started a business a couple of months ago using Stripe, but unfortunately, my payments are currently on hold. I've contacted the support team, but they keep sending the same message stating that a refund is not possible. Can you help me understand why this is happening? Any assistance would be greatly appreciated!

What actually happened?
we were taking payments from our customers , unfortunately stripe had stopped taking the payments and emailed us that the business is risky , so they will refunding all the money back to customers but they refunded some amount which the payment made with the cards details manually and who paid via link did not receive the refund yet . please solve this issue !

Reproduction Steps
We would be left with no other option but to take a legal route.

  1. We have not done anything that was unwarranted and were not expecting our money to be withheld.
  2. We never got any prior notification to stop usage of Stripe for collecting payments.
  3. The account doesn't have any chargebacks from users even after 60 days.

We will need the remaining payouts !

Question
why stripe has stopped our payouts as we did not done any illegal , i see in dashboard there’s our one customer had tried with different or with fraudulent card , I don’t think thats the reason for the issue we are facing with stripe.

What are you working on?
we are working on creators, youtubers, influencers growth to provide services to our customers.

#

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

Question
I need to be able to set restrictions on the shipping addresses that customers enter. I can do this however it affects the shipping and billing but I don't want it to. I need to set different restrictions on the shipping and billing information.
I was also wondering if it is possible to limit to a particular state/county as it seems like I can only limit the country they can select. Again this is a requirement that my client has.

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

What are you working on?
I'm creating an online shop for a bakery. They have a limited delivery area so we need to constrain the addresses that customers can enter for shipping.

#

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

What did you expect to happen?
Creation and updating of subscription Schedule should keep discounts if the property is not set in phase(s)

What actually happened?
The discounts array is deleted when subscriptionSchedule is updated

Reproduction Steps
- Create a subscription
- Add a discount
- Create a subscriptionSchedule linked to the subscription
- Update phases without setting discount
- Discounts is deleted

Question
In the subscriptionSchedule documentation, it's written "The coupons to redeem into discounts for the schedule phase. If not specified, inherits the discount from the subscription’s customer. Pass an empty string to avoid inheriting any discounts.", so is it a bug ?
To get the discounts arr, I apply it in all phases

What are you working on?
Building subscription based shop

#

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

Question
I started a business a couple of months ago using Stripe, but unfortunately, my payments are currently on hold. I've contacted the support team, but they keep sending the same message stating that a refund is not possible. Can you help me understand why this is happening? Any assistance would be greatly appreciated!

Doc/Guide Links
We have been tirelessly sending emails to support to release the last payment so that we can move on from Stripe if the platform cannot support our business. However, we have been getting the same standard response and no solution, and the money is stuck

What are you working on?
working for creator’s growth

cursive heronBOT
#

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

Code
Stripe.api_key = ENV['STRIPE_SECRET_KEY']
Stripe::Account.create({ country: 'US' type: 'express', email: 'user@example.com',
capabilities: { card_payments: { requested: true }, transfers: { requested: true } },
business_type: 'individual',
business_profile: { url: 'domain_url', name: 'name' },
settings: { payments: { statement_descriptor: 'name' } }
})

Question
Rarely getting this error while creating the Express account.
Error - "Connect platforms cannot create new accounts on behalf of their connected accounts"

What have you already attempted?
Creating the Stripe account using the Ruby class
Stripe::Account.

What are you working on?
Creating the Express Stripe account

cursive heronBOT
#

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

Question
Hi I'm working on change our current payment system, here is our new scenario, image you buy a music streaming plan for 1 device, after a while, you want to buy more permissions for other devices. I read the document, but still not sure how to display how many permission the users buy and sent it to my dashboard. Does quantity works for my scenario?

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

What are you working on?
A product which allow people buy and if they reach the limit, they can buy another seat to continue the service

cursive heronBOT
#

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

Question
We are encountering an issue while attempting to process MOTO payments using our connected Stripe test account.

We are receiving the following error message when attempting to process a payment:
Error Message: "Payment Failed: Bad request made to payment processor, No such PaymentMethod: 'pm_1Puu72BAfHXJh6DiPny1xv1I'; OAuth key or Stripe-Account header was used but API request was provided with a platform-owned payment method ID. Please ensure that the provided payment method matches the specified account."
Error Code: resource_missing
Request ID: req_aWOejSzSVPHP7k

Related Request ID(s)
req_aWOejSzSVPHP7k

What have you already attempted?
Interestingly, I am able to process payments without any issues using a non-connected Stripe test account, which leads me to believe there may be a specific setting or configuration within Stripe that needs to be enabled for the connected account to process MOTO payments.

#

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

Question
In the stripe dashboard I can set the billing information - in there I can adjust the `billing email`. I cannot seem to retrieve that data from the api ?

Related Request ID(s)
-

What have you already attempted?
Looked through the API documentation + queried the API

What are you working on?
I need to send additional invoice specification emails to the billing email addresses

#

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

Question
I'm from Belgium and would like to see a BE flag in the telephone and country field when passing "locale: 'nl-BE' " to the checkout session api. I see that only 'nl' is available. Where can I log this feature request? I see e.g. en-GB en fr-CA are available

Related Request ID(s)
When passing "locale: 'nl'" inside the body when creating a checkout session that's using the Stripe hosted page I see that the telephone and country fields are showing The Netherlands by default. I'

What have you already attempted?
I tried nl-Be but I got the error
"Request req_7rbWn0TkIXPXRw: Invalid locale: must be one of auto, bg, cs, da, de, el, en, en-GB, es, es-419, et, fi, fil, fr, fr-CA, hr, hu, id, it, ja, ko, lt, lv, ms, mt, nb, nl, pl, pt, pt-BR, ro, ru, sk, sl, sv, th, tr, vi, zh, zh-HK, or zh-TW"

cursive heronBOT
#

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

Question
Hi,

We do have an issue with creating subscriptions.
When we create subscriptions, and when the 3DS fails, the subscription is created but obviously has no payment attached.
It is a mess, and we would rather not create the subscription.

What would be the way to actually achieve this? Create a SetupIntent with usage set to offsession, first, and then create the Subscription from backend if the setup intent is successful?

Doc/Guide Links
https://docs.stripe.com/api/subscriptions
https://docs.stripe.com/api/setup_intents
https://docs.stripe.com/billing/subscriptions/build-subscriptions?platform=web&ui=elements&locale=en-GB

What are you working on?
Merchant providing subscription based services

cursive heronBOT
#

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

What did you expect to happen?
To publish update android app with stripe payment integration in play store.

What actually happened?
Got android app rejection from play store with bellow message.
"Issue details

We found an issue in the following area(s):

Version code 74: Policy Declaration - Data Safety Section: Device Or Other IDs Data Type - Device Or Other IDs (some common examples may include Advertising ID, Android ID, IMEI, BSSID, MAC address)"

We are not asking any of device ids.

Reproduction Steps

  1. Integrate stripe payment in a flutter app using the flutter package flutter_stripe: ^11.0.0 (Link- https://pub.dev/packages/flutter_stripe).
  2. Generate aab.
  3. Publish aab to Google Play Store.

Question

  1. Does the stripe sdk/package collect any device id as says in the above issue?
  2. If so:
    a. Why it being collected?
    b. What data safety policy we have to follow?

What are you working on?
We are integrating stripe payment into our existing flutter app.

#

@fading raven pressed the 📚 Doc or Guide button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Link to the Doc/Guide in question
https://docs.stripe.com/billing/subscriptions/bacs-debit?locale=en-GB

Question
Via the API, Is it possible to set up an invoice to take a direct debit, and to then use that direct debit mandate to take future payments automatically, even though the value of those future payments are not regular and not known?

What have you already attempted?
I am still planning the feature. I have reviewed API docs for direct debits and subscriptions. I cannot understand if our use case is possible, because our payment plans might be e.g. 4 irregular payments over the course of the year, and the final bill amount fluctuates between each payment.

So for example, a customer might pay £1000 deposit on day 1, £5000 after 3 months, £5000 6 months later, and then a final balance of £2000 3 months later.

What are you working on?
Wedding planning application. Payment plans are for weddings, but because final guest numbers aren't finalised until close to the event, final cost and payment instalment amounts can vary

#

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

Question
I reached out previously about this but am still a bit confused after re-reading the thread.

We would like to make manual transfers to connect accounts and then use automatic payouts from the connect account to their bank account we would like to set these values to interval = daily and delay_days = 1, will setting these values for the payout schedule result in the transferred amount being paid out automatically after 1 day? Looking at the UI the minimum payout delay seems to be 7 days and there's some confusing documentation around which country and what delays you can use.

Related Request ID(s)
N/A

What have you already attempted?
Read through the documentation on payout schedules

What are you working on?
Marketplace for services to connect customers and suppliers

cursive heronBOT
#

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

Code
$line_items = [];
array_push( $line_items, [ "price" => $product_price_id ] );

	    $response = $stripe\-\>subscriptions\-\>create\(\[
	        'customer' =\> $customer\_id,
	        'items' =\> $line\_items,
			'trial\_period\_days' =\> 31,
	        'payment\_behavior' =\> 'default\_incomplete',
	        'payment\_settings' =\> \['save\_default\_payment\_method' =\> 'on\_subscription'\],
	        'expand' =\> \['latest\_invoice.payment\_intent'\],
	    \]\);

Question
is there an issue using trial_period_days with a subscription->create with a priceid?

What have you already attempted?
i've added the integer manually but i get an error saying the client secret isnt working. If i remove the trial_days setting the subscription intent is created.

What are you working on?
migrating briantree to stripe.

#

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

What did you expect to happen?
We have integrated Stripe Checkout. We want to enable payment methods dynamically. We followed this article: https://docs.stripe.com/connect/dynamic-payment-methods

However, for some reasons we are not able to do that and our users ask us like why I am not able to see Bancontact payment method etc.

What actually happened?
Dynamically listing all active payment methods.

Reproduction Steps
Stripe user activates Bancontact from his Stripe Dashboard.

This user opens a Jotform form and integrate with this Stripe account.

Publish the form integrated with Stripe Checkout.

Customers select product and submit the form and customers go to Stripe Checkout.

They cannot see Bancontact here.

Question
How can we solve this issue? We have an App and our users contact over this App. Do we need to activate some settings on this App? Could you please provide details?

What are you working on?
maintaning

cursive heronBOT
#

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

Question
We are using the embedded Stripe Payment Element with Financial Connections, however we are wanting to only verify bank accounts using microdeposits and not with a username and password. We have been told there is a way to get access to a "skip" parameter for the payment_method_options.us_bank_account.verification_method field. Would this result in the Financial Connections embedded window not showing the username and password fields? Or would we need to use the API to verify bank accounts using the "skip" parameter?

Related Request ID(s)
N/A

What have you already attempted?
We have tried using the "skip" parameter but we haven't had it added to our account yet. In the meantime, we are hoping to get more info about how we will need to use it

What are you working on?
A portal to add accounts and process payments

cursive heronBOT
#

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

Question
Is there a way to not charge the customer right away when they sign up for AfterPay

Related Event ID(s)
0

What have you already attempted?
I don't see any options or settings to allow this.

#

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

Question
I have created a product with name `Subscription 1`. It's default price is 100$ monthly recurring payment.

When i am creating subscription from dashboard or through api, i am using that product `Subscription 1`, but having a different amount on the price. Let's say 5000$.

Now, when customer.subscription.created webhook event comes, the event payload has the subscription item data.

But, the subscription item does not have the name of the price/product. which is `Subscription 1`.

How can I get the name of the product, as it is needed for me to sync with backend, with the product names.

Related Request ID(s)
req_S8ze7SBMJBzRQq

What have you already attempted?
So there seems to be nickname, which can be updated in description label under advanced settings of the price. I tried that. It works for the default price.

But as soon as, when creating subscription, i edit the amount of the price. The description label is empty for that particular price of 5000$.

Is there any way that the description label can be taken from the default price when creating a new price under that same product?

One solution I can think of, is fetching the default price of the product, and using its nickname, when the event comes.

What are you working on?
Integrating automated billing system with the backend

#

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

Code
capabilities: {
card_issuing: {
requested: true,
},

Question
This is the error
```
{
"error": "card_issuing can only be requested if your platform has been onboarded on Stripe Issuing already."
}
```

I can issue cards from the test main account but not from a connected account. Note that I created this new account via API.

What have you already attempted?
I already submitted all the required information for this connected account.

What are you working on?
We want to be able to issue virtual cards for our clients so they won't have to use their personal card. The company will manage fraud and refunds.

#

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

What did you expect to happen?
We have connected account that use our platform. I have a domain test.domain.com that shows Apple Pay properly. However other domains, x.domain.con, y.domain.com don't display it despite being setup in "payment method domains". We are using React PaymentElement.

What actually happened?
Apple Pay tab didn't show up.

Reproduction Steps
Not sure I can't share here since this would be public?

Question
What could cause Apple Pay to not show up on these specific domain despite the integration working on others?

cursive heronBOT
#

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

Question
I have a product, set for one time payment. But the amount can vary. So I need to create custom amount prices, within the product for every check session.

This has let for the prices to be numerous, and also redundant. For the same amount, there are multiple prices.

Can you help in how can I mitigate this? I will also attach a screenshot after the thread is opened.

Related Request ID(s)
-

What have you already attempted?
Have not tried anything

What are you working on?
Creating checkout sessions for one time payments

cursive heronBOT
#

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

Question
Hi. Im trying to setup OAuth2 for my app.
Im trying to go through this guidelines https://docs.stripe.com/stripe-apps/api-authentication/oauth#test-app

And i am stuck in step 2, which is Test your app.

Im not able to see those tabs in my Test app, where i can set up redirect uris.

Docs says:

  1. Navigate to your app’s details page.
  2. Open the External test tab and click Get started to set up an external test.

Well, there no external tab for me.

Related Request ID(s)
xxx

What have you already attempted?

  1. Ive created stripe app using stripe cli.
  2. uploaded (stripe apps upload)
  3. Acces External Tests (THERES NO SUCH TAB)

What are you working on?
Create OAuth2 app for Stripe

#

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

Question
I webhook returns 400 (Bad Request) in the website and i'm not receiving nothing on my side, did I put my Endpoint URL wrong or??

Related Event ID(s)
evt_1Pv0wME22LyaeBLzKPNIb8Xg

What have you already attempted?
I've tried changing the webhook secret a couple of times and changing the endpoint name on my side

What are you working on?
a payment system that I need to check If the user payed to update their data

#

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

Question
Hi, if I cancel a Stripe Billing Subscription, and then decide to bill the associated payment method manually off session, will that still work?

Related Request ID(s)
N/A

What have you already attempted?
Haven't tried that yet, need to know if that works

cursive heronBOT
#

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

Question
They closed my last post but my webhook isnt working and Im not sure why, I have followed the troubleshooting guide but that hasnt worked for me

the site gives me this which in my side is that its not an valid enpoint but its supposed to be a post request right? Found. Redirecting to /alert

Related Event ID(s)
we_1Pv0d1E22LyaeBLztfbSilFw

What have you already attempted?
A lot, I used the troubleshooting guide

What are you working on?
A payment system but I need it to check if the user payed so I can update their data

#

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

Question
I've created a pricing table which contains products with annual and monthly subscription options, and one-time purchase option. When the customer purchases a subscription, the checkout.session.completed object provides a product ID that I can use to reference what the customer paid for. However, when the customer selects one-time purchase, the checkout.session.completed object provides no useful information at all. What can I do?

Related Event ID(s)
evt_1PufYGEJ7LLxcP3xBjLDbasE, evt_1PuhEcEJ7LLxcP3xtwgAxnpq

What have you already attempted?
I've tried using meta tags in the product and price items. The subscription purchase provides those meta tags, but the one-time purchase doesn't.

What are you working on?
An app with subscription and one-time payment options.

cursive heronBOT
#

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

Question
I am using stripe payment element and only ACH bank transfer. When I am doing the payment its saying customer needs to complete the authentication step.

Related Request ID(s)
pi_3Pv2EHRqbp84r6xN0P58RwV6

What have you already attempted?
already attempted api doc

What are you working on?
trying to accept payments from customer using ACH payment method

cursive heronBOT
#

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

Code
try {
... some code ...
} catch (\Stripe\Exception\ApiErrorException $e) {
if ($e->getStripeCode() == 'terminal_reader_busy') {
....
}
}

Question
Hi, just wanted to make sure whether we are handling errors correctly with the PHP library: the \Stripe\Exception\ApiErrorException class has the getStripeCode() method, would that code refer to error codes that are also not explicitly specified in \Stripe\ErrorObject as constants? For example on terminal payment collection: 'terminal_reader_busy'

What have you already attempted?
Would the specified code be correctly checking for that error code?

cursive heronBOT
#

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

Question
Does the Stripe API support externally provisioned network tokens + cryptograms (i.e. third party network tokens)

Related Request ID(s)
n/a

What have you already attempted?
searched for network tokens api, but wasn't clear if we could use externally provisioned ones.

What are you working on?
I'm trying to get an answer for this question for a potential large client.

#

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

Question
How can I get the upcoming invoice API to show an invoice for the next period?

As example today is Sept 3, I am requesting an invoice for a subscription for an upcoming period. The response I get shows a invoice.period_start in the past.

Related Request ID(s)
req_JAKEap5xgnOs8V

What have you already attempted?
I've tried modifying the schedule_details parameter in the request to the upcoming invoice without success

What are you working on?
We are building an internal billing management page for our application

#

@balmy pagoda pressed the 📚 Doc or Guide button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Link to the Doc/Guide in question
https://docs.stripe.com/declines/codes and https://docs.stripe.com/api/issuing/authorizations/object

Question
Hi! In the first link, it's shown the different response codes banks can submit to stripe when attempting to charge a card. The crucial point is that they can be categorized essentially in approval, declines and soft declines. Now, in the 2nd link, in Stripe Issuing, you only have the ability to approve/decline, but it seems that you're unable to do like the bank does even when you are acting 'like' that when issuing cards. It seems that it's not possible to soft decline a transaction and request more auth, fore example

What have you already attempted?
Read the docs. Specifically this one https://docs.stripe.com/billing/migration/strong-customer-authentication#using-3ds-emails where it shows how stripe handles this in the soft decline event when off-session. It all points to the fact that requesting 'more auth' via issuing is doable but it's not clear how when using that product.

cursive heronBOT
#

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

Question
Hi, I am retrieving charge and invoice data using the API. I just realized that now that we have some merchants using Link that some invoices have an associated charge with an ID starting in "py" instead of "ch".
Can I retrieve these charges in "py" by requesting the charge endpoint?
I checked the associated Payment Intents, they do have an ID in "pi" and latest charge with an ID in "py".

So if these are charges, I don't get why I do not retrieve them using the charge endpoint.

Thanks a lot

Related Request ID(s)
no specific request

What have you already attempted?
I tried to retrieve payment intents instead. And I get them with latest charge matching. I just do not understand the behavior and that makes a lot of changes in the pipeline. So i want to be sure about the best option.

What are you working on?
Data pipeline

#

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

Question
I have basic and standard subscription plan, if a user would downgrade from standard to basic, we would like the user to continue using our services on the standard plan until the next payment. How can we implement this? Stripe send an event immediately when the user changes plan and when the next payment occurs, but how do i only update the plan when the second event occurs?

Related Request ID(s)
req_1ZBSbHTEpwwBlc

What have you already attempted?
We have tried to debug the CustomerSubscriptionUpdated Event to look for solution.

What are you working on?
We are working on a CRM

#

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

Code
https://handsforcharity.org/checkout/

Question
Sometimes, the submit button doesn't trigger the processing, leaving users unsure if the checkout process was successful. As a result, they may click again, but nothing happens. Eventually, they refresh the screen, re-enter their details, and the payment goes through. However, this can lead to multiple duplicate payments. Is there a way to resolve this issue? This issue does not happen often it happens in rare situations

What have you already attempted?
Unfortunately, our error log did not capture any error codes related to this issue so its a bit hard to replicate it again

What are you working on?
Donation Checkout

cursive heronBOT
#

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

Question
We want to migrate BankAccount payments from Charges to PaymentIntents, but are struggling to understand the confirmation step.

Related Request ID(s)
pi_3Pv44gBIMZTJKM1c1iybfRa7

What have you already attempted?
The PaymentIntent came back with status "requires_confirmation". This doesn't occur with card payments. What do we need to do at this point?

What are you working on?
Notch

cursive heronBOT
#

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

Question
I received a notice that failed card attempts are being retried too many times. When I looked at the 3 card fingerprints in question I saw between 5 and 8 attempts over the course of a week (and in one example 2 attempts within a day). Could I get help validating the biggest red flags so we can re-configure? Thanks!

For context we use ChurnBuster and are looking potentially at migrating to Stripe's own Smart Retry logic.

Doc/Guide Links
https://docs.stripe.com/billing/revenue-recovery/smart-retries#non-retryable-decline-codes

What are you working on?
Payments compliance

cursive heronBOT
#

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

Code
const options = {
allow: 'payment *',
mode: 'payment',
amount: 50,
currency: 'usd',
paymentMethodCreation: 'manual',
appearance: appearance,
wallets: 'never',
};

Question
i get "Payment details were collected through Stripe Elements in `payment` mode and cannot be confirmed with a Setup Intent." when trying to update the payment details submitted through previous payment element

What have you already attempted?
tried to update mode value to setup, but didn't work

cursive heronBOT
#

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

Question
When retrieving a Subscription Schedule, how can I access the `iterations` property on `phases`? It's not returned, but is updatable and in the create payload.

Related Request ID(s)
N/A

What have you already attempted?
No way to find this, or calculate it with other fields as far as I can tell

cursive heronBOT
#

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

Question
How do I obtain the card last4, exp_month, and exp_year from a create report run? The report is balance_change_from_activity.itemized.3

Related Request ID(s)
Report Runs

What have you already attempted?
I attempted the following in curl, the report is accepted, but there's no data in the file download response -

curl -k https://api.stripe.com/v1/reporting/report_runs -d report_type="balance_change_from_activity.itemized.3" -u <stripe key>: -d "parameters[interval_end]=1725321600" -d "parameters[interval_start]=1718755200" -d "parameters[timezone]=America/Chicago" -d "parameters[columns][6]=payment_intent_id" -d "parameters[columns][13]=payment_metadata[payment_method_details.card.last4]" -d "parameters[columns][14]=payment_metadata[payment_method_details.card.exp_month]"

What are you working on?
FInancial Reconciliation Report

cursive heronBOT
#

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

Question
I get this error and im not too sure how to fix

Webhook Error: Webhook payload must be provided as a string or a Buffer (https://nodejs.org/api/buffer.html) instance representing the _raw_ request body.Payload was provided as a parsed JavaScript object instead.

Signature verification is impossible without access to the original signed material.

Learn more about webhook signing and explore webhook integration examples for various frameworks at https://github.com/stripe/stripe-node#webhook-signing

Related Event ID(s)
we_1Pv30DE22LyaeBLzjL4EzSgE

What have you already attempted?
I did a lot but my last thread I couldn't find the error but It wasnt what we agreed its something with the Signature verification

What are you working on?
Trying to get the payment confirmation so I can update data

cursive heronBOT
#

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

Code
https://buy.stripe.com/${product_id}?client_reference_id=${user?._id}

Question
I'm using a router.push url for creating checkout page and receiving the client reference id in the checkout.session.completed, which adds the customer_id to the customer's in our database . However, since the webhook events are not in order, the invoice.paid event cannot access the customer_id in the db thus not updating the user data. How can I add metadata to be stored in the customer object through the checkout url?

What have you already attempted?
We have tried adding a queue to rerun the query if we cant find the customer id as well as another check by querying the email. But in this case, the customer billing email might be different from email of account.

What are you working on?
Building a B2C subscription based platform

cursive heronBOT
#

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

Question
I have created a subscription and have added a discount coupon to it. The subscription is weekly reoccurring with monthly discount of 10%. This discount is being applied to 5 consecutive billing cycles.
We were thinking that the discount being monthly, it should have been applied as 10% discount in single billing cycle.

Related Event ID(s)
evt_1PvBggIhAlYoUFFbsxBPNzJV

What have you already attempted?
I was wondering what is the correct here.

cursive heronBOT
#

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

What did you expect to happen?
I am trying to print the payment intent page for hard copy documentation. In the old days, it used to be okay and everything you see from the web can be seen in the printout.

What actually happened?
Now, when I try to print, it shows "loading timeline..." and the payment breakdown is not showing, even though the website shows this things.

Reproduction Steps

  1. Go to any payment page
  2. Press ctrl+p.
  3. See that the preview is different from what is in the website

Question
Is this intended by Stripe as an update in security measures? or is it just a bug?

What are you working on?
I am working on making hardcopy of transactions for our financial purposes.

cursive heronBOT
#

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

What did you expect to happen?
Dynamic payment method rendering in Stripe Checkout

What actually happened?
Active payment methods are not listed

Reproduction Steps
Enable a payment method like ideal from stripe dashboard.
On Stripe checkout page ideal is not listed as a payment method

Question
I enabled account customization and removed payment_method_types from the code. What should I do to provide this dynamic payment method listing on checkout page?

What are you working on?
maintaning

#

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

Question
Dear all,

I have an active subscription with an item inside. Now, a customer might remove that item, but he doesn’t want his subscription to be cancelled. I tried to used the https://docs.stripe.com/api/subscription_items/delete, but I get an error `A subscription must have at least one active plan. To cancel a subscription, please use the cancel API endpoint on /v1/subscriptions`.
Is there another way, without cancelling the subscription?

The second issue with the cancellation is that it cannot be reactivated. I didn’t find a route for that.

So:

  1. How to handle the removal of the last item?
  2. How to reactivate the subscription?

Thank you

Doc/Guide Links
https://docs.stripe.com/api/subscription_items/delete

What are you working on?
API - subscription items removal & subscription lf

cursive heronBOT
#

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

Question
I am using stripe payment element and I wanted to save bank detail for future use

Related Request ID(s)
pi_3PvEuaRqbp84r6xN13sNEmgH

What have you already attempted?
I have used payment element different params

What are you working on?
trying to accept ACH payments

#

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

Code
stripe checkout is not able to run in an iframe. please redirect to checkout at the top level

Question
I hava a codova application and I wanted to enable stripe Seesion checkout on that. How to that.

What have you already attempted?
I have tried opening the session checkout url on iframe and in modal also

What are you working on?
StripeSession Checkout in cordova application.

cursive heronBOT
#

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

Question
Is there a way, using Checkout Session, to restrict the card brand available?
For instance, on the available payment method shown to a customer, I want to only allow for instance VISA card. Mastercard, AmEx... should not be visible as well as Google Pay Apple Pay that are not shown. Basically I want to only allow payment using VISA for instance

Related Request ID(s)
NA

What have you already attempted?
I try to search in the documentation

What are you working on?
e commerce

cursive heronBOT
#

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

What did you expect to happen?
I am trying to update the description of a payment for a Connect account after the payment_intent.succeeded webhook has been triggered. From my code, I expect the corresponding payment description to be updated.
See: 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 actually happened?
It is not the last payment that is being updated, but the one before the last.

Reproduction Steps
I will provide my codesnipped in a comment

Question
Why is the most recent payment not being accessed and updated correctly?

#

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

Question
I have a customer and want to change their billing email but not their account email. I can't seam to find a param on the API docs for updating this property.

Related Request ID(s)
In this context not sure what to put here

What have you already attempted?
Nothing yet just searched the docs and API and can't quite find the billing address

#

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

Question
We are using the 2014 Stripe API

We see this error when attempting to update setup_future_usage on a payment intent from `on_session` to nil via our server integration.

`If you've already set setup_future_usage and you're performing a request using a publishable key, you can only update the value from on_session to off_session.`

I understand we are using the secret key rather than the publishable one but I may have misunderstood that...

Please could you clarify if such an update is possible via the backend server?

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

What have you already attempted?
To update setup_future_usage on a payment intent from `on_session` to nil via our server integration.

What are you working on?
We are migrating to the new strip element on our website

cursive heronBOT
#

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

Question
Hi Team,
Stripe bank account is canceled before verification with any reason, now i want to use that payment method in new setup intent.

Related Request ID(s)
No ID.

What have you already attempted?
Create a setup intent & try to attach payment method on that.

What are you working on?
Integration between business central & Stripe.

#

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

Question
When we update subscription, stripe shows a summary of changes before updating it. So which API should we use to show the summary of changes on update subscription

Related Request ID(s)
123

What have you already attempted?
I have used Retrieve an upcoming invoice API to show this.

What are you working on?
Updating subscription

cursive heronBOT
#

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

Code
I would like to know whether is possible to set the default country on the Payment Element widget.

Question
I was checking the documentation and the examples and I could not find the field which I need to update on the payment element: https://github.com/stripe-samples/accept-a-payment/blob/main/payment-element/client/html/index.js

What have you already attempted?
I've read the docs, but no info about overidding country was provided:
https://docs.stripe.com/payments/payment-element

cursive heronBOT
#

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

Code
<script>
const stripe = Stripe("",{stripeAccount: ''});

initialize();

// Create a Checkout Session
async function initialize() {
const fetchClientSecret = async () => {
return "";
};

const checkout = await stripe.initEmbeddedCheckout({
fetchClientSecret,
});

// Mount Checkout
checkout.mount('#checkout');
}
</script>
<div id="checkout">
<!-- Checkout will insert the payment form here -->
</div>

Question
Why fnFetchClientSecret is not a valid printer

What have you already attempted?
Many things

What are you working on?
Embeding stripe session checkout

cursive heronBOT
#

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

Question
how can stop customer to using promo code again in stripe. if customer A has used promo code XYZ10 once he can't be use that promo code by customer B can be use one time.

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

What have you already attempted?
I tried to check subscription but again once user change promo code and again use old they are are able to use

What are you working on?
I am adding apply promo code functionality using stripe element

#

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

Question
We are using setup and payment intents API for Stripe SEPA. We do not pass any parameter to send pre-debit or mandate notifications from Stripe. I assume we don't have an option to control sending email from Stripe via APIs either.
But looks like, even though we have disabled email on Stripe, still email is being sent from Stripe. What could be the issue?

Related Request ID(s)
We don't have any IDs.

What have you already attempted?
.

cursive heronBOT
#

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

Code
rn (
<form
className={formClassName}
action={action}
method={method}
onSubmit={onClick}
>
{Object.entries(data)?.map(([key, value]) => (
<input key={key} type="hidden" name={key} value={value} />
))}
<button type='submit'>Submit</button>
</form>

Question
I want to send some data regarding the customer to backend how to this as backend is expected 'application/json' data and i cannot change data,is there any other way to send the data.

What have you already attempted?
Using external handleSubmit function is also not working and i need to use stripe hosted page only

What are you working on?
My employer's website

cursive heronBOT
#

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

Question
Why am I receiving a payment_failed event instead of payment_required_action when I update my subscription with card 3184 ?

Related Event ID(s)
evt_1PvIbhJ6dDUA5fv09HmtyxpB

What have you already attempted?
I tried updating the card with the api and with my client and set it as a default pm for my subscription.

#

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

Question
Hi, I am looking for the best practice for this case. I offers subscriptions that can be paid with a one time payment or monthly. I want to "assign" a subscription to a user, and have it activated in my product when the first invoice is paid. I also want Stripe to send emails to users with the payment link.
I handle single payments with invoices with CollectionMethod=send_invoice. All is well.
I'd like to replicate the same experience using stripe subscriptions but I found no clean way

  1. Have Stripe send the first invoice
  2. Wait for the invoice to be paid
  3. When paid, crate the subscription and have stripe bill automatically next invoices

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

What are you working on?
Tried 2 solutions here, but none is perfect. 1: create the subscription and have it "send_invoice", when paid, I update the CollectionMethod. 2: send a one time invoice,when paid create subscription with a trial for first period

#

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

Question
👋 Hi! Our team is looking for guidance on API usage for an update on our existing Stripe integration.

Our existing Stripe integration consists of a subscriptions that provide access to a given product tier (e.g. basic and pro tiers).

We're looking to provide existing customers subscribed to the basic tier a trial period of the pro tier.

We existing billing requirements as part of this:
- We want to avoid modifying the existing billing cycle
- We want to allow full usage of their trial period regardless if they intend to upgrade
- Do not credit back for unused time
- Prorate for used time

I'll attach a diagram that hopes to better illustrate the intended design

Doc/Guide Links
I've reviewed subscription schedules API/guides and general subscription API/guides

What are you working on?
Custom stripe integration

#

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

Question
In stripe, do you have API for the conversion rate between fiat currencies like EUR to USD or EUR to SEK

Related Request ID(s)
General Question

What have you already attempted?
I am using some third party at the moment but i want to move everything in the eco system of stripe

cursive heronBOT
#

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

Question
I exported customers from one account to another, but their card IDs have changed on the new account. How do I use the old card IDs or get a mapping of Card IDs between the old account and the new account?

Related Request ID(s)
n/a

What have you already attempted?
Worked in Test Mode.

#

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

Question
Hi,

I’d like to know if Stripe can provide the bank issuer information when a payment is successful. I found references to certain attributes in the documentation (https://docs.stripe.com/api/payment_methods/object#payment_method_object-interac_present-issuer), but when I retrieved the payment details, I couldn’t find this information.

Related Request ID(s)
req_7XRXrFo9fLaBZM

What have you already attempted?
I try to read this link and retrieve but not found
https://docs.stripe.com/api/payment_methods/object#payment_method_object-interac_present-issuer

cursive heronBOT
#

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

Question
How to identify an account is a main account or connected account by API key

Related Request ID(s)
NA

What have you already attempted?
I tried checking the connect API for account, but main account and connected account returns the same object

What are you working on?
Identifying the account type

#

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

Question
Testing an API version upgrade, jumping to 2024-06-20 from 2023-10-16. Most tests seem to be fine, but I'm seeing a weird delay (I think) when trying to access `charge`.`balance_transaction`. On the old version, that `b_t` record seemed to be "immediately available". That is, we could reference it on an immediate webhook. Now, though, the initial webhook call fails because that value is null. Then on subsequent (ie, retried) webhook calls, it works. Did something change between those API versions, regarding the availability/delay of that balance_transaction?

Related Request ID(s)
evt_3PvHv4G0PLvaFdxU0aHc60kI

What have you already attempted?
Rolled back versions and confirmed webhooks were succeeding on the first attempt (ie, did not need a retry).

#

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

Question
Hi everyone, I have a quick question. I'm using my website's API to create invoices and store the invoice ID along with the payment URL. I've noticed that once payment is completed, the payment URL page shows the invoice and offers an option to download it. However, for some stored invoices, the page displays: "This link has expired," and I'm not sure why this happens. Can anyone help me figure out what might be causing this?

Doc/Guide Links
https://invoice.stripe.com/i/acct_1E0scXBYrh2GVEDr/live_YWNjdF8xRTBzY1hCWXJoMkdWRURyLF9RYVRnMDFZa2ZNNk96ZGIzTGJrc1FMRWE5QUJWM000LDExMzEzNTM1Ng0200DC4a0Q68?s=ap

What are you working on?
invoice

#

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

Question
our FE web app is using only payment element but im seeing in the Stripe confirm request API are diff in some requests that missing client_attribution_metadata or payment_user_agent
How can i know what is the web elements using for confirm payment?

Related Request ID(s)
req_YRiI5QsEVvXTIS

What have you already attempted?
There is some confirm requests are not having the client_attribution_metadata or payment_user_agent values

#

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

Question
i need to find the correct endpoint to retrieve all transactions a stripe connect account id has made filtering results by stripe connect account id.

Related Request ID(s)
https://docs.stripe.com/api/charges/list

What have you already attempted?
tried end points of balanceTransactions.list charges.list and transfers.list they are not filtering by customerId or stripeConnectAccountId

#

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

Question
Hey, I have a digital reusable product. The customer joins online and get billed every month (subscription). When the user creates an account I would like to create a subscription object for him, because in my app the user automatically get's a trial of 3 days. The user should be able to change his subscription after that easily, so I want to use deep links to the customer portal. I just created a subscription for 0€ and wanted to set the billing cycle that long, how long my free trial from my app is. However: when the trial ends the user will be charged 0€. That's so confusing, so I am looking for an ideal way to handle my scenario

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

What are you working on?
CMS

#

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

Question
Hi

We have built a system and in which we are using Stripe Checkout Hosted page in that case all the money go to the my company stripe account and now we are going to introduce stripe connect accout for user to get the instant payment.

As stripe connect account is not available globally so we will have hybird module for some user we will use normal flow (Hosted Check out) and for remaining users we will use connect account. Do you things there is any better way to handle both just want to get a suggestion

Related Request ID(s)
General Question

What have you already attempted?
We are in development phase and already integrate the normal now we are integrating the connect account flow

cursive heronBOT
#

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

Question
in a nodejs stripe.js project, i am trying to retrive the following informations using an account_id : stripe connected accounts list has a status column with (Restricted|Restricted soon|Pending|Enabled|Complete) and on hover the reason behind the status. I was wondering if there is an easier way

Related Request ID(s)
none

What have you already attempted?
i have attempted to retrive those using stripe.js, with await stripe.accounts.retrieve(stripeAccountId), but it does not seem to give those info.

cursive heronBOT
#

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

Code
<style name="CardWidgetStyle">
<item name="editTextStyle">@style/EditTextOverride</item>
<item name="android:editTextStyle">@style/EditTextOverride</item>
</style>

<style name="EditTextOverride"\>
    <item name="android\:textAppearance"\>@style/CdsTextMiddle.UrbanGrey90</item\>
    <item name="errorTextAppearance"\>@style/CdsTextMiddle.CarouRed80</item\>
    <item name="hintTextAppearance"\>@style/CdsTextMiddle.UrbanGrey40</item\>
    <item n

Question
How do you style the CardInputWidget? I am not sure what fields to fill up in the style if it has custom style fields

My goal is just to change the hint, error and input colors. Also want to reduce the text size and change the font

What have you already attempted?
I have been trying different combinations of style items but not achieving what i want

#

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

Question
Is it possible to create custom rule for a connected account?
Basically, I have connected account linked to my stripe account. I would like, for only one specific connected account, to set up a rule in Radar to only accept payment made with a card of a certain brand

Related Request ID(s)
NA

What have you already attempted?
Check documentation

#

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

Question

  1. Hi, I'm working on our new pricing model for our AI agent product. We're planning to set the subscription price at $100 per agent per month. However, we want to give users the option to purchase additional agents if they need more.

I’ve read the documentation on handling quantity changes, but I’m still unclear on how to update the total amount and send that change to our backend. Could you provide some guidance on how to implement this? Do we need set a webhook?

  1. Could I use Stripe's UI to complete my scenario? like this demo https://checkout.stripe.dev/

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

What are you working on?
Planning a new price structure, need feasibility confirmation

#

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

What did you expect to happen?
Using Tiered billing with the first 100 set to a unit price of 0, and anything above as 50p, setting the meter to 101, should generate an invoice for 50p

What actually happened?
An invoice for £50.50 was generated

Reproduction Steps
Setup a product with a price which is tiered to have 100 free and then the rest 50p, set the usage to 101 and then simulate enough time to generate the invoice

Question
Is this intended? Surely the invoice should not be charging for anything in the first 100 usages?

What are you working on?
Billing system for SaaS application

cursive heronBOT
#

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

What did you expect to happen?
When using UI Elements to edit an existing payment method, the existing payment method should be updated.

What actually happened?
A new payment method was created with a new PaymentMethodId. So now, the customer has both the old payment method AND the new payment method.

Reproduction Steps
1) use the API to create a SetupIntent and assign the PaymentMethod parameter the Id of the existing payment method.
2) use the UI element on the frontend to assign the client_secret when calling stripe.elements( )
3) allow user to interact with the element to enter their payment method info and submit.
4) in the API, retrieve the customer's list of payment methods

Question
Is it possible to use the UI Elements along with a client secret to EDIT an existing payment method without creating a new one?

cursive heronBOT
#

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

Question
When creating a customer session is it good to store the client_secret temporarily during the session, e.g. either with other session variables on the server or in a cookie / session storage on the client?

Or should we honour the "It should not be stored" message in the docs and create a new session if the page is refreshed?

It seems like it isn't possible to retrieve a customer session object from stripe again after creating it.

Also how long does a customer session generally live? It doesn't look like we can control the expiry time when creating the session.

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

What are you working on?
Website that takes donations on behalf of charities. Currently working on showing saved cards within the payment element instead of fetching them via backend and rendering our own list of saved cards.

#

@untold spade pressed the 📚 Doc or Guide button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

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

Question
I have a Stripe connected account platform charging a 1% application fee. The flow works, and I see the expected responses in Balances. Now, I need to reconcile Stripe and application fees, then either transfer or top up the total fee amount so that 100% of the invoice is sent to the connected account balance for payout. Later, we plan to debit the connected account or charge the fee monthly. Should we use a transfer or top up, and should it be done during the transaction or before payout?

What have you already attempted?
we charged the account but stripe deducted the charge which is not what we want. For payouts to connected accounts we as a platform will bear the fees and deduct a sum total monthly.

What are you working on?
a laravel inertia jetstream app integrated with Stripe to help lawyers with invoicing and payments

#

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

Code
Phases = new List<SubscriptionSchedulePhaseOptions>
{
// Phase 1: Prorated period
new SubscriptionSchedulePhaseOptions
{
Items = new List<SubscriptionSchedulePhaseItemOptions>
{
new SubscriptionSchedulePhaseItemOptions
{
Price = _userSeatPriceId,
Quantity = userSeatQuantity,
}
},
Iterations = 1,
ProrationBehavior = "create_prorations",
},
// Phase 2: Regular monthly billing
new SubscriptionSchedulePhaseOptions
{
Items = new List<SubscriptionSchedulePhas

Question
Im trying to create a subscription where it prorates from the current date to the users selected billing day and then charge 1 month in advance. therefore the user doesnt pay again until after the first full month the have already paid for.

What have you already attempted?
I was just creating a subscription but i can not set the billing anchor to farther than a month out. ive tried using subscription phases but cant seem to get the billing cycle to be set to the users selected day. and the prorated amount is not correct either

What are you working on?
ERP Accounting Management Software

#

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

What did you expect to happen?
Stripe App Review Process Confusion

What actually happened?
Stripe App review team is requiring us to use the "Live mode install link", which doesn't activate until approved, but then rejects us for the install link not working.

Reproduction Steps
Requesting review of app on Stripe

Question
If we don't use that URL, our app gets rejected for not using it. If we do use that URL, our app gets rejected for not functioning (since that URL is not active until our review is confirmed). What do we do?

cursive heronBOT
#

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

Question
I want to log in my system when a user selects google or apple pay from the paymentElements form.

Related Request ID(s)
na

What have you already attempted?
I tried to console.log() the StripeElements object that I pass to confirmSetup after user selects google or apple pay, but I don't see anything in the object that defines which payment type is selected.

cursive heronBOT
#

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

Question
Hi,

I am using the Firebase <-> Stripe extension. And I am creating a Cloud Function to invoke the payment link I created in Stripe.

The Firestore works fine, the user is created and handled, Stripe creates a customer with correct Firebase uID etc.

But the problem is, my Cloud Function that should handle the checkout session does not allow any users (403 Forbidden)

Now I have tried applying Invoke rights to allUsers in GCP IAM settings, I have tried with different CORS settings, I have tried different httpsCallable methods, no help. The .env variables are also set correctly.

Related Event ID(s)
<h1>Error: Forbidden</h1> <h2>Your client does not have permission to get URL <code>/createSubscription</code> from this server.</h2>

What have you already attempted?
I have tried most solutions you can think of in 9 months without success.

#

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

Question
Is it possible to use interac_present with setup intents?

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

What have you already attempted?
Sending the request to create a setup intent with the payment method interac_present. This returns an invalid parameter error, but the docs included in the message suggest that interac_present is a valid parameter.

What are you working on?
A pre-authorization based workflow whereby we create customers, attach payment methods, and conditionally charge later.

cursive heronBOT
#

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

Question
please reopen my last ticket please reopen my last ticketplease reopen my last ticketplease reopen my last ticketplease reopen my last ticketplease reopen my last ticketplease reopen my last ticket

Related Request ID(s)
please reopen my last ticket

What have you already attempted?
please reopen my last ticket

What are you working on?
please reopen my last ticket

cursive heronBOT
#

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

Question
Following up on this previous thread, #dev-help message

I am having trouble maintaining the billing cycle anchor. Since provisioning the trial essentially resets (or unsets) the current anchor

Doc/Guide Links
https://docs.stripe.com/billing/subscriptions/billing-cycle#changing
https://docs.stripe.com/billing/subscriptions/subscription-schedules/use-cases#upgrading-subscriptions

What are you working on?
Customer stripe integration wanting to provision free trial period to existing subscriptions

#

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

Question
I am looking to create a pricing structure that is recurring, billed monthly:
- usage based
- per tier
- volume

I believe the best meter for this is a SUM.

We are going to charge "per resource hour" with a free tier (0-100 resources are free).

This led me to use a billing period of "daily", since any usage less than 2400, is less than 100 resources per hour for a whole day. However, I don't want daily invoices, and it doesn't look like I can change that.

I am worried about "monthly" billing period, since there are months with 28 and 31 days, giving me < 67,200 hours as "free" OR 74,400 hours as "free", which doesn't work.

What is the best practice to achieve my goal?

Doc/Guide Links
I am using the stripe dashboard test mode and meter API to test what invoices look like.

What are you working on?
SaaS billing

#

@shut plume 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/radar/rules

Question
Hello,

We want to enable the radar rule `Request 3D Secure if 3D Secure is supported for card` but for **some** cards we want to turn off the 3DS authentication check. Is it realistic to achieve via Stripe API?

Thank you.

What have you already attempted?
Change radar rules

What are you working on?
Dashboard

#

@short oak 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/finalize-payments-on-the-server

Question
I would like to save payment details on the payment element using the customer session client secret. On this document, it shares that the legacy implementation of createPaymentMethod should be migrated to the createConfirmationToken call. My question is that in order to save payment details on the payment element, is it required that I migrate to this createConfirmationToken call? or is there a way to do it with the createPaymentMethods call?

What have you already attempted?
I have attempted to pass in the payment element that is instantiated with the customer session client secret to the createPaymentMethod call. However, I get an integration error from Stripe that notes I should migrate to the createConfirmationToken instead. Please note that I am using the deferred intent setup for the payment element instantiation, where I am collecting payment details before creating the payment intent.

What are you working on?
Implementing the Payment Element to replace my current checkout form

#

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

What did you expect to happen?
Be able to sign up for stripe

What actually happened?
Wag already made a stripe account for me in 2019

Reproduction Steps
No real reproduction steps, you guys just lack real support

Question
Wag made an account for me in 2019 it seems using my secure primary email and now I have absolutely no access to use stripe with the only viable email I have enough authentication with and backup access to enough to manage money. honestly shocked you let companies do this with users emails

What are you working on?
Setting up a stripe for non-profit charity

#

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

Question
How do i know about my future payment price I have promo code i want to see what we will be price after applying. i want updated price.

Related Request ID(s)
https://dashboard.stripe.com/test/subscriptions/sub_1PvPJlGXQ7blAdt6U6pDSLw4#wb-N4Igdghgbglg5hALjA9mEAuUEDGyoCmAKhAEaYgxgDOADgXigE4gA0IiZAEjNYswE9MAbRApCTWAQDuIALrsmKAK6ICPPoJGhIAWwIUAwgFUAykQDyAWQCiA

What have you already attempted?
I tried to calculate from my side but it's wrong

What are you working on?
I am working on apply promo code funcanality

cursive heronBOT
#

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

Question
how can I retrive the "payment id" using the "payment intent" object?

Related Request ID(s)
req_NhrpPmQOxI0oVI

What have you already attempted?
$charge_id = $payment_intent->charges->data[0]->id;

What are you working on?
Using PHP, need to get the charge Id so I can apply refunds using the API. I have the payment intent id stored, so I need to use that to get the charge id. the documentation does not say how to do it

cursive heronBOT
#

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

Question
In test mode, i created a sepa_debit payment method using setup_intent with stripe-js, using element to pass the sepa data. When retrieving this payment_method, i tried expanding the following : sepa_debit.generated_from.setup_attempt, but the returned object has nothing expanded. Am i doing something wrong ?

Related Request ID(s)
req_nYn2HTk1m2zoru

What have you already attempted?
i tried expanding everything the charge info, but still nothing

What are you working on?
I'm trying to migrate from source api to payment_method api

#

@craggy mirage 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/customizable-failed-payment-emails

Question
I there a way to send customized per-product Email Templates for Failed Payments that are specific to a given Product? Or is it a generic email for all products

What have you already attempted?
Looked at the UI here https://dashboard.stripe.com/revenue-recovery/emails and didn't see a way to send a custom email on a per-product basis

What are you working on?
Revenue recovery email copy

#

@chilly anchor 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 no-code Customer Portal as per the documentation https://docs.stripe.com/customer-management/activate-no-code-customer-portal
And I would like my customer to receive a one-time-passcode to log in to the portal.

What actually happened?
My customer is receiving a link in their email that they click to log into the portal, but I would like this screen to be embedded on my website, so my customers should receive a one-time-passcode

Reproduction Steps
I configured the customer portal in the settings session and I am making the portal link available to my customers.

Question
How can I change the way the email is sent so that it does not send the full link, but rather the one-time passcode?

cursive heronBOT
#

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

What did you expect to happen?
I have a website that has stripe integration built and working as expected. However, I am trying to have my website as an iframe in another external website but the stripe integration doesn't work. I expect to be redirected to stripe checkout page.

What actually happened?
Instead of showing a full checkout stripe page, i get a blank stripe page. It has "Powered by Stripe" but doesnt show anythign else.

Reproduction Steps
Having the stripe checkout redirect page inside of an <iframe> tag

Question
Is what I am trying to do possible? Are there any workarounds to have the redirect page show up?

#

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

Question
I am retriving future invoice after applying promo code but it's showing extra value

Related Request ID(s)
https://dashboard.stripe.com/test/workbench/logs#wb-N4Igdghgbglg5hALjA9mEAuUEDGyoCmAKhAEaYgA2KcAziADQiJkASMtiKATgJ6YBtECkLdYBAO4gAuk24oArogLtOPfhgGhIAWwIUA6gHkASgGkAQgFEAcgGFWAfQAyRgOIBlRiAAOEbhA69FjM

What have you already attempted?
I trie use this api https://docs.stripe.com/api/invoices/upcoming#upcoming_invoice-subscription_items-id

What are you working on?
So if i have plan 29.99$ and i am upgrading to 59.99$ and i am applying 10% off code it should give 23.99$ but giving 93$

#

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

Question
When using the onConfirm method for <ExpressCheckoutElement /> is there anyway to add an "I am human" check before submitting? Or how is fraud risk handled with this payment method?
Our current flow uses the payment element and the user has to complete a reCAPTCHA in order to submit the payment. Trying to determine how to manage that with the new ExpressCheckoutElement.

Related Request ID(s)
Test_mode

What have you already attempted?
Doesn't seem to be able to hijack the express checkout flow to return to the original form before submitting

What are you working on?
Adding ExpressCheckoutElement to existing payment flow using PaymentElement

cursive heronBOT
#

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

Code
var paymentElement = elements.create('payment', {
fields: {
billingDetails: {
address: {
country: 'never',
postalCode: 'never'
}
}
},
wallets: 'never'
});

Question
is this code appropriate to exclude google pay from the payment element being displayed ?

What have you already attempted?
I tried to update element by adding the setting wallets value to never, but didn't work

cursive heronBOT
#

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

Question
When creating a custom checkout experience for our Stripe Connect connected accounts, we want to use our company's price-id for "Pay what you want" price. It gives an error Failed to create checkout session: No such price:

Related Request ID(s)
cs_live_a1oZbrX2A2mUOFdeFRRczhu7ZUmsGxV1ABXPBdn36l7SvOxYEkA66JHIj7

What have you already attempted?
Read this: https://docs.stripe.com/products-prices/how-products-and-prices-work

What are you working on?
Tipping service in our app

cursive heronBOT
#

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

Question
my use case is a platform where sellers can list products and buyers can purchase those products. I'm confused on whether i should use Standard or Express stripe connect accounts. furthermore, how can i get the account dashboard link for a standard account. i can see in the docs that Login Link is just for Express accounts. finally, i need a way for sellers to manage their products, quantity price etc. is there a managed solution for them to do this in the stripe dashboard or must i do this myself through API calls from my server? if so, do i just hit the same product endpoints and specify the connected account id?

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

What are you working on?
a platform for shops to list products for people to buy

cursive heronBOT
#

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

Question
Stripe issuing isnt in Australia so we are using stripe connect then another issuer. Does anyone have experience with this capability? We've got stripe connect up to accept and process the card topups, just need to sort out how to connect issuing (from other party) to Stripe.

Doc/Guide Links
https://stripe.com/nz/issuing

What are you working on?
Stripe powered wallet

cursive heronBOT
#

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

Question
Does Stripe support the computation of the billing anchor date's timezone during transition to daylight savings time? Meaning Stripe will be the one to compute for timezone changes in relation to invoice generation based on the billing anchor date

Related Request ID(s)
11111

What have you already attempted?
We're not able to test this because we can't simulate DST changes

cursive heronBOT
#

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

Question
Is there a way to send email when a webhook fails permanently. I know Stripe will let us know when webhook consistently fails. But I want to know every permanent failure. Permanent means all the retries have exhausted and webhook failed

Related Request ID(s)
Nothing

What have you already attempted?
I tried in the notification, but no such setting available

What are you working on?
We are integrating Stripe payment platform to our domains.

#

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

Question
How is the process of setting adding a bank account as a primary payment method ?

Related Request ID(s)
Add bank details > Verify it with microdeposits > etc

What have you already attempted?
I already know how to add a bank account for a user using stripe forms, choosing between amnual verification with microdeposits or the automatic one.

Now i want to know how to add bank account using my own forms, but i dont know how the verification process works if i want to do everything manually.

What are you working on?
Platform where users only can pay using bank accounts, ach for american and europe too.

cursive heronBOT
#

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

What did you expect to happen?
I have the flow checkout using web payment element with Link as bellow

  1. create payment intent and init the Payment Element
  2. update payment intent to update any user state like change the quantity, ...etc
  3. stripe confirm
  4. Go to success page
    --

What actually happened?
That flow works almost cases but there some cases are not work not expected by not go to step 2 and go to step 3. Im not sure there are some card issuer requriment make payment & confirm outside and redirect to #4 step.

Reproduction Steps
That flow works almost cases but there some cases are not work not expected by not go to step 2 and go to step 3. Im not sure there are some card issuer requriment make payment & confirm outside and redirect to #4 step.

Question
That flow works almost cases but there some cases are not work not expected by not go to step 2 and go to step 3. Im not sure there are some card issuer requriment make payment & confirm outside and redirect to #4 step.

cursive heronBOT
#

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

Question
stripe.CountrySpec.retrieve("ZA") is not supported or why the stripe.CountrySpec.list() does not return South Africa country spec?

Related Request ID(s)
api coutry spec

What have you already attempted?
country spec info from stripe is already working, just ZA is a doubt

What are you working on?
I want to provide costomer the list of accepted currency for their country connected account on our platform, we have South Africa as an option, on test mode, I am not too aware and I could not find w

cursive heronBOT
#

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

Question
I would like to remove stripe checkout

Related Request ID(s)
req_dPWLpdxsfAI0fu

What have you already attempted?
I deleted the keys and nothing else because I don't know anything about it and I'm not the one who installed it.

What are you working on?
I would like to put Shopify payment instead

cursive heronBOT
#

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

Question
Is it possible to hide the card brand icon in the checkout form?

Related Request ID(s)
NA

What have you already attempted?
I checked online, found forums discussing this. I would like to confirm the response I found (older than 2 years ago)

#

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

Code
package we are using: "@stripe/react-stripe-js": "^2.8.0"

<PaymentElement/> is located in our code and has been working well.

before we call ' await stripe?.confirmPayment(stripeObject);' we do a check if we have the cardElement:
const cardElement = elements.getElement(PaymentElement);
if (!cardElement) {
....} and there we throw the error.

Question
Hi, we've been using the @stripe/react-stripe-js package for our checkout process without issues for quite some time. Recently, at least 16 users have encountered the error 'Could not get payment element.' This problem hasn't occurred before, and we're unable to reproduce it on our end. Could this be related to a recent update of the @stripe/react-stripe-js package, or does anyone have insights into what might be causing this issue for some users?

What have you already attempted?
We have tried to reproduce this without any luck. We have not released anything in our checkout for quite some time so we would love to get some help how to go about this error

#

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

Question
Hi, i am trying to process an order. The order includes 2 items sold by 2 different sellers. Both the sellers have a Stripe Connect account. How can i split the sale between the two sellers. The docs have an example of just paying out one individual.

Extract from https://docs.stripe.com/connect/destination-charges?platform=web&ui=stripe-hosted

const session = await stripe.checkout.sessions.create({
...
payment_intent_data: {
application_fee_amount: 123,
transfer_data: {
destination: '{{CONNECTED_ACCOUNT_ID}}',
},
},
...

Related Request ID(s)
123

What have you already attempted?
Add another object with the second connect accound id

What are you working on?
I am building a marketplace where multiple sellers can sell clothes. Like de-pop. One order may include multiple sellers i will need to payout

cursive heronBOT
#

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

What did you expect to happen?
I am using customer portal feature to allow users self-manage their subscriptions. I expect it'll allow to cancel the subscription.

What actually happened?
It actually is not showing the "Cancel plan" button when the user is subscribed to a plan with quantity set to more than 1.

Reproduction Steps
Subscribe user to a plan.
Increase quantity by 1 (for example, set to 2).
Create a customer portal session and try to cancel the plan.

Question
Could I be able to cancel subscriptions through the customer portal when the user is subscribed to a plan with the quantity set up to more than 1? I have the customer portal feature configured correctly, and it's supposed to allow cancel subscriptions. In fact, it allows when quantity is 1.

What are you working on?
SaaS application

#

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

Question
Is it possible to customize a Radar blocking rule error message?
I have created an blocking rule to only accept AMEX card and block all other cards but the error message when user purchase using a VISA card for instance is a generic error message, saying that the card was declined.
Is it possible to create a custom error message for thhat particular rule?

Related Request ID(s)
NA

What have you already attempted?
Check documentation

#

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

Question
cancel_at_period_end : true not cancelling Subscription at billing period end

Related Request ID(s)
req_8yzVCJNy63PwpG

What have you already attempted?
My subscription is for 1 day for testing. I have waited 1 day after updating but there is no webhook getting called at period end or subscription got cancelled.

What are you working on?
I want to allow user susbscription to be end at their billing period if they cancel the subscription

cursive heronBOT
#

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

Question
hi, I was wondering if there is a fee for creating a charge on Stripe connected account using a debit card. I know there are PL fees, which is $.25 +0.25% and according to a representative I spoke to on the phone there’s no fee or ACH transfers but they do take a while to switch to Car replenishments or charges..

Related Request ID(s)
none

What have you already attempted?
transferring money from the payers bank account to their connected account, then transferring into the platform then to the final connected account and then pay out

What are you working on?
I am working on the transportation management system, and one to allow trucking companies to pay their drivers creating a charge on their connected account using ACH will take a few business days

#

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

Code
const newSubscription = await stripe.subscriptions.create({
customer: stripeCustomerId,
backdate_start_date: Math.round(currentPeriod.startDate.getTime() / 1000),
trial_end: setTrialEnd(currentPeriod.endDate),
items: [
{
price: process.env.NEXT_PUBLIC_BASIC_SUBSCRIPTION_PRICE_ID,
},
],
trial_settings: {

Question
I would like to create a default subscription with trial in the background, when the user creates an account. Like that the user already have a stripe subscription id that I can later use to deep link into the customer portal

What have you already attempted?
I tried executing the code and got the error that there is no attached payment source. Of course there isn't any, because it's a trial :)

What are you working on?
CMS

#

@chrome summit 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/legal/climate

Question
We need to upgrade our existing Stripe SDK to latest Stable Stripe SDK. Could please guide us.
The latest version does not have Stripe.Order model instead of that Stripe.Climate.Order and we need pay some percentage of contribution to Stripe . Is this stripe.Climate optional? can we keep Stripe.Order model as it is with latest Stripe SDK?

What have you already attempted?
We need to upgrade our existing Stripe SDK to latest Stable Stripe SDK. Could please guide us.
The latest version does not have Stripe.Order model instead of that Stripe.Climate.Order and we need pay some percentage of contribution to Stripe . Is this stripe.Climate optional? can we keep Stripe.Order model as it is with latest Stripe SDK?

#

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

What did you expect to happen?
Hello I want to talk about this error in this thread: https://discordapp.com/channels/841573134531821608/1268560472236621877
It is related to stripe react native and it is not fixed.

What actually happened?
When selecting a preferred network it doesn't work as mentioned in the thread

Reproduction Steps
Same as in the previous thread

Question
As mentioned here https://docs.stripe.com/co-badged-cards-compliance?type=checkout-payment-links#when-reglation-applies we must be compliant with EU regulations and because of this bug we can not. When do you plan to fix it as it is now a legal risk for our company?

What are you working on?
A telecom application

cursive heronBOT
#

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

What did you expect to happen?
I expect the Payment method to get updated with `allow_redisplay = true`

What actually happened?
I get the error `The allow_redisplay field is unsupported for card, bank account, and source based payment methods.`

Reproduction Steps
Run this with Node.js:
Stripe(${KEY}).paymentMethods.update(card_184vi22CvtsCFBPOVSeqMZLZ, { allow_redisplay: 'always' })

Question
Why am I getting the above error? For some card (i.e. pm_1IIZ0s2CvtsCFBPOEeyEULv0) it works fine, for some other cards like the above it throws that error

What are you working on?
@qwertee.com, replacing custom saved payment method system with with the Payment Element’s Saved Payment Method feature

cursive heronBOT
#

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

Question
Hi everyone!

I'm testing out the stripe platform and connected accounts, and i'm observing webhooks about account updates.

Something that is not clear to me in test mode is how to know when the user finished the onboarding process and awaits verification. In test mode the ,,verification,, happens instantly with changing payouts_enabled=true and charges_enabled=true. But is that step present in the test mode and how to know that verification is ,,pending,,

Thanks in advance!

Related Request ID(s)
/

What have you already attempted?
Observed webhooks but it does not seem there is a step between onboarding complete and verification that would exist in real mode.

cursive heronBOT
cursive heronBOT
#

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

Question
When passing payment_method_data:{ billing_details:{xyz}} in stripe.confirmPayment() with a <PaymentElement/>

The customer shipping details aren't present on the stripe dashboard?

However when using the basic <Card/> element it would work?

Related Request ID(s)
ch_3Pvd49BCmvfPHMB30goZ8cjr

What have you already attempted?
using payment_method instead

What are you working on?
e-commerce store with medusa and remix

#

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

Question
When invoice is created, in its pdf view, it shows the stripe account details as source details and customer details in Bills to. So is it possible to show connect account details in from address and main account details in Bills to address?

Related Request ID(s)
123

What have you already attempted?
I have used Create an invoice API

What are you working on?
Creating Invoice

cursive heronBOT
#

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

Question
Is that possible to retrieve webhook_conversations by payment intent id with Stripe SDK? To see how many webhook requests failed.

Related Request ID(s)
-

What have you already attempted?
-

What are you working on?
I'm currently investigating why payment_intent.succeeded webhook were received only 4 hours after the actual payment, while in Stripe it had "succeeded" status.

cursive heronBOT
#

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

Code
public Token createAccountToken(String name, String accountNumber, String routingNumber) {

	Stripe.apiKey = StripeKey;

	try {
		TokenCreateParams.BankAccount bankAccount = TokenCreateParams.BankAccount.builder\(\).setCountry\("US"\)
				.setCurrency\("usd"\).setAccountHolderName\("John Die"\)
				.setAccountHolderType\(TokenCreateParams.BankAccount.AccountHolderType.INDIVIDUAL\)
				.setRoutingNumber\("110000000"\).setAccountNumber\("000123456789"\).build\(\);

		TokenCreateParams p

Question
how can i verify the bank account through stripe in spring boot

What have you already attempted?
I have attempted by creating token and attaching it with customer then check

cursive heronBOT
#

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

Question
When subscription is updated, I selected prorated charge to be created . So it create an invoice.

  1. How can I get that invoice which is just created on updating subcription

2.how to make invoice status to paid as currently it is creating in draft status

Related Request ID(s)
123

What have you already attempted?
I have used update scheduled subscription API

What are you working on?
Updating subscription

#

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

Question
Hello, I am using "setup_intent.succeeded" event in webhook to create subscription.
I would like to know how do i set up cards that require 3d secure for off-session use.

Here is the ouline of my flow:

  1. create customer
  2. create setupIntent
  3. confirm setupIntent on client side
    4.and then finally create subscription via webhook with setup_intent.succeeded event.

I am worried about the 3d secure.

Related Event ID(s)
setup_intent.succeeded

What have you already attempted?
I have tried 'usage' => 'off_session' when creating setupIntent
And also used 'off_session' => true when creating subscription via webhook.

What are you working on?
I am building a custom subscription flow with trial period

#

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

Question
When requesting for Webhook creation, I am getting the below error

"message": "You are not permitted to configure webhook endpoints on a connected account. Did you mean to create a Connect webhook on your account instead?",

Related Request ID(s)
NA

What have you already attempted?
I tried to create a new Connected account and tried, but not able to reproduce.

cursive heronBOT
#

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

Question
I have a connected account link to my platform account with destination charge.
However when I create a new checkout session, instead of seeing details my platform account (platform name, logo), I see the connected account info.

Related Request ID(s)
pi_3Pvf67JBXXfSFHxq1dm40dk1

What have you already attempted?
Tried to search on forum online

#

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

Question
Hello, I am migrating away from deprecated createToken/source api and need help to understand what's the best practice / new standard flow (for custom funnel)

Doc/Guide Links
https://docs.stripe.com/billing/subscriptions/build-subscriptions?ui=elements

https://support.stripe.com/questions/reusable-object-migration-from-sources-to-payment-intents

https://stackoverflow.com/questions/73219803/stripe-subscription-with-setupintent-the-3ds-is-asked-twice

What are you working on?
Migrating away from deprecated createToken/source api

cursive heronBOT
#

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

Question
I want to relate the bank deposits made by Stripe (payouts) to the transactions that contributed to their total (purchases, fees, refunds, etc.), in order to synchronize them with my own system.

Related Event ID(s)
payout.reconciliation_completed

What have you already attempted?
"I'm currently successfully listening to the payout.reconciliation_completed event via a webhook on my own backend (nestJS) . I've been reading Stripe's documentation about "charges" that link a "payment_intent" with a "checkout" and a "balance_transaction", but I can't figure out how to relate them to a payout.

What are you working on?
I'm trying to reflect Stripe's payouts with the sales made in my own system. I need to clearly see which sales contributed to the total amount Stripe deposits, and what fees were charged for them, etc

#

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

Question
Hey, I am creating multiple subscription due to a migration progress. In testmode it works fine, but I am quite unsure, if there will be email sent to the new subscription owners, when they are created now.

Related Request ID(s)
req_nqSnejuVPUhP4V (how I create the subscriptions)

What have you already attempted?
I created the subscription in test mode and checked my inbox. No emails yet. Is it them same for production?

What are you working on?
CMS Migration

cursive heronBOT
#

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

What did you expect to happen?
Updating a subscription with a 0 amount price would not reset the billing cycle anchor

What actually happened?
It reset the billing cycle anchor

Reproduction Steps
Have an existing active subscription with a item of a postive amount.

Create a subscription schedule from the subscription and update the schedule to a new product with a 0 amount cost

Question
I've learned recently that explicit provisioning trials will always reset the billing cycle anchor - would this mean implicitly that 0 unit amounts are also considered "trialing" under-the-hood?

cursive heronBOT
#

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

Question
We are testing the POST external_accounts endpoint (in test mode if that makes a difference) and are consistently getting back an "already has the maximum 200 external accounts attached" meesage.

Related Request ID(s)
0

What have you already attempted?
When we call the GET endpoint only ONE external account is returned

#

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

Question
Can you please how to enable on the Payment Intent the AVS Check? If it's already enabled, how can we pass the address on the Payment Intent API?

Related Request ID(s)
No ID

What have you already attempted?
Can you please how to enable on the Payment Intent the AVS Check? If it's already enabled, how can we pass the address on the Payment Intent API?

#

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

Code
N/A N/A N/A v N/A N/A

Question
How can I route funds to external linked bank accounts i've added to my stripe dashboard

What have you already attempted?
I've been struggling to find a solution using the transfer methods since these are not individual connect accounts

What are you working on?
Im looking to programmatically route payments to external stripe bank accounts

#

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

Question
We are trying to test the payouts api, but funds are not moving to "available for payout" to test these apis

Related Request ID(s)
n/a

What have you already attempted?
Waiting 24 hrs for funds to be available to payout

cursive heronBOT
#

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

Question
For server-driven terminal flow, there are often times when an order may have a total of 0 but we still need the payment terminal to display the total. An example would be where a store added item A for let's say $5, the customer then sees the total as $5. The store then discounts that item at 100%. the customer thinks the discount wasn't applied because we couldn't push an update for total < 1.

Related Request ID(s)
req_WjqpW7nK7m2baC

What have you already attempted?
Pushing 0 as total

#

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

Question
Hi, is there any way to set a Minimum Quantity rule in the for the customer portal though the API? I have a multi-tenant SaaS and I do not want the user to set a quantity less than the number of user attached to their tenant.

Related Request ID(s)
n/a

What have you already attempted?
I've looked through the docs, searched for past support threads, etc. Attempted to set the rule on Portal Configure Session method and also within Portal Session Url methods

What are you working on?
I have a multi-tenant SaaS and I do not want the user to set a quantity less than the number of user attached to their tenant.

#

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

Question
how to add the obligation to add your identity card to the form for creating a connect account in express mode?

Related Request ID(s)
no

What have you already attempted?
I have all my connect account created using the stripe js lib. but how can i add the identity verification on it ?

#

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

Question
Testing Tap to pay on iOS. Your documentation says to use real cards and that Stripe will produce a test token. This does not seem to happen.

Related Request ID(s)
See screenshot attached below.

What have you already attempted?
Tap-to-pay using a real card.

What are you working on?
Tap-to-pay on iOS.

cursive heronBOT
#

@azure crown 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/google-pay

Question
i am using PlatformPayButton and confirmPlatformPayPayment in @stripe/stripe-react native library. I want to turn it off after 15 minutes but this function doesn't have a timeout option

What have you already attempted?
I tried everything but I can't turn off Google Pay mode after the desired time

What are you working on?
I want Google Pay modal to automatically turn off after 15 minutes

#

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

Question
How can i send the customer's VAT ID INSIDE a payment.intent succeeded?

Related Event ID(s)
payment.intent succeeded

What have you already attempted?
We collect the VAT ID of a customer from the Stripe checkout so we can have a proper invoice of the service. However, when we send the invoice to our invoicing platform, it does not seem to send the VAT ID of this customer alongside the rest of the information (email, business name, etc.).

cursive heronBOT
#

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

Question
I am trying to revert to an express account debit but it says I am not able to because the main account doesn't have funds which is not true

Related Request ID(s)
req_Lv1MLWaHaYeGeE

What have you already attempted?
To check the balance

#

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

Question
Afterpay tap and Stripe: does Stripe support the "tap to pay" feature of Afterpay? We had a meeting with Afterpay and they said that other than the implementation from Stripe via Checkout or Elements they also have a tap-to-pay, much like ApplePay which yields a Mastercard. Do we need to do anything to make this work with Stripe terminal or iOS tap-to-pay?

Related Request ID(s)
N/A

What have you already attempted?
Exploring Afterpay

What are you working on?
Australian merchant

#

@untold spade pressed the 📚 Doc or Guide button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Link to the Doc/Guide in question
https://docs.stripe.com/api/invoices/create_preview?lang=php

Question
We are successfully charging invoice payments for connected accounts, and are following the sperate charges and transfers flow. Payments to invoices are correctly coming into our platform on stripe. How can we know what connected account ID the invoice was generated by on payment time? We are passing on_behalf_of in the invoice create.

What have you already attempted?
The invoices are correctly being sent and paid, we would like to know how to get the stripe connected account ID from the paid invoice

What are you working on?
a payment platform for lawyers like https://lawpay.com

#

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

Question
When upgrading your default API version, is it possible to do it only in your Test environment?

Related Request ID(s)
N/A

What have you already attempted?
I haven't tried doing so yet because I'm trying to test an API Upgrade and I'm hesitant to actually perform the Upgrade without knowing if it will only upgrade my Test environment.

What are you working on?
Upgrading to Stripe .NET SDK v45

#

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

What did you expect to happen?
Allowed to Create a product with a negative price

What actually happened?
you are not allowed to create a product with negative price

Reproduction Steps
send negative price to price creation

Question
If a customer uses X quantity of 1 of our products (Product A), for every 5 quantity of those products we give them a 1 quantity credit to use on another specific product (Product B) of ours. Fundamentally they are getting a dynamic amount discount which should be offsetting their usage of Product B, ideally this is another product (a credit product) we can attach to

cursive heronBOT
#

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

Question
Has anyone used Stripe Connect / Financial Connections to facilitate bill pay from Party A to Party B? where A is our customer, B is some arbitrary “vendor” that A is paying.

This is assuming that we receive a “bill” from B, our product syncs all the details in our db and we “draft” a bill. User from A confirms everything looks good, then submits which executes the ACH/Wire to B from their bank (via some Stripe API).

Doc/Guide Links
Every doc I've looked at has been a way for our customer (A) gets paid by other vendor (B) via a payment link or checkout or similar

What are you working on?
We are building an ERP system for physical companies. As part of this, they receive invoices that must be paid out to vendors.

cursive heronBOT
#

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

Question
I'm wanting to try the new stripe custom checkout flow with the react `useCustomCheckout` hook as documented here: https://docs.stripe.com/checkout/custom-checkout. I have a couple of questions.

  1. How does using this approach compare to using stripe Elements alone? What would I have to build if I weren't using the checkout flow?
  2. Can the PaymentElement be customized when using this the same way that it normally can? It appears CustomCheckoutProvider doesn't have the same appearance props as Elements.
  3. How can I get access? I submitted my email, but am still waiting. Anything you can do?

Related Request ID(s)
N/A

What have you already attempted?
N/A

What are you working on?
A web-based SaaS app for image generation

cursive heronBOT
#

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

Question
I have a customer on an annual subscription who had some issues with their service. Instead of issuing a partial refund, to compensate I would like to add additional "free time" onto the end of their subscription (basically adding on 2 months free before it renews). What is the best way to achieve this?

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

What are you working on?
I maintain a B2B networking community

cursive heronBOT
#

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

Question
We're having trouble with gaps between the end and start of periods in monthly subscriptions.

We've been using `current_period_end` to determine the end time of the current period, and when the payment has not been made before 11:59pm on the period end date, we're expiring the membership. However, we've found that when `current_period_end` is in the 11pm hour, the next payment is not charged until after midnight. What is a better way to know the actual time when the payment will be made? Is it expected that subscription payments will not be made before `current_period_end`? I'd assume there shouldn't be gaps between the end of the current period and the next payment?

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

What are you working on?
A monthly membership program (to connected standalone accounts).

#

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

Question
having problems using stripe with a firebase web app when i use it with the firebase webapp the app wont launch the research i did i found some post saying it isn't compatible with each other so i just need help implementing stripe into a firebase web app

Related Request ID(s)
n/a

What have you already attempted?
rewritten all the code and web app still hasn't launched

What are you working on?
a web app as a subscription service

cursive heronBOT
#

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

Question
How do I check that a subscription has recurred at least once?

Related Request ID(s)
none

What have you already attempted?
Looking through the docs, it seems like I can compare current_period_start !== start_date, is that correct?

#

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

Question
When trying to use Connect with a customer account my customer keeps running into this error: platform_api_key_expired. One customer is running into this issue - no other customer is.

Related Request ID(s)
There is no ID - since the connect doesn't actually work

What have you already attempted?
I asked my customer to reconnect their account

#

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

Question
Hello! We want to use the Stripe API to check if a customer has had a blocked payment. Im looking at rhe PaymentIntent Object, but i do not see a "failed" or "Blocked" status. Is there anyway to pull this?

Related Request ID(s)
N/A

What have you already attempted?
We have attempted using the PaymentIntent Object parameter "Status", but it does not contain the information we need.

What are you working on?
We want to enhance our security, and add a check for customers who have had a blocked payment in the past.

cursive heronBOT
#

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

Code
Will post code below (too long)

Question
Why is this not working? I'm getting the error: "You cannot modify the start date of the current phase", which makes sense but I'm not? I'm using the subscription's current_period_start

What have you already attempted?
The code and a bunch of testing

What are you working on?
Want this code the update the price id of the subscription to a new one once the subscription renews

cursive heronBOT
#

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

Question
I'm wondering if there's a different gate that exposes the "geocoding" payload on the expanded charge object?

Attached a sample snippet of the expanded charge response from the Stripe dashboard, which is what we'd be looking for:

{
"data": [
{
"id": "ch_xxxxxx",
"object": "charge",
"amount": 1999,
....
"geocoding": {
"billing_zip": {
"lat": 43.0000,
"lon": -89.00000,
"value": "53705"
},
"ip": {
....

Related Request ID(s)
Feature Gate for Geocoding Info

What have you already attempted?
We've attempted contacting Stripe support to no avail.

cursive heronBOT
#

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

Question
I recently ran a delete on a Stripe Connect account
DELETE
/v1/accounts/:id

acct_1Psu2qCICd4ZHJU6

Is there a way to reconnect the stripe account acct_1Psu2qCICd4ZHJU6?

Related Request ID(s)
.

What have you already attempted?
reviewed docs

#

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

Question
Is there a correct/easy way of upgrading a user from a free subscription to a paid one?

Related Request ID(s)
N/A

What have you already attempted?
I have previously implemented it by cancelling the existing subscription and creating a new checkout session but I don't like the flow,

What are you working on?
SaaS app

#

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

Question
I'm creating sepa_debit payment_method using setup_intent. when doing this i indeed have a mandate that is created for this payment method.
I want to access this mandate but can only do it once a payment_intent has been done.
Before that, its impossible using only the payment_method id to access this mandate.
On a payment_intent object, i can access the mandate id by expanding the latest_charge object and getting it from the payment_method_details object.
Without a payment_intent, i have no way to find the mandate using only the payment_method id.
Am i reading the doc wrong ?

Related Request ID(s)
req_CbwW9GeU8YUChz

What have you already attempted?
I have attempted to expand sepa_debit.generated_from.setup_attempt.
The only other way seems to require me to save the setup_intent id used to create the payment_method, and using this setup_intent, access the mandate.

What are you working on?
I am migrating from Sources Api to Payment_method Api. I need to display the iban mandate for every iban saved, wether it has been used in a payment or not

#

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

What did you expect to happen?
In our prototype when we click the Saved payments tab, and an ACH payment method is listed, we would expect the terms copy/link to be hidden.

What actually happened?
We are not able to hide the Terms for ACH Payment types under the Saved payments tab

Reproduction Steps
Click Saved payments and have a saved ACH payment method. Terms copy and link persists. I have a screenshot if that's clearer.

Question
How can we make sure the terms copy/link is hidden when we are on the Saved payments tab and have an ACH payment method listed? Is there something we need to configure on our end?

What are you working on?
We're updating our web app to support ACH payments and adding them as saved payments.

cursive heronBOT
#

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

Question
Hello,
I need help with this situation:
* customer pays for the subscription
* next billing cycle they have no funds, and the subscription status is changed to `past_due`
* after 2 weeks of retries (due to smart retries) the subscription status is changed to canceled
* I have selected the option for the invoice to also change its status to `uncollectible`

Now this is the issue:
* the customer can open the billing portal (after the scenario above) and still click pay invoice (as far as I have tested) which will pay the invoice, but will not change the subscription state (since it was canceled)

What is the best practice here? In order to prevent this scenario
Thanks.

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

What are you working on?
Subscriptions on SaaS product

cursive heronBOT
#

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

Question
For a custom checkout plugin for wordpress, everything has been working great for years, now am agetting error setup_intent_unexpected_state , did something change on Stripe side?

Related Request ID(s)
req_BmOTpcSWfQBdBI

What have you already attempted?
It was working fine until today.

What are you working on?
Custom checkout plugin for wordpress

#

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

Question
After an account’s mandatory information is submitted via the API for custom connected account onboarding in a test environment currently on submission of all mandatory information it seems to make all the requested accounts capabilities active and shows nothing in the requirements property of the accounts API get call. So in production environment does it behave the same or differently ? What sort of requirements are requested later apart from the mandatory information already submitted ? In case of verification or validation errors what's the best way to find any issues if we don't use web h

Related Request ID(s)
General question on API

What have you already attempted?
Currently on submission of all mandatory information it makes account and capabilities active and nothing in requirements property for account api in get call as per below - "requirements"": {
""alternatives"": [],
""current_deadline"": null,
""currently_due"": [],
""disabled_reason"": null,
""errors"": [],
""eventually_due"": [],
""past_due"": [],
""pending_verification"": []
}
,
"capabilities"": {
""card_payments"": ""active"",
""transfers"": ""active""
}

What are you working on?
We are looking for any validations and error handling we may need to handle later in production and whats the right place to get information on any such issues as we dont use web hooks currently

cursive heronBOT
#

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

Code
const { error, paymentIntent } = await confirmPlatformPayPayment(clientSecret, {
applePay: {
cartItems: [
{
paymentType: 'Immediate',
label: 'Donation',
amount: '14.00',
}
],
currencyCode: 'USD',
merchantCountryCode: 'US', // Specify the country code

  },
}\);

if \(error\) {
  console.log\('Apple Pay confirmation error\:', error\);

Question
I am trying to get apple pay working on my React Native EXPO MANAGED WORKFLOW app. The tutorial/documentation shows solution for Expo bare workflow & needs ejecting from expo. I cant afford to eject. So I am using eas build. But getting "Payment was cancelled" error when the apple pay button is clicked. Need help getting past that error. I did verify multiple times all steps are correct But there is a box to check in xcode and I can't do that in expo managed workflow.

What have you already attempted?
tried changing app.json to set up the entitlements. still same error
"ios": {
"supportsTablet": true,
"bundleIdentifier": "com.theconnection.tmcapp",
"merchantId": "merchant.com.theconnection.tmcapp",
"entitlements": {
"com.apple.developer.in-app-payments": [
"merchant.com.theconnection.tmcapp"
]
}
},

What are you working on?
An expo managed react native app that has option to donate to charity using apple pay integration from stripe

#

@spice whale pressed the 📚 Doc or Guide button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

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

Question
Where can I pre-fill connect users external bank account info? I saw other apps such as Mercury (https://demo.mercury.com/settings/integrations) in their stripe integration say Card payments will first be received in your Stripe account, and the net amount (after Stripe fees) will be automatically disbursed to your Mercury account.

Are they automatically passing through bank account details during connected account creation? or the connected account user enters their bank details post hosted onboarding form?

What have you already attempted?
Reading the docs.

cursive heronBOT
#

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

Question
A couple of questions on API onboarding

  1. What's the difference between https://docs.stripe.com/api/accounts/object#account_object-requirements &
    https://docs.stripe.com/api/accounts/object#account_object-future_requirements in the accounts API get call ?

Is it that Requirements hash is to be checked before the account and capabilities are active and verified & the future requirements is to be checked after the initial onboarding was successful but then had some requirements at a later point?

  1. Is there an API to get list of accounts having some future requirements or requirements?

Related Request ID(s)
General question on Accounts API

What have you already attempted?
Not sure about difference between future requirements and requirements in Account API get call .

What are you working on?
We are looking to identify if we can display requirements and future requirements to user depending on whether onboarding is completed or not

cursive heronBOT
#

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

Question
I am attempting to create a checkout session to add a subscription to a user that already has a subscription. When checking out a user with no subscriptions it works fine. If they have an existing subscription they are asked to log in, and they just see the dashboard with their current subscription and no further options.

Related Request ID(s)
req_z1Kpf35iqRuUnl req_FvKF5JImv0EPP6

What have you already attempted?
Tried different approaches with the subscriptions, the checkout setup seems correct as they all work if it's the first checkout. Future checkouts seem to just go to the portal without an update available

What are you working on?
Attempting to move to Stripe checkout instead of our own UI

cursive heronBOT
#

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

Question
Hello, I am using the checkout session API to get the pay URL. How can I hide the merchant name? I only need a logo.

Related Request ID(s)
req_OMQCeTMelemssn

What have you already attempted?
I have already read the documentation.

cursive heronBOT
#

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

Question
I'm trying to create a checkout session using SessionCreateParams, and I want to set a fee between my platform and a connected account. So I'm creating the Session for the connected account, and I'm trying to set the PaymentIntent destination (which I thought would be the connected account id) but i'm getting this response "The 'payment_intent_data[transfer_data][destination]' param cannot be set to your own account." so what would i set the destination account as instead?

Related Request ID(s)
req_oiY1c283rcZSOt

What have you already attempted?
I tried removing requestOptions out of the Session.create(params, requestOptions); call, and only using the params. But then that would result in the customer not being found under the connected account.

cursive heronBOT
#

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

Code
@PostMapping("/attach-bank")
public ResponseEntity<Object> attachBank() throws StripeException {
PaymentMethod paymentMethod = getServiceRegistery().getPaymentService().createPaymentMethod(null, null, null);
System.out.println("token is" + paymentMethod.getId());
getServiceRegistery().getPaymentService().attachCustomerToBank1("cus_QnDZYEnmzx4wx6",
paymentMethod.getId());
//System.out.println("method is" + method.getId()+" "+method);
com.stripe.model.Customer cu

Question
I have to verify the bank details that its correct or not

What have you already attempted?
i have created PaymentMethod of my bank details and attach that to the customer and then sending small payment and verify

What are you working on?
I was working on ACH to verify bank details

cursive heronBOT
#

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

Question
ios tap to pay: are there any ios apps that would basically emulate the WisePOS terminals? We have a working app that requests payments using Reader ID from a registered Stripe Terminal Reader ... wondering if there are any apps that would give a pairing code like the WISE POS to use existing functionality?

Related Request ID(s)
none

What have you already attempted?
read thru docs, but it looks like you would need to build an end-to-end payment app in ios.

What are you working on?
terminal payment processing using iphones as payment collection, but a simple web application as the terminal interface.

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.

We are currently offline, we will be back at 1pm UTC today. In the meantime you can contact Stripe support for help.

cursive heronBOT
#

✅ Stripe developers are currently available on Discord!

#

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

Question
We will be running classes from the 16/09, at the moment I am collecting emails of the people who want to sign up for the classes, to add them as customers and then to send them invoices on the week of the 16/09 for the subscription. I am worried that people will fail to pay invoices/I won't be able to effectively track how many people will be attending. Is there a way to please set up a way to gather payment information without a charge so that I can charge them automatically on 16/09? Thanks.

Related Request ID(s)
NA

What have you already attempted?
I am quite new to coding, I have briefly read:
https://stripe.com/docs/payments/save-and-reuse
https://docs.stripe.com/recurring-payments#use-paymentintents

What are you working on?
I am having trouble with trying to setup PaymentIntent. My website is built on Squarespace but I would like to link directly to a stripe product for Payment Intent

#

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

Question
i have 1500$ locked in my account and i am getting emails stripe no longer wants to do business with me. i need my money to pay rent , the person has already received the item the item they ordered

Related Request ID(s)
My name is Ayoade Adegboyega

What have you already attempted?
please help

#

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

Question
I wanted to change the billing period, move it by 2 days for everyone. I have NOT used billing schedules, instead i set up trial period from now end to the date i wanted to postpone the billing period. it effectively replaced the current subscription period. However now users cannot downgrade/upgrade. I want to reverse the trial period and continue back with normal billing schedule. If I just end the trial period, it will bill the users immediately no matter what proration i set. How can I cancel the trial period and continue with the billing that was set there before, and its already paid?

Related Request ID(s)
req_aFcrfMxDaiwAzA

What have you already attempted?
I tried to do it in GUI, and see the code, but I always get billed immediately. I am not sure how to cancel the trial withouth immediate billing, and continue in the subscription like it was before.

#

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

Question
I am trying to reverse a connected account charge, but it says my platform account doesn't have funds to perform it, which is not true.

Related Request ID(s)
req_pAXnykzSBs80Wc

What have you already attempted?
I've tried to go through docs to understand the error, but I have had no luck.

cursive heronBOT
#

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

Question
I have task to receive ACH payments from client but requirement are 2. Either we can get bank details from customer and make payment in this way we can ask for bank detail only once from customer. or we can ask stripe to safe bank details for customers for future use. But goal is to ask for bank details only once.

Related Request ID(s)
ACH direct debit

What have you already attempted?
I have tried payment element stripe with payment intent

What are you working on?
there is a platform for buying and selling medicines. want to accept payment from customer and send to merchant stripe account

#

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

Question
I have a separate Stripe account for testing that's always in test mode. When a customer completes a one-time $0.00 payment, an invoice is generated as expected (e.g., req_Ss8kv61MF6RZla).
In my production Stripe account, which is always in live mode, no invoice is created for a one-time $0.00 payment (e.g., req_rywy6lMkFgfHSp).
In my backend code, the checkout session is set to "Payment" mode with "invoiceCreation" enabled, so Stripe should generate a post-purchase invoice in both accounts. However, despite using the same code, the behavior is different between them.

Related Request ID(s)
req_Ss8kv61MF6RZla,req_rywy6lMkFgfHSp

What have you already attempted?
Since the code is the same for both accounts, I haven't tried changing it yet.

What are you working on?
Integrating my app with Stripe to manage subscriptions and one-time payments.

#

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

Question
I've built an Android app for the S700 using apps on devices. We have two accounts; connected and platform. I want to deploy it on the platform account and use direct charges but it doesn't seem to work. If I use the connected account ID in the Stripe Account header the reader does not connect because apparently it needs to be the same account ID that the reader is registered to. If I use the platform ID as the account header then the payment intents fail. Can direct charges be done on the S700 when it's deployed to a platform account?

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

What have you already attempted?
We have published the app to our 'connected' account and logged in using the same connected account. This works perfectly fine, connects okay and processes payments. Next we published the app to our platform account and allocated a location on the platform account in the name of the connected account. When we try to connect to the reader it fails. We then tried changing the Stripe Account header (ID) to that of the platform and it will now find the reader but fails payments due to the error in the request above.

What are you working on?
Android app using Apps on Devices and Connect with direct charges

cursive heronBOT
#

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

Question
I am creating, adding lines and finalizing invoice as you can see below.

startTime = System.currentTimeMillis();
Invoice invoice =
Invoice.create(invoiceCreateParams, requestOptions)
.addLines(addLinesParams, requestOptions)
.finalizeInvoice(finalizeParams, requestOptions);
endTime = System.currentTimeMillis();
log.debug("Time taken to create, add lines, and finalize invoice: {} ms", (endTime - startTime));

the logging says:
Time taken to create, add lines, and finalize invoice: 2195 ms

Related Request ID(s)
req_jLukc0Mpq37gYq, req_T6PwqtCyTADKx3, req_mzD1ahx5B5CCQE

What have you already attempted?
I checked Stripe doc to combine these calls to one call, but it doesn't seem possible

I need it shorter. 2.2 sec is a bit long for an invoice.

#

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

What did you expect to happen?
I expected the payment for an invoice to be triggered right after I finalized it. I've finalized the invoice right after it got created. The invoice was created automatically to cover the upcoming subscription billing period.

What actually happened?
The charge was made an hour after finalizing the invoice.

Reproduction Steps
An example invoice: `in_1Pw09vF9R6Nkg8poF3vrQIL7`

  1. Create a subscription, pay for the first invoice.
  2. Listen to the `invoice.created` event.
  3. When the first recurring invoice gets created, immediately finalize it.
  4. Wait until it gets paid.

Question
Why is there an hour delay between finalizing the invoice and creating a charge for it?

#

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

Question
I have task to receive ACH payments from client but requirement are 2. Either we can get bank details from customer and make payment in this way we can ask for bank detail only once from customer. or we can ask stripe to safe bank details for customers for future use. But goal is to ask for bank details only once.

Related Request ID(s)
ACH direct debit

What have you already attempted?
I have tried payment element stripe with payment intent

What are you working on?
there is a platform for buying and selling medicines. want to accept payment from customer and send to merchant stripe

#

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

Question
hi, if I create a dedicated charge where I specify writing the charge to transfer money to specific connect account, if I cancel that charge, will it cancel the transfer at the same time or I have to create a separate API request for that?

Related Request ID(s)
none

What have you already attempted?
none

What are you working on?
A transportation management system and employee payments

#

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

Question
Hey, I am implementing subscriptions which enable products on my website. To create a session, I use checkout.sessions.create({ ..., customer_email: user.email }), which prefills the email data in the checkout. (from my auth)
My question is: does this email get used in user creation regardless of Payment method used? For example if the customer uses Apple Pay or Google Pay.

I am asking this since when I handle subscription events, the first thing I get is the customer email, and then for example connect the subscription to my user in the database with the email address.

For some reason google pay fails in test mode and I can't verify this case. Any other ways to test this?

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

What are you working on?
Handling subscription events

#

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

What did you expect to happen?
When a tax line item is calculated for a stripe invoice we expect that any rounding happening is correct. For example for a total amount of 339.31 with a tax percentage of 10% we expect to get a taxation line item of 33.93.

What actually happened?
During a tax calculation for an invoice we noticed a rounding issue with the tax calculated by Stripe. For invoice with id=in_1Pw1jEDgQLhhFEp9s10TZqjz we are getting a calculated tax total of 33.94, when the correct amount should be 33.93

Reproduction Steps
We create a prorated upgrade for a subscription with new line items and with changed prices to exisitng ones. Stripe correctly calculates all prorated amounts and correctly sums them up. But when the tax is calculated it is off by one cent.

Question
Is this a bug from your end or the taxation is calculated in some other way that we miss?

What are you working on?
Implementing prorated subscription upgrades for our product through stripe invoices

#

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

Question
How do i tie a product to a connected account? I was planning on using destination charges to create a session for customers to buy our premium users products. However when I do this, the products get created on the platform, not under the connected account. So how will the connected account get paid for their product?

Doc/Guide Links
https://docs.stripe.com/connect/destination-charges?platform=web&ui=stripe-hosted

https://docs.stripe.com/connect/collect-then-transfer-guide?connect-account-creation-pattern=typed

What are you working on?
Creating a platform for premium users to sell their products to customers

cursive heronBOT
#

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

Question
I posted another thread and you've replied but I'm unable to reply? It says the thread is closed and I don't have permission to reply.

I've built an Android app for the S700 using apps on devices. We have two accounts; connected and platform. I want to deploy it on the platform account and use direct charges but it doesn't seem to work. If I use the connected account ID in the Stripe Account header the reader does not connect because apparently it needs to be the same account ID that the reader is registered to. If I use the platform ID as the account header then the payment intents fail.

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

What have you already attempted?
The reason we have published the app on the platform account is because we have 400+ connected accounts on there. The app has been accepted and I've created a deploy group. In the deploy group I am unable to see any locations that are created directly on the connected accounts, I just see a 'Platform account' and beneath that a full list of connected locations under the platform.

#

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

What did you expect to happen?
Ability to start subscription retroactivley timed.

What actually happened?
Metered usage continues to be sent by a customer, but their subscription got auto canceled by stripe after 5 failed payment attempts, there is no no way to create a subscription which starts at the beginning of the month, so the usage is lost from Sept 1 - Sept 6th.

Reproduction Steps
Subscribe customer to a metered product, have it auto cancel via stripe after 5 failed payment attempts, continue to send usage.

Question
How can this usage be accounted for, is there any workaround way to set a past date for a subscription start?

#

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

Question
Is there a way to modify a subscription extending the billing cycle end to X months extra after a payment in advance?

Related Request ID(s)
N/A

What have you already attempted?
Modify the billing_cycle_anchor to future date

What are you working on?
We are increasing the prices and we want to propose a discount, keeping the old price for a year, for users that pay in advance until a certain date.

#

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

What did you expect to happen?
Create a product pricing:
€9.00 EUR per user / month

Like I was able to do few months ago - I've used the same parameters but it ended up with a different result

What actually happened?
Created a product with price "€9.00 EUR / month"

Reproduction Steps
- Go to product catalog
- Add a product
- Set name / description
- Click "more options"
- set "Unit Label" to "utilisateur" (means user in french)
- Click "More pricing options"
- Select "Tiered pricing" + "Volume"
- Remove the second tier
- set "9" per unit, "0" flat fee
- click "Next"
- click "Add product"

Question
How to display the product price as "<Unit Price> per user / month" like the product I created month earlier, instead of "<Unit Price> / month" when I try to create a new product now

What are you working on?
B2B SaaS for french tree trimming companies

#

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

Question
I've built a nextjs stripe flow and am occasionaly seeing customers with 2 trials instead of 1

Related Request ID(s)
sub_1PviJeA231bzpnwRNMJJNrsE, sub_1PviI8A231bzpnwRMv38Yzyo

What have you already attempted?
I've looked through my code and can not explain in our flow how a customer would get 2 subscriptions, since there is only a "Create checkout" step and "confirm transaction" step

What are you working on?
godelnum.com

#

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

Question
How can I get the value of what a customer has spent? I can't see this on the customer object but I see it in the Stripe dashboard and want to know where I can get this

Related Request ID(s)
n/a

What have you already attempted?
nothing

What are you working on?
C# integration

cursive heronBOT
#

@wheat stump 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
Does Stripe Checkout API (Create a Session) allow to pre-fill an email address of the customer but allow user to edit it?

What have you already attempted?
Send `customer_email` in Create a Session request. The result is that the email address is not editable in Checkout form.

#

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

Question
How can I create setup intent using Apple Pay ? Everything works with CARDS, however when I try to pay using Apple Pay, I get this message: PAYMENT_ERROR_DECLINED_BY_STRIPE _API - Card Present and Interact Present setupintents can only be created with physical cards, not mobile wallets

Related Request ID(s)
in_1PvqvgDn6CAQGXZnsmd4XvmV

What have you already attempted?
I have everything working, but Apple Pay. the way a did was always creating a setup intent for payments since our students always need a card on file. After having the card on file, I pay for invoices or subscriptions using default payment method

What are you working on?
POS for a Gym

#

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

Question
I need understand which protocols of visa payment use stripe. for example there is payment protocols 101.1/101.2/101.3/101.4/101.6/101.7/101.8

201.1/201.2/201.3/201.5

Related Request ID(s)
-

What have you already attempted?
I need understand which protocols of visa payment use stripe. for example there is payment protocols 101.1/101.2/101.3/101.4/101.6/101.7/101.8

201.1/201.2/201.3/201.5

What are you working on?
I need understand which protocols of visa payment use stripe. for example there is payment protocols 101.1/101.2/101.3/101.4/101.6/101.7/101.8 201.1/201.2/201.3/201.5

#

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

Question
I am following instructions and the example shows get customer info by id then customers email address i do not have that option i only have Update Subscription or find subscription by id and no customers email address field option

Related Event ID(s)
evt_1Pw48aCOy4ASjjWdvb9IgC7V

What have you already attempted?
Everything, resetting the secret key, checking the webhooks

What are you working on?
reputation management app

#

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

Question
I work in a school where was use a stripe account to take payments. We currently have it running on one app and want to get it running on a secondary app. In order to do so we need to provide the developer with a publisher key and a secret key. I can access the publisher key but not the secret key due to Stripes policy. My question is if i generate a secondary secret key to pass on to this second app developer to receive payments from that app, will it stop the ability to receive payments of our first app, and will we need to update that secret or will be it unaffected?

Related Request ID(s)
N/A

What have you already attempted?
Looked up both the publisher key and secret key. Noticed we can't access the secret key and didn't want to generate a new one incase it stopped payments from the first app coming through

What are you working on?
We are transitioning from one app to another but need a period of time where both apps can receive payments for a couple of months before completely removing the first app

#

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

Question
- What would be the way to collect Billing address if I don't want to use the AddressElement, because I'm using CardNumberElement and co?
- How would I link the billing data to my setup intent (when calling the confirm setup function)

Doc/Guide Links
https://docs.stripe.com/stripe-js/react

What are you working on?
Implementing a seamless Elements experience

#

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

Question
I am trying to create custom subscription schedule, and then tie it to existing subscription. is this possible? I dont want to use from_subscription, because then i cant modify the first phase.

Related Request ID(s)
any subscription

What have you already attempted?
used from_subscription, but its limiting

#

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

Code
```tsx
const fetchClientSecret = useFetchClientSecret(options)

return (
<EmbeddedCheckoutProvider
stripe={getStripe(publicKey)}
options={{
fetchClientSecret,
onComplete,
}}
>
<EmbeddedCheckout />
</EmbeddedCheckoutProvider>
)
```

Question
We use https://docs.stripe.com/payments/checkout with `EmbeddedCheckoutProvider` to render a Checkout form. We have also configured to use `card` as the available payment method.

We wonder if there is way to prefill customer's name in the cardholder name field

What have you already attempted?
To alter the FE properties on react

#

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

Question
The XPS Shipping API needs customer info, shipping info, phone number for shipping, product info and email. The issue comes in with web orders. Closest I can come is the checkout.session.completed and using price to determine the product as a guess. I love the idea of using the event type charge.updated if there is the ability to get a phone number there somewhere instead of null. Is the phone number for shipping and customer NOT SHOWING broken functionality or expected? Perhaps I need to do something different in my pull?

Related Request ID(s)
req_njw0gAteqMRY11

What have you already attempted?
I have sorted the subscription one by using the Events API and pulling invoice.paid. This has all the info I need for subscriptions, but not web based orders.

What are you working on?
I am most of the way through making an API for Stripe to XPS-Shipping. I want to import web and subscription orders to XPS Shipper.

cursive heronBOT
#

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

What did you expect to happen?
I expected the client to cancel their account. I expected stripe wasn’t going to charge them again without me doing it manually.

What actually happened?
Stripe charged the client and they reported that it was without their consent and now my payouts and payments are on freeze with stripe.

Reproduction Steps
IDK i’m just trying to reach customer service please

Question
Can I have my account restored??

cursive heronBOT
#

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

What did you expect to happen?
In our prototype when we click the Saved payments tab, and an ACH payment method is listed, we would expect the terms copy/link to be hidden

What actually happened?
We are not able to hide the Terms for ACH Payment types under the Saved payments tab

Reproduction Steps
Click Saved payments and have a saved ACH payment method. Terms copy and link persists. I have a screenshot if that's clearer.

Question
How can we make sure the terms copy/link is hidden when we are on the Saved payments tab and have an ACH payment method listed? Is there something we need to configure on our end?

What are you working on?
We're updating our web app to support ACH payments and adding them as saved payments.

#

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

Question
Yeah it's me again, hopefully I don't bother you.

What would be the way in my case to show a Apple Pay button or Google Pay button in my setup intent form? I'm using React-Stripe-js and custom components with CardNumberElement, and so on for expiry and CVC.

Doc/Guide Links
https://docs.stripe.com/apple-pay/best-practices
https://docs.stripe.com/payments/accept-a-payment?platform=web&ui=elements#apple-pay-and-google-pay

What are you working on?
SaaS project

#

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

Code
```php
public function debitConnectedAccount(string $connectedAccountId, int $totalFee): Charge
{
return $this->stripe->charges->create([
'amount' => $totalFee,
'currency' => 'usd',
'source' => $connectedAccountId
]);
}

```

Question
Trying to create a debit on my connected account on test but i'm getting this error
`Failed to process account acct_1Pw3L6D6tAKOGFbC {"message":"Cannot create account debit on this account; please contact us via https://support.stripe.com/contact with details for assistance."}`

What have you already attempted?
Tried googling and asking AI didn't get any solution
Following this guide here
https://docs.stripe.com/connect/account-debits

cursive heronBOT
cursive heronBOT
#

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

Question
I am a developer using the stripe wisepos e using sdk . I managed to get my flow to work when I was using the device at home. I am now at work looking to implement it there with a secure wpa2 wifi, but I am receving errors in the console about the jackrabbit service failing, and thus I can not connect to the wisepos e from my device. I am receiving this error:

POST https://172-35-100-142.dwdxfzkcthqb645df47b.device.stripe-terminal-local-reader.net:4443/protojsonservice/JackRabbitService net::ERR_NAME_NOT_RESOLVED

Followed by the can not connect to stripe reader error

Related Request ID(s)
N/A

What have you already attempted?
I have tried reconnecting both my device and the reader to the wifi, removing the reader on my stripe dashboard and readding it by generating a new code

What are you working on?
a pos system for a office rentals

#

@gilded raven pressed the 📚 Doc or Guide button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Link to the Doc/Guide in question
https://docs.stripe.com/checkout/quickstart

Question
I'm trying to get some clarity on the Session object and how it is updated throughout the Checkout process.
First it is created by us, the company using Stripe for checkout and then once created it is used to create a standalone checkout page. Is it altered and/or returned as a response after our user/customer completes checkout?

What have you already attempted?
Reading docs.

What are you working on?
Building a standalone checkout page for subscriptions.

#

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

What did you expect to happen?
When we updated to the latest Stripe API version it appears to have changed how invoice / receipts are sent.

It used to send the client a invoice/receipt immediately upon initiating the charge. Now it sends to them when it is marked as successful in Stripe (for customers with bank account payment methods).

What actually happened?
Instead of sending receipts when the charge is initiated for a customer with a bank account it's sending the receipt when the charge is successful.

Reproduction Steps
Trigger this function:

await stripe.invoices.pay(invoice.id)

For a customer which is paying with a bank account which takes several days to successfully complete the charge.

The older version of Stripe would send the invoice email receipt immediately when the charge was attempted which is what we want. The newer version does it after the payment is successful.

Question
Is there anyway we can enable the old Stripe behavior where the invoice receipt is sent immediately after the invoice is paid with this command:

await stripe.invoices.pay(invoice.id);

Instead of sending the receipt after the payment is successful?

cursive heronBOT
#

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

Code
See the question part.
"permissions": [
{
"permission": "user_email_read",
"purpose": "Get the owner's name and email"
},
{
"permission": "plan_read",
"purpose": "Read info about plans for the purpose of displaying pricing tables"
},
{
"permission": "checkout_session_write",
"purpose": "Create new checkout sessions to allowing users to subscribe to plans"
}
],

Question
Is it possible to get information about the user when using OAuth in Stripe Apps? I noticed the user_email_read scope, but don't know what's the endpoint to call it on the backend,

What have you already attempted?
I tried adding the `user_email_read` scope to my app, but actually it won't let me install due to internal oauth page error from Stripe:

https://marketplace.stripe.com/appm/oauth/v2/tailorapp*AZFyunIuOwAAALVQ%23EhcKFWFjY3RfMVBZNk9rSlB1Z2FyeXJ1Sg/authorize?include_only[]=redirect_url

{"error":{"message":"install_reauth_required"}}

I think it must be a bug

What are you working on?
PricingWidget to embed a highly customized pricing page on your website, synced with Stripe plans.

cursive heronBOT
#

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

What did you expect to happen?
Linking account to a parent account

What actually happened?
Complete transition message states that the account will be disconnected from the parent account

Reproduction Steps
Your Stripe account appears to be partially disconnected from Winmark corporation. To ensure your account is fully connected to Winmark corporation you need to complete the transition process

Question
Is this what needs to be done from an individual store account? On our parent account (winmark corporation) there is nothing I can do to get this account connected.

cursive heronBOT
#

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

Code
// Laravel Controller
$setupIntent = $currentTeam->createSetupIntent(['usage' => 'off_session']);
$paymentIntent = [ 'client_secret' => $setupIntent->client_secret, 'public_key' => config('cashier.key')];

//JS
Stripe.confirmCardSetup({
client_secret, { payment_method: { card: cardElement }}
})

// Laravel Cashier (Stripe)
return $team->newSubscription($productName, $price)->create(paymentMethod: $paymentMethod, subscriptionOptions: [ 'off_session' => true]);

Question
I'm trying to create a new subscription via Laravel Cashier and I'm following both of these guides:

https://laravel.com/docs/11.x/billing#payment-methods-for-subscriptions
https://laravel.com/docs/11.x/billing#creating-subscriptions

I'm using the test card number "4000 0025 0000 3155". However when create the subscription I get the following:

The payment attempt failed because additional action is required before it can be completed.

Am I doing anything wrong? Thx in Adv

What have you already attempted?
I've tried:

- Using stripe checkout (This works, however this is not preferred method as i would like to remain in app)

- Creating a card using the confirmCardPayment
on stripe js SDK to see if it made a difference

What are you working on?
Im trying to build a SaaS which provisions software licences or seats for little NUCs to display ads on screens (sounds better than it reads)

#

@idle trellis 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

Question
how to create a charge to allow my customer pay in 1 single payment, and then this single payment can "somehow?" split itself to distribute fund to several sellers (individual stripe accounts) on my marketplace platform?

What have you already attempted?
tried the create charge api and checkout session api, but they don't seem to be able to split 1 single payment from customer's end to multiple payments in stripe to different stripe accounts (my sellers' stripe accounts). need suggestion? :)

What are you working on?
building an service that allow my end user to order from and pay to multiple vendors on my platform without paying them individually. similar to multiple customer splitting bills, but on seller sides.

#

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

Question
Can you put a payment link into a pending phase and change the colour to orange? untill another api calls it and makes it sucessful or declines it

Related Request ID(s)
dont have one

What have you already attempted?
question

#

@slim kindle 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/metadata

Question
We are trying to pass meta data from checkout session to the payment intent so we can use it in Radar rules. However we have a subscription product so attached to subscription_data.metadata to the checkout session. But its not passing to the payment intent.

The metadata section is empty when viewing the payment intent.

What have you already attempted?
We tried to pass via the payment intent data but get error.

Request req_taN69U8Nhlqgdp: You can not pass `payment_intent_data` in `subscription` mode.

What are you working on?
Trying to pass metadata from checkout subscription to use in Stripe Radar rules.

#

⛔️ 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
#

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

Question
How to handle authentication and payment update scenarios? My current flow is described below:

  1. First time customers to go through Stripe Checkout with `setup_future_usage=off_session`.
  2. Confirm new payment intents server side periodically in future with payment method from step 1.
  3. If authentication required, get PI client secret, and call `confirmPayment` in front-end without Stripe Elements
  4. If payment method update required, use customer portal deep linking with `payment_method_update` flow and manually update existing payment intent b4 confirming again server side.

Step 3 should work as per docs right? For step 4 - better to use elements/stripe checkout?

Doc/Guide Links
https://docs.stripe.com/recurring-payments#use-paymentintents

https://docs.stripe.com/payments/save-and-reuse?platform=web&ui=elements#charge-saved-payment-method

What are you working on?
I'm working on creating recurring payment flow with payment intents

cursive heronBOT
cursive heronBOT
#

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

Question
I just need to expand the width of this embedded component. When we disable the min-width: 400px in inspect element in browser then the width gets adjusted to full and that I need to apply to my Angular 10 web app.

Doc/Guide Links
https://drive.google.com/drive/folders/1eWA6r_MeOD_M6We6n_X4QjmAkp1Gqxtd?usp=drive_link

What are you working on?
Fin tech web app

cursive heronBOT
#

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

Question
We use the promotion feature . do we really need to invoice customer for it? Our customer receive a receipt + an invoice and it's very expensive. 1. they are annoyed of receiving two bills that say virtually the same thing, and 2. we are being charge an insane amount of money. Why is it required to invoice with promotion?

Related Request ID(s)
https://dashboard.stripe.com/events/evt_1Pd1FBL0Z6nKgMqTUTfcMSLZ

What have you already attempted?
contacted customer service

What are you working on?
ridesharing

#

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

Question
We want to implement a recurring subscription flow in which a checkout session in created everytime customer wants to upgrade their plan. First month plan price would be difference of their current and new plan price and billing cycle remains the same. I'm unable to find a best way to do this, do I need to cancel the old subscription separately or checkout session can itself be used for it.

Doc/Guide Links
https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-subscription_data

What are you working on?
We are building recurring subscription billing for our application

#

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

Code
if user wants to update the card which is being used for subscription, how to do that?

Question
if user wants to update the card which is being used for subscription, how to do that?

What have you already attempted?
if user wants to update the card which is being used for subscription, how to do that?

What are you working on?
Tried to load the stripe element but failed.

#

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

Question
in test mode i have created one connect account using express method and account link is generated and also all details is fill up using link but in stripe dashboard show restricted in generated account why ??

Related Request ID(s)
in test mode i have created one connect account using express method and account link is generated and also all details is fill up using link but in stripe dashboard show restricted in generated accou

What have you already attempted?
in test mode i have created one connect account using express method and account link is generated and also all details is fill up using link but in stripe dashboard show restricted in generated account why ??

What are you working on?
in test mode i have created one connect account using express method and account link is generated and also all details is fill up using link but in stripe dashboard show restricted in generated accou

cursive heronBOT
#

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

Code
const setupConfirmation = await stripe.confirmSetup({
elements: elements,
redirect: 'if_required',
});

Question
We have a mobile wrapper for a web application using react native. When I try to add a payment method using the mobile application it always fails, but on the web application it works as expected every time. Setup intents seem to always fail on the mobile application for some reason. 1) I add the payment method info 2) A pop up shows that waits for verification through the mobile app of the bank provider 3) It keeps loading the popup, and then it breaks.

What have you already attempted?
Can't get something out of the stripe error on dashboard --> "The latest attempt to set up the payment method has failed because authentication failed.". When running the mobile application locally with test stripe account, everything works.

cursive heronBOT
#

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

Code
there is no code to talk about

Question
hi, ive intergrated stripe into my shopify account and i bought something to test it. the purchase was confirmed but no money went through to the stripe account. on my bank, it says the payment is pending but i dont think its an error on the banks side. i need help to resolve this issue ASAP

What have you already attempted?
ive tried to contact support but they say that IT specialists are the inly people who can help me in this issue and discord is the only place to do that.

What are you working on?
shopify store

cursive heronBOT
#

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

Code
// Code extracted from documentation
const elementsOptions = {
mode: 'payment',
amount: 1099,
currency: 'usd',
customerSessionClientSecret,
};

const elements = stripe.elements(elementsOptions);

Question
I'm switching to Payment Element from Card Element. I would like to display the checkbox to save the card information. It's working fine by providing a customer session client secret. Is there a way to have this checkbox without this customer session secret ? It's kind of overkill if the user doesn't want to save it's card information (creation a customer, then creating a session). Previously we were creating a customer only when the customer clicked the checkout.

What have you already attempted?
Reading the documentation to find an alternative way (without success).

What are you working on?
Switching to Payment Element from Card Element

#

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

Question
3D secure on react-native mobile wrapper using WebView: Testing a 3D secure test card (4000 0025 0000 3155) on the mobile wrapper, it redirects to safari and displays the following error "Unrecognized request URL (GET: /3d_secure_2_test/acct_1P5wHwBybNK2uWjT/threeeds2_lPx2KAbybNK2uWjTkpe2aCft/challenge). Please see https://stripe.com/docs or we can help at https://support.stripe.com/.". Using the web application I see that it makes a POST request on https://api.stripe.com/v1/3ds2/authenticate instead.

Related Request ID(s)
NO request Id

What have you already attempted?
I have no idea what could go wrong, the same codebase redirects to different urls on web and react-native wrapper

#

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

Question
Hi, trying add Stripe connect to Wordpress. using https://github.com/stripe/stripe-php. Now whenever i visit my site with "code" parameter i get error - "Error: Tokens not found in response". ie www.mysite.com/?code=0 Is this normal? why im getting this?

Related Request ID(s)
no logs

What have you already attempted?
i just added https://github.com/stripe/stripe-php to wordpress

#

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

Question
Hi Stripe Team! How come the success_url from my Stripe test payment doesn't have the query parameters?

Related Request ID(s)
req_ewm9fTMajMZIcj

What have you already attempted?
I tried printing out whether my success_url is the correct one and it is. Still this "http://localhost:3000/onboarding?institutionId=cm0uq8fat0001mwra2gxafufu" is being turned to this "http://localhost:3000/onboarding". I see in the Dashboard logs that it has the right url, but it seems to remove the search Parameters of the URL.

What are you working on?
A website where educational institutions can offer courses and administrate their organization.

#

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

Question
I have two subscription products:
- €9.00 / user / month (monthly commitment)
- €7.00 / user / month (yearly commitment)

I want to give some customers a €2 discount for each user, is it possible ?

Doc/Guide Links
I created a fixed amount discount of €2.00 - but it is only €2.00 off the total bill, not €2.00 off the price per user.

Not sure if creating a 28,57142857142857% off coupon is the right way

I don't want to create a product for each price discount

What are you working on?
B2B SaaS

#

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

Question
charges and payout are paused for my account , what should i do and how can i solve it and withdraw all the money inside

Related Request ID(s)
POST /v1/charges/py_3Pm9KI02lifi5wpb1oIHScJd/refund

What have you already attempted?
email to support for few times but unable to solve the issue

cursive heronBOT
#

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

Question
I am currently evaluating the following billing:

Option 1: One year plan which is auto-canceled (i.e. non-recurring)
Option 2: One year plan that rolls over into a monthly plan

Questions:
Regarding Option 1:
Would I just use a subscription with `cancel_at_period_end`?

Regarding Option 2:
How would I roll over to monthly billing after one year. Do I need to update the subscription shortly before the period end to a monthly plan id?

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

What are you working on?
New SaaS

#

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

Question
in test mode i have created one connect account using express method and account link is generated and also all details is fill up using link but in stripe dashboard show restricted in generated account why ??

Related Request ID(s)
in test mode i have created one connect account using express method and account link is generated and also all details is fill up using link but in stripe dashboard show restricted in generated accou

What have you already attempted?
in test mode i have created one connect account using express method and account link is generated and also all details is fill up using link but in stripe dashboard show restricted in generated account why ??

What are you working on?
in test mode i have created one connect account using express method and account link is generated and also all details is fill up using link but in stripe dashboard show restricted in generated accou

#

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

Code
no code here to show

Question
Hello, i have made a payment to test stripes integration to shopify. on shopifys saide, its connected and active. the payment went though and was confirmed. but the payment isnt showing up here in my stripe app, there is no activity. on my bank app it says the payment is pending but the funds did already come out.

What have you already attempted?
i talked to shopify and they said its working on their side.

What are you working on?
shopify store

#

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

Code
elements.create('payment', {
paymentMethodOrder: ['apple_pay', 'google_pay', 'card', 'klarna']
});

Question
We are trying to sort the payment methods and display Apple Pay first. I found the way of doing it if using `elements.create` ( https://docs.stripe.com/payments/customize-payment-methods?locale=en-GB#sort-payment-methods ) but I can not find how to do this using the react library Elements.

What have you already attempted?
I looked into the types, open issues, closed issues and I will start playing with Ref but that looks a little too much in my opinion.

cursive heronBOT
#

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

Question
We are using the Stripe API for customer creation with payment methods, creation of connected accounts and invoices.
We have successfully created an invoice (and payment) with the field on_behalf_of and transfer_data to the connected account.
The invoices show up in the customers dashboard, but not under the connected account's customers and invoices dashboard (only the payment does).
Could you help us understand why this might be happening and how to resolve it?

To better understand our process

  1. We create a customer in stripe via api
  2. We create a connected account via api
  3. We add a payment method to our customer
  4. Customer makes payment and invoice is created on

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

also used the ai chatbot

What are you working on?
We are building a platform that allows service providers (connected accounts) to offer their services to consumers. The invoice is created in the name of the service provider

#

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

Question
I am trying to collect payment from the user but I want to preselect the payment method.
I want the user to simply see the transaction details and confirm the payment.

If the user doesn't want to use the preselected payment method, they can select from the drop down and select the previous saved card

If the user wants to add a new card, we want to add an option to add a new card.

We use stripe standard

Related Request ID(s)
non

What have you already attempted?
exploring payment intent

What are you working on?
marketplace

#

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

Code
linkAuthenticationElement.on('change', (event) => {
const email = event.value.email;
let formData = new FormData();
formData.append('email', email);
fetch('/api/checkout/set-email', {
method: 'POST',
body: formData
}
).then(response => response.json())
.then(data => {})
.catch(err => console.error(err));
});

Question
I'm looking to collect the users email address, however the code only supports on change. This does not fire when for example a customer has placed and order and link still has them logged in for the next checkout session.

What have you already attempted?
I've attempted different event listeners say on element ready or initialise but no data is passed when I look to log the event or event.value attribute.

What are you working on?
Building a one step checkout

#

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

Question
The same code using to create a new Webhook through API works in few account and not working in major of the account

Related Request ID(s)
NA

What have you already attempted?
I have checked the API request and response all looks same.

cursive heronBOT
#

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

Question
Apple pay button is not getting rendered in the site

Related Request ID(s)
req_RTc03XI1VqX6Re

What have you already attempted?
sorry the id given is irrelevant ,i have made setup in the dashboard

cursive heronBOT
#

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

Question
We use this code to create subscriptions with EFT payments:
const subscription = await stripe.subscriptions.create({
customer: req.body.customerId,
collection_method: "send_invoice",
payment_behavior: "allow_incomplete",
days_until_due: "7",
items: [{ price: price }],
automatic_tax: { enabled: true },
});
await stripe.invoices.finalizeInvoice(subscription.latest_invoice);
After adding "trial_period_days: 7", the invoice.upcoming event is triggered immediately, but we don't want to send upcoming invoice emails to users in trial or within payment due period. How can we prevent it?

Related Request ID(s)
req_ntKydt5Gu4Atvj

What have you already attempted?
I have no idea how to handle it. As days_until_due=7 and trial_period_days=7, I think the total active days should be 14 days. I don't find any relevant documentation.

#

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

Code
im trying to integrate google pay integration in react native using payment sheet. i want to know if i can test it on iOS simulator

Question
im trying to integrate google pay integration in react native using payment sheet. i want to know if i can test it on iOS simulator

What have you already attempted?
.

#

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

Code
stripe android causes problems with android 10 devices

Question
stripe android crashing the app in android 10

What have you already attempted?
I updated the latest, updated the kotlin version and disabled googlepay via android manifest

cursive heronBOT
#

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

Question
I am trying to integrate AliPay and weChat into my payment element?

Related Request ID(s)
Could not find related

What have you already attempted?
I have my payment element already set up, I use google pay, apple pay, and paypal just fine.

We tried to launch different PMs for china, so we enabled wechat and alipay from the payment method settings in stripe dashbaord.

I created a user in my app and made sure that I am using a a vpn to change my IP to HK, I also made sure that the currency being passed to the payment element of the plan is usd which witch should be supported as per the docs of alipay and wechat.

#

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

Question
I am trying to listen webhook events using stripe CLI but, I only got one event which is application_fee.created. Earlier like 7-8 month ago same code is working fine

Related Event ID(s)
I have not found any

What have you already attempted?
I updated the stripe CLI version to the latest which is 1.21.5

cursive heronBOT
#

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

Question
In our app, a user can connect an accounting integration like Xero, QBO. A user can create an invoice in our app, which we sync with accounting software. During creating an invoice, we also allow users to create payment links with Stripe integration. Currently, for every invoice that was getting added to accounting software, we were creating an equivalent in Stripe as well and using hosted invoice for payments. This is leading to mismatched invoices between Stripe and accounting software. We want to just create a payment link with adhoc items without any invoice in Stripe

Related Request ID(s)
None

What have you already attempted?
Tried to create payment links in Stripe, but they required creating products or services. We want to create links with adhoc items

What are you working on?
We are working on app that provides invoicing software with accounting and payment integrations

cursive heronBOT
#

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

Question
In our checkout flow we enabled Paypal payment method. Once customer goes through the checkout flow and selecting Payment method we create payment intent and customer is redirected to Paypal page to confirm payment. In our flow we also have offsession charges. Does customer always needs to confirm payment when having Paypal as a payment method. Because on card you can set setup_future_usage: 'off_session' and extra payment confirmation from the customer is not needed,,, can this be set also for Paypal flow?

Related Request ID(s)
dont know

What have you already attempted?
When creating payment intent I have added

payment_method_options: {
paypal: {
setup_future_usage: 'off_session'
}
},
but when I create an extra offsession charge when creating payment intent I always get intent status requires_action

#

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

Question
Why does the event object (checkout.session.success) not produce a payment_intent if a customer used a 100% discount coupon.

Related Request ID(s)
Dashboard > Developers > Webhooks

What have you already attempted?
I havent tried anything yet on my side. I need advice on what I should try to fix my issue.

What are you working on?
A payment for an electronic product

#

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

Code
$subscription = \Stripe\Subscription::create([
'customer' => $customer->id,
'items' => [['price' => $priceId]],
'off_session' => true,
'payment_behavior' => 'default_incomplete',
'payment_settings' => ['save_default_payment_method' => 'on_subscription'],
'trial_period_days' => 7,
'expand' => ['latest_invoice.payment_intent'],
'metadata' => [
'passbackconversiontrackingid' => $data['rtid'],

Question
I am using Payment Request Btn for subscription flow.
Most normal test cards works fine with the Stripe's Link.
But when I use this card "Authenticate unless set up 4000002500003155" for 3D secure authentication.

it seems Stripe's Link doesn't support 3d secure authentication?

What have you already attempted?
'off_session' => true,

#

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

What did you expect to happen?
When the user enter his card in a CardField.
I expect to have the correct value available in paymentMethod.Card.preferredNetwork

What actually happened?
When the user select Visa or Mastercard, I get the correct one but when the user select Carte Bancaires I get Visa or Mastercard instead

Reproduction Steps
NoWebhookPaymentScreen:
Enable card brand selection for Visa, CarteBancaires and Mastercard
After createPaymentMethod console.log the paymentMethod

Question
I already bought up this bug here https://discord.com/channels/841573134531821608/1268560472236621877 but since I have no feedback after a month I wanted to know if there is something you can do about it

What are you working on?
Telecom application

#

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

Code
cardMultilineWidget.getCardParams();

PaymentMethodCreateParams paymentMethodCreateParams = PaymentMethodCreateParams.createCard(cardParams);

mStripe.createPaymentMethod(paymentMethodCreateParams, new ApiResultCallback<PaymentMethod>() {

Question
Preferred network for co-branded cards not working on Android.
networks.preferred is always null for created card paymentMethod

What have you already attempted?
I've tried with cardInputWidget and cardMultilineWidget.
Also tried createPaymentMethod and createPaymentMethodSynchronous. Both with same result.

What are you working on?
Implementing EU-regulation requirement for Co-badged cards compliance

cursive heronBOT
#

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

Question
I want to display the single product and a quantity selector with the available tiers (Up to 250, Up to 500, Up to 1000, Up to 1500, Up to 2000) and allow customers to change their tier plan.

My tier prices:
0 to 250 units = $500 flat price + $3/unit over 250
0 to 500 units = $950 flat price + $2.9/unit over 500
0 to 1000 units = $1800 flat price + $2.8/unit over 1000
0 to 1500 units = $2550 flat price + $2.7/unit over 1500
0 to 2000 units = $3200 flat price + $2.6/unit over 1500

Is it possible using Stripe low-code pricing table or am I using the wrong pricing model?

Doc/Guide Links
https://docs.stripe.com/products-prices/pricing-models
https://docs.stripe.com/payments/checkout/pricing-table

What are you working on?
I created a product with several tier-based pricing plans

cursive heronBOT
#

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

Question
Curious about something - if a customer does not tick "save payment details for future purchases" why does the payment method stay attached to the customer after the transaction? What legitimate use is there for it?

I'm setting our custom display of saved cards to exclude any with allow_redisplay=limited but wondering why such cards are saved at all and if we should be deleting them

Doc/Guide Links
https://support.stripe.com/questions/prefilling-saved-cards-in-checkout?locale=en-GB

What are you working on?
https://support.stripe.com/questions/prefilling-saved-cards-in-checkout?locale=en-GB

#

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

Question
I currently use automatic stripe tax. Can I remove automatic tax so that I won't be charged for this anymore?

I use the stripe customer checkout and customer portal. Can I turn off automatic tax and add tax rules per country that will be used, so that my customers still pay tax?

Doc/Guide Links
https://dashboard.stripe.com/settings/tax

What are you working on?
Bringing costs down

#

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

Question
Hello,

I'm developing a marketplace to put renters and tenants in touch (airbnb style) in a well-targeted area.

I therefore need to authorise user payments, take a commission and pay the rest to the seller accounts.

But the money has to be refundable to the customer up to the date of the reservation/travel.

So what method should I use?

1) The bank imprint doesn't last long enough.
2) Do I have to cash in the funds, then redistribute them on the day I want?
3) Is there a ‘blocked funds’ system on the seller accounts?

Thank you in advance for your help.

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

What are you working on?
Building marketplace of accomodations / hotels

#

@bronze scarab pressed the 📚 Doc or Guide button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Link to the Doc/Guide in question
https://docs.stripe.com/payments/elements

Question
first i want to create payment intent for rendering the stripe payment element than after when checkout page render i want to update client personal details as well as promo code base payemt details in exiting payement intent for complet payment as per our requirement

What have you already attempted?
i can do integration based on stripe doc

What are you working on?
when i call

cursive heronBOT
#

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

Question
How to permanently enable Payments for test account created via API without providing real information?

Related Request ID(s)
I want to enable Payments for acct_1Px88P2YHHllop2K in test mode

What have you already attempted?
We are waiting for the front-end to implement onboarding component.
We are wondering if onboarding component allows us to set account with Payments: Enabled in test mode without need of providing real information?

We tried to pass required account (fake) information but we achieved only account that has Payments: "Paused soon" (acct_1PvzDNFbixCh0NWi). We want to have accounts with Payments: Enabled permanently in test mode for QA purposes.

Ideally after a new account is created via API our tester should be able to set Payments: Enabled for it.

What are you working on?
New integration with Stripe

#

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

Code
const connectResult = await terminal.connectReader(reader);

      if \(connectResult.error\) {
        console.error\('Failed to connect to reader\:', connectResult.error\);
      } else {
        console.log\('Successfully connected to reader\:', connectResult.reader.label\);
        $\('\#pinpadInstructions'\).text\(gon.check\_out\);
        $\('\#pinpadInstructions'\).css\('background\-color', 'rgba\(0,171,238,1.0\)'\);

}

Question
I am a developer using the stripe wisepos e using sdk . I managed to get my flow to work when I was using the device at home. I am now at work looking to implement it there with a secure wpa2 wifi, but I am receving errors in the console about the jackrabbit service failing, and thus I can not connect to the wisepos e from my device. I am receiving this error: POST https://172-35-100-142.dwdxfzkcthqb645df47b.device.stripe-terminal-local-reader.net:4443/protojsonservice/JackRa

What have you already attempted?
I alraedy talked to Hanzo about this issue on Friday and we were unable to get a solution. I had to leave work at 5pm so our conversation was left unfinished

What are you working on?
a pos system for a office rentals

#

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

Question
I have implemented the fee refund methods through stripe documentation but since they require a fee id I am not able to test them. How can I obtain a fee id to test out stripe fee refund methods?

Related Request ID(s)
N.A.

What have you already attempted?
I have created multiple test charges and tried to find any fee id inside payment intent object but couldn't find any.

What are you working on?
I am trying to build a platform that uses stripe for money transactions

#

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

Question
How can I validate accountId and cardholderId on my side before saving it to the database

Related Request ID(s)
a

What have you already attempted?
How can I validate accountId and cardholderId on my side before saving it to the database

#

@polar carbon 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/contact/login?from=discord&redirected=true

Question
I can not sign up to stripe but i can only reach Contact if i sign in. How am I supposed to get help to Create an Account if I can not get support without an account?

What have you already attempted?
I tried all the options and discord page

What are you working on?
I'm trying to create an account

#

@viscid elbow 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/migration

Question
Hello!
We have several payments on site, each payment located inside separated accordion, but as we can see ECE renders all payments inside single element. To locate each payment separately, we need create several ECE elements, something like that:
i can't upload anything here(((

What have you already attempted?
Migrate your existing integration with the Payment Request Button Element to the Express Checkout Element.

What are you working on?
i want to show some screenshots how?

#

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

Question
Is there any possibility to resend (retry) event using stripe sdk?

Related Event ID(s)
evt_1Pvh2U4Fzz6emazHJ9gzHPkR

What have you already attempted?
I would like to resend events, which have been moved to dead-letter queue by calling specific Stripe's (if that exist?) endpoint.

#

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

Code
In the review reaction in the accuont

Question
Hello, I am a user of Stripe as well as a hacker. I have discovered a security vulnerability on the site insiders.stripe.dev, which is a high-impact stored XSS case (it hasn't bypassed CSP yet but is very easy to exploit). I would really like to help improve your system. Could you let me know who I can report this vulnerability to? I saw this notification so I have joined the Discord

What have you already attempted?
I have try the payload xss in the title then it trigger when victim view the reaction of other user who have reacted the post whose the title is xss payload

What are you working on?
Pentester

#

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

Question
users are supposedly telling us they are getting timed out either too quickly on the stripe payment page or they do not see commercial client account login on the instant ACH verification of stripe payment checkout. is there a way to make this inactivity longer through code or is there another way to enhance UX in the stripe payment page or by having a specific bank appear on the default tiles for ACH?

Related Request ID(s)
req_dMeSAFGrqxvxPY, req_O3J56low2GxYO8, req_EAXU7Zyq1xGkBt

What have you already attempted?
we have attempted to let users know they must complete the requested action in time and are working on a piece to hopefully improve UX, which we are using the default stripe payment page for checkout.

What are you working on?
building a custom e-commerce website to sell products for a client.

cursive heronBOT
#

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

Code
/// Processes a payment using manually entered card details via the Stripe Terminal SDK.
/// - Parameters:
/// - slot: The ``QueueSlot`` containing payment information.
/// - paymentAmount: The amount to be charged. If nil, the slot's payment amount will be used.
/// - cardDetails: The manually entered card details.
/// - completion: A closure called with the result of the payment process.
/// - Throws: An error if the payment intent parameters

Question
Can you please point me to the API/integration examples for Terminal checkout with manual card entry. I want to be able to use OCR/manual card entry on our app for cards that do not have NFC capabilities.

I cannot find the reference for this no matter where I look.

What have you already attempted?
searching google and docs

What are you working on?
small business iOS app with Terminal integration

cursive heronBOT
#

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

Question
This is a payment intent from test. I'm confused by why it has got setup_future_usage = on_session, since none of the API calls set that explicitly.

Related Request ID(s)
pi_3PxA8QKkGuKkxwBN11mBrh5z

What have you already attempted?
In the process of switching our integration from using payment intent ID to confirmation token ID for confirming payments, and wanting to make sure we only attach payment methods to customers when they tick the box to give us permission.

What are you working on?
Site that takes donations on behalf of charities

#

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

Question
Im trying to collect payment information to charge later, why is the amount required on the payment intent?

const intent = await stripe.paymentIntents.create({
amount: 50,
currency: 'usd',
payment_method_types: ['card'],
payment_method_options: {
card: {
setup_future_usage: 'off_session',
},
},
customer: customerId,
})

Related Request ID(s)
Customer was charged 10.99 when we are connecting information later

What have you already attempted?
I tried removing amount

What are you working on?
Im working on gathering payment info to charge accounts later

cursive heronBOT
#

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

Code
<CardForm
style={cardFormStyle}
cardStyle={styles.cardStyle}
onFormComplete={({ complete }) => {
onChange(complete);
}}
postalCodeEnabled={false}
disabled={isLoading}
defaultValues={{
countryCode
}}
/>

Question
is there a way to set manually the language in CardForm (@stripe/stripe-react-native)

What have you already attempted?
Problem is that in my app I can switch my app language but the card form seems to use only my tablet language

What are you working on?
Using CardForm in my app

#

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

Code
Payment Elements Appearance API
(specifically the CustomFontSource)

Question
I'm trying to use a custom font when setting up a Payment Element via the JS SDK.

I've provided a URL to a self-hosted font, but when the payment element loads in the browser I get an error in the console indicating no CORS Access-Control-Allow-Origin in the header from origin https://js.stripe.com.

Our access control settings for this resource are currently:

access-control-allow-origin: *
access-control-allow-methods: GET

Which should allow the request through.

What have you already attempted?
Changed different fonts from elsewhere, this is the only one I find an issue with

What are you working on?
ecommerce checkout system

#

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

Question
I've reached out earlier today, I want to obtain a fee id out of a charge but in my charges "application fee" field returns null. Why is that?

Related Request ID(s)
Dashboard > Connected Accounts > Payments

What have you already attempted?
I tried to create a new charge and looked at the application fee filed of it and it was null.

What are you working on?
a platform utilizing stripe for money transactions

#

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

Question
Best api call approach for splitting payments between multiple parties on Stripe connect. We're doing b2b payments. an example we need to create a payment intent from a customer object for $100. we then need to split that payout to 15 different parties of varying amounts.

Related Request ID(s)
n/a

What have you already attempted?
We're trying to understand the most efficient approach. Our current thought is to create a payment intent, wait for the funds to clear and then create individual /transfer calls to each respective party.

Is this the best approach?

cursive heronBOT
#

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

Code
const accountOnboarding = stripeConnectInstance.create("account-onboarding");
node.innerHTML = "";
node.appendChild(accountOnboarding);

Question
Is there a way, when using an embedded component, to know when that component (including its iframe, etc.) has fully loaded? I'd like to be able to, for example, display our own loading spinner animation until the user actually sees the onboarding UI, which doesn't happen until a noticeable amount of time after the custom element is inserted into the DOM.

What have you already attempted?
I haven't fully fleshed this out, but I may be able to use a ResizeObserver or poll the element size or something and when it gets above some threshold assume that it's loaded and I can stop displaying our own loading spinner. A less hacky way of doing that would be great.

cursive heronBOT
#

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

Question
How can I update an upcoming invoice when stripe.invoices.retrieveUpcoming doesn't return an invoice_id

Related Request ID(s)
https://dashboard.stripe.com/test/customers/cus_QnIWocbcFjFV9W/upcoming_invoice/sub_1PvhvYAnNL7nO1d0xL3XHFJ2

What have you already attempted?
The dashboard seems to allow me to see the id of an upcoming invoice, but I can't seem to find where to get that ID via the API for a customer

What are you working on?
Billing for my company

#

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

Question
Is there a way to show the saved cards as a payment method in the checkout flow? I have a user with saved cards (from a subscription) but when I use Checkout, it still asks for a new card and doesn't show the saved cards anywhere. I can't find how to do this.

Related Request ID(s)
cs_test_b1NCeMPsSzPgROUVQj3ixFTOcYGIKpFU25B3dF7yoVoMWX7eDhXESKpME5

What have you already attempted?
const checkoutSession = await stripe.checkout.sessions.create(
{
payment_method_types: ["card"],
customer: customerId,
mode: "payment",
saved_payment_method_options: {
allow_redisplay_filters: ["always"],
}
...
}

What are you working on?
An app that lets users subscribe to a package of appointment and pay extra to book more appointments

cursive heronBOT
#

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

Question
I am trying to use `retrieveUpcoming` to display to users a preview of the price change when they update a subscription. However, when I call this, I'm seeing 3 line items. The first two are correct (a credit on the existing price and a debit on the new price). But it includes a third line item, the new price.

Related Request ID(s)
N/A

What have you already attempted?
static async previewInvoice(
customerId: string,
subscriptionId: string,
plan: IPricing.Plan,
) {
const subscription = await this.subscription(subscriptionId)
console.log('existing items', subscription.items.data)
const itemId = subscription.items.data[0].id

return this.client.invoices.retrieveUpcoming\({
  customer\: customerId,
  subscription\: subscription.id,
  subscription\_details\: {
    items\: \[
      {
        id\: itemId, // ID of the subscription item to update
        price\: newPrice
#

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

Question
I'm currently rewriting our platform that uses Stripe and am a bit confused on storing and managing payment methods for users

Related Request ID(s)
N/A

What have you already attempted?
Previously we were using the payment source API which I believe is now deprecated. I've seen mention of the SetupIntent api but it seems as though that is for collecting information prior to a one time charge. The flow that I am looking for is as follows:

  1. Customer adds a credit card as a payment method
  2. Customer adds credits to their account using their payment method. This adds a credit to their Stripe account and we derive their credit balance from that in our application
  3. A customer makes a purchase in our product which subtracts from their balance in Stripe and reflects in our app

What are you working on?
Beyond what's mentioned above, all of these should only require a customer put in their payment method once so they can buy credits without repeatedly entering payment information.

cursive heronBOT
#

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

Code
const { setupIntent: bankSetupIntent, error: bankError } =
await stripe.confirmUsBankAccountSetup(stripeClientSecret, {
payment_method: {
us_bank_account: {
//..
},
},
payment_method_options: {
us_bank_account: {
verification_method: "skip",
},
},
return_url: window.location.href,
});

Question
hello, i'm trying to add verification_method: "skip" to payment_method of confirmUsBankAccountSetup call but I'm getting error. We were granted access to use skip verification method

What have you already attempted?
I've tried adding it outside payment_method

#

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

Question
Is it possible to use Stripe Terminal to setup a subscription? I've tried creating a setup intent and confirming it with Stripe Terminal but it says I can't attach a payment method with card_present. I can't seem to find docs regarding this in general.

Related Request ID(s)
req_qNYOmRSPyUB0oT

What have you already attempted?
I've tried attaching the payment method associated with the setup intent with the customer but it raises an error.

#

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

Question
I have a `customer.subscription.deleted` event that, as far as I can tell, didn't send the event to any webhook endpoints.

Related Event ID(s)
evt_1Ple8NBSZsoltGfCRP8gRtHt

What have you already attempted?
I confirmed the webhook config as well as other `customer.subscription.deleted` events are sending the webhooks.

#

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

Question
Hey,
i am currently using the stripe hosted checkout. When creating the checkout session i set the `billing_address_collection` to be required. That means the customer needs to provide a address for that session. I understood that the address is saved in that transaction.
Is it somehow possible to save that address to the customer itself and when he next time orders something else, the latest used address is auto filled in?

I also got a second question. When getting the `checkout.session.completed` webhook stripe event type i do my custom stuff on my server. Thats all good. But how can i create a invoice for that order and the given address which was filled on checkout?

Doc/Guide Links
https://docs.stripe.com/checkout/quickstart
https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-billing_address_collection

What are you working on?
Credit buying process for my Website

#

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

Code
session = stripe.checkout.Session.create(
line_items=[
{
"price": config["stripe"]["price_id"],
"quantity": 1,
}
],
mode="payment",
client_reference_id=payload.account_id,
customer_email=user.email,
success_url=config["powerml"]["website"] + "/account",
allow_promotion_codes=True,
)

Question
I'm trying to enable promotion codes in our checkout but get this error: `Request req_mIHqFlg0F5XzZR: You cannot enable promotion codes when using a price with `custom_unit_amount` configured.`

Is there no way to have a set amount promotion code (e.g. $500) while letting customers set the amount of the purchase? Additionally, can I create a checkout session using a product ID instead of price ID so I can easily change the product default in the UI?

What have you already attempted?
Read the docs on checkout sessions and promotion codes, I am able to add a promo code in the UI for subscriptions but not for one off payments? It's all very confusing

What are you working on?
Building a checkout for credits for our platform, we want to run a promotion using a code we can give out at a conference

#

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

Question
How do i allow the user of my connect marketplace to cancel their subscription through the API in my mobile IOS app?

Related Request ID(s)
sub_1PvMrDBTLjxEqPSBrzSqVKRL

What have you already attempted?
I have successfully created subscriptions using the API in my marketplace (i think).

What are you working on?
a marketplace connecting business owner and freelancers together where a freelancer can set a monthly service in the app. I want to make it to where both parties can cancel at the end of the next bill

#

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

Question
Curious how prorated refunds on subscription cancellation work. I would expect them to refund based on the last paid monthly invoice (prorated based on # days), and also refund tax prorated based on this same amount.

Instead, looks like they look at the current subscription price, which may differ from the last monthly price, and look at tax configured on the subscription, not tax configured on that last-paid invoice.

We use Anrok, so their recommendation is to never store the tax rate on the subscription

Related Request ID(s)
n/a

What have you already attempted?
Anrok documentation: https://apidocs.anrok.com/tutorials/self-checkout/stripe-subscriptions#how-to-add-tax-as-an-invoice-subtotal

#

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

Code
const { setupIntent: bankSetupIntent, error: bankError } =
await stripe.confirmUsBankAccountSetup(stripeClientSecret, {
payment_method: {
us_bank_account: {
//..
},
},
payment_method_options: {
us_bank_account: {
verification_method: "skip",
},
},
return_url: window.location.href,
});

Question
reposting since i was late to reply. I'm trying to pass in skip parameter here for confirmUsBankAccountSetup which we've been granted to use skip. when i try to add payment_method_options i'm getting following error - Object literal may only specify known properties, and 'payment_method_options' does not exist in type 'ConfirmUsBankAccountSetupData'.

What have you already attempted?
i've try moving around to put verification_method: skip another place

#

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

Question
What does "secret key only" mean in the docs? For instance, using stripe.js, I am trying to pass:

payment_method_options: {
us_bank_account: {
verification_method: "skip",
},
},

to stripe.confirmUsBankAccountSetup, but I get this error: "Error creating payment method: Error: Stripe setup error: Received unknown parameter: payment_method_options[us_bank_account]"

Am I not allowed to pass this parameter from the frontend? Does this need to be set on the setup intent on the backend where the secret key is?

Related Request ID(s)
n/a

What have you already attempted?
What I've posted above

cursive heronBOT
#

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

Code
saying my event contains restricted words

Question
I'm trying to create a ticketed event on Ticket Leap. It's saying I have restricted words, but won't say what they are

What have you already attempted?
Finding where those words are listed, editing words

What are you working on?
Publishing an event on TicketLeap to sell tickets

cursive heronBOT
#

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

Question
I book appointment for Lisbon Indian embassy for consular service in zohoforms in which a paymemt method is added of 4€ through stripe but when i make payment it says that unable to authenticate to process the payment or payment is failed, it's happening same with many other people who using different cards also but i saw rarely two three people appointment got booked, i want to know what we are doing wrong ? Why our payment is declining?.

Related Request ID(s)
Appointment

What have you already attempted?
Tried to book appointment and make payment through stripe

cursive heronBOT
#

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

What did you expect to happen?
We expected out connect account integration to use consistent charge types. For some unknown reasons stripe fees are not charged properly for random transactions for a short period of time without any changes to our integration.

What actually happened?
Not sure if I should provide the payment ids here but two payments that were created with the same exact parameters were handled differently by Stripe. Not sure if there is something wrong with our integration.

Reproduction Steps
Can't really reproduce. It is occurring at at random times according to our observation.

Question
Could a dev help us figure out if something is wrong with our integration?

What are you working on?
Connect

#

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

Question
Does stripe have any kind of email notifications for connected accounts and customer for something like if a connected account increases their subscription price, or if they delete a product, or something along those lines? Would a customer get notified via stripe, or would that require some custom email service from the dev side?

Doc/Guide Links
https://docs.stripe.com/issuing/compliance-us/issuing-regulated-customer-notices

What are you working on?
Building a platform for premium accounts to sell products to customers

cursive heronBOT
#

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

Question
I'm trying to use a promo code with `First-time order only: Yes`. However, I am able to use the coupon multiple times as one user. I tried setting the `customer` field since it was null in the Stripe checkout response but then I get this error: "You may only specify one of these parameters: customer, customer_email.".

How am I supposed to set my checkout session so that `First-time order only: Yes` works / is enforced?

Related Request ID(s)
Request req_Qv6Nc0vA6Ok8Yf: You may only specify one of these parameters: customer, customer_email.

What have you already attempted?
Docs have not been helpful.

session = stripe.checkout.Session.create\(
    line\_items=\[
        {
            "price"\: config\["stripe"\]\["price\_id"\],
            "quantity"\: 1,
        }
    \],
    mode="payment",
    client\_reference\_id=payload.account\_id,
    customer=user.email,
    customer\_email=user.email,
    success\_url=config\["powerml"\]\["website"\] + "/account",
    allow\_promotion\_codes=True,
\)

What are you working on?
Adding a promo code for a checkout

cursive heronBOT
#

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

Code
const { error, paymentIntent } = await confirmPlatformPayPayment(clientSecret, {
applePay: {
cartItems: [
{
paymentType: 'Immediate',
label: 'Donation',
amount: '14.00',
}
],
currencyCode: 'USD',
merchantCountryCode: 'US', // Specify the country code

  },
}\);  
if \(error\) {
  console.log\('Apple Pay confirmation error\:', error\);
  Alert.alert\('Error', error.....

Question
I am trying to enable Apple pay on my Expo MANAGED WORKFLOW app. The instructions on stripe are for react native or expo bare workflow. I have followed something similar but I am using eas build for running apple pay. Yet the above code always gives me "Error", Payment has been cancelled. So I am unable to get any paymentIntent.

Triple checked my configuration of certificates and upload to stripe. Everything seems fine yet I cant move past this error

What have you already attempted?
Bare workflow needs enabling apple pay from xcode. As I am using managed workflow and eas build, I have done the following 2 enable apple pay in App.json:
"ios": {
"bundleIdentifier": "com.tmc.tmcapp",
"merchantId": "merchant.com.tmc.tmcapp",
"entitlements": {
"com.apple.developer.in-app-payments":[
"merchant.com.tmc.tmcapp"
]
}
},
yet I still get the same error. Any help will be appreciated. Been stuck here for weeks

What are you working on?
An expo MANAGED workflow app. The apple pay is facilitate donating to charity

cursive heronBOT
#

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

Question
Is it possible to create an invoice but payment will be authorized and captured later?

Related Request ID(s)
N/A

What have you already attempted?
Created a finalized invoice. From the finalized invoice, tried to update the capture method of the payment intent. However, stripe exception occurred, and capture method cannot be updated for the invoice payment intent.

What are you working on?
SAAS

cursive heronBOT
#

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

Question
How to get limit customers to 1 subscription to work?

Related Request ID(s)
req_kPRFM8aBKI8A0z, req_jnAj0ED87xD3V8, req_kloBR2zp1kTE4Q, req_IuWx9eyUywltLk, req_cgwxocus3b302i, req_4bWdaplrtY1ejA

What have you already attempted?
I've tried using checkout sessions with "customer_email" but it doesn't work. Still lets me do unlimited subscriptions per email.

What are you working on?
SaaS app with tiered subscription

#

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

What did you expect to happen?
They would review my information that I submitted for "Provide Additional Information" as its been 3 business days

What actually happened?
Its been 3 business days, still in review, no response

Reproduction Steps
I saw what documents it asked, picked one and took a photo of it submitted it and selected the one I decided to verify with.

Question
What should I do since its already been 3 business days and its still in review, I submitted the right document., I have lost a lot of sales due to my payments down for these past days..

What are you working on?
working payments for my shopify

cursive heronBOT
#

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

What did you expect to happen?
We use standard connect. We use API to onboard/connect other stripe account with our platform account. It works well in test environment but failed in live environment.

What actually happened?
Onboarding with API works well in test environment but it it didn't work out in live environment when customer tries to provide their bank details in stripe onboarding UI. Customer has authorised bank account but It didn't come back from bank screen to stripe. It stays there only.

Reproduction Steps
Use standard connect with onboarding API in live environment.

Question
Has anyone faced such issue where customer tries to authorise their bank details on stripe onboarding screen and it didn't move further after that authorisation completed from bank's end.

What are you working on?
Stripe Connect

#

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

What did you expect to happen?
I expected the test clock to forward the time and pay for a subscription but instead it failed and retried until I manually triggered a payment?

What actually happened?
I have an need to upgrade a customer to a different product using Subscription Schedules API. The way I do it is to expire the customer's existing subscription and create a new subscription using subscription schedule for them. Understandably, it keeps it in the draft status until 1 hour, but when I used test clock to forward the time it failed with a retry.

Reproduction Steps
Create a subscription for a user using Product A,
Expire the Product A subscription
Using Subscription Schedule create a new subscription for the user equivalent to the product A expiry + 5 seconds.
The payment will go into draft mode.
Using test clocks forward the time by one hour. The payment should succeed when 4242 card is used from Stripe Docs but it fails.

Question
Why does the payment fail after a draft status is simulated using test clocks ?

#

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

Question
I'm listening to a subscription delete event. If someone's payment method fails, will this trigger the event?

Related Event ID(s)
none

What have you already attempted?
I'm still testing, but if I cancel the subscription manually, it triggers the delete subscription event. So that works, but I'm not sure what happens if someone's payment fails like insufficient funds or bank related issues.

What are you working on?
working on a premium feature for a bot

cursive heronBOT
#

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

What did you expect to happen?
In an Embedded Checkout, a 3DS verification iframe to be added and loaded successfully when required.

What actually happened?
The 3DS iframe is inserted but never finishes loading, thus failing without any real visible indication why.

Reproduction Steps
1) Manage to get Lightning Web Security to tolerate loading the Embedded Checkout script to load.
2) Try to pay with a card that requires 3DS auth.
3) Click Pay and see nothing happen.

Question
Given, in my testing, the error seems to be related to restrictions on inter-frame messaging because of how restrictive and invasive LWS is, is there any way to detect if the 3DS iframe never loads from an Embedded Checkout or, better yet, get access to the URL that is returned alongside the 3DS response so the user can be directed to a Stripe hosted page instead?

What are you working on?
An Embedded Checkout on a Salesforce Experience Cloud site.

cursive heronBOT
#

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

Question
I'm using billing portal to have my user cancel their subscriptions, I have 1 product that they can subscribe, but they can subscribe to mulible services (like a multi-tenant platform), I'm looking for a way to see what services they are unscribing from. The title of the product is "Premium Subscription" but I'd like to show "Premium Subscription - My Name here" or some way to add a custom title or description. Is that possible?

https://files.nurdism.dev/u/bbHtbK.png

Related Request ID(s)
n/a

What have you already attempted?
I've tired setting the description of the subscription but its not showing in the page

What are you working on?
Discord bot, I'm using stripe to handle monthly subscriptions to premium per server/guild

#

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

Code
I have made subscription through stripe.checkout.sessions.create , I have to add refund feature in webhook at some point. How to do it?

Question
I have made subscription through stripe.checkout.sessions.create , I have to add refund feature in webhook at some point. How to do it?

What have you already attempted?
I have attempted refund api but could not found charge id in webhook event object.

cursive heronBOT
#

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

Code
"terms_of_service_acceptance":
null

Question
How can I edit the payment link code in inspector? Currently it's read only. I want to add a checkbox so customers have to accept to payment terms before paying, and they can hover on something to view the terms without leaving the payment page. Is that possibke?

What have you already attempted?
I tried editing in sandbox but it wont't work either.

What are you working on?
I want to add a checkbox to the checkout page so customers have to accept to payment terms before paying

cursive heronBOT
#

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

Question
On our subscription based system, if a user's card expires, and then is attempted to be charged, the card will become blocked, requiring us to manually unblock the card fingerprint through the Stripe dashboard.
Is there a way we can unblock the user's card through the API, or any existing way to avoid this happening altogether?

Related Request ID(s)
req_YJX0EtE4ghGpei req_4w3TX4ESi0D9R7

What have you already attempted?
- We have tried updating the cards expiry date.
- We have tried detaching and re-attaching the card with the updated expiry.
- We have tried creating a new SetupIntent

What are you working on?
Subscription based ecommerce system

cursive heronBOT
#

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

Code
```
def upgrade_subscription():
...
resp = stripe.Subscription.modify(
subscription_id,
items=[
...
],
proration_behavior='none',
payment_behavior='pending_if_incomplete',
add_invoice_items=[
{
'price_data': {
'currency': 'usd',
'product': product_id,
'unit_amount': 500,
}
}
],
)
```

Question
How to use `pending_if_incomplete` `payment_behavior` with manual proration? I want to update the subscription only if invoice generated after updating subscription with manual proration is paid.

What have you already attempted?
I have tried using test clock to check if update in subscription is applied or not when applying manual proration. Right after applying manual proration I create and finalize an invoice which works fine and invoice is generated with the manual prorated amount. But at the same time subscription gets updated with new price even if invoice is not paid.

What are you working on?
Trying to implement stripe subscription upgrade with manual proration.

#

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

Code
PaymentIntentCreateParams.RadarOptions.builder().putExtraParam("[skip_rules][]", "all").build()

Question
I'd like to add radar options for Stripe Java SDK.
I was tried the code as bellow and is not work
PaymentIntentCreateParams.RadarOptions.builder().putExtraParam("[skip_rules][]", "all").build()

What have you already attempted?
I'd like to add radar options for Stripe Java SDK correctly.
PaymentIntentCreateParams.RadarOptions.builder().putExtraParam("[skip_rules][]", "all").build()

cursive heronBOT
#

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

Question
I am integrating express checkout elements and i received below error
The shipping information on this PaymentIntent was last set with a secret key and therefore cannot be changed with a publishable key. Please use your secret key instead.

Related Request ID(s)
req_FTz05njuPJc0Uk, req_TmcU79MGIWJYTS

What have you already attempted?
https://docs.stripe.com/elements/express-checkout-element/migration#one-time-update-method

Using the client secret received from payment intent to update the confirm payment method

cursive heronBOT
cursive heronBOT
#

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

Question
Hello, I'm using the api to create automatic subscriptions for specific customers. They don't have to pay themselves, instead another company pays for them, so we setup an automatic process using the api. Since the new api using payment_intents object (instead of source), the SEPA delay are much longer.

Related Request ID(s)
req_VbeCgRlGYeWsE6

What have you already attempted?
Rework the code to use SetupIntents with automatic confirm (instead of create PaymentIntent and then confirm it) but the delay are still anormally longer.
Now I discovered the api version we are on is 2019-05-16, could it be related? I checked the change logs of API upgrades and saw "2024-04-10 : PaymentIntents now has automatic_async as the default capture method when capture method is not specified during PaymentIntents creation. For more information about async capture, view the asynchronous capture guide.", could it be linked? Thanks.

cursive heronBOT
#

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

Question
Getting 500 error on POST /v1/subscriptions and POST /v1/subscriptions/:id endpoints on test mode

Related Request ID(s)
req_EAxb2tjozfcQ71, req_Hb2uH2NCaD3UQs, req_LflXorpMU6Mhmd, req_DUeXArCq28k0CP

What have you already attempted?
Couldn't make an attempt since error message is too generic and doesn't give any helpful info.

#

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

Code
cardMultilineWidget.getCardParams();

PaymentMethodCreateParams paymentMethodCreateParams = PaymentMethodCreateParams.createCard(cardParams);

mStripe.createPaymentMethod(paymentMethodCreateParams, new ApiResultCallback<PaymentMethod>() {

Question
Preferred network for co-branded cards not working.

As I already reported yesterday, there seems to be a bug in the Android SDK with the preferredNetwork. As there is a EU-regulation requirement for that it is quite urgent, so it would be nice if someone could look into this:
https://github.com/stripe/stripe-android/issues/9210

What have you already attempted?
tried CardInputWidget and CardMultilineWidget.
happens both for createPaymentMethod and createPaymentMethodSynchronous

#

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

Code
var invoice = await invoiceService.CreateAsync(new InvoiceCreateOptions
{
AutoAdvance = false, // Should this be true instead?
CollectionMethod = "charge_automatically",
Customer = customerId,
Metadata = metadata,
Currency = currency,
},

Question
Hi, I am accepting payments in my app using intents, but I'd like to switch to invoices instead. I want to complete payiments asking card data/accepting payment to the user (i.e. not suck money automatically). I am not sure about the value of "AutoAdvance". Should it be true or false?
Thanks!

What have you already attempted?
Setting AutoAdvance to false seems to work, but I am unsure about what happens if it is true insteaf

What are you working on?
Switching from Payment Intents to Invoices for in-app payments

cursive heronBOT
#

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

Question
What is the default value of https://docs.stripe.com/api/payment_intents/object#payment_intent_object-payment_method_options-us_bank_account-preferred_settlement_speed ?

What's the effective difference between both values in terms of speed of settlement ?

Related Request ID(s)
https://dashboard.stripe.com/payments/pi_3PxJqhH5tvrIOuhg0lX8q3BM

What have you already attempted?
Check the payment intent payload to find the information, but not present.

cursive heronBOT
#

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

Question
i used "stripe.paymentIntents.create" for create payment intent but not accepet the point value why ??
For example 2.23 this type value

Related Request ID(s)
N/A

What have you already attempted?
i used "stripe.paymentIntents.create" for create payment intent but not accepet the point value why ??
For example 2.23 this type value

What are you working on?
i used "stripe.paymentIntents.create" for create payment intent but not accepet the point value why ?? For example 2.23 this type value

#

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

Question
How to retrieve the Stripe fees applied to a payment intent ? (for example if Stripe applied fees of 3,37€ on a 92,63€ payment, how can I have this information via the API ?

Related Request ID(s)
pi_3PttMVBUxI0iDqKA26ljYnJG

What have you already attempted?
I tried to retrieve the payment intent or its charges but I did not found the fees amount of any payment intent.

What are you working on?
An invoice for our customers

#

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

Question
We are creating subscriptions with a custom renewal day ( billing_cycle_anchor). Now we run into the problem that subscription should renew on the 1st of the month at 2am. The location has the timezone Europe/Helsinki. When we convert the date time into UTC, the renewal day is then the last day of the month before at 11pm. And all the subscriptions don't renew on the 1st. They renew on the 31st or 30st. If we create a subscription through the dashboard with custom billing cycle, the same issue happens. Is this something you are aware off?

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

What have you already attempted?
We now tried also using the field "billing_cycle_anchor_config". But same issue. So we changed the time that the day in utc is them same day we want to renew and this fixed the issue. But now the renewal does not happen in location time at 2am. Instead for Helsinki it is at 3am morning. Not a big issue. But for other locations it could happen that it renews somewhere.

cursive heronBOT
#

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

What did you expect to happen?
Integration test suddenly started failing with "This promotion code has been used up."
But nothing changed.

What actually happened?
in Stripe test (legacy) env, I created promo code with "max_redemptions: 1" and tried to create subscription with it but it fails.
It shows used on the dashboard for a while but becomes not used after some time.

Reproduction Steps
- create coupon and promo code with "max_redemptions: 1" via API
- Example: "promoCode - TESTSINGLEUSEPROMOCODE74110; coupon - t0kQz5WC"

Question
Why it started happening? It was working fine yesterday.

cursive heronBOT
#

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

Question
I want to go from automatic tax to dynamic tax rates for stripe checkouts.

I have created a tax rule for Belgium and my company is from the Netherlands. I have created 0% tax rule.

After the checkout is completed I see 0% vat on the invoice. However, in European countries it should say "Btw verlegd" (VAT shifted).

When using automatic tax rate this is correctly shown on the invoice, when using dynamic tax rates it is not. How can I add "BTW verlegd" instead of 0% vat rate.

Doc/Guide Links
https://dashboard.stripe.com/test/tax-rates

What are you working on?
Migrating from automatic tax to dynamic tax rates

cursive heronBOT
#

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

Question
my totalRate is 6199 , processingFee is 210,
now when i am creating the payment intent thenin the connected account payment is correctly working of 5400 and in admin account it is 1009 cents and I am taking stripe processing fees from the admin account so from the calculation 2.9+0.3 cents it is coming 2.10 but in stripe it is showing 2.54$. I can't find the 0.44$ reccord maabge that in admin accoubt. in connected account it is perfectly working.

Related Request ID(s)
N/A

What have you already attempted?
my totalRate is 6199 , processingFee is 210,
now when i am creating the payment intent thenin the connected account payment is correctly working of 5400 and in admin account it is 1009 cents and I am taking stripe processing fees from the admin account so from the calculation 2.9+0.3 cents it is coming 2.10 but in stripe it is showing 2.54$. I can't find the 0.44$ reccord maabge that in admin accoubt. in connected account it is perfectly working.

What are you working on?
i used "stripe.paymentIntents.create" for create payment intent but not accepet the point value why ?? For example 2.23 this type value

cursive heronBOT
#

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

Question
How to manage charges and separate transfers?

Related Request ID(s)
req_84XupdpZUfUX76

What have you already attempted?
Hola, estamos trabajando en un proyecto de marketplace donde los usuarios venden productos y cuando se completa el proceso del pago y se ha verificado la recepción del producto, el sistema tiene que hacer una transferencia al vendedor en función de varios parámetros. La plataforma utiliza Stripe Connect para gestionar las cuentas conectadas. Hemos realizado el Payment Intent sin problemas pero cuando vamos a hacer la transferencia, la API nos devuelve un error indicando que no hay saldo.

What are you working on?
Marketplace like Vinted or Wallapop

cursive heronBOT
#

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

Question
Why stripe does add suffix to the local endpoint?

Related Event ID(s)
evt_3PxSOBKYpOxYIfBu1IeauflD

What have you already attempted?
I've set the local endpoint by using 'stripe listen --load-from-webhooks-api --forward-to node:4000/dev/webhooks/stripe --forward-connect-to node:4000/dev/webhooks/stripe'. But when I trigger any event, it sends to ' http://node:4000/dev/webhooks/stripe/staging/webhooks/stripe'.

#

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

Question
Can not find alipay or wechat in my payment element.

Related Request ID(s)
I use payment method Id approach of selecting payment methods of payment element,

What have you already attempted?
I made sure that alipay and wechat are enabled from the dashboard, opened a vpn to navigate to china, made sure subscription plan is cny.

cursive heronBOT
#

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

Question
Hello, we have a question about payment intent. It has already been a couple of days in "requires_action" status. My question - is it going to at some point go to "canceled" status? Or do we need to cancel it manually? Or do we need to define a timeout when we're creating the intent?

```json
{
"id": "pi_3PwQ............",
"amount": 3500,
"object": "payment_intent",
"review": null,
"source": null,
"status": "requires_action",
"created": 1725723621,
"invoice": null,
"currency": "eur",
"customer": "cus_Qo2........",
"livemode": true,
"metadata": {
"id": "JLeZd........

Related Request ID(s)
don't have access

What have you already attempted?
read docs

#

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

Question
How do I make the stripe.confirmPayment() client side API call from my Rails rspec tests?

Related Request ID(s)
https://dashboard.stripe.com/test/logs?showIP=false&object=pi_3PxRGhFHJXqhlf1I0VMpx00S&method[0]=post&method[1]=delete&direction[0]=self&direction[1]=connect_in

What have you already attempted?
I tried to find a way to do it via the API docs - but I'm stumped and can't find anything.

What are you working on?
I'm trying to add a test of the payment element process from client to server. I can create the Intent, but I can't see how to confirm the Intent and finish transaction. Is there a way to do this fr

#

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

Question
I have a scenario where customers may have several different subscriptions at once. Sometimes a credit needs to be applied to one of those subscriptions, for example the customer might want to pre-pay us for several years of a subscription.

Ideally I want the credit to only ever be applied to the specific subscription that they prepaid for, but often one of the other subscriptions will renew first and have the credit applied to its invoice.

I understand that this is just the way Stripe operates, but what do other users do in this scenario where they need credit to belong to a particular subscription?

Doc/Guide Links
https://docs.stripe.com/billing/customer/balance?locale=en-GB

What are you working on?
Subscription system

#

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

Question
Getting the statement_descriptor for a payout (po_) returns X, however the actual statement descriptor on the bank transfer is X + Y. We need to get the Y part as well, so that our connected accounts can tie the bank transfer to the payout.

Related Request ID(s)
-

What have you already attempted?
payoutObject.statement_descriptor

What are you working on?
Stripe Connect

#

@broken crown 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/customer-management/integrate-customer-portal#redirect

Question
I'm trying to create a customer portal session with the java sdk on latest api version. The documentation is completely outdated and I can't find resources how I should approach the problem.

What have you already attempted?
I've tried the code used in the guide:

    Session.create\(
      SessionCreateParams
        .builder\(\)
        .setCustomer\(customerId\)
        .setReturnUrl\(returnUrl\)
        .build\(\)
    \)

Which returned a message saying that non-embedded sessions can't use the return url.
Then I tried using the successUrl, instead which returns this message:
You must pass either `subscription_data` or `line_items` or `mode`.; request-id: req_kOt3TpAV9Gmkhl

I'm quite confused at this point, I just want to provide the session link for the customer portal.

#

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

Question
Error
processing message: The expected signature was not found in the Stripe-Signature header. Make sure you're using the correct webhook secret (whsec_) and confirm the incoming request came from Stripe.

Related Event ID(s)
charge.pending

What have you already attempted?
everything

What are you working on?
Implementing Stripe-Signature in webhook event

#

@drifting tiger 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/destination-charges?destination-or-on-behalf-of=on-behalf-of

Question
I'm using the approach above for connect clients. I have the use case of actually updating the `application_fee_amount` based on the payment method. So for example, if the user paid with Klarna, we'd have a fee. If they paid by card, we'd have another fee. If they paid with an international fee, we'd set another fee.

What have you already attempted?
While I haven't implemented anything, I think I could achieve this by using a SetupIntent and then trying to collect the payment method and then create the PaymentIntent. But this seems rather time intensive on our end so was hoping that there might be a hook / or a way to update that value? So basically hooking into https://share.zight.com/E0uOzlzW

cursive heronBOT
#

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

Question
I thought I had disabled the ability for our connect clients to use async payments on the checkout session by passing "verification_method": "instant" but customers are still able process async payments in checkout sessions.

Related Request ID(s)
evt_1PxSwsEA4vuFgdQuWgH2cbbK, req_xIVhLDoKSji0CY

What have you already attempted?
passing "verification_method": "instant" when creating a checkout session

What are you working on?
large b2b SaaS

cursive heronBOT
#

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

Question
What are payatt_ transactions when exporting failed payments ?

Related Request ID(s)
N/A

What have you already attempted?
Contacting Stripe support

What are you working on?
Finding out why we have 20% failed payments instead of the regular ~4%

cursive heronBOT
#

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

Code
$stripe = new \Stripe\StripeClient($stripeSecretKey);

$payload = @file_get_contents('php://input');
$sig_header = $_SERVER['HTTP_STRIPE_SIGNATURE'];
error_log("Stripe-Signature Header: " . $_SERVER['HTTP_STRIPE_SIGNATURE']);
$event = null;

Question
Hi, I have a problem with the Stripe Webhook. Checkouts have up until now been going through fine however since today some of the checkouts give an error.
The webhook gives an:

401 Response body: Invalid encoding: ISO-8859-1

However some of the checkouts do go through. Which makes it unclear to me how to fix this.
Its also not only Webhook, also the other method to check if a payment has been checked through the API sometimes seem to fail today.

What have you already attempted?
I have already checked if the Secret Keys are the same. Also tried to check the Stripe-Signature.

What are you working on?
Building a website that allows users to send files.

cursive heronBOT
#

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

Question
I encounter an issue with report result (by api + webhook). I don't get the same data than in the admin. In my report all is at 0

Related Request ID(s)
frr_1PxURECO9JuZ9eUmHZS4LvKp

What have you already attempted?
I didn't try everything new, as in my test env it seems to work, but in prod i get this

What are you working on?
accounting data

#

@desert solstice 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

Question
We are building a lead managment system based on Stripe Subscription model. I am hopeful that the user will purchase leads in advance (10,40,100...etc.) The more they buy, the lower the lead costs.

1 Lead- Free
1-5 Leads- 50 each
6-20 Leads- 45 each
21-50 Leads-40 each
50-100 Leads- 30 each
Over 100- Franchise/Enterprise Solution- Contact Us

We would automatically rebill their cards at the same level when their credits run out.

What have you already attempted?
Tiered Pricing

#

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

Question
Why can I not change the 'email_receipts' toggle to on for a stripe standard connected account?

Related Request ID(s)
none

What have you already attempted?
The error I get is "This application does not have the required permissions for the parameter 'payments' on account Stripe_Connect_id"

Why does this not work for standard accounts, is their a way to do this without the user doing this manually?

Why does this not work for standard accounts, is their a way to do this without the user doing this manually

#

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

Question
how can I create a confirm a setup Intent with a card token?

Related Request ID(s)
none

What have you already attempted?
from the frontend I'm receiving tokens of the card and I want to save to the customer but I want the card is reusable

#

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

Question
How to add multiple payment methods in Payment Element?

Related Request ID(s)
I don't know

What have you already attempted?
I've done payment element, but I also need googlePay, PayPal, upi, multiple card etc. methods

cursive heronBOT
#

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

Code
sorry I do not have code yet

Question
I am hosting a website on WordPress. I want to be able to have a stripe checkout integrated into a form or page that allows customers to authorize only $500. then I can capture later via the stripe dashboard.

I have a little coding experience, but not sure how to integrate this into my website.

What have you already attempted?
I have searched for plugins that already do this, but can't find any that have authorize and capture later.

What are you working on?
I am hosting a website on WordPress. I want to be able to have a stripe checkout integrated into a form or page that allows customers to authorize only $500. th

#

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

Question
When BACS Direct Debit customers switch banks, we receive a payment_method.automatically_updated event followed by mandate.updated event which renders the current payment_method's mandate inactive. About 6 days later a new mandate.update event appears with a new mandateid with same payment method as previous mandate, but it seems to be same mandate with diff reference number. Does this mean customer has an inactive mandate during those 6 days? When is new mandate generated/why is old mandate inactive as its the same mandate with same agreement date? It's hard to get active mandate for customer

Related Event ID(s)
evt_1PY6OoCFE1KEriEVTlnOkKVk evt_1Pa51lCFE1KEriEVpSjdchp5 evt_1PY6OnCFE1KEriEVGGFZ29vi

What have you already attempted?
Searched through multiple clients who had payment_method.automatically_updated event

What are you working on?
Webhook that syncs stripe payment method + status (mandate) with our own database

#

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

Code
The error I'm getting with my API key:
The provided key 'rk_live_*********************************************************************************************6' does not have the required permissions for this endpoint on account 'acct_****'. Having the 'rak_usage_record_read' permission would allow this request to continue.

Question
What is 'rak_usage_record_read'?

What have you already attempted?
Work

#

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

Question
ACH credit transfers are being deprecated. How should we handle customers who have ACH credit transfers as one of their payment method and are still using it after the deprecation.

Related Request ID(s)
N.A

What have you already attempted?
N/A

cursive heronBOT
#

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

Question
We want to set up PaymentIntents for bank accounts with recurring mandates. But we seem to be doing something wrong, because subsequent PaymentIntents for the same account come back with REQUIRES_CONFIRMATION.

Related Request ID(s)
pi_3PxCDdBIMZTJKM1c09PfAOSn

What have you already attempted?
Gone through the docs, we're already using the SetupFutureUsage parameter.

What are you working on?
Notch

cursive heronBOT
cursive heronBOT
#

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

Code
MeterEventCreateParams params = MeterEventCreateParams.builder()
.setEventName(meterEventName)
.putPayload("value", "1")
.putPayload("stripe_customer_id", customerId)
.setIdentifier(idempotencyKey)
.setTimestamp(timestamp) // hard coded timestamps to test exceptions
.build();
return MeterEvent.create(params);

Question
hello, I am trying to test sending usage after the invoice close. I am using the meter events.( /v1/billing/meter_events) my timestamp is Monday, September 9, 2024 17:15:01 GMT-06:00 DST. My invoice from 09-09 to 09-10 is closed and paid. My response returns a 200 . I was expecting an exception. and no usage is getting added to the closed invoice nor to the open invoice. Any suggestion as to what I am doing wrong?

What have you already attempted?
I tried using the time simulation and that didn't work either.

What are you working on?
sending api usage to stripe

#

@short oak 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/save-during-payment?platform=web&ui=elements#detect-the-selection-of-a-saved-payment-method

Question
For the saved card feature on the payment element, there is a checkbox that says "Save Payment Details for <company>." I noticed that the onChange function for the payment element does not listen to if this checkbox is ticked or not. Is there a way to listen in on if the checkbox is ticked?

What have you already attempted?
console logging the onchange event on the payment element

What are you working on?
Migrating my current checkout to the PaymentElement i

cursive heronBOT
#

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

Code
Something changed w/ elements inner payments in the last 24 hours - I am trying to toggle from card to klarna payment

Question
Klarna payment method is throwing this error inside my payments element.

elements-inner-payment-caedbc990455cd48f2966ea09d3d19cc.js:1 Uncaught TypeError: Cannot read properties of undefined (reading 'label')
at klarna (elements-inner-payment-caedbc990455cd48f2966ea09d3d19cc.js:1:998491)

What have you already attempted?
Tried upgrading client version

What are you working on?
Integrating Klarna recurring feature

cursive heronBOT
#

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

Question
Is there a way to look up Invoices that utilize a particular Tax Rate ID?

Related Request ID(s)
(none)

What have you already attempted?
Looked at what's available on the Dashboard and in the API docs.

What are you working on?
Identifying affected invoices of incorrect Tax Rates

cursive heronBOT
#

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

Code
An unexpected error occured while calculating taxes for this address.

Question
When navigating to a checkout session in test mode, and I enter a valid address (autocompleted), I receive the above message. (An unexpected error occured while calculating taxes for this address.)

What have you already attempted?
Production works fine.

I cannot see the logs, because this is happening front end side, before I can even hit the submit button.

#

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

Question
Hi im trying out to use the test clocks to test my trial ended flow for our app. however when i try to advance the clock it says failed to advance clock.

Related Request ID(s)
NA

What have you already attempted?
i checked in the app logs and on the network logs but dont seem to have a solution for it

#

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

Question
Stripe API Status 500 Error: An unknown error occurred

Related Request ID(s)
req_ScFk05K2GMvGKt, req_xwewJj4XyNt5m3, req_002n7REsEOavjq

What have you already attempted?
Normally my request was coming successfully, but then I noticed that it suddenly started giving a 500 error. Is there a problem with the API system?

cursive heronBOT
#

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

Question
i have a customer that delayed his payment and his subscription was canceled, invoice marked as uncollectable . After that the user have paid this same invoice but the subscription remains canceled. How could i proceed to renew his subscription.

Related Request ID(s)
no

What have you already attempted?
I've tried to renew his existing canceled subscription but i didn't find any way to do it.

What are you working on?
i have subscription based app.

#

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

Question
Question about Application fee API, can it be implemented on product level or account level only.
I want to charge an application fee on direct charge for some products and not all.

Related Request ID(s)
N/A

What have you already attempted?
N/A

What are you working on?
Platform fee on specific product only

#

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

Question
Hi, I am using stripe Salesforce connector for the integration and I am stuck with the test classes. I need to create a HTTPMockUp Class, but the URL is not showing due to which I am not able to pass the response in mock class

Related Request ID(s)
req_kVBqi0dugo6sw6

What have you already attempted?
I've tried to create a custom Mockup and it is not working

What are you working on?
Salesforce stripe integration

#

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

Question
If I add a customer and their payment methods to a connected account, can the customer use their payment methods on another connected account under my main account without recreating the payment methods

Related Request ID(s)
?

What have you already attempted?
Nothing, this is a question about the relationship of customers and their payment methods under a connected account

What are you working on?
A platform where a global customer can pay various connected accounts for services

#

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

Code
server
```ts
const setupIntent = await stripe.setupIntents.create({
customer: customer.id,
payment_method: "paypal",
payment_method_types: ["paypal"],
payment_method_data: {
type: "paypal",
},
});
```

web
```
const { setupIntent, error } = await stripe.confirmPayPalSetup(
clientSecret,
{
return_url: `${process.env.NEXT_PUBLIC_DOMAIN_NAME}/paid`,
}
);
```

Question
I can't get setting up PayPal to work. What am I doing wrong? I am receiving the message: `"A payment method of type paypal was expected to be present, but this SetupIntent does not have a payment method and none was provided. Try again providing either the payment_method or payment_method_data parameters."`, but I've already tried that.

What have you already attempted?
Setting payment_method_types and payment_method_data to PayPal when creating the setup intent

What are you working on?
Setup Intent

#

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

Code
stripe.Account.modify_capability(
"acct_1CmEuvFjAq3Pk1RD",
"jcb_payments",
requested=True,
)

Question
We are looking to allow Stripe Connect Accounts, which will be located in Japan, to accept JCB card payments in the Japanese Yen (JPY) currency. Currently, when testing a card payment using the Japan JCB card number here (https://docs.stripe.com/testing#international-cards) we receive the message "Payment Denied. Your card is not supported for this currency." The payment attempt is in the JPY currency. What do we need to do to accept JCB card payments in the JPY currency?

What have you already attempted?
We have read the docs here (https://support.stripe.com/questions/integrating-jcb-payments-for-connect-platforms-and-connected-accounts) and API docs here (https://docs.stripe.com/api/accounts/update?lang=python#update_account-capabilities-jcb_payments). Should requesting the `jcb_payments` capability for the existing Stripe Connect Account allow for payments in the JPY currency? Is there some other action that needs to be taken to accept card payments in the JPY currency?

What are you working on?
Payment gateway for customer's Stripe Connect Account in Japan to accept JCB payments in Japanese Yen

#

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

Question
Can Stripe Virtual Bank Accounts receive bank transfer payments on the weekend?

Related Request ID(s)
No IDS

What have you already attempted?
From my understanding, traditionally, you can only send wire transfers on business days. However, I wasn't sure if Stripe Virtual Bank Accounts provide an avenue around this restriction. ie. Is this an issue on the sending and/or receiving side? Is it a brick-and-mortar issue? Is it gated by the fed/does fed now make this possible?

So tl;dr: Are Stripe Virtual Bank Account bank transfers subject to the same traditional limitations?

#

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

Question
Is there a way to set an Invoice Template for a Subscription using the API?
And if not, is there a way to set the default subscription template for all subscriptions on an app-wide basis?

Related Request ID(s)
N/a

What have you already attempted?
I've tried posting to the update Subscription endpoint with invoice_settings.rendering.template set to my template's ID (tried this b/c that's what the logs show when performing this action through the dashboard) but no luck there.

cursive heronBOT
#

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

Question
Hi, I'm a software engineer at Twilio. We integrated with Stripe many years back, and Twilio has a Stripe platform account that lets us do transactions on behalf of Twilio's merchants. Now one of our merchants is asking us to integrate with Stripe's "confirm a payment intent" endpoint to confirm payment intents that they create in their environment. Is this possible, and if so, what additional parameters do we need to pass to accomplish this? Specifically we are getting stuck when we try to retrieve the payment intent object using its payment intent ID: https://docs.stripe.com/api/payment_intents/retrieve We get this error: No such payment_intent

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

What are you working on?
paymentIntent

#

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

Question
We sell subscriptions to access professional training, and we also sell (optional) VR hardware kits for it. They're not paired - each is optional (they may need more HW or more seats or both). I want to use your hosted checkout pages to sell 0-n subscriptions and/or 0-n headsets, but the Checkout samples I see support either subscriptions or items. In the docs I think I see I can add line items of either type to a checkout session. Will this display correctly in a hosted checkout page? I want to write as little as possible front-end checkout UI on my side. Or is there a better approach?

Related Request ID(s)
n/a

What have you already attempted?
Nothing. I'm evaluating moving this from another store backend (Zoho Billing)

What are you working on?
I have an existing site/store setup, and am looking for minimal changes :)

cursive heronBOT
#

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

Question
I would like users to authorize a payment for a bid upon checkout. Then if they win the bid I want the payment to go through. Otherwise, I want it cancelled

Related Request ID(s)
N/A

What have you already attempted?
I have been exploring the docs and checked Checkouts, Payment Links, Held Payments etc. I saw there is a hold for 30 days. The problem is that for our use case people will be making bids 8-12 weeks in advance.

What are you working on?
A platform where people can bid on large services. The wait time between bids being accepted and product being delivered can be up to 8-12 weeks.

cursive heronBOT
#

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

Question
On the customer billing portal, is it possible to show an invoice description to the customer? Right now it shows the price_id description, but we're wanting to add something more detailed.

Also, is it possibe

Related Request ID(s)
n/a

What have you already attempted?
Tried adding a note on invoice, but it doesn't show up in customer billing portal invoice.

What are you working on?
Customer import to a custom laravel app and wordpress billing portal login for customer acess.

cursive heronBOT
#

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

Code
'line_items' => [
[
'price' => $superFanPriceId,
'quantity' => 1,
'adjustable_quantity' => [
'enabled' => true,
'minimum' => 0,
'maximum' => 1,
],
],
[
'price' => $fanPriceId,
'quantity' =>

Question
We want to have two items show up on the checkout page so the user can see the price and description before deciding which to choose.

What have you already attempted?
I tried just having the two line items, and also using adjustable quantity with min 0 and max 1. This works in a sense, but the starting total is the sum of both items, and the adjustment of quantity and description is hidden under a "Details" disclosure window.

What are you working on?
An app for fans to join their music fan clubs.

cursive heronBOT
#

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

Question
What's the proper way to create a one-off Subscription Invoice WITHOUT the Subscription's default tax rates applied?

Related Request ID(s)
req_TktaNcQ8eihbHA

What have you already attempted?
1) I've tried setting an empty string -> errors
2) I've tried not setting the `default_tax_rates` parameter -> gets the defaults from the Subscription.
3) I've tried setting an empty array -> gets the defaults from the Subscription.

What are you working on?
Testing one-off subscription invoices

#

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

Question
I need a way to bulk retrieve all the request logs for a specific period of time from an IP. I can find it in the Stripe developer dashboard, but I don't have a good way to "export" that data. Example request IDs are just examples of about a hundred or so. I need to get the `timestamp` from the response body.

Related Request ID(s)
req_rKe0g5onJQx8CO, req_KFz8L53hQhcf2m

What have you already attempted?
Tried to scrape data from https://dashboard.stripe.com/logs?showIP=true&created[gte]=1725940800&created[lte]=1726027199&success=true&method[0]=post&method[1]=delete&path=%2Fv1%2Fsubscription_items%2F*%2Fusage_records&remote_ip=68.129.122.65&dashboard=false&direction[0]=self&direction[1]=connect_in&starting_after=1725992046-req_3eoPQ211Ag3Duh

What are you working on?
Trying to reverse usage records that were created improperly

cursive heronBOT
#

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

Code
const stripeElement = Stripe('pk_.....').elements({
mode: 'setup',
currency: 'aud',
paymentMethodCreation: 'manual'
});
const cardNumberElement = stripeElement.create('cardNumber', {
showIcon: true,
iconStyle: 'solid'
});
cardNumberElement.mount(this.refs.cardNumber);
const cardExpiryElement = stripeElement.create('cardExpiry');
cardExpiryElement.mount(this.refs.cardExpiry);
const cardCardCvc = this.stripeElement.create('cardCvc');
cardCardCvc.mount(this.r

Question
Hi Stripe dev, good day!

We are having an issue using Stripe's "Other Elements". We referenced "cardNumber", "cardExpiry", and "cardCvc" from "Other Elements" in our form. Today, our form was stuck in a loading screen, and we received this error message: Elements cannot be mounted in a ShadowRoot. Please mount in the Light DOM.
It was working fine yesterday but this issue occurred today for the first time since we used the element. Can you help us with the issue? Thank you!

What have you already attempted?
We debugged our form and received a response from the first declared element, but not from the rest.

cursive heronBOT
cursive heronBOT
#

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

Question
I've set a subscription schedule to downgrade a customer's plan to another plan. I want to listen for a webhook prior to the scheduled change being applied to the customer's subscription so that I can verify their account is in a state where the plan can be downgraded. e.g. if they too many users on their account and the plan they're downgrading to doesn't support that user count, I want to be able to release the schedule and renew at the level they were already at prior to the scheduled downgrade. Which webhook event should I be listening to?

Related Event ID(s)
No event ids to share

What have you already attempted?
I've attempted to listen to the `subscription_schedule.updated` event but when testing with test clocks it's hard to determine if this is the correct event.

cursive heronBOT
#

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

Question
hello!

We currently offer Klarna and Alipay payments utilizing elements from https://js.stripe.com/v3/ and we are utilizing “return_url” to receive the result after the payment is completed on the payment service page.
In most cases, the “return_url” returns the customer to our service after the payment is completed, however, we are experiencing an intermittent issue where the customer's payment is successfully completed but no callback is returned to our service and no order is created.

In order to resolve this issue, I would appreciate if you could share any guide articles I should read or

Related Request ID(s)
pi_3PoJllEBFG6Yi3HC1YGchdud

What have you already attempted?
I've read the development documentation from Alipay and Klarna, and I've seen how and what return_url is used for.

What are you working on?
I want to resolve the issue of not returning to the service after a payment is made.

#

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

Code
app/code/StripeIntegration/Payments/view/frontend/web/js/view/payment/method-renderer/stripe_payments.js

onCvcChange: function(event)
{
if (event.error)
this.selection().cvcError = event.error.message;
else
this.selection().cvcError = null;

    // i am trying to show error here

},

Question
I'm using Magento 2 with Stripe, and for saved Amex cards, payments still succeed even when the user enters any random 3-digit CVC.

What have you already attempted?
For Amex card, CVC allow any 4 digits
ref: https://docs.stripe.com/testing

What are you working on?
Magento EE 2.4.6-p3

#

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

Question
What is the recommended method to charge late feeds and or interest on one time invoices? I've found the link below that alludes to this might be possible, at least in Germany. However, I haven't found a method that would allow tacking on the late fees and/or interest to the existing invoice without voiding it, making a revision, and giving it a new invoice number and a new due date.

Doc/Guide Links
https://stripe.com/resources/more/late-payment-interest-in-germany

What are you working on?
porting our billing system to stripe

cursive heronBOT
#

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

Code
We use standard connect. We use API to onboard/connect other stripe account with our platform account. It works well in test environment but failed in live environment.

Question
Onboarding with API works well in test environment but it it didn't work out in live environment when customer tries to provide their bank details in stripe onboarding UI. Customer has authorised bank account but It didn't come back from bank screen to stripe. It stays there only.

What have you already attempted?
Use standard connect with onboarding API in live environment.

After creating an account in stripe via our backend API, we generate a Connect standard link.

We currently open this link in a mobile web view using the webview_flutter: ^4.9.0 package within our Flutter application. This is where we're encountering the issue.

As a test, we copied the link and opened it directly in a mobile browser (Safari on iPhone). This worked correctly.

What are you working on?
Has anyone faced such issue where customer tries to authorise their bank details on stripe onboarding screen and it didn't move further after that authorisation

cursive heronBOT
#

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

Question
I use /v1/prices to create product prices, postbody ={
"product": "prod_Qp5TptkAFlUY3l",
"currency": "inr",
"unit_amount_decimal": "520"
}, why the price of the product after creation is displayed as ₹5.20

Related Request ID(s)
req_WiMQ5W1Q9a8qJZ

What have you already attempted?
no

#

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

Question
I want to add Payment method in my Payment Element, like Google Pay, Apple pay, Ideal, etc.. How can i do so?

Related Request ID(s)
Look in https://docs.stripe.com/ > Payments > Payment Element

What have you already attempted?
I have added the Payment Element, but there are no any payment methods displayed for Payment Element UI displayed in docs.

What are you working on?
Payment Element

#

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

Question
Hi, in our application we have different stripe accounts. Our customer is created on country specific stripe account. GB customer in GB stripe account, AE customer in AE Stripe account... For AE customers we have an exception. If new AE customer is adding amex credit card which is not supported in AE stripe account we create customer in GB stripe account.

Can you give me an idea how to create setup intent for such customer and how to create him in correct stripe account.

Related Request ID(s)
/

What have you already attempted?
Currently when AE customer without any payment methods (doesn't exist in any stripe account) is adding new payment method in our app we give customer an option to add amex/visa or mastercard payment method (two different buttons). Upon selection we fetch correct stripe publishable key which is used for stripe initialization in our react native app. Then app client sent pub key on our API where we create setup intent in correct stripe account (based on received pub key) and returns setup intent client secret. Then in mobile app intent client secret is used to initialize form for adding

What are you working on?
payment method.

cursive heronBOT
#

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

Question
Hi, I am trying to implement the Setup Intents. I have issues with sca though.
I am sending
"payment_method_types": {
"0": "card"
},
"usage": "off_session"
using 4000002760003184 and after I confirm the 3dsecure in the backend where I do \Stripe\PaymentIntent::create() (php)

I get authentication_required
normal cards work ok, and even the other types of sca cards: 4000008260003178, 4000003800000446

any info would be appreciated :)
thanks

Related Request ID(s)
req_ciYrpBpDDK5QOv, req_icOqjPEwMOvaoS, req_q3FWvjmiKV9EMk

What have you already attempted?
the params fro the create intent are:
"amount": "100",
"capture_method": "automatic",
"confirm": "true",
"confirmation_method": "manual",
"currency": "usd",
"customer": "cus_Qp8lQR0oX1Pswu",
"description": "test 1",
"off_session": "true"

What are you working on?
we have a checkout page that already does payments and we want to implement google pay and apple pay

cursive heronBOT
#

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

Question
Hi, i talked to you yesterday for issue with reports (not the same data in the dashboard and in the generated files with API) . I tried as you said using prefixed report type with 'connected_account_balance.summary.1', but with those report types i got error when trying to create "'This report type is only available to Connect platforms with Custom or Express accounts'".

Related Request ID(s)
n/a

What have you already attempted?
this

What are you working on?
accounting data

#

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

Question
Is it possible to configure a product with add-ons in Stripe's low-code pricing table?

Otherwise, how to implement this model with Stripe?

Doc/Guide Links
https://docs.stripe.com/billing/subscriptions/designing-integration
https://docs.stripe.com/products-prices/pricing-models
https://docs.stripe.com/no-code/pricing-table
https://docs.stripe.com/payments/checkout

What are you working on?
I am building the pricing model of a recurring subscription to use a service with tier prices. Additionally customers should be able to select service customization add-ons with a recurring flat price.

#

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

Code
expressCheckoutElement.on('click', (event) => {

let shipping\_rates = \[
    {
        id\: 'standard\-shipping',
        displayName\: 'Standard Shipping',
        amount\: 799,
        deliveryEstimate\: {
            maximum\: {unit\: 'day', value\: 2},
            minimum\: {unit\: 'day', value\: 1}
        },
    }
\]

if \(STRIPE\_VALUE \>= 10000\) {
    shipping\_rates = \[
        {
            id\: 'free\-standard\-shipping',

Question
On expressCheckoutElement click I'm needing to refresh the value as users are able to add a tip at checkout. The issue I'm currently experiencing is if you select a tip and go to express checkout the value is correct, however if you exit and the amend the tip the value is incorrect.

What have you already attempted?
I've looked at the following documention however no luck finding an event that would support this required action https://docs.stripe.com/js/elements_object/update_express_checkout_element

cursive heronBOT
#

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

Code
Invalid param: file, found: Android manifest includes 4 disallowed permissions: [android.permission.READ_SMS, android.permission.READ_PHONE_NUMBERS, com.google.android.providers.gsf.permission.READ_GSERVICES, android.permission.ACCESS_BACKGROUND_LOCATION]

Question
While submitting app it's give this error

What have you already attempted?
If i remove this permission it will allow me to upload app but over app needs this permission

What are you working on?
I want to submit app with this permission

#

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

Code
Our stripe element breaks on ideal checkout.

Uncaught (in promise) Error: Field "bank" does not exist for payment method type "ideal"

```
stripe.confirmPayment({
elements,
confirmParams: {
return_url: returnUrl,
payment_method_data: {
billing_details: {
name,
email,
},
},
},
});
```

Question
How can this be solved? Currently all our customers are down.

What have you already attempted?
Update stripe-js to the latest version. Still occurs.

What are you working on?
Ticketing platform with stripe connect.

cursive heronBOT
#

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

Question
How many Payment Methods are supported in India for Payment Elements?

Related Request ID(s)
Look in https://docs.stripe.com/ > Payments > Payment Element

What have you already attempted?
I have added the Payment element to the React JS project.

What are you working on?
Payment Element with Multiple Payment Methods Supported for specific Country.

#

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

Question
I had a bug on my side and I want to use the resened on failed events.
would the schedule retry still happen if I'll trigger the "resend" button?

Related Event ID(s)
evt_1PxkxwJxEKZ2zAynBNgxlaCR

What have you already attempted?
I clicked on retry but still see the schedule resend

#

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

Question
We're using the payment element but the 'bank' input field is no longer showing up suddenly. Causing urgent issues as the checkouts of our connect clients are broken.

The resulting error when trying to submit the payment is:
Uncaught (in promise) Error: Field "bank" does not exist for payment method type "ideal"
at elements-inner-payment-37958e8bc94afbc01817d8ded522cf1a.js:1:722275
at shared-883954770a9727acb80c821ad4a111ea.js:1:162153
at elements-inner-payment-37958e8bc94afbc01817d8ded522cf1a.js:1:726880
at Array.reduce (<anonymous>)
at elements-inner-payment-37958e8bc94

Related Request ID(s)
can't find

What have you already attempted?
Tested on all our environments local and remote. Everywhere the same.

We also haven't updated our application since friday, this issue is first reported since this morning.

#

@faint glade 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/legal/ssa

Question
Hello, as someone living in Turkey, I am planning to open a Stripe account with my US company. How can I use my account in a correct way without being suspended? Can I receive payment from Turkey? What would you recommend to prevent newly opened accounts from being suspended? Thank you.

What have you already attempted?
.

What are you working on?
Planning to open a Stripe account without getting suspended.

#

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

Question
We created a Payment Intent with a Bank Transfer as the payment method/Type. It shows a 3DS check had been requested for the card holder. Is this expected?

Related Request ID(s)
pi_3PxHEbDQ1y5Lg5MJ0OEKJ8of, req_PEoBvNDbZwDnwN

What have you already attempted?
Will be cancelling the payment intent. Not sure of next action.

What are you working on?
Invoicing that allows clients to pay by bank transfer without manual interaction with the system

cursive heronBOT
#

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

Question
Hi, it's me again... still struggling with reports, i contacted support as you said, but they don't understand. So I keep digging alone. for creating a report (https://docs.stripe.com/api/reporting/report_run/create?lang=node) the doc says we wan pass a connected_account param, so i tried this, and i got an error : "Received unknown parameter: connected_account". why ?

Related Request ID(s)
N/A

What have you already attempted?
everything in the doc, and still not working

What are you working on?
i don't even know anymore

cursive heronBOT
#

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

Question
We can't create a funding instructions (vIBAN) for SEPA based on Spain (`ES` value for country)

`ES` option is no longer on the `country` enum in documentation.

Is this an un-document change or just a temporal issue?

This option works just fine this morning 8am CEST. We understand that the easiest solution it just use another country, but we need to know if there are any expected time for this option to become available again.

Thanks!

Related Request ID(s)
req_8bqpouW26qTYNK

What have you already attempted?
We tried to create the vIBAN in `FR` without any issues

cursive heronBOT
#

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

Question
trying to implement the Embedded checkout on flutter web.
Using the stripe api to generate the clientSecret, but im unable to find in the api what i need to do with it to show the checkout link in the web app (client)

Related Request ID(s)
embedded checkout

What have you already attempted?
creating the clientSecret on my server.

What are you working on?
Flutter app

cursive heronBOT
#

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

Question
Hello,

As part of a marketplace, I create ‘separate payments and transfers’.

As the API specifies, I classify each customer order/payment with a ‘transfer_group’ attribute.

This works perfectly via the API, but I can't find any way from the dashboard to display the existing ‘transfer_groups’ (in order to see their remaining balances, or to separate our platform balance from the ‘pending’ amounts in these transfer groups).

Is there a way of viewing all this?

Doc/Guide Links
https://docs.stripe.com/connect/separate-charges-and-transfers?locale=fr-FR

What are you working on?
Managing marketplace

cursive heronBOT
#

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

Question
Possibilites to extend the migration process for the charges API

Related Request ID(s)
cus_9f5a3bd703d5afde90783d90714a8f89 payment_0a7a733dcb15ce34419191f45278969c

What have you already attempted?
Our clients are requesting the extension of the migration process

What are you working on?
Migration from Sources API to PaymentIntent API for our 6Storage product

#

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

Question
Hello. We use Stripe Checkout Sessions: https://docs.stripe.com/api/checkout/sessions/create And we want to enable "Klarna". I have enabled klarna in stripe settings. Do i have to pass something extra in API call?

Related Request ID(s)
req_test

What have you already attempted?
We create stripe checkout session and redirect user to stripe page to make page, but i'm not able to enable klarna in this checkout.

cursive heronBOT
#

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

Question
I have a checkout and many customers, i would like to know how can i add stripe api do pay in my own checkout.

Related Request ID(s)
Paymetns

What have you already attempted?
I read stripe had change and now it's only possible integrate with stripe's checkout.

What are you working on?
My own checkout payments

#

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

Question
I am a test user, and I am trying to create checkout buttons, instead of a normal checkout page in next js. First, I am doing apple pay. I am creating a paymentRequestButtonElement, and I have set up the apple domain. But, it is not letting me pay through apple pay (showing pay with link instead) and not letting me add shipping details, why?

Related Request ID(s)
req_ycEdIDYtIn5Bgi

What have you already attempted?
useEffect(()=> {
if(!stripe || !elements || amount===null || amount === undefined){
return
}
const pr = stripe.paymentRequest({
currency: 'usd',
country: "IN",

    requestPayerEmail\: true,
    requestPayerName\: true,
    requestPayerPhone\: true,
    requestShipping\: false  ,
    total\: {
      label\: "VVCandles Purchase",
      amount\: 99
    },
    paymentMethod\: \['card'\]
  }\)

Rest of the code is as per the video: https://www.youtube.com/watch?v=bMCsJfJyQKA&list=PLy1nL-pvL2M6HFApWUDSGA4Y7btyKx7cE&index=5

What are you working on?
Ecommerce website app

#

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

Question
We have the following case for a direct connected payment:
4 $ payment via the connected account, application fee is 4 $ minus the stripe fees. Is this possible with direct connect payments?

Related Request ID(s)
...

What have you already attempted?
Read docs

cursive heronBOT
#

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

Question
Hello,

I have carried out a lot of tests on my test environment. I want to test a new infrastructure. Is it possible to reset all my existing test data (payment, connected accounts, etc.)?

Thank you in advance for your feedback.

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

What are you working on?
Reset test data

#

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

Question
PaymentIntents are not returning a paymentMethod via api even though they have one in the dashboard.

Related Request ID(s)
pi_3PxUd4IPr1fEWVkW1w71uoYb

What have you already attempted?
I've isolated the code that fetches a paymentIntent and tried adding an expand to the call but still no luck.

#

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

Code
Stripe::Invoice.upcoming(
{
subscription: sub_id,
subscription_details: {
proration_behavior: 'create_prorations',
items: [
{
discounts: next_discount,
plan: plan_id,
id: sub_item_id
}
]
}
}
)

Question
I want to view the update to a subscription, and for this I'm using https://docs.stripe.com/api/invoices/upcoming API. But when I call with this, the existing line items are not removed from the invoice, instead new line item with the given plan is added. How should I rectify this?

What have you already attempted?
I tried to use the preview invoice API, but due to old SDK, that API is not there.

What are you working on?
trying to show the customer the updated amount and date of update before they accept the updates.

cursive heronBOT
#

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

Question
I am looking for a way to update customer's address info, without overriding any other data on the address object. I need to update either or both of country and postal_code, however, whenever I update via "POST /v1/customers/:id" request only specifying those two attributes, the whole object "address" gets overwritten. Is there by any chance a way to update only the given attributes (country and postal_code)?

Related Request ID(s)
N/A

What have you already attempted?
I have attempted to use the POST /v1/customers/:id request, however as I mentioned, it does overwrite the whole address object.
Also, I read a little about locations- thingy, but it is a bit of a headache, I do not want to add that kind of logic to my codebase as of now.

What are you working on?
Website Hosting

#

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

Question
Since 8am GMT this morning (11sth September), we're seeing odd behaviour with Stripe submitting web hooks - a 10% increase in 'pending' deliveries, resulting with a "Timed out connecting to remote host" error.

We've two separate web hooks pointing to two different services / applications, both are experiencing odd behaviour that began today.

Related Event ID(s)
evt_3PxpqCAMTZO1JfZx204Vc6Bt

What have you already attempted?
Network stack trace to our application - no outages, API responses are reported back within acceptable range.

Stripe dashboard indicates a retry button, which the web hook is accepted immediately.

#

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

Question
I want my customers to have more than one subscription using checkout sessions, how can I support that? Right now I'm not using the customerID on each new checkout session and when a user enters an email from an existing customer, we see a message saying "You already have a subscription with us"

Related Request ID(s)
Checkout Session, Multiple subscriptions

What have you already attempted?
Checkout sessions with different priceIDs

What are you working on?
Subscription flows

#

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

Question

  1. based on your answer, is it correct that for some payment types in Stripe, callbacks via return_url may not be guaranteed, so we need to utilize webhooks to ensure that we receive all the information about the customer's payment without missing anything?

  2. is it possible to receive both callbacks via return_url and webhooks?

  3. If #2 is possible, I want to prioritize the return_url to guide the customer to complete the order, but use the webhook to fill in the missing order information, will the callback via return_url and the payment confirmation via webhook occur at the same time? Or d

Related Event ID(s)
thank you

What have you already attempted?
I have an additional question to the answer that was revealed in the original thread.

What are you working on?
I have an additional question to the answer that was revealed in the original thread.

#

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

What did you expect to happen?
Event/webhook is sent again when you type in the Shell `stripe events resend evt_1PH9HU2eZvKYlo2CrSrLx8y1`

What actually happened?
I get the following error: `stripe command not found: events resend`

Reproduction Steps
Open Stripe dashboard (in test mode), open the Developers dashboard, open the shell tab, type in `stripe events resend evt_1PH9HU2eZvKYlo2CrSrLx8y1`

Question
How can I resend a webhook in test environment?

What are you working on?
Integrating webhooks

cursive heronBOT
#

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

Question
Hi, When I list the refunds, i get "payment_intent": null, on all of them. What is the cause we don't have it ?

Related Request ID(s)
req_zH3G40pbnvQjDR

What have you already attempted?
nothing especially, i have no clue

What are you working on?
accounting

#

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

Question
I receive the following error when I try to manually expire a session:
session_obj = stripe.checkout.Session.expire(checkout_id)
AttributeError: type object 'Session' has no attribute 'expire'

Has the expire function being deprecated? The docs still mention it.

Related Request ID(s)
None

What have you already attempted?
Tried to check the doc.

What are you working on?
An webapp with Stripe payment portal.

#

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

Question
Hi, I am a software engineer who works at Twilio. We have an integration with Stripe that was created many years ago. My understanding is that it is considered a Stripe extension (we have a "connect with Stripe" button that does Oauth). I've heard that stripe extensions will not be supported after 2024. Will this break anything for our existing users? Will it break our ability to acquire new users?

Doc/Guide Links
https://docs.stripe.com/stripe-apps/migrate-extension

What are you working on?
Twilio's integration with Stripe

#

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

Code
Your receipt from X #2658-3444-1863

Question
I recently made a payment for X premium which I got debited for but I didn't get the service I paid for. I was told to get in contact with stripe customer support

What have you already attempted?
I've contacted X support, My bank to see if there can be a reversal

#

@rain shore 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/versioning?shell=true&api=true

Question
Hi, how is it going? Since a few weeks ago I was spotting some endpoints that differs to the endpoints that I use in my code, and I was wondering, is there a way to open the api docs aligned to the version that I'm using? or does the api docs always show the latest version?

What have you already attempted?
I checked the api version changelog, but it is not enough for me

#

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

Question
“I am designing a platform that connects hairstylists with clients, which also includes a shop feature. I would like to implement digital wallets where hairstylists can accumulate their earnings, and where clients can hold credits that they can use either for appointments or for purchases in the shop. However, I am unsure how to integrate this feature. Could you provide guidance on how to set this up with Stripe?

Related Request ID(s)
n/a

What have you already attempted?
Nothing yet

What are you working on?
I am designing a platform that connects hairstylists with clients

#

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

Question
I’d like to know if, when I’m creating a payment intent, it’s possible to fill in some customer information so that the customer only has to check the data before confirming the payment. For example, here in Brazil, we have a payment method called 'boleto' (ticket) that requires the customer's name, email, document, and address. I already have this information on my platform, so when I’m creating a payment intent, I’d like to pass it to Stripe so that my customer doesn’t have to fill it in again in checkout.

Related Request ID(s)
NONE

What have you already attempted?
I tried to pass this information in shipping address while i'm creating the payment intents but it didn't work, i checked the documentation but i didn't find anything to help there

What are you working on?
i'm building a integration with stripe using my marketplace system

cursive heronBOT
#

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

Question
When creating an invoice with 'collection_method' set to 'send_invoice' the PDF contains a "Pay Online" link.

Related Request ID(s)
in_1PxsfIK4siagmU0S7WMunO1c evt_1PxsfIK4siagmU0SENSauPTw

What have you already attempted?
I tried setting the 'collection_method' to 'send_invoice' as I saw online, but the 'Pay Online' link is still visible.

What are you working on?
A invoice for stripe hardware orders

#

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

Code
Is there a possibility to "change" the quantity label on checkout or billing portal. ex: Licenses, Users, Seats, Projects, Sites.

Question
Is there a possibility to "change" the quantity label on checkout or billing portal. ex: Licenses, Users, Seats, Projects, Sites.

What have you already attempted?
I have tried to implement by changing unit label in the product catalogue, but seems that's not the solution.

#

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

Question
Hi, we are using the API to create an invoice, add lines and finalize it. During add line items call we provide metadata values as can be seen in the request body from the related request id.
However we realized that line item metadata it is no longer visible in the product details nor pricing details in the dashboard, as it used to be some time ago.

Related Request ID(s)
req_DzaHF3EvPsYhgo

What have you already attempted?
It was visible some time ago.
We checked product and pricing metadata in the dashboard, both are empty.

What are you working on?
A payment service integration supporting multiple clients.

#

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

Question
Im trying to build an API integration to capture card details on Salesforce and then use them to setup a subscription on Stripe but currently when I try to use cards that have 3DS it is not working as expected as the payment method is setup as inactive and has this error message: The PaymentIntent needs to be authenticated by 3D Secure

Related Request ID(s)
pi_3PxrPCG7SulwOLct0o3oOCKC

What have you already attempted?
I have tried various ways to create the payment method and setup_intent but I cannot make this work.

What are you working on?
An integration with Salesforce

#

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

Code
Hi Stripe team, I have a query regarding proration code and implementation. We currently have a system where, when a user upgrades/downgrade - we give them back the unused time, then charge only for the remaining time on the new subscription they are going to.

Question
Will this code below, only reduce the remaining time left on the current subscription price and charge full price of newer subscription because billing_cycle is getting reset. This means you are on a $50 sub - half through your current billing - unused time value on current sub is $25 and you're going to $100 sub then we charge you $75 - because your are getting full amount of time on your new subscription. How can we do this? Is my code correct?

What have you already attempted?
subscription = Stripe::Subscription.update(
'sub_49ty4767H20z6a',{items: [{
id: subscription.items.data[0].id,
price: 'price_CBb6IXqvTLXp3f'},],
proration_behavior: 'always_invoice',
billing_cycle_anchor: 'now'})

This is the code.

What are you working on?
I am working on changing proration behaviour.

#

@burnt flume 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-methods/pmd-registration

Question
We cannot add the file to verify your registered domain with Apple Pay to the /.well-known/ folder. Is there another way we can add a TXT record to the DNS to verify the domain?

What have you already attempted?
We are in a locked CMS that does not give us access to the /.well-known/ folder.

What are you working on?
We are trying to connect the Piano Apple Pay to our website.

#

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

What did you expect to happen?
When the stripe API is called in test mode with provided information, we pass all the data including the SSN number last 4 digits as 0000 and this data should be present in the API

What actually happened?
The SSN passed is not actually present in the metadata as ssn_last_4 and I can't find it but the information that stripe passes through webhook to my application states that id_number is missing from eventually_due and ssn_last_4 as previously_due. As I've read, maybe the verification failed with the ssn_last_4? but it's test environment and 0000 is entered as ssn la

Reproduction Steps
Creating a simple connect account on stripe with user information.

Question
How to resolve the verification failing or individual.id_number being passed as eventually due in the post api response body?

#

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

Code
const {error:paymentError,paymentIntent} = await stripe.confirmPayment({
elements,
clientSecret: data.clientSecret,
// confirmParams: {
// // Updated return URL with order_id and order_no
// return_url: `${webUrl}/redirect_url?order_id=${orderInsert.order_id}`,
// },
// Uncomment below if you only want redirect for redirect - based payments

Question
I want to redirect to redirect page when my payment is complted and i got a order number from payment intent which is payment success id but when i call stripe stripe.cofirmPayment i have not paymentintent so that i doesnot have a order number which i is resone of my payment failure so i handle redirect logic manully but component give me error mention below
Error during the payment process: IntegrationError: stripe.confirmPayment(): the `confirmParams.return_url` argument i

What have you already attempted?
Migrate to the Payment Element

What are you working on?
integrate payment element

#

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

Question
Hi, I'm looking for help using the "Add invoice items to a draft subscription invoice" using an api call. Essentially, I am allowing users on my website to have overage fees, which are added to their subscription invoice at the end of the billing period. I use the "invoice.created" webhook to send a call to my server. then the server checks the users overage amount and sends a call back with the following parameters: customer, invoice #, quantity, description, and price. It functions as expected when I manually make a draft invoice, but not when the subscription automatically does.

Related Request ID(s)
req_iOCwoldBDeGCOq

What have you already attempted?
I've tried adding subscription to the parameters but that doesn't seem to work. invoice is already specified

I am testing by making a user, adding overage, and then fast forwarding the subscription time.

What are you working on?
Building a SAAS with overage charges

#

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

Question
I would like to show the user their balance from jobs completed or subscriptions in real time.

Related Request ID(s)
I have whatever info is needed

What have you already attempted?
the subscription amount doesnt show up in the users balance and I was wondering how to display this

What are you working on?
a content creator market place for small businesses looking to hire photgraphers in their area

#

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

Question
My company uses the Stripe reporting API to track costs associated with transactions. We primarily use the activity.itemized.2 and card_payments_fees.transaction_level.2 reports to get information on individual transactions. One of the key cost components we’re concerned with is interchange, but we’re noticing it doesn’t show up for every credit card transaction. It’s occasionally missing on refunded transactions, but it’s also absent from what appear to be successful transactions as well. Can you provide any information on why this might be happening?

Related Request ID(s)
ch_3PqHBMEgQAxJcOH41PHpPuuv

What have you already attempted?
I've read the stripe reporting API docs and built reports with our data to show the charges missing interchange

What are you working on?
financial reporting

cursive heronBOT
#

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

Question
What is the best way to allow a customer to update their payment information for one (or all) subscriptions of one (or every) connect account on my application using the API?

Related Request ID(s)
none

What have you already attempted?
I've considered showing a link to the billing portal/customer portal for each subscription but I don't think that works for connect accounts.

What are you working on?
I am allowing foss developers to build premium plugins for the Flarum forum software, so that they can become sustainable. They publish these as teams, which are connect accounts on my app.

#

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

Question
What keys do I need from my connect account for oauth?

Related Request ID(s)
NA

What have you already attempted?
My keys were expired because of a card test fraud detrection.

Where do I find those keys for oauth? Are they different than the standard keys?

#

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

Question
I am testing the meter API with Subscriptions where I am running into an issue testing meter events with an old time stamp.

Related Request ID(s)
i don't have any

What have you already attempted?
i have used the test clock to move forward in time.
- created a daily subscription
- added 10 usages (worked)
- ran time simulator so invoice would be on draft
- added 5 usages (didn't see them on count)
- ran time simulator so invoice closed (5 counts were added to invoice, worked)
- new invoice was created
- added 5 usages (didn't see them to the count)
- ran time simulation so invoice would be on draft
- added 5 more usages (still not seeing any count)
- ran time simulation so invoice close
- expected my 10 count to show up. where did they go ?

What are you working on?
implementing meter for usage based subscriptions

#

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

Code
$invoice = \Stripe\Invoice::create([
'customer' => $createdCustomer->id,
'auto_advance' => true,
'metadata' => [
'test' => 'test',
'foo' => 'bar',
],
'due_date' => now()->endOfDay()->timestamp,
'collection_method' => 'send_invoice',
'currency' => 'aud',
'application_fee_amount' => floor(200 / 100 * $eventCloudFeePercentage),
], [
'stripe_account' => $account,
]);

Question
Can I make my platform pay the Stripe fees? So the Connect Account only pays my application fee?

What have you already attempted?
Nothing

#

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

Question
Which api call is best to be used for updating a subscription when a user is downgrading? I plan on using this call when the year end subscription ends.

Related Request ID(s)
i have none, trying to figure out the best api to use

What have you already attempted?
I have not tried anything yet, trying to apply the correct api call before I start connecting anything.

What are you working on?
I want the user to be able to downgrade to another plan if they want but it wont happen until the end of the cycle for the plan that they are currently on.

cursive heronBOT
#

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

Question
I want to create a payment intent and only allow apple pay or google pay and frontend should display pay with X

Related Request ID(s)
.

What have you already attempted?
.

What are you working on?
.

cursive heronBOT
#

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

Code
const { error, setupIntent: updatedSetupIntent } = await confirmSetupIntent(
stripe,
elements,
billingAddress
);

Question
How should we configure attaching payment methods after confirmingSetupIntent if we are using klarna? when we just use a card we can continue in code to attachPaymentMethod but since Klarna has a redirect url the attachPaymentMethod is never hit.

What have you already attempted?
Maybe the user is redirected to another page upon success and then the payment method is attached?

What are you working on?
Integrating Klarna w/ our stripe setup

#

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

Question
stripe checkout session free trial is not working.
I give 7 days free trial like this:
subscription_data: {
trial_end: moment().add(8, 'days').unix(),
},
but it is not working. at first, plan has 7 days free trial but 1 or 2 minutes later, its free trial automatically changed to today and trial is finished.
I confirmed it on stripe dashboard.
how can I fix it

Related Request ID(s)
v1/subscriptions/sub_1PxtcjH2HittHxxT4nU6DjaU

What have you already attempted?
https://docs.stripe.com/payments/checkout/free-trials?lang=node&ui=embedded-form

#

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

Question
Apple pay doesn't load, I have verified the domain and added ExpressCheckoutElement

Related Request ID(s)
.

What have you already attempted?
I have enable apple pay and verified by domain, I am using react.
added ExpressCheckoutElement but apple pay button is not visible

cursive heronBOT
#

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

Question
We are not sure if we should use metadata or features to implement our plan. Is there someone we can talk through this with?

Doc/Guide Links
xxxxxxxxxxxxxxxxxxxxx

What are you working on?
A SaaS app for photogrammetric processing

#

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

Code
async function createSetupIntent(includeKlarna: boolean = false) {
const paymentMethodTypes = ['card'];

if (includeKlarna) {
paymentMethodTypes.push('klarna');
}

return await stripe.setupIntents.create({
payment_method_types: paymentMethodTypes,
});

Question
Why is my country dropdown disabled for Klarna?

What have you already attempted?
I have just been manually removing the disabled attribute in the dom to bypass this issue but need it to be enabled before we ship

cursive heronBOT
#

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

Code
await this.getStripeProvider(createStripeCustomInput.country).accounts.create({
country: OrganizationCountryCodes[createStripeCustomInput.country],
type: "custom",
business_type: "non_profit",
email: createStripeCustomInput.email || undefined,
capabilities: {
transfers: { requested: true },
card_payments: { requested: true },
},
tos_acceptance: { date: Math.floor(Date.now() / 1000), ip: "8.8.8.8" },
settings: {
payments: { sta

Question
I want to create a Stripe custom account in my staging environment that’s already onboarded, without manual intervention.

However, I’m facing three issues:

1.	Stripe asks me to upload a document for the “Statement or notice of service from a financial institution.”
2.	Stripe asks for confirmation of an “Ownership transfer agreement.”
3.	Stripe asks me to upload identity verification documents for the representative.

How can I complete these three steps programmatically

What have you already attempted?
I have successfully created a custom account and added a representative using the accounts.createPerson method.
• I’ve uploaded identity verification documents (front and back) using the Stripe file upload API.
• Despite uploading the files, Stripe still prompts for additional verification documents and ownership transfer confirmation.

I’m using test images for verification from Stripe’s documentation and using file_identity_document_success.

cursive heronBOT
cursive heronBOT
#

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

Question
What's the best way to create subscriptions with setup intent? A user in my app will subscribe to multiple products, each with various prices under a pro plan.
I have two flows: one for checkout and another for adding payment methods for future subscriptions. I’m using setup intents with off_session: true.
While the setup intent attaches the payment method to the customer, is listening for webhook for successful setup intent and then add a subscription best way for checkout flow?
Secondly, can I differentiate setup intent created for future use (without triggering subscriptions in the webhook) by adding metadata during checkout? is there a better way than rely on metadata

Doc/Guide Links
https://docs.stripe.com/strong-customer-authentication

https://docs.stripe.com/api/setup_intents/object

https://docs.stripe.com/payments/setup-intents

What are you working on?
A platform with a monthly subscription for premium users that also tracks the usage of certain consumed units for additional billing.

cursive heronBOT
#

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

Question
How to migrate card tokens from a card provider e.g WorldPay to Stripe?

Related Request ID(s)
Card token migration

What have you already attempted?
WorldPay has already provided the tokens to the customer.

What are you working on?
I need a specific instruction to provide the customer on how they can communicate to Stripe to migrate the tokens we have provided from WorldPay.

cursive heronBOT
#

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

Question
I would like to identify all customers related to a fingerprint

Related Request ID(s)
N/A

What have you already attempted?
Looked through API docs.

What are you working on?
mitigate fraudulent disputes

#

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

Question
Hey, my name is Brett and I've been starting a charity built around an app. I'm trying to integrate Stripe into the app / with Apple Pay but am getting a bit lost in the docs. I'd like to see if there is anyone that could answer some questions and provide some high level guidance on the approach I should take. I'm a software engineer by trade, so I think just being pointed in the right direction will be enough to save me a ton of time. If anyone is curious, our website is www.heliohearts.org

Related Request ID(s)
-

What have you already attempted?
I tried to just create a payment link and display it in the app using a web view, hoping this could be an easy implementation, but it looks like this may not be allowed (i'm getting accessdenied).

cursive heronBOT
#

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

Question
I'm using checkout API to create a payments page for my platform users to get paid via stripe connect and I want to be able to add the stripe fees on top of the payment, is there a way to do this with code and/or API ?

The reason being, is that if one of our users is getting paid for a $100 service they have provided, we want to make sure they get $100 when paid out by stripe, and the stripe fees and application fee are paid by the person (customer) paying.

Related Request ID(s)
NA

What have you already attempted?
I've been able to add the platform fees on top of course, but as the stripe fees are dependant on payment method, region etc. I wanted to know i there is a setting or api method to do this?

What are you working on?
I'm CTO / dev of an app for bookings in the music industry. E.g. I book you to DJ at my event, and handle payments for that performance.

cursive heronBOT
#

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

Question
For a connect account is there any API that returns validations/issues as per format and summarized values specified in Dashboard>Connected Account>Activity Tab>Actions Required?
I know the account API returns requirements, but any other API returns summarized result as per above location?

Related Request ID(s)
General question on API

What have you already attempted?
Have tried looking into requirements property of account object but in account API requirement object it returns individual fields for example for representative it returns individual fields where as Dashboard>Connected Account>Activity Tab>Actions Required provides summary with 1 line ?

""currently_due"": [
""external_account"",
""representative.address.city"",
""representative.address.line1"",
""representative.address.postal_code"",
""representative.address.state"",
""representative.dob.day"",
""representative.dob.month"",
""representative.dob.year"",
],

What are you working on?
We are looking to show validation or pending requirements with due dates

cursive heronBOT
#

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

Question
Via the Payment Method API, are additional extended attributes on the card response available? `card.bin`, `card.issuer` & `card.description` are existing extended attribute examples, we specifically need what's commonly known as the card's Product Platform, which determines if a card is a Commercial/Business or Standard/Consumer type.

Related Request ID(s)
req_9KBoI2ZC8InxHI

What have you already attempted?

  1. Investigated Platform-Pricing (not compatible with surcharging)
  2. We have requested for some extended attributes on card already (the ones specified in our question), and reviewed the logs. You won't be able to see the extended attributes in the provided request ID, but look into the payment_method underlying it and you will see them when inspecting.

What are you working on?
Implementing a dynamic fee structure compatible with surcharging.

cursive heronBOT
#

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

Code
request: {
type: PlatformPay.PaymentRequestType.Recurring,
description: donationCategory.name,
managementUrl:'https://billing.stripe.com/p/login/4gw8ysP4Qi9gD73G288',
billing: {
paymentType: PlatformPay.PaymentType.Recurring,
intervalUnit: PlatformPay.IntervalUnit.Month,
intervalCount: 3,
label: 'My label',
amount: `${amount.toFixed(2)}`,
},

Question
when I try clicking handleapppaypress after recurringis true I get alert:
Payment failed. Failed to create Apple pay summary item with label: Donation. the intervalCount item parameter is required but none was provided. But quite clearly I have provided intervalCount

What have you already attempted?
-

What are you working on?
Expo Managed Workflow app with recurring donation to charity feature

cursive heronBOT
#

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

Question
If I make a transfer to one of the connected accounts, then how do I confirm that amount is successfully transferred? Based on this confirmation, I need to payout the amount from the connected account to connected account's bank account (mean normal payout); is there any event received?

Related Event ID(s)
transfer.created, balance.available

What have you already attempted?
I have done account creation and onboarding, then, when providers request the withdrawal, I first transfer funds to the provider connected account. Then I received the "balance.available" event from stripe connect webhook event, based on this event I make a payout API call for corresponding provider connected account.
This flow is correct or not. give some suggestion and help to me.

What are you working on?
i'm working on send money to provider bank acount when they give withdrawal request.

#

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

Question
There was an error confirming the Intent. Inspect the `PaymentIntent.lastPaymentError` or `setupIntent.lastSetupError` property.
how to fix this for stripe payment gateway integration in iOS

Related Request ID(s)
https://dashboard.stripe.com/test/workbench/logs#wb-N4Igdghgbglg5hALjA9mEAuUEDGyoCmAKhAEaYgA2KcAziADQiJkASMtiKATgJ6YBtECkLdYBAO4gAuk24oArogLtOPfhgGhIAWwIUAIgEEAyqwBCAeSMAlA4xAAHCNwg76WAL5NaBFzgALTGBvE

What have you already attempted?
attempted to test payment

cursive heronBOT
#

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

Code
var createOptions = new PaymentIntentCreateOptions()
{
AutomaticPaymentMethods = new PaymentIntentAutomaticPaymentMethodsOptions()
{
// relevant part
Enabled = true,
AllowRedirects = "never" // does not currently allow redirects
}
};

var confirmOptions = new PaymentIntentConfirmOptions
{
// relevant part
CaptureMethod = PaymentIntentCaptureMethod.Automatic,
ReturnUrl = null // does not currently support a return url
};

Question
My issue is that the above setup doesn't seem to be able to handle 3D secure verification workflow.

I'm transitioning from a card element to a payment element, but need to keep most of the current setup working for the time being, so for now there is no support for redirects or having a return url.

What can I do to get this working?

What have you already attempted?
I've gotten the following errors:
* "A `return_url` must be specified [...]"
- Resolution: added AutomaticPaymentMethods
* "The PaymentIntent supplied does not require manual server-side confirmation. Please use confirmCardPayment instead to complete the payment." (this happens on calling `stripe.handleCardAction`)
- Resolution: none found

What are you working on?
Transitioning from card element to payment element

cursive heronBOT
#

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

Question
I do not know how to ask user's shipping and user's name from express checkout element in react js

Related Request ID(s)
pi_3Py6LjHp1fshk1Zy0ea9AKXb

What have you already attempted?
<ExpressCheckoutElement onClick={handleexpressclick} onConfirm={handleexpressconfirm} options={options} onShippingAddressChange={expressshippingaddress} AddressElement/>

Currently, the express element is asking for user's email only. I need it to ask user's name and shipping address

What are you working on?
Ecommerce website

#

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

Code
const account = await this.getStripeProvider(createStripeCustomInput.country).accounts.create({
// other params
external_account: {
routing_number: "110000000",
account_number: "000999999991",
},
});

const representative = await this.getStripeProvider\(createStripeCustomInput.country\).accounts.createPerson\(
  account.id,
  {
    verification\: {
      document\: {
        front\: "file\_identity\_document\_success"

Question
In my staging environment, I am trying to automate the process of creating Stripe accounts and passing verification checks (identity and bank account). However, Stripe still requests additional steps:

1.	Bank Account Validation\: Even though I used test tokens \(routing\_number\: "110000000", account\_number\: "000999999991"\), Stripe is still asking for validation of the bank account.
2.	Identity Check\: After using the test file "file\_identity\_document\_success" for identity veri

What have you already attempted?
• Used test tokens for both bank account and identity verification (file_identity_document_success).
• Uploaded files for front and back of the document using Stripe’s API, but the system still asks for additional verification steps.

#

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

Question
Creating subscription with auto collection off so that payments on scheudled subscription can we created with due

Related Request ID(s)
123

What have you already attempted?
I have tried collection_method to send_invoice but I don't want to send invoice

I just want to create a scheduled subscription with auto collection off

What are you working on?
Creating subscription

cursive heronBOT
#

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

Question
We want to check which card is used by our customer when they use link. I need doc references to write the code for stripe api, can we do that?

Related Request ID(s)
req_RjbWMGBYcl29Lm

What have you already attempted?
We have not tried anything, we need help on understanding how to do it from stripe api or anything else required

#

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

Question
I have integrated Stripe Document Identity iOS SDK (code is working fine).
I required to verify only "Driver Licence" documents and SDK shows 3 different buttons including "Passport" and "Government ID" options. How could I restrict the SDK to only get "Driver Licence"?

Related Request ID(s)
no

What have you already attempted?
try to restrict it in API but it's not working.
document: {
allowed_types: ['driving_license']
}

What are you working on?
Stripe Documents Identity iOS SDK

#

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

Question
Is there any rate limits when accessing the API?

Related Request ID(s)
Not applicable

What have you already attempted?
N/A - Just want to know if there are rate limits because I may miss events that are sent out so my data becomes outdated, and would need to use the API to re-fresh the data

What are you working on?
A discord bot that has premium features

#

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

Question
We have found that despite providing billing country, it seems to always read it as Ireland instead of the real value, always returning an error on stripe's checkout page, for example when choosing Italy :
Il Paese non corrisponde

Il paese dell’acquisto con corrisponde con il paese dell’indirizzo di fatturazione del profilo. Puoi tornare ad accedere utilizzando un altro account.
Paese di acquisto
Italia
Paese dell’indirizzo di fatturazione impostato nell’account
Irlanda

This is consistent on every country chosen, except for Ireland ofcuorse. We are thinking, could this be a cache issue ?

Related Request ID(s)
req_Qd2PV5eVe1G0EQ -> req_fonz4hMnKcIiYJ -> req_6znMth3d8nJofg -> req_8XdOuQ7SRQWC9S -> req_vpYx9qTtVofS36 -> req_nXv2BtNkCkm3bG

What have you already attempted?
We've tested multiple countries, providing different user name, country, email etc. (Nothing is hard-coded in ever as seen by inspecting requests)

What are you working on?
PHP with cURL stripe-klarna payment method implementation

#

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

Question
I want to use subscription schedule , and i have this error in stripe log webhook : You can not modify the start date of the current phase.

Related Event ID(s)
the event : checkout.session.completed

What have you already attempted?
i use this code :
$stripe->subscriptionSchedules->update(
$createPase->id,
[
'phases' => [
[
'items' => [
[
'price' => 'price_1Pxx0vFS5H5yq2Y0PzcNGM9z',
'quantity' => 1,
],
],
'iterations' => 1,
'start_date' => time(),
],
]]);

What are you working on?
I want to use subscription schedule : first month the customer will pay 49$ , and after that the customer pay 59$ forever.

#

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

Question
Hi, can we intergrate Stripe as subscription / recurring payment method in Shopify?

Related Request ID(s)
na

What have you already attempted?
Has tried with Shopify app (Appstle Subscription), didn't work with Stripes

What are you working on?
Shopify with Stripes Subscriptions as payment gateway

#

@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/api/customer_portal/configurations/create

Question
If customer X has purchased 3 units and used all 3 on our platform/SaaS, is there a way to restrict them from decreasing the quantity? They should still be able to increase it in the Stripe billing portal, but only decrease when we allow it.

What have you already attempted?
I tried to restrict quantity updates using the Create Portal Configuration API (default_allowed_updates), but it’s preventing all updates. What I need is to restrict only the decrease in quantity.

#

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

Question
How can I display the iDEAL payment method in the Payment Element in the React JS app?

Related Request ID(s)
Look in Dashboard > Settings > Payment Methods > iDEAL Method under Bank redirects.

What have you already attempted?
I have added the Payment Element on the app page.

What are you working on?
Payment Element with iDEAL Payment Method Support.

#

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

Question
When SEPA direct debit payment method was created via source and mandate.notification_method was set to email, disabling emails on Stripe should still trigger the payment notification emails?

Related Request ID(s)
NA

What have you already attempted?
The emails are still triggered

#

@cobalt mist pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
how to test webhook for recurring payment ? like how i will test webhook in my backend that if recurring payment for subscription is failed or success

Related Event ID(s)
none

What have you already attempted?
I have attempted to add event like invoice.payment_succeeded and invoice.payment_failed but how to test these

cursive heronBOT
#

@frosty pasture pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How to set default payment method?

Related Request ID(s)
/

What have you already attempted?
In mobile app we are creating new payment method using payment sheet API. Before payment method is created on stripe mobile app fetch setup intent client secret from BE. Can you tell us how to set up new payment method as customer default payment method?

#

@coarse escarp pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
fun receiveStripeWebhook(eventRequest: EventRequest) {
logger.debug("Received Stripe webhook: {}", eventRequest)
val dataJson = Event.GSON.toJson(eventRequest.data)
val event = Event.GSON.fromJson(dataJson, Event::class.java)
}

Question
I am working with Kotlin and Stripe Java API version 26.10.0 for webhook event handling. When trying to deserialize the event object using Gson, I encounter an IllegalStateException related to a nested JSON object. I need assistance in resolving this issue.

What have you already attempted?
the json data:
{
"object":{
"id":"pm_1PxUhD1njmFqhzphnnxaX5Hf",
"object":"payment_method",
"allow_redisplay":"unspecified",
"billing_details":{
"address":{}
},
"card":{
"brand":"visa",
"checks":{
"cvc_check":"pass"
},
"country":"US",
"display_brand":"visa",
"exp_month":9,
"exp_year":2025,
"fingerprint":"5HEtFZvMGkYtkqh2",
"funding":"cred

#

@ashen swift pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
In another Application, I have the functionality of checkout stripe in which the stripe gives built-in checkout form using redirectCheckout method, Then how can I get a Google and Apple pay button in this case? I already have the Card Checkout Form.

Related Request ID(s)
Look in Dashboard > Settings > Payment Methods > Google and Apple Pay.

What have you already attempted?
I have already redirected to the checkout form.

What are you working on?
On Subscription with Google Pay and Apple Pay Integration.

#

@leaden delta pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How to ask user to enter their shipping address through the express checkout button element?

Related Request ID(s)
pi_3Py6LjHp1fshk1Zy0ea9AKXb

What have you already attempted?
In JSX return:
<ExpressCheckoutElement onClick={handleexpressclick} onConfirm={handleexpresssubmit}
options={options} onShippingAddressChange={expressshippingaddress}/>

The handleexpressclick function:
const handleexpressclick = async ({resolve}) => {
const options ={
emailRequired: true,
billingAddressRequired: true,
shippingAdressRequired: true
}

    resolve\(options\)  

}

This is not working.

I have tried using this also :
expressCheckoutElement.on('confirm', function(event) {
clientSecret, elements,
shippingAddress}

What are you working on?
Ecommerce Next Js website

cursive heronBOT
#

@cobalt mist pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
const updatePaymentDetails =async (event) =>{
try {
const setupIntent = await stripe.setupIntents.retrieve(event.data.object.setup_intent);
const customer = await stripe.customers.update(
event.data.object.metadata.customer_id,
{
invoice_settings: {
default_payment_method: setupIntent.payment_method,
},
}
);
console.log(customer)
} catch (error) {
console.log(error)
return;
}
}

Question
I want to change customers existing subscription card, so any recurring payment should be deducted from newly attached payment method. but with the above code customers default payment method is attached but subscriptions default method is not being changed.

What have you already attempted?
Attempted to check multiple time but could not get any help

#

@topaz dirge 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-methods/pmd-registration?dashboard-or-api=api

Question
We're updating our payment integration to use Stripe Elements. I'm trying to understand how our domains must be verified in order to use Apple Pay within Stripe Elements. We use Apple Pay with our current integration, and already have apple-developer-merchantid-domain-association on each domain, but the configuration is throwing console errors for me saying that some domains are not registered yet. Interestingly, the content of the files we have hosted currently is different than the one Stripe is giving me when I download it from the doc or from the dashboard and I'd like to know why.

What have you already attempted?
I was having trouble verifying our staging environment for testing Apple Pay, although it used to work before we moved forward with the Elements upgrade work. By replacing the hosted file with the new one downloaded from Stripe dashboard, I was eventually able to get this working for our platform account, but I understand that the connected accounts need a different configuration. I'd just like a bit of support to ensure I understand the changes that need to be made and don't inadvertently muck up our current production payment integration in the course of trying to support the upgrade!

What are you working on?
Upgrading our older more bespoke Stripe integration to use the Stripe Elements

#

@ivory sail pressed the 🤨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
Complete purchase via Cash App without duplicates

What actually happened?
The payment form in the test environment was redirected to the redirect_url + issued a product/receipt for the end user

Also the "test authorization page" redirected to the redirect_url + issued a product/receipt for the end user

Reproduction Steps
- Enable Cash App
- Authorize Cash App in test mode

Question
How can I avoid the product issued/receipts? Cash App and other payment methods were enabled recently for our accounts, and I just noticed that Cash App has this issue

we never had issues with card payments, Apple Pay, etc.. as they only redirect to the redirect_url once

What are you working on?
A simple landing page that offers a product + Stripe payment to process payments

#

@untold jacinth pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
STPPaymentHandlerErrorDomain

Question
There was an error confirming the Intent. Inspect the
'paymentintent.lastPaymentError or
"setupIntent.lastSetupError' property. after payment complete with test cards

What have you already attempted?
docs are already read

#

@mint grove pressed the 🤨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
I hope the api can work well locally

What actually happened?
when i test the checkout ,the 500 error code appears

Reproduction Steps
see my question below

Question
1.when i test the checkout step, 500 error code appears.
2.we develop in China, using VPN. [It was tested locally instead of on the server.]i wonder if this matters.
3.Can we check the error log when we develop locally
4.I've created a secret Key, and changed the $stripeSecretKey in the code .

What are you working on?
checkout api

#

@tame iron pressed the 🤨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
Show apple / google button based on the device

What actually happened?
Pay with Link Button

Reproduction Steps
I already integrate it into our website but I can't see the button except the pay with link button

Question
How can I solve this issue? Do you have any recommendation?

What are you working on?
A website

#

@turbid viper pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
What is the relationship of payment intents and charges? Which one is more "useful"? Which is used in the Stripe Dashboard for "Transactions"?

Related Request ID(s)
N/A

What have you already attempted?
I am fetching payment intents, but despite using a "create" filter, there is too much data to pull through with auto pagination, which is required by our sysetm to allow for better filtering and sorting, as the stripe API is lacking these features.

What are you working on?
proxy api for PAAS CMS solution

#

@candid patrol pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I am facing an issue where I have the webhook for account.updated in my application and when stripe connect account is created for a customer in test mode the response body for the endpoint POST v1/account when first called has:
"currently_due": [
"tos_acceptance.date",
"tos_acceptance.ip"
],
"disabled_reason": "requirements.past_due",
"eventually_due": [
"individual.id_number",
"tos_acceptance.date",
"tos_acceptance.ip"
],
"past_due": [
"tos_acceptance.date",
"tos_acceptance.ip"
],
I am checking for some info in the api for missing info and why is individual.id_number here?

Related Event ID(s)
evt_1PxwihKRCGzrZhdtOJx9TKug this is for customer.updated but I can't find one for account.updated in the events

What have you already attempted?
I don't know the working of this as I've not integrated the stripe in the application but for the POST endpoint for v1/account is called again as in the particular connects accounts API logs and for the second time it has this data:
"currently_due": [
],
"disabled_reason": "requirements.pending_verification",
"eventually_due": [
"individual.id_number"
],"past_due": [
],"pending_verification": [
"individual.address.city",
"individual.address.line1",
"individual.address.postal_code",
"individual.address.state"]
We send emails for missing info to customers and I dont understand this for test mode

What are you working on?
I am working on an application for a client which has stripe integrated already, what it does is it provides the platform for providers(schools) to signup as providers and provide services

#

@uncut spade pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I am trying to implement a webhook but it always return error( No signatures found matching the expected signature for payload)

Related Event ID(s)
evt_1PyAgcBbKup2smY6a0cFagqv

What have you already attempted?
Stackoverflow ,github, documentation

What are you working on?
ecommerce

#

@unborn tree pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hello, I'm using Stripe with the portal to manage customer payments. Is it possible to retrieve the last 4 digits of the customer's bank card via API or otherwise (just for information in order to display it on their customer account )?

Related Request ID(s)
No

What have you already attempted?
Nothing

#

@haughty agate pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hi!

I'm making a subscription system and I can't figure out how this is possible without plans.

I want to control recurring payments from cron.

Can someone send me a sample PHP code for this, or the relevant document link?

Thanks!

Related Request ID(s)
req_gGmiNgGfjw0lhg

What have you already attempted?
I tried using 'payment_intent_data' => ['setup_future_usage' => 'off_session'] parameter, but I couldn't figure out how to trigger a new debit.

What are you working on?
Custom subscription system.

cursive heronBOT
#

@ivory sail pressed the 🤨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
The Cash App charge should be successful

What actually happened?
The Cash App charge failed

Reproduction Steps
- Setup payment intent
- Confirm payment intent with Cash App payment option

Question
We offer card payments, Apple Pay, etc.. and we never had issues with them

for CashApp one of our customers tried using it and the final charge failed

This is the payment intent:

https://dashboard.stripe.com/payments/pi_3PxxBoCewIvxqYAm1Dnii4bn

The end user is getting

"safari cannot open the page because the address is invalid Stripe"

cursive heronBOT
#

@leaden delta pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How to get the user email, phone number and shipping after the user confirms payment through express payment button element

Related Request ID(s)
pi_3PyBktHp1fshk1Zy01OvbXly

What have you already attempted?
<ExpressCheckoutElement onClick={handleexpressclick} onConfirm={handleexpresssubmit}
options={options} onShippingAddressChange={onShippingAddressChange}/>

const handleexpresssubmit = async () => {
const {error, confirmationToken} = await stripe.confirmPayment({
elements,
clientSecret,
confirmParams:{
return_url: `"https://example.com"`
}
})
if (result.error) {
// Inform the customer that there's an error.
}
I want the user details retrieve the user details before redirecting the user

What are you working on?
ecommerce Next js website

#

@minor sage pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We are trying to charge Connect Custom accounts with the PHP API wrapper form the platform account. It seems this can be done with ->charges and ->transfers. What is the difference between each? Which should I use? The ->charges option seems to have a minimum value of £0.30.

Related Request ID(s)
N/A

What have you already attempted?
$stripe->charges->create([
'amount' => 3,
'currency' => 'gbp',
'source' => 'acct_xxxxx_source',
'description' => 'Charge the Connect Account!',
// 'receipt_email' => 'test@test.com',
]);

        $stripe\-\>transfers\-\>create\(\[
            'amount' =\> 3,
            'currency' =\> 'gbp',
            'destination' =\> 'acct\_xxxxx\_platformacc',
            'description' =\> 'Charge the Connect Account!',
            // 'receipt\_email' =\> 'test@test.com'
          \],

What are you working on?
Charging

#

@ruby swan pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
we want to know how to check which card type and brand being used by link user, using stripe api.

Please help us with a proper doc to build the code for the api.

Related Request ID(s)
req_RjbWMGBYcl29Lm

What have you already attempted?
We have not attempted anything, we need help on how to do this, does stripe shares link user card type and brand

#

@ocean cradle pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
$startDate = strtotime($request['collection_date']);
$dataToUpdate = [
'billing_cycle_anchor' => $startDate,
// 'proration_behavior' => 'create_prorations',
];

$updatedSubscription = $this->stripe->subscriptionSchedules->update(
$subscriptionId,
$dataToUpdate
);

Question
I have a scheduled subscription. I want to update its start date on stripe.

So the phases will also updated according to the start date updated.

How can we do it. And is it possible to update the active subscription start date.

What have you already attempted?
$startDate = strtotime($request['collection_date']);
$dataToUpdate = [
'billing_cycle_anchor' => $startDate,
// 'proration_behavior' => 'create_prorations',
];

$updatedSubscription = $this->stripe->subscriptionSchedules->update(
$subscriptionId,
$dataToUpdate
);

What are you working on?
Updating subscription

#

@mortal hinge pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Not all verification payment intents are related to a matching charge. How does this work?

Related Request ID(s)
-

What have you already attempted?
Payment intent related to a charge: https://dashboard.stripe.com/payments/pi_3PvYE1BpyoglPFi53CrdVkDV

Payment intent not related to any charge: https://dashboard.stripe.com/payments/pi_3PrUt0BpyoglPFi51rZDI4y2

What are you working on?
Filtering verification charges

#

@terse shale pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
const session = await stripe.checkout.sessions.create({
customer: institution.stripeAccount.customerId,
mode: "setup",
ui_mode: "embedded",
currency: "eur",
redirect_on_completion: "never",
});

Question
Is there any way to make sure that a subscription payment is retried immediately after a customer adds a new payment method through a setup checkout session for instance?

What have you already attempted?
https://dashboard.stripe.com/revenue-recovery/retries

What are you working on?
A website where educational institutions can offer courses and administrate their organization.

#

@dawn cairn pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
i call account link creation api with params
'collection_options' => [
'fields' => 'eventually_due',
'future_requirements' => 'include'
],
call this its only have bank and personal details inputs fileds,
its don't have id upload fields, after submit response its have requirements['eventually_due'] = individual.verification.document

after i call same api again its show id upload option,
so i need to upload id proof and all other required documents for connected account with initall process

Related Request ID(s)
account onboarding api

What have you already attempted?
using account link created api for onboarding connected account,

#

@still storm pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
stripe.confirmSetup({
elements,
confirmParams: {
// Return URL where the customer should be redirected after the SetupIntent is confirmed.
return_url: 'https://example.com',
},
})
.then(function(result) {
if (result.error) {
// Inform the customer that there was an error.
}
});

Question
We want to have setup intents on our website (Magento 2) and challenge 3DS / do verification instantly as we want to use the cards for custom customer subscriptions (not Stripe).

Is confirming setup intents and doing this going to raise PCI compliance requirements or not considering we are still going to use Stripe Elements to gather the card data?

What have you already attempted?
I am currently trying to get this working by generating a setup intent and returning the clientSecret to the elements on frontend but having a bit of issues so far and just want to check if PCI compliance is going to be a problem.

What are you working on?
Custom subscriptions with Stripe

#

@fallow belfry pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
```await Stripe.instance.initPaymentSheet(
paymentSheetParameters: SetupPaymentSheetParameters(
customFlow: false,
paymentIntentClientSecret: paymentIntentId!,
merchantDisplayName: AppTitleStrings.kConnectMasjid.tr(),
googlePay: PaymentSheetGooglePay(
amount: amount.toString(),
merchantCountryCode: AppStrings.kUs.tr(),
),
),
);```

Question
the code I have provided you with is used in your flutter app

I am able make payment via card in both test and production evn, but the option for google pay is not showing up

we also want to add apple pay option given that that issue is solved with your help

Do we have to some configuration to do on the backend or dashboard side ?

What have you already attempted?
package (https://pub.dev/packages/flutter_stripe package and documentation I am following [https://docs.page/flutter-stripe/flutter_stripe/sheet]),

Is there any setting or configuration that needs to be done from the server side or from the stripe dashboard ? if so please share it with me,
Dashboard and server side implementation is handled by other developer so I can share with them

#

@iron solar pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hi everyone,

I need support for the following task:

I want to communicate between Salesforce and Stripe via Zapier. In Salesforce, a trigger (e.g. pressing a button) should send an email to a potential customer in which the customer confirms a subscription and enters their payment details. The data for the email should come from Stripe. There is a Customer_ID in both systems to match the accounts.

Question:
Which Stripe event is best suited?

  1. Payment link that also starts a subscription?
  2. Create Subscription directly?
  3. Customer Portal Link with subscription option?

Thank you!

Related Request ID(s)
none

What have you already attempted?
Looked at the API items and spoke to consultants

#

@lost nymph pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hey guys. I'm building a referral program in our product that uses monthly subscriptions. Users can refer N other users, and for each referral, they should get 1 month free. What are my options on implementing this? I'm trying to make it as simple as possible, so I've thought about incrementing the Customer Balance whenever a new referral is made, but I have an issue if the user upgrades to a more expensive plan in the meantime. If I gave them the balance on their lower price, they wouldn't get the same amount of free months on the new plan. Are there any other alternatives of implementing referrals to using customer balances? Thanks!

Doc/Guide Links
I've looked at customer balance docs so far.

What are you working on?
Explained in the question field above.

#

@turbid viper pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Can I search for charges and payment intents using "email"? API docs don't mention it, but i can do it in the Stripe dashboard (Transaction screen seems to actually list PI records, and lets you filter by email)

Related Request ID(s)
N/A

What have you already attempted?
Nothing yet

#

@gloomy ether pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hi, i want to make payouts. I understand that you make payout daily, but you need credit card info for that. When user buy item from checkout session then i can get card information and set them to Connected account, but how to do that without that, because someone want to only sell products and making rule that buy first before payout is weird.

Related Request ID(s)
?

What have you already attempted?
stripe elements, but don't want to take responsibility for not

What are you working on?
e-commerce site where people can sell products.

#

@topaz marsh pressed the 🪝 Webhooks button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hello, I created a webhook for payment_intent.succeeded events, the version is
2022-08-01, the webhook is enabled, I did a Bancontact payment (test mode => https://dashboard.stripe.com/test/payments/pi_3PyCvPFCwhxbUJ7m124gtQ9v) but the webhook is still looking for events, what is the problem ?

Related Event ID(s)
Look in Dashboard > Developer > Webhooks

What have you already attempted?
I tried to do a Bancontact payment, it succeeded but the webhook didn't react.

What are you working on?
Analizing Bancontact payments

#

@ruby swan pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We are trying to build our code as, we should be able to know if a customer has used LINK while checkout. The card they used we should know the details like brand. We need help with doc to build the code using stripe api.

LINK : Link auto-fills your customers' payment information to create an easy and secure checkout experience.

Related Request ID(s)
req_Kjfo1hjEmcSFG0

What have you already attempted?
We have not attempted anything till now, we need doc and guidance.

cursive heronBOT
#

@bronze scarab pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
i got HTTP status code
400 when i call api

Related Request ID(s)
req_WxBqNSalYUyprs

What have you already attempted?
my payment intent created successfully but payment confirmation is not done and give above mention statu code

What are you working on?
paymentElement integration

#

@minor sage pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
`description` not being used in a custom connect account transfer

Related Request ID(s)
py_1PyDcwJAXBXnoJdlNvz1Qu12

What have you already attempted?
print_r($stripe->transfers->create([
'amount' => 22,
'currency' => 'gbp',
'destination' => 'acct_TO',
'description' => 'Charged at '.date("H:i:s d/m/Y").' line ' . __LINE__,
],
['stripe_account' => 'acct_FROM']
));

What are you working on?
Automatic charging of our clients

cursive heronBOT
#

@turbid viper pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How do I go back to a previous page of search results?

I can use the `next_page` value in the `page` search param to go forward a page, but how do i go back a page?

Related Request ID(s)
N/A

What have you already attempted?
Nothing yet, can't see documentation about this

#

@warped storm 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/direct-charges?platform=web&ui=elements#create-payment-intent

Question
When i'm creating a direct charge i saw that's possible to inform a stripe connected account so the money does to that account
Is it possible to inform more than one connected account?
For exemple, i have a customer that will buy 100$ and i have to split this payment between 2 sellers, each one will receibe 40$ and i'll get 10$ as commission fee, when i create the payment intents may i set 2 connected stripe account to make this division?

What have you already attempted?
i'm using the separated charges and transfer to do this split (https://docs.stripe.com/connect/separate-charges-and-transfers) but i'd like to know if it's possible to do it trought direct charges

What are you working on?
i'm building a integration with stripe using my marketplace system

#

@merry cypress pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I'm implementing a usage-based pricing model and running into a situation where the first invoice has a quantity of 0, and the customer isn't charged until the first of the next month for the previous month's usage. However, I need to figure out how to charge immediately instead of waiting until the next billing cycle.

Related Request ID(s)
req_sISnTvEJalsAB4

What have you already attempted?
Here are a couple of approaches I'm considering, but I'd love your input:

Could I apply a subscription schedule where the first phase/interval is set to 0 days to trigger an immediate charge?
Is it possible to set the billing date to today so the charge happens right away?
If anyone has dealt with this or has suggestions on how to achieve immediate charging in this model, I’d really appreciate the help!

What are you working on?
subscriptions

cursive heronBOT
#

@bronze scarab pressed the 📚 Doc or Guide button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Link to the Doc/Guide in question
https://docs.stripe.com/payments/elements

Question
When i open paymentElement into by localhost it only show me visa card for payemt but i want also add G-pay and apple pay as a payment option?

What have you already attempted?
I can integrate payment element

What are you working on?
i am working on integration of multiple payment methos using stripe payment elements.

cursive heronBOT
#

@distant notch pressed the 🤨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
Payout transaction should happen without any issues

What actually happened?
We started seeing more and more payout failure issues on Stripe Connect platform since yesterday. Before that, we haven't seen any issues for transaction between Stripe and the customer bank.

Reproduction Steps
Calling payout transaction API, but the console says `This is because your bank couldn't process the payout. Contact your bank at 800-446-0135 to start receiving payouts again.`

Question
Why abruptly the transaction started failing. This started happening not only specific bank account, but we started seeing broadly on our Connect platform.

What are you working on?
Payment platform for freight industry

#

@grave vine pressed the ❌ An Error button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
Hi,
Im currently tracing the error but can find the request id in my stripe dashboard. this is from my live website checkout

Question
[11-Sep-2024 13:10:16 America/Los_Angeles] PHP Fatal error: Uncaught (Status 429) (Request req_rCagAxHZ1wbasT) This object cannot be accessed right now because another API request or Stripe process is currently accessing it. If you see this error intermittently, retry the request. If you see this error frequently and are making multiple concurrent requests to a single object, make your requests serially or at a lower rate.

What have you already attempted?
look for logs in my stripe dashboard. I wanted to know if you have a way to check the request and what kind of request it is.

hope you can help

#

@hollow steeple pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Is there a time when the invoice payment succeded webhook would come back with an invoice that did not have a payment intent attached to it?

Related Request ID(s)
NA

What have you already attempted?
Read the api docs

#

@rustic dirge pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How can I get a Connect account in United Kingdom to receive destination charges? Having trouble trying to get them registered

Related Request ID(s)
Acct - acct_1PyFxXCkZT5s0ZEU

What have you already attempted?
I've tried to look into the documentation about setting TOS acceptance to recipient which I think the error message indicates I need to do but ran into a error

What are you working on?
SaaS

cursive heronBOT
#

@floral osprey pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Once the card issuing capability on a connect account is marked "inactive" for "rejected.inactivity", how do I request it to be active again?

Related Request ID(s)
acct_1NOVUbQxoj7Dkpuv

What have you already attempted?
Is there anything else other than reaching out to support?

What are you working on?
We onboard customers on Stripe Issuing, for which we use the connected accounts

#

@golden spade pressed the 🤨 Unexpected button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

What did you expect to happen?
Trying to get a Invoice and PaymentIntent using Stripe Python lib

What actually happened?
The Python stripe library is returning this error:

Network error: ConnectionError: HTTPSConnectionPool(host='api.stripe.com', port=443): Max retries exceeded with url: /v1/payment_intents/pi_3PyEO8CoTIfwbn280jHt7oKT (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7f6a7921c310>: Failed to resolve 'api.stripe.com' ([Errno -3] Temporary

Reproduction Steps
I suppose fetching the payment intent probably triggers it?

Question
Any idea what this could be related to?

What are you working on?
Checkout for Saas site

#

@night steppe pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I have implemented tax_id_collection in the checkout session but the message says ("Estou comprando como empresa" = "Buying as a company"). Is it possible to change the text because I want that to every customer.

Also just wanted to ask if the fiscal number is filled, if the number will come on the invoice

Related Request ID(s)
N/A

What have you already attempted?
N/A

#

@true girder pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I’m working on a CC trial system that gives people who sign up with credit card a XX days trial which by default renews onto a paid plan at the end of trial. Users will be able to opt the renewal at any time.
We plan to use the trial days on stripe subscription creation to achieve this. On fraud prevention side, we can only know that the credit card is legitimate after XX days of trial through the attempt to charge their card. Is there anything else we can / should do to prevent spammy users putting in fake / stolen credit cards? we are ok with a test charge if that is do-able. Wondering what you feel like is the best way to approach this?

Doc/Guide Links
https://docs.stripe.com/radar

What are you working on?
Credit Card Trials (Fraud Prevention)

#

@upbeat grove pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Google pay is not visible but only apple pay.
how do I verify for google pay? I have already verified my domain for apple pay

Related Request ID(s)
.

What have you already attempted?
.

What are you working on?
.

#

@warped vine pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Stripe Automatic Tax and EU.

When I enable Tax collection in one country (ex Netherlands), Stripe Automatic Tax collects tax from customers in any country in the EU.

Is this expected behaviour? or is there the ability to only collect EU VAT in the country you have activated?

Related Request ID(s)
taxreg_1Pq1ih4TP1HosogCo5WFGK26

What have you already attempted?
enabled Tax collection in NL.

#

@keen gulch pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
We are using StripeElement in the react app to enable stripe hosted UI and we are passing only 2 "payment_method_type" as of now, which are ["card", "us_bank_account"].
Now we want to add one more payment method, that is "affirm" to our platform.
However, when I add "affirm" to the payment_method_type array, the "https://api.stripe.com/v1/elements/sessions" api fails and respond with following error:

"invalid_request_error"
"param": "deferred_intent.payment_method_types",

Related Request ID(s)
req_3JiNUk8zxbqrOS

What have you already attempted?
We have tried passing only "affirm" as payment_method_type and we have tried with different stripe environments with affirm payment turned on and off.

What are you working on?
Its a platform for enabling subscriptions for dental treatments.

#

@frosty sierra pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
The API for customer search does not appear to be working properly at the moment. I have a customer with a metadata key of `mstar_id`, but the curl below returns no results for that user. I'm seeing this with multiple users in my test environment today, even though we've been able to use this same customer-search call for IDs before.

curl -G https://api.stripe.com/v1/customers/search
-u rk_test_•••DSVP:
--data-urlencode query="metadata['mstar_id']:'4062FA10-00A9-4CBC-854C-6DA37D928F74'"

Related Request ID(s)
None

What have you already attempted?
I have tried making the call through our Stripe service in JavaScript. When that didn't work, I tried the direct curl of the API. Still nothing.

#

@ancient tusk pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I allow users to upgrade subscriptions through billing portal sessions by using flow_data (https://docs.stripe.com/api/customer_portal/sessions/object). However for specific subscription upgrades I don't want the discounts to automatically get applied on the upgrade. I'm not sure how to remove this automatic discount transfer

Related Request ID(s)
bps_1PyHKhFqArqfkwbM4g84yg9C

What have you already attempted?
I've tried not passing any discounts as well as passing empty discount objects.

#

@fierce mauve pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I'm using setupIntent / updateIntent / confirmSetupIntent and would like to pass a specific setupIntent id to confirmSetupIntent but right now I can only pass payment method data and it seems like the customer is not attached to the setup intent even though when I call updateIntent I am passing a customer

Doc/Guide Links
TS docs within the library (since I am on an older version of stripe)

What are you working on?
Klarna recurring integration - I have beta access

#

@clever dove pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I’m designing a payment flow and am unclear how to achieve all my application requirements. The below requirements are for a single-page where customers can review and submit an order.

  1. New customers can enter and automatically save new payments methods without having to click a checkbox. This payment will be used for the current order and can also be charged off_session.
  2. Returning customers can see existing payment methods and select one to pay for the current order.
  3. Payments (PaymentIntent) must be confirmed and charged on the server.

Related Request ID(s)
req_6gHI1pjS8WySDw, req_Vk17JWtEvnsycl

What have you already attempted?
Solution 1 (Save automatically, Cannot pay with stored payment method)

  1. Create a SetupIntent for off_session usage
  2. Send secret to client
  3. Run `confirmSetup` on client and send payment method ID to server
  4. Use payment method ID to create and confirm a PaymentIntent

Solution 2 (Can pay with stored payment method, Cannot save automatically)

  1. Creates CustomerSession
  2. Send secret to client
  3. Run `createConfirmationToken` on client and send token to server
  4. Uses token to create and confirm a SetupIntent
  5. Use payment method ID from SetupIntent to create and confirm a PaymentIntent

What are you working on?
I'm working on an subscription-based e-commerce site. We are using Zuora for invoicing and Stripe as the payment processor.

cursive heronBOT
#

@normal osprey pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I want to use the stripe radar rule https://docs.stripe.com/radar/rules/supported-attributes#distance (distance_between_ip_and_shipping_address). I am passing shipping_address in metadata for the hosted stripe checkout, however that rule is not working with the metadata. Can you point me to what I need to send for this to work?

Related Request ID(s)
https://dashboard.stripe.com/radar/rule-stats?action=manual_review&predicate=%3A%3Acheckout_kind%3A%3A %3D 'retrieve' AND %3Adistance_between_ip_and_shipping_address%3A > 100&operati

What have you already attempted?
Attempted following the document: https://docs.stripe.com/radar/rules/supported-attributes#distance
Also, added the radar rule but can't figure out

cursive heronBOT
#

@silent crystal pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
What's the best way to model a subscription where the recurring cost is different than the initial one?

Related Request ID(s)
n/a

What have you already attempted?
Looking into subscription schedules, though it seems like overkill when I want a price that is initial $10, and yearly renewal $5

#

@lethal furnace pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
List enabled payment methods for a connected account.

we dont want automatic payment method enabled and are setting the paymentmethod type manualy but need to know what payment method types are enabled for a particular connect account.

Related Request ID(s)
nothing

What have you already attempted?
looking at the api docs didn't reveal such options on under the connect section

#

@mental flume pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Is there a way to collect payment for a subscription prior to the subscription starting?

For example, can I require payment for a subscription starting on October 1st to be due 15 days in advance of the start date?

Doc/Guide Links
https://docs.stripe.com/billing/subscriptions/overview#using-setupintents

What are you working on?
I manage a B2B Community Site

#

@hardy lynx pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
there is a problem with the connect onboarding?, when I start the form I get a message that an unknown authentication error occurred

Related Request ID(s)
-

What have you already attempted?
tried to create different connect accounts

#

@verbal finch pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I have a subscription in the "unpaid" status, with several paid invoices, but the most recent invoice was marked as "void".

I was to move the subscription back to the "active" state, as the invoice that was voided was raised by user error.

Is this possible?

I

Doc/Guide Links
https://docs.stripe.com/billing/subscriptions/overview?locale=en-GB

What are you working on?
We run an email marketing SASS - emailoctopus.com

#

@vapid sedge pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Getting this error randomly:

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.

But my request is sending the right customer attachment, never sent a payment intent without a customer attachmemt, what could be the issue?

Related Request ID(s)
req_P7rfQTi5x94mwR

What have you already attempted?
Tried with setup_future_usage flag also, nothing works with this payment method!

What are you working on?
Current customer.

cursive heronBOT
#

@steady bone pressed the ❌ An Error button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
Unable to download payment manifest "<URL>".
money-please:1 Unable to download payment manifest "https://www.google.com/pay".
money-please:1 Unable to download payment manifest "https://www.google.com/pay".
money-please:1 Unable to download payment manifest "https://www.google.com/pay".
money-please:1 Unable to download payment manifest "https://pay.google.com/gp/p/payment_method_manifest.json".
money-please:1 Unable to download payment manifest "https://pay.google.com/gp/p/p

Question
I am a Stripe Connect platform trying to enable Google Pay for my customers. I am getting this error despite the domains being confirmed verified with Google.

What have you already attempted?
Making sure the domains are verified

What are you working on?
Stripe connect platform

cursive heronBOT
#

@royal panther pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I have a payment_intent or a checkout_session_id . How can I find the prices that were paid?

Related Request ID(s)
pi_3Pqq6IHBEdeg440g0enGboBV

What have you already attempted?
I can't find it anywhere.

What are you working on?
Ballroom dance site

#

@marsh sphinx pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I am handing out promotion codes to my customers, which they can use to get a 100% percent discount for the first month (i.e., the first month for free). When they use that code, they don't have to provide a payment method. Many customers use that code and here is what happens:
After the one free month, Stripe tries to retrieve money for the second month (as only the first month was for free). However, since the customer did not provide any payment method, this fails of course. Stripe tries this for another ~10x and only then the subscription is set to cancel. How can I achieve that the subscription is cancalled automatically right after a customer uses a free month?

Doc/Guide Links
https://docs.stripe.com/billing/subscriptions/coupons

What are you working on?
I building a learning web application for students.

#

@subtle marsh pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How can I make payment installments for a subscription at checkout? For example, 12x?
I have already checked out with a subscription, in which the customer pays monthly, now I would like to add an annual plan that the customer can pay in installments.
My question: How can I make payment installments for a subscription at checkout? Is this possible?

Related Request ID(s)
1

What have you already attempted?
I've already looked at the documentation, code examples, attributes that I pass to checkout, but I didn't find anything talking about this.

What are you working on?
Subscription via checkout

cursive heronBOT
#

@silent crystal pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
How can I preview future invoices for a subscription schedule?

Related Request ID(s)
req_uD3R1PtCeqJXft

What have you already attempted?
I have tried using create_preview, but this only provides the first invoice for a subscription schedule and I want to look at invoices for future phases.

cursive heronBOT
#

@zenith shore pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
What is the correct way to retrieve payment method id when charging a user at a later date?

Related Request ID(s)
N/A

What have you already attempted?
We are using iOS and node to allow our users to setup an intent to pay at a later time. When we eventually charge the user, we use

await stripe.paymentIntents.create({
amount: amount,
currency: 'usd',
customer: customerId,
automatic_payment_methods: { enabled: true },
payment_method: paymentMethodId,
off_session: true,
confirm: true,
metadata: metadataObj,
});

We're able to retrieve a list of payment methods but it's not clear which payment method the user selected.

What are you working on?
Allow users to set up an intent to pay later

cursive heronBOT
#

@carmine fulcrum pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Hi, is it possible to create a stripe elements field with 0 cents ($0 total purchase)

This is via the "finalize payments on the server" scenario.

The flow being, their first payment is 100% off (0 cents) and subsequent orders will not be.

Currently createPaymentElement with 0 cents is returning "IntegrationError: Invalid value for elements(): `amount` must be greater than 0"

Thank you!

Related Request ID(s)
N/A

What have you already attempted?
0 cents as argument for createPaymentElement

#

@radiant wraith pressed the 👍 Best Practices button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
I'm building a website to take donations for a public high school organization. We take most of our donations through cash, but I'd like to integrate alternative payment methods and credit card payment, as a sizeable number of our donors have inquired about using these methods. However, our donations are on the order of $1, so the stripe flat fee is relatively large for us to cover. I wanted to pass the fee onto the donor, but some internet posts I've come across claim that it's illegal, and stripe doesn't seem to natively support it. What's the best practice in this scenario?

Doc/Guide Links
https://www.reddit.com/r/smallbusiness/comments/sj61uf/i_want_to_charge_customers_the_stripecard_fee/
https://stripe.com/resources/more/credit-card-surcharges-explained-what-businesses-need-to-know

What are you working on?
A donation website for a public high school organization providing extracurricular academic opportunities.

#

@sleek pelican pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
When I change the price on a subscription from $0 to >$0 it bills the customer immediately rather than keeping the same billing interval date.

Related Request ID(s)
req_gcsF38RdP5udCR

What have you already attempted?
To the best of my knowledge, this used to keep the same billing date. but now this is changing the billing date to bill immediately. When you go from >$0 to another price, it doesn't bill immediately, it keeps the same billing interval

What are you working on?
saas application

cursive heronBOT
#

@mortal pecan pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Is the "fixed fee and overage" pricing model compatible with Stripe Checkout?

Related Request ID(s)
N/A

What have you already attempted?
I'm consider the above pricing model (https://docs.stripe.com/billing/subscriptions/usage-based/pricing-models#fixed-fee-and-overage-model) .

I would like to redirect the user to Stripe Checkout as the very first thing prior to sign up, then create an account for them behind the scenes using webhooks once they pay.

The doc linked above ends with "When you create subscriptions, specify both of the prices you created above". For a new Checkout session, can I include both flat fee and usage prices?

I tried to test this by creating a payment link, and the "usage based" price does not show.

What are you working on?
A website that let's users trigger actions based on Stripe Events in their account.

cursive heronBOT
#

@rocky meadow pressed the 📡 API button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Question
Why are card details visible in the payload for this API?

https://api.stripe.com/v1/payment_intents/pi_3PySMXACFcUh6psO1LjXXSxL/confirm

payload
return_url: http://localhost:3002/completion
payment_method_data[type]: card
payment_method_data[card][number]: 4242 4242 4242 4242
payment_method_data[card][cvc]: 211
payment_method_data[card][exp_year]: 32
payment_method_data[card][exp_month]: 02
payment_method_data[allow_redisplay]: unspecified
payment_method_data[billing_details][address][country]: IN
payment_method_data[payment_user_agent]: stripe.js/eafd108ccb; stripe-js-v3/eafd108ccb;

Related Request ID(s)
req_V0VoQ6aEgnPhiy

What have you already attempted?
I refered the stripe documentation and used same logic only but still the card details are visible in payload

#

@echo coral pressed the 🧑‍💻 Code button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:

Code
https://docs.stripe.com/elements/express-checkout-element

Question
I'm integrating express checkout element. When I clicked the amazon pay button and tried to create an account received an error msg like "internal error". How can I test this payment?

Additionally PayPal button is not appear. My Stripe account country is US and PayPal payment method not displayed under wallets

What have you already attempted?
https://docs.stripe.com/elements/express-checkout-element