#wolost_code

1 messages · Page 1 of 1 (latest)

hushed orioleBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1394471223412396144

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

inner reef
#

Hey everyone! 👋 I’d like to get some clarity on whether our Stripe payment flow is set up correctly.

Here’s what i'm doing:
-I'm creating a PaymentIntent with an estimated amount. At that point, we also calculate the application fee and stripe fee and include it based on that initial amount.

The PaymentIntent stays in requires_confirmation state — sometimes for a while (could be even few days). Later, once we know the final amount (based on some external logic), we update both the amount and the application_fee_amount, and then confirm the PaymentIntent.

So far this seems to be working, but I want to be sure it’s a safe and recommended approach. Specifically:

Is it okay to update both amount and application_fee_amount as long as the intent hasn't been confirmed yet?

Are there any edge cases I should watch out for, like Stripe charging unexpected fees, or problems from updating a PaymentIntent after some time?

Would appreciate any insights or confirmation from others who've worked with delayed/manual capture flows like this 🙏

latent ermine
#

Hi! Looking into your questions!

inner reef
#

Thank you! 😁

latent ermine
#

It's okay to update the payment intent's amount and application fee on a later date before you confirm it. We don't have a fee for creating payment intents. It's typically charged after the payment has been confirmed.

#

Off hand I can't think of any specific edge cases however, you should test this out based on your specific business flow.

inner reef
#

I've already tested with the bussines flow, but during this testing, I noticed that sometimes Stripe adds additional fees that aren’t fully clear to me such as:
-Balance transfer (inbound/outbound)
-Network cost
-Stripe per-authorization fee

latent ermine
#

Can you give me example of each so I can look into it?

inner reef
#

Sure, just give me few minutes.

inner reef
#

So this was basically the ones i got charged for, but today i did some test again with the same flow and i got nothing related to this fees.

I readed about a bit and i found that is probably related to this transactions that were almost at the same time but canceled all of them manually.

latent ermine
#

The transaction network costs and Stripe per-authorization fees are charged as part of IC+ fees. It might not be the fees for just 1 payment. I am not sure about the 2 at the top. If you would like more information on the fees, I would suggest reaching out to our support team (https://support.stripe.com/contact).

inner reef
#

I understand.
Regarding the network costs and Stripe per-authorization fees
Is there any way I can calculate those fees before capturing the payment?
Is there a specific formula or logic I should follow?
Will this happen with every transaction I make? Because in the ones I did today, I didn’t see any of that.

latent ermine
#

If I recall correctly the fees are not calculated immediately so you may not see them for the payments you just created. However I am not too familiar with fees as this channel is more for API related queries.

hushed orioleBOT
#

We wish we could help, but you need to talk to Stripe support

We can only help on Discord if all of the following are true:

  • 🧑‍💻 You must be a developer
  • 🛠️ Your question must be about building a Stripe integration
  • ⚙️ Your question must be technical/developer focused
  • ⏱️ You must be available to respond in realtime
  • 👥 You must be comfortable receiving help in public (this is a public server)

If any of those aren't true please contact Stripe support.

If all of those are true we may have misunderstood your question; please provide more details below.

Note that using an inappropriate button or submitting inappropriate information is a violation of our rules. You will be removed from this server if you repeatedly create invalid threads.

latent ermine
#

You can follow the link here to get to our support team on these questions.