#abdullahergun_api
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/1357087892291194941
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello there
There is no way to have this happen in the Transfer creation request. Instead, you would get the destination_payment from the Transfer creation request's response (https://docs.stripe.com/api/transfers/object#transfer_object-destination_payment) and then update that Charge with your desired description: https://docs.stripe.com/api/charges/update#update_charge-description
I am looking at the TransferCreateOptions right now but I doesnt seem the returning anything
This isn't a part of the create options
This is only returned after the Transfer is created, in the response.
So how can I get this information ?
What do you mean?
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);
Yeah you need to examine the response to that request.
So set the response in a variable and log it out
Do you have an example code ?
I'm not a dotnet dev but you should just be able to do something like:
Console.WriteLine("transfer: ", transfer);```