There are a few ways to integrate Stripe with Xero -
Via a third-party app: there are a few different applications that you can use to connect Stripe with Xero, such as Zapier or Stripe2Xero.
Directly through Stripe: you can also connect your Stripe and Xero accounts directly through Stripe's website. To do this, you'll need to generate an API key in Stripe, and then enter this into your Xero account under 'Connected Accounts'.
Via Stripe's webhooks: this is a more technical option, but it's possible to connect Stripe and Xero using Stripe's webhooks. You can find more information on how to do this in Stripe's documentation.
Whichever method you choose, you'll need to make sure that your Stripe account is set up to send payment information to Xero. You can do this by going to your Stripe account settings and selecting 'Payments'. From here, you can choose to send payment information to Xero automatically for all payments, or just for specific types of payments.