Private preview
Network cost passthrough report Private preview
Show network cost passthrough data for connected accounts.
The network cost passthrough report component displays plan-level and transaction-level views of network costs that are passed through to connected accounts. It allows you to see the breakdown of network costs associated with your connected accounts’ payment processing.
Create an AccountSession
When creating an Account Session, enable Network cost passthrough report by specifying network_cost_passthrough_report in the components parameter.
Note
The Network cost passthrough report component is in private preview, so the Stripe SDKs don’t include it yet. To enable it when creating an account session, use this code snippet with the Stripe beta SDK:
main.rb
Select a language
Ruby
Python
PHP
Java
Node.js
Go
.NET
No results
client = Stripe::StripeClient.new('{{sk_INSERT_YOUR_SECRET_KEY}}', stripe_version: '2023-10-16; embedded_connect_beta=v2;')
account_session = client.v1.account_sessions.create({
account: '{{CONNECTED_ACCOUNT_ID}}',
components: {
network_cost_passthrough_report: {enabled: true}
}
})
After creating the account session and initializing ConnectJS, you can render the Network cost passthrough report component in the frontend:
Render the component
network-cost-passthrough-report.js
Select a language
JavaScript
React
No results
// Include this element in your HTML
const container = document.getElementById("container");
const networkCostPassthroughReport = stripeConnectInstance.create("network-cost-passthrough-report");
container.appendChild(networkCostPassthroughReport);
Supported parameters
This embedded component has no additional parameters.
Request access Private preview
Get access to the preview of the Network cost passthrough report Connect embedded component.
Enter your email to request access.
