We are creating a Stripe session in our application like this:
StripeConfiguration.ApiKey = ConfigurationManager.AppSettings["StripeKey"];
var baseUrl = ConfigurationManager.AppSettings["DomainURL"];
var options = new SessionCreateOptions
{
PaymentMethodTypes = new List<string> {
"card",
},
PaymentIntentData = new SessionPaymentIntentDataOptions()
{
Description = requestDto.TrackingNumber,
ReceiptEmail = requestDto.User.Email,
},
CustomerEmail = requestDto.User.Email,
ClientReferenceId = requestDto.TrackingNumber,
LineItems = new List<SessionLineItemOptions> {
new SessionLineItemOptions {
Name = requestDto.Title,
Amount = requestDto.Total,
Currency = "usd",
Quantity = 1,
Description = requestDto.TrackingNumber
},
},
SuccessUrl = baseUrl + $"/Payment/Success",
CancelUrl = baseUrl + $"/Payment/Failure",
};
var service = new SessionService();
var session = service.Create(options);
return session.Id;
After that, stripe payment page shows up and user enters credit card information. We are trying to get Stripe processing fee after successful payment. We tried "BalanceTransactionService" but it did not work. I think "balance transaction" object is not available for this payment type. Is there a way to get processings fee from stripe?