Retake
Stripe

Recover Failed Stripe Payments Automatically

Sync Retake with Stripe to automatically detect and recover failed payments, incomplete checkouts, and abandoned Stripe Checkout sessions.

How to integrate Stripe with Retake

1

Get Your Stripe Webhook Secret

In the Stripe Dashboard, go to Developers → Webhooks → Add endpoint. Point it to your Retake webhook URL.

2

Configure Events

Subscribe to these events: checkout.session.expired, checkout.session.completed, payment_intent.payment_failed

3

Alternative: Direct Integration

Track checkout sessions directly when you create them.

import Stripe from 'stripe';
import { Retake } from '@retakeapi/js';

const retake = new Retake({ apiKey: process.env.RETAKE_KEY });

stripe.checkout.sessions.create({
  // ... your checkout config
}).then(async (session) => {
  await retake.track({
    type: "payment",
    userId: session.client_reference_id || session.customer_email,
    email: session.customer_email,
    value: session.amount_total / 100,
    metadata: { stripeSessionId: session.id }
  });
});

Stripe Features

Webhook integration with Stripe events

Recover incomplete Stripe Checkout sessions

Automatic payment retry notifications

Works with Stripe Billing for subscription recovery