Stripe integration
Show subscription, invoice, and payment data alongside support conversations so agents never have to tab away.
The Stripe integration pulls billing data directly into the Liya conversation sidebar. When a customer contacts support about a payment issue, agents see their Stripe subscription, recent invoices, payment method, and dispute history — without leaving Liya.
What the integration shows
| Data | Description |
|---|---|
| Subscription status | Active, past_due, trialing, cancelled, or paused |
| Current plan | Stripe product and price name (e.g. "Growth · $49/month") |
| Next billing date | When the next invoice is due |
| Payment method | Card brand, last 4 digits, and expiry date |
| Recent invoices | Last 5 invoices with status (paid, open, void, uncollectible) |
| Payment history | Successful and failed charge attempts with amounts and dates |
| Disputes / chargebacks | Open dispute status and amounts |
| Upcoming invoice | Preview of the next invoice if subscription is active |
Connecting Stripe
Go to Settings → Integrations → Stripe
Click Connect Stripe account.
Authenticate via Stripe OAuth
You'll be redirected to Stripe's OAuth flow. Select the Stripe account (live or test mode) and click Connect.
Configure customer matching
Liya matches Stripe customers to Liya contacts using email address. If your customers have different emails in Stripe vs Liya, set up a custom matching field using the Stripe metadata.liya_contact_id key.
Billing actions (optional write permissions)
If you grant write permissions, agents can take billing actions directly from the Liya conversation sidebar:
- Issue refund — full or partial refund on a specific invoice or charge
- Retry failed payment — manually retry the latest failed invoice
- Send invoice — resend the invoice email to the customer
- Apply discount / coupon — apply a Stripe coupon to the customer's subscription
- Cancel subscription — immediately or at end of billing period
AI draft enhancement
When Stripe is connected and a billing-related ticket is detected, Liya injects relevant Stripe data into the AI draft context:
- Whether the customer's subscription is active or past due
- The exact amount and date of the charge they're asking about
- Whether a refund is eligible based on your configured policy
- The payment method last 4 digits (useful for identity verification)
This produces drafts like: "Hi Jane — I can see your invoice of $49 from June 28th was successfully charged to your Visa ending in 4242. Your Pro plan is active and will renew on July 28th..."
Test mode
You can connect a Stripe test account separately for staging and development environments. Test mode data is kept completely separate from live mode data in Liya.