# Stripe

Source: https://analytics.5h3ll.site/docs/stripe

Connect Stripe and pass the visitor ID so payments are attributed.

Connect Stripe from **Settings** for your website, then pass the visitor ID in your checkout metadata so each payment lines up with the visit.

```
const session = await stripe.checkout.sessions.create({
  mode: 'payment',
  line_items: [...],
  metadata: { ml_visitor_id: visitorId }, // value of the ml_vid cookie
  success_url: 'https://example.com/thanks',
});
```

Previous

Revenue attribution

Next

Dodo Payments

Something missing or wrong? [Open a support ticket](https://analytics.5h3ll.site/support).
