#abdullahergun_api

1 messages ยท Page 1 of 1 (latest)

uneven horizonBOT
#

๐Ÿ‘‹ 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/1357726308997664839

๐Ÿ“ 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.

autumn wind
#

This charge Id belongs to payment made from main account to connected account

py_1RABLTBBNgJ2lM2BBJCFNbq1

valid pike
#

Are you able to try that?

autumn wind
#

Am I looking at someting like this

public void UodateDatils(string transferId, string apiKey)
{
StripeConfiguration.ApiKey = "";

  var options = new ChargeUpdateOptions
  {
      Metadata = new Dictionary<string, string> { { "shipping", "express" } },
      Description = "AE Test",

  };

  var requestOptions = new RequestOptions
  {
      StripeAccount = "acct_1R7enyBBNgJ2lM2B",
  };

  var service = new ChargeService();
  service.Update("py_1RABLTBBNgJ2lM2BBJCFNbq1", options, requestOptions);

}

#

I just run the following code and its working fine

#

One more question

valid pike
#

Yeap, that is right. Glad it is working

#

Sure, I'm ready for your next question

autumn wind
#

How can I update this fee so client knows how much fee charged by stripe and me in total

#

ChargeUpdateOptions doesnt seem have "fee" option to update

valid pike
autumn wind
#

Can I do this by using transfers

I am currently using the following code the transfer money from main to connected it doesnt seem like balance transfer object

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

};

var service = new TransferService();

var transfer = service.Create(options);

#

This is the code that I have now

#

TransferCreateOptions doesnt contain balance transaction

valid pike
#

The fee details would be on the initial charge and not on the transfer object

autumn wind
#

I know getting the fee datils is not my issue here including it on the TransferService is

#

O accually I can just inlude them in the metadata

#

or

#

var options = new ChargeUpdateOptions
{
Metadata = new Dictionary<string, string> { { "Application Fees", "1.50" } },
Description = "AE Test",
};

valid pike
#

yeap, that would work

autumn wind
#

in this part I can inlude information in the metada however how can do this multible times for example metadata to be like

#

Application fee : 150
Stripe fee : 50

valid pike
#

You can pass more than one key value pairs

autumn wind
#

Perfect I got it thank you so much ๐Ÿ™‚

valid pike
#

Sure!