# Invite customers after a Stripe payment event

Ask customers about checkout, a refund or a subscription change. Shopoll can send an email or a text after the event, with a delay you choose.

## Connect your Stripe account

1. As a workspace owner or admin, open **Integrations → Stripe**.
2. Enter a Stripe restricted key with **Customers** read access and **Webhook Endpoints** write access. Choose **Connect Stripe**. Shopoll registers the four payment events with Stripe.
3. Check whether the connection says **Test account connected** or **Live account connected**. A test account lets you check that Shopoll receives events without contacting customers.

If you filter by product or price, allow read access to Checkout Sessions for checkout and refund events, and Subscriptions for subscriptions with many items. If you filter a subscription by amount, allow read access to Invoices.

## Choose an event and audience

Create a survey, choose **Stripe** in the delivery step, then choose an event and **Email** or **SMS**. You can also edit **Stripe invitations** in an existing survey’s **Settings**.

![The Stripe delivery settings for a refund survey, set to email the shopper after 30 minutes.](/docs/media/stripe-invitation.png)

| Event | Example question |
| --- | --- |
| Checkout completed | How easy was it to place your order? |
| Charge refunded | How was your refund experience? |
| New subscription | What made you subscribe? |
| Subscription cancelled | What was the main reason you cancelled? |

Set **Minutes after the event** to zero to make the invitation eligible immediately. Enter 60 for an hour. Confirm you have permission to contact these customers, check the [invitation design](/docs/accounts/design-defaults.md) and publish the survey. Email requires an email address. Texts require a supported UK mobile number. Your workspace needs a sender for the chosen channel.

## Filter eligible payments

Open **Filter eligible payments** to limit who qualifies. A £50 checkout minimum uses currency **GBP** and amount **50**. For a refund, the amount is the total refunded on that charge so far. For a subscription amount filter, Shopoll uses the latest invoice total. A subscription without an invoice cannot match an amount filter.

You can also match an exact metadata name and value, a product ID or a price ID. When you enter both product and price, the same item must match both. A refund can match product or price when the charge can be linked to a Stripe Checkout session.

## Check delivery and answers

Open **Activity → Invitations → Event details** for the source and scheduled time. Choose **View invitation record** to check delivery status. Only published surveys accepting responses can receive new invitations. Customers who opted out of the channel are skipped. A repeat delivery of the same Stripe event does not create another invitation for that survey.

In the survey’s response report, expand **Response metadata** on an answer submitted through the invitation link. It shows the Stripe event and the available customer ID, amount and currency. Anonymous surveys keep only the event type from the payment. Open **Integrations → Stripe** to see the last payment event Shopoll received. Disconnecting stops new invitations and cancels waiting invitations and reminders from that connection.
