#kakos_code
1 messages ยท Page 1 of 1 (latest)
๐ 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/1351635217156149328
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
pi_3R3P4GC4wSV3tjam1HSkeGQL
Hello
It is possible you're using the wrong API key or the PaymnetIntent might belong to a connected account
if it belongs to the connected account I can not trigger the refund? (the scenario is the connected account creates the refund)
You can but in this case, I don't believe this is related to connect?
The PaymentIntent you've shared belongs to acct_1Qg10uC4wSV3tjam
You would need to use API key that belongs to that account
so each connected account will have their own api key?
Depends on the type of connected account. But for connected accounts, platforms can just make API calls on their behalf. https://docs.stripe.com/connect/authentication
NP! ๐
hmm I alreayd do that
acct_1QoSmJ2Hniu7CH8U with this Id and I still get not found though
const refund = await this.stripeAPI.refunds.create(
{
payment_intent: paymentIntentId,
amount: amount * 100,
refund_application_fee: false,
},
{
stripeAccount: accountId,
}
);
oh its other account
opsieee
Yup