#abdullahergun_api

1 messages ¡ Page 1 of 1 (latest)

worthy jettyBOT
#

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

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

stuck bramble
#

Hello there

misty herald
#

I am looking at the TransferCreateOptions right now but I doesnt seem the returning anything

stuck bramble
#

This isn't a part of the create options

#

This is only returned after the Transfer is created, in the response.

misty herald
#

So how can I get this information ?

stuck bramble
#

What do you mean?

misty herald
#

TransferService doesnt seem to have it too

#

How can I get the destination_payment

#

I have the following code

var options = new TransferCreateOptions
{
Amount = calculatedAmount,
Currency = "gbp",
Destination = clientModel.ConnectedAccountId,
TransferGroup = stripeModel.balanceTransaction.Description,
Description = "Order Number",

};
var service = new TransferService();

service.Create(options);

stuck bramble
#

Yeah you need to examine the response to that request.

#

So set the response in a variable and log it out

misty herald
#

Do you have an example code ?

stuck bramble
#

I'm not a dotnet dev but you should just be able to do something like:

Console.WriteLine("transfer: ", transfer);```
misty herald
#

Perfect it has got all the information I need

#

Thank you so much

worthy jettyBOT