#B33fb0n3-connect

1 messages ยท Page 1 of 1 (latest)

mild star
#

as for how to take fees on Orders using Connect, not sure, let me look, this is a new API to me

plain stump
#

yeah sure ๐Ÿ™‚

mild star
plain stump
#

and then you use the Stripe-Account header on requests set to the ID of the connected account

    const stripe = require('stripe')(stripeKey, {
        apiVersion: '2020-08-27; orders_beta=v3',
        stripeAccount: "acct_1connectedAccountID"
    });

Can I do it just like this, cause I am using the sdk?

mild star
plain stump
plain stump
mild star
#

which again means using your platform secret key and passing Stripe-Account , in the backend call to create the Order

plain stump
plain stump
mild star
mild star
plain stump
mild star
#

the PaymentIntent is created by the order

#

so it will be on the same account as the Order, you don't need to do anything special really

plain stump
#

ah ok, great!

mild star
#

not sure unfortunately, Orders are really new to me

#

my colleague will be taking over this thread in a moment while I get lunch and might know

plain stump
#

I saw the order have this value

plain stump
plain stump
restive kiln
#

Yes I will. Just getting caught up on this one now, sorry for the dealy

plain stump
#

no problem ๐Ÿ™‚

restive kiln
#

So are you saying that that amount_total does work for you or are you looking for the pre-tax amount to calculate your percentage on?

plain stump
#

I'd like to charge my customers with percentage amount of the total amount from the order. amount_total does work, but I have 2 requests. Can I do this smarter?

restive kiln
#

Gotcha, thanks for the clarification. I am less familiar with the orders API but am looking in to how to do this in one call

plain stump
#

sure, take ur time ๐Ÿ˜„

restive kiln
#

Unfortunately I am not finding any good leads here though like I said I am not as familiar with it. If you write in to our support team, they should be able to direct you to the team that runs this beta and they will have a better idea on if this is possible https://support.stripe.com/?contact=true

plain stump
#

ok ๐Ÿ‘

#

After I process the Order the customer get's redirected to the given return_url sometime the url get's the query with paymentintentid and paymentintent secret and sometimes with orderid and ordersecret. When does what happen?

restive kiln
#

I am also not immediately sure on that, I can check in to the Payment Intents if you send me their IDs but I may have to direct you to the team that is running the beta again

plain stump
#

ok we can do this ๐Ÿ™‚

plain stump
restive kiln
plain stump
#

@restive kiln I cant use this element, cause I develope in react

plain stump
#

hii @vast river are u the person who is going to take over this thread? Cause Pompey went just offline

vast river
#

Hi there ๐Ÿ‘‹ apologies for the delay while I work to get caught up. I'm not the most well-versed in React, so would you mind helping me understand why you can't listen for that event with it?

plain stump
#

whether backend or frontend does not matter

vast river
plain stump
barren geyser
#

Hey there ๐Ÿ‘‹
Stepping in here
You can use onReady prop to listen for an event that would fire when the PaymentElement is fully rendered

plain stump
#

hii there.
Just use this in my useEffect function?

barren geyser
#

For example

  const runThisFunction = (e) => { console.log(`PaymentElement rendered`) } 

  <PaymentElement onReady={runThisFunction} />
plain stump
#

ahhh ๐Ÿคฆโ€โ™‚๏ธ

#

give me a second to confirm this

#

worked! Thanks ๐Ÿ‘

barren geyser
#

NP! ๐Ÿ™‚ Happy to help

#

Good luck

plain stump
#

Thank u ๐Ÿ‘Œ

muted vault
#

Hello! Stripe is telling me to update bank info so they are holding my payments. The bank information is/has been the same for years

barren geyser
#

@muted vault Please use the main channel to chat with us

muted vault
#

Where is that?

barren geyser