#frekis_api

1 messages ¡ Page 1 of 1 (latest)

proper shoreBOT
#

👋 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/1302922003522654241

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

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

timid wagon
#

hi there!

#

which parameter is missing?

bronze wave
timid wagon
#

what is "transaction ID"? you mean the BalanceTransaction?

bronze wave
#

i need this txn id so we can check and update further in our db based on charges

#

parameter is :- charges and inside charges balance_transaction parameter

#

So now how can i get that balance_transaction ?

timid wagon
#

when do you want that information? just after creating the PaymentIntent, or later?

bronze wave
#

no i need later

#

like in capture payment what we do we saved all amount and taxes in our database so it will easy to make print

timid wagon
#

when you retrieve the PaymentIntent with the API, add expand: ["latest_charge.balance_transaction"]. and the API response will contain the PaymentIntent, and the Charge, and the BalanceTransaction.
you can learn more about Expand here: https://docs.stripe.com/expand

bronze wave
#

Expend will not work as expected.

#

can you gave me any other way like any other api calling so will use that way to get that missing charges parameter value and inside charges balance transactions

timid wagon
#

Expend will not work as expected.
why?

#

have you tried? what's the issue?

bronze wave
#

yes i tried earlier

timid wagon
#

and what happened?

bronze wave
#

can expand will work on capture method ?

stripe.paymentIntents.capture

timid wagon
#

yes

bronze wave
#

stripe.paymentIntents.capture(
"intent_id",
{
amount_to_capture: 100,
application_fee_amount: 1.2
},
{ stripeAccount: "acc_" },
{
expand: ['charges'],
}
);

#

this will work right ?

timid wagon
#

it should be this:

expand: ["latest_charge.balance_transaction"]
#

and please try this in test mode to see if it works or not.