#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/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.
- abdullahergun_api, 14 hours ago, 8 messages
- abdullahergun_api, 1 day ago, 20 messages
This charge Id belongs to payment made from main account to connected account
py_1RABLTBBNgJ2lM2BBJCFNbq1
Hi, that py_ object belongs to the connected account so you'd need to use the Stripe Account Header, https://docs.stripe.com/connect/authentication to make this call.
Are you able to try that?
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
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
You can attain the fee details from the balance transaction from the originial charge/ from that screenshot: https://docs.stripe.com/api/balance_transactions/object#balance_transaction_object-fee_details and then use that information to show them the details
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
The fee details would be on the initial charge and not on the transfer object
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",
};
yeap, that would work
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
You can pass more than one key value pairs
Perfect I got it thank you so much ๐
Sure!