> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sequencehq.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Stripe

> Integrate with Stripe to automatically collect payments from customers and reconcile invoices.

<img src="https://mintcdn.com/sequence/AaBHfWeLf5Am1S8n/images/integrations/covers/stripe.png?fit=max&auto=format&n=AaBHfWeLf5Am1S8n&q=85&s=566940379728c86019d06d64720c8073" alt="Stripe" width="1288" height="512" data-path="images/integrations/covers/stripe.png" />

**Use the Stripe integration to**:

* Add Stripe payment links to Sequence invoices to provide additional payment methods
* Automatically charge customers when you send invoices (auto-charging can be disabled)
* Automatically mark Sequence invoices as paid once payment is received

<Note>
  **Creating a new Stripe account**

  Stripe Connect requires all partner apps to create a separate, ringfenced account within your existing Stripe account. This prevents third party integrations from interacting with each other. If you have customers with payment details in your existing account, you can copy them over in a [few simple steps](#copying-existing-customers-into-your-new-stripe-account).
</Note>

## Start guide

Follow the below steps to get started:

1. Head to the Integrations page to connect to Stripe. This will take you to a Stripe onboarding flow to create a new connected Stripe account. Stripe requires partner apps to create separate ringfenced accounts.
2. If you have an existing Stripe account with customers and payment methods, you can copy them over in a [few steps](#copying-existing-customers-into-your-new-stripe-account).
3. Link your Sequence customers to Stripe customers. Sequence will use the payment method on file to automatically charge your customers when an invoice is sent.

<Frame>
  <img src="https://mintcdn.com/sequence/JBbyR0QYn1smSEQ7/images/integrations/stripe/stripe_integration.png?fit=max&auto=format&n=JBbyR0QYn1smSEQ7&q=85&s=b0664590063289c4a616b790645bbee4" alt="Integrate with Stripe" width="3248" height="2112" data-path="images/integrations/stripe/stripe_integration.png" />
</Frame>

During onboarding, Stripe will request standard information about your business to verify your account. Ensure that you provide complete business information to avoid the risk of suspension or payment interruptions later on.

### Recommended Stripe account setup

<Tabs>
  <Tab title="Enable payment receipts">
    Create a transparent payment experience for your customers by enabling payment receipt notifications on Stripe (recommended).
    In your Stripe account, go to **Settings > Business > More > Customer emails** and enable email notifications for successful payments and refunds.
    Once enabled, your customers will receive a notification from Stripe each time a payment succeeds (see below). Payment receipts are helpful for customers who are charged automatically.

    <Frame>
      <img src="https://mintcdn.com/sequence/JBbyR0QYn1smSEQ7/images/integrations/stripe/stripe_emails.png?fit=max&auto=format&n=JBbyR0QYn1smSEQ7&q=85&s=60f26a5730d95076db140744b63287a4" alt="Stripe email settings" width="3248" height="2112" data-path="images/integrations/stripe/stripe_emails.png" />
    </Frame>

    Example payment receipt from Stripe

    <Frame>
      <img src="https://mintcdn.com/sequence/JBbyR0QYn1smSEQ7/images/integrations/stripe/stripe_paymentreceipts.png?fit=max&auto=format&n=JBbyR0QYn1smSEQ7&q=85&s=7c22eb1fe90d36c3ac4537d5e656e701" alt="Payment receipt email" width="3248" height="2112" data-path="images/integrations/stripe/stripe_paymentreceipts.png" />
    </Frame>
  </Tab>

  <Tab title="Set up payment methods">
    Provide customers different payment options. In your Stripe account, go to **Settings > Payments > Payment methods**. Payment methods are displayed as options on your Stripe checkout page for each invoice.

    <Frame>
      <img src="https://mintcdn.com/sequence/JBbyR0QYn1smSEQ7/images/integrations/stripe/stripe_payment_methods.png?fit=max&auto=format&n=JBbyR0QYn1smSEQ7&q=85&s=918cc7d8b38d77321463da828698c54d" alt="Payment method settings" width="3248" height="2112" data-path="images/integrations/stripe/stripe_payment_methods.png" />
    </Frame>
  </Tab>

  <Tab title="Check Stripe account status">
    Check your account status to ensure there are no outstanding tasks to avoid the risk of suspension. In your Stripe account, go to **Settings > Business > Account status**.

    <Frame>
      <img src="https://mintcdn.com/sequence/JBbyR0QYn1smSEQ7/images/integrations/stripe/stripe_accountstatus.png?fit=max&auto=format&n=JBbyR0QYn1smSEQ7&q=85&s=a1697dffd2ca35e6b0e61c3f2728b657" alt="Stripe Account status" width="3248" height="1928" data-path="images/integrations/stripe/stripe_accountstatus.png" />
    </Frame>
  </Tab>
</Tabs>

## Collecting payments with Stripe

Collecting payments with Stripe is straightforward. To automate collections for a customer, enable Stripe payment links on the customer's billing schedule, create one-time invoices with payment links or add a payment link to an existing draft invoice.

<Tabs>
  <Tab title="Billing schedules">
    Create a billing schedule and enable Stripe payments to automate collections. Invoices created by the billing schedule will include a Stripe payment link (regular bank details are included as a fallback option).

    <Frame>
      <img src="https://mintcdn.com/sequence/JBbyR0QYn1smSEQ7/images/integrations/stripe/stripe_schedule.png?fit=max&auto=format&n=JBbyR0QYn1smSEQ7&q=85&s=8ab3187c84d5961e2fdc85836d25be4a" alt="Payment link for billing schedule invoices" width="3248" height="2112" data-path="images/integrations/stripe/stripe_schedule.png" />
    </Frame>
  </Tab>

  <Tab title="One-time invoices">
    Create a one-time invoice and enable Stripe as a payment method. Once issued to the customer, the invoice will include a payment link.

    <Frame>
      <img src="https://mintcdn.com/sequence/JBbyR0QYn1smSEQ7/images/integrations/stripe/stripe_onetimeinvoice.png?fit=max&auto=format&n=JBbyR0QYn1smSEQ7&q=85&s=a12d5963a966f8ca4bb60ff52ff06d7e" alt="Payment link for one time invoice" width="3248" height="2112" data-path="images/integrations/stripe/stripe_onetimeinvoice.png" />
    </Frame>
  </Tab>

  <Tab title="Draft invoices">
    Add a payment link to a draft invoice.

    <Frame>
      <img src="https://mintcdn.com/sequence/JBbyR0QYn1smSEQ7/images/integrations/stripe/stripe_addpaymentlink.png?fit=max&auto=format&n=JBbyR0QYn1smSEQ7&q=85&s=cec8dbd23df21d782452c65529fcae69" alt="Add payment link to draft invoice" width="3248" height="2112" data-path="images/integrations/stripe/stripe_addpaymentlink.png" />
    </Frame>
  </Tab>

  <Tab title="Sent invoices">
    You can also add a payment link for an already sent invoice (for example if you forgot to add it). This will add a link to a Stripe Checkout page on the hosted invoice page on your customer portal.

    <Frame>
      <img src="https://mintcdn.com/sequence/JBbyR0QYn1smSEQ7/images/integrations/stripe/stripe_sentinvoice.png?fit=max&auto=format&n=JBbyR0QYn1smSEQ7&q=85&s=7bc7e14a3fa6d801aee7bc7f44de341c" alt="Add payment link to sent invoice" width="3248" height="2112" data-path="images/integrations/stripe/stripe_sentinvoice.png" />
    </Frame>
  </Tab>
</Tabs>

## Example payment flow

<Steps>
  <Step title="Enable Stripe payments for a billing schedule">
    When the invoice is finalized and sent to the customer, a Stripe checkout payment link is generated. If a payment method is already on file, the customer is charged automatically. Talk to our team to disable auto-charging for your account.
  </Step>

  <Step title="Send an invoice with a payment link">
    Once an invoice has been sent, there are different options for your customer to view the Stripe checkout page and complete the payment.

    <Tabs>
      <Tab title="Invoice email">
        The email includes a Stripe checkout link to pay for the invoice. Clicking `View invoice details` will open the hosted invoice. The invoice is also attached as a PDF.

        <Frame>
          <img src="https://mintcdn.com/sequence/JBbyR0QYn1smSEQ7/images/integrations/stripe/invoice_email.png?fit=max&auto=format&n=JBbyR0QYn1smSEQ7&q=85&s=5d51db408021329ec379674ffc6e860b" alt="Email notification" width="3248" height="2112" data-path="images/integrations/stripe/invoice_email.png" />
        </Frame>
      </Tab>

      <Tab title="Hosted invoice">
        <Frame>
          <img src="https://mintcdn.com/sequence/JBbyR0QYn1smSEQ7/images/integrations/stripe/stripe_hostedinvoice.png?fit=max&auto=format&n=JBbyR0QYn1smSEQ7&q=85&s=50c1f92e7ab5fe014781cc15d605805d" alt="Hosted invoice" width="3248" height="2112" data-path="images/integrations/stripe/stripe_hostedinvoice.png" />
        </Frame>
      </Tab>

      <Tab title="Invoice PDF">
        <Frame>
          <img src="https://mintcdn.com/sequence/JBbyR0QYn1smSEQ7/images/integrations/stripe/stripe_invoicepreview.png?fit=max&auto=format&n=JBbyR0QYn1smSEQ7&q=85&s=2b2cd4e5b0460a8af342b5b33fead04f" alt="Payment link preview" width="3248" height="2112" data-path="images/integrations/stripe/stripe_invoicepreview.png" />
        </Frame>
      </Tab>
    </Tabs>
  </Step>

  <Step title="Stripe checkout">
    Clicking `Pay using Stripe` on any of the above touch points will open the Stripe checkout. If this is the first time the customer is paying via Stripe, they will need to enter their payment details as below. If a payment method is on file, the customer is charged automatically and will see a "Payment successful" page.

    <Frame>
      <img src="https://mintcdn.com/sequence/JBbyR0QYn1smSEQ7/images/integrations/stripe/stripe_checkout.png?fit=max&auto=format&n=JBbyR0QYn1smSEQ7&q=85&s=097d0714684f66079165265f1dd58821" alt="Stripe checkout page" width="3248" height="2112" data-path="images/integrations/stripe/stripe_checkout.png" />
    </Frame>
  </Step>

  <Step title="Payment successful">
    If the payment succeeds, or if a customer opens the link for an already completed payment, the below page is displayed. In Sequence, the invoice is automatically marked as paid.

    <Frame>
      <img src="https://mintcdn.com/sequence/JBbyR0QYn1smSEQ7/images/integrations/stripe/stripe_success.png?fit=max&auto=format&n=JBbyR0QYn1smSEQ7&q=85&s=72f0696a321dcf6b462bbc231164aeef" alt="Payment successful" width="3248" height="2112" data-path="images/integrations/stripe/stripe_success.png" />
    </Frame>
  </Step>
</Steps>

## Auto-charging customers

Charge customers automatically once a payment method is on file (e.g. card details or a direct debit). Sequence initiates the payment when you **send** the invoice to the customer.

<Tip>**If auto-charging is enabled**: Once a customer has paid their first Stripe invoice and there is a payment method on file, subsequent invoices will be **charged automatically**. You can disable auto-charging in settings (see below).</Tip>

You can enable or disable auto-charging in Settings > Invoices. Changes only apply to subsequently created billing schedules and invoices.

<Frame>
  <img src="https://mintcdn.com/sequence/JBbyR0QYn1smSEQ7/images/integrations/stripe/stripe_default_settings.png?fit=max&auto=format&n=JBbyR0QYn1smSEQ7&q=85&s=5c37d8fd488154db0118a39c68880622" alt="Stripe auto-charging" width="3248" height="2112" data-path="images/integrations/stripe/stripe_default_settings.png" />
</Frame>

If you have disabled auto-charging by default, you can still enable auto-charging for selected customers as part of their billing schedule.

<Frame>
  <img src="https://mintcdn.com/sequence/JBbyR0QYn1smSEQ7/images/integrations/stripe/stripe_schedule_settings.png?fit=max&auto=format&n=JBbyR0QYn1smSEQ7&q=85&s=fbd67616ed5da522beb800a81676e5f4" alt="Stripe auto-charging" width="3248" height="2112" data-path="images/integrations/stripe/stripe_schedule_settings.png" />
</Frame>

## Linking Sequence customers to Stripe

Once integrated with Stripe, Sequence will handle creating customers in Stripe. Customer details are pushed into Stripe when the first payment link is created. Login to your Stripe dashboard to view your customers.
You can unlink Sequence customers from Stripe from the Sequence dashboard.

<Frame>
  <img src="https://mintcdn.com/sequence/JBbyR0QYn1smSEQ7/images/integrations/stripe/stripe_linkedcustomer.png?fit=max&auto=format&n=JBbyR0QYn1smSEQ7&q=85&s=e6f6f59c4188ea68bde7be4408d864d1" alt="Linked Stripe customer" width="3248" height="2112" data-path="images/integrations/stripe/stripe_linkedcustomer.png" />
</Frame>

You can also manually link Sequence customers to Stripe via the dashboard. Click on the kebab menu in the customers table and select `Link to Stripe`.

<Frame>
  <img src="https://mintcdn.com/sequence/JBbyR0QYn1smSEQ7/images/integrations/stripe/stripe_linkcustomermanually.png?fit=max&auto=format&n=JBbyR0QYn1smSEQ7&q=85&s=96b43084138daa0825c9b3e20ef7f849" alt="Link a customer to Stripe" width="3248" height="2112" data-path="images/integrations/stripe/stripe_linkcustomermanually.png" />
</Frame>

## Reconciling invoices

Invoices with Stripe as a payment method are automatically marked as paid in Sequence once the Stripe collection has taken place.

<Frame>
  <img src="https://mintcdn.com/sequence/JBbyR0QYn1smSEQ7/images/integrations/stripe/stripe_paidinvoice.png?fit=max&auto=format&n=JBbyR0QYn1smSEQ7&q=85&s=a63286efc7fde51506402789cb0630de" alt="Invoice marked as paid" width="3248" height="1918" data-path="images/integrations/stripe/stripe_paidinvoice.png" />
</Frame>

<Note>Using an Accounting integration with Sequence? For invoices with a Stripe payment link, Sequence does not sync transactions such as Stripe payments with your Accounting system. In this case, you need to reconcile invoices in your Accounting system separately.</Note>

To reconcile payments against invoices in your Accounting system or ERP, use one of Stripe's native Accounting or ERP integrations to sync in payment feeds.

## Dealing with failed payments

Sequence automatically charges customers with a payment method on file when you finalize an invoice with Stripe enabled.

Payments fail for a number of reasons, including expired card details and insufficient funds ([learn more](https://docs.stripe.com/declines/codes)).
When a payment fails, Sequence notifies you and your customer via email.

To make the payment, your customer needs to provide an updated payment method. Your customer can pay for the invoice by selecting the `Pay using Stripe` link from their invoice email notification or via their customer portal.

<Tabs>
  <Tab title="Failure notification">
    When a payment fails, Sequence sends an email to your business and customer.

    <Frame>
      <img src="https://mintcdn.com/sequence/JBbyR0QYn1smSEQ7/images/integrations/stripe/stripe_email_failedpayment.png?fit=max&auto=format&n=JBbyR0QYn1smSEQ7&q=85&s=1252a5fabde98402ae0d7dd4280b1e29" alt="Failed payment notification" width="2880" height="1776" data-path="images/integrations/stripe/stripe_email_failedpayment.png" />
    </Frame>
  </Tab>

  <Tab title="Making payment">
    To make the payment, your customer needs to visit the Stripe Checkout page related to the invoice.

    <Frame>
      <img src="https://mintcdn.com/sequence/JBbyR0QYn1smSEQ7/images/integrations/stripe/stripe_unpaidinvoice.png?fit=max&auto=format&n=JBbyR0QYn1smSEQ7&q=85&s=c23ed9c5aaf6f867c766076b2b2cccfe" alt="Unpaid invoice" width="2842" height="1776" data-path="images/integrations/stripe/stripe_unpaidinvoice.png" />

      <img src="https://mintcdn.com/sequence/JBbyR0QYn1smSEQ7/images/integrations/stripe/stripe_checkout_two.png?fit=max&auto=format&n=JBbyR0QYn1smSEQ7&q=85&s=e9e6577bdbe7e871722f93c63e30ae0d" alt="Checkout" width="2842" height="1776" data-path="images/integrations/stripe/stripe_checkout_two.png" />
    </Frame>
  </Tab>

  <Tab title="Tracking payments in Stripe">
    Log in to your Stripe dashboard and view all successful and failed payments.

    <Frame>
      <img src="https://mintcdn.com/sequence/JBbyR0QYn1smSEQ7/images/integrations/stripe/stripe_failedpayment.png?fit=max&auto=format&n=JBbyR0QYn1smSEQ7&q=85&s=60d04e86893848be384ee225180c3014" alt="Failed payment in Stripe dashboard" width="2564" height="1734" data-path="images/integrations/stripe/stripe_failedpayment.png" />
    </Frame>
  </Tab>
</Tabs>

## Charging self-serve customers

Collect customer payment information as part of your onboarding and charge customers automatically.

Add Stripe customers as part of your onboarding and collect payment details upfront:

1. Implement a Stripe onboarding user flow using the Stripe SDK. Your Sequence Stripe Connect account comes with API keys that you can use.
2. Use the Stripe SDK to collect the payment details of your customers.
3. Going forward Sequence will then use the Stripe customer ID to charge the payment details you have collected during onboarding.
4. You would then use the Stripe SDK to create a Stripe customer and associate the payment details with that Stripe customer. Once you have a Stripe customer ID, you can submit an update customer request to Sequence containing the Stripe customer ID (see below). That request will associate the Stripe customer ID with the Sequence customer ID.
5. Decide whether to show or hide payment links on invoices and whether to issue receipts via Stripe.

[Here](/reference/latest/customer/update-customer) is an example request that contains a Stripe customer ID in our API reference (a PUT request to update the customer and contains the following request body):

```
{
  "address": {
    "country": "GB",
    "line1": "Flat 1",
    "line2": "123 Fake Street",
    "postcode": "AB1 2EF",
    "town": "London"
  },
  "billingEmails": [
    "exampleCorpInvoices@example.com"
  ],
  "contactName": "John Doe",
  "customerAliases": [
    "b1c87177-088a-40ec-8917-9809343f3f9c"
  ],
  "email": "john@example.com",
  "externalIds": [
    {
      "key": "Xero",
      "value": "123456789"
    },
    {
      "key": "Stripe",
      "value": "cus_OCtCxqQDgu1uX9"
    },
    {
      "key": "HubSpot",
      "value": "123456789"
    }
  ],
  "label": "Example customer",
  "legalName": "John Doe",
  "taxStatus": "TAXED",
  "telephone": "02010001000",
  "url": "https://example.com/"
}
```

## Copying existing customers into your new Stripe account

<Note>Have an existing Stripe account? Copying existing customers is straightforward and only takes a few minutes.</Note>

Your new connected Stripe account will receive all of the Stripe Customers and associated stored payment details from your original Stripe account.

A data copy involves two parties: the sender account and the recipient account ([Stripe Docs](https://docs.stripe.com/get-started/data-migrations/pan-copy-self-serve?copy-method=full)):

**Sender account**: The Stripe account currently storing the customer data. This is the account to copy the data from.
**Recipient account**: The Stripe account where you want to store the customer data. This is the account to copy the data to (your new account connected to Sequence).

<Steps>
  <Step title="Copy your account id">
    In your sender account, copy the `accountId` (Example: `acct_1LFi224JxaT26LnINXj`) of your Stripe account. You can find it under Settings > Business > Account details [here](https://dashboard.stripe.com/settings/account).
  </Step>

  <Step title="Select customers to copy">
    In your sender account, go to [Customers](https://dashboard.stripe.com/customers) and select the customers you want to copy. Next select copy and enter the `accountId` from step 1. Confirm the copy request.
  </Step>

  <Step title="Accept the copy request in your new account">
    Go to [Customers](https://dashboard.stripe.com/customers) in your new Sequence-specific Stripe account and accept the copy request. Once confirmed, Stripe will copy your customer details and payment methods into the new account (usually takes less than an hour).
  </Step>
</Steps>

Learn more about copying customer details across counts in the [Stripe docs](https://docs.stripe.com/get-started/data-migrations/pan-copy-self-serve?copy-method=full).

<Note>Data copying considerations: Single Euro Payments Area (SEPA), BACs, or ACH records stored as payment method objects cannot be copied over at this time.</Note>

## Frequently asked questions

<AccordionGroup>
  <Accordion title="Can we use our existing Stripe account?">
    Yes, you can use your existing Stripe account with Sequence.

    Sequence uses [Stripe Connect](https://stripe.com/connect) as this is the recommended approach for orchestrating payments on another user's Stripe account.

    As part of Stripe Connect, Sequence is required to use a separate sub-account within a user's overall Stripe account.

    This follows Stripe's [Legal Entity Sharing](https://support.stripe.com/questions/legal-entity-sharing) model, which ensures that data is segregated between platforms.

    If you have existing customers in another sub-account, they can be copied to the one managed by Sequence using Stripe's PAN data copy method. This is documented above.

    Some other platforms continue to use a Stripe OAuth flow that does allow connecting to an existing Stripe sub-account. However, Stripe advises that the OAuth flow is considered deprecated.
  </Accordion>

  <Accordion title="Our customers cannot open their payment links. What's going on?">
    Check your Stripe account status to confirm there are no outstanding tasks or missing information that may result in a restricted Stripe account.
  </Accordion>

  <Accordion title="What payment methods can we use via your Stripe integration?">
    Stripe provides a wide range of global payment methods.  Go to **Settings > Payments > Payment methods**.

    <Frame>
      <img src="https://mintcdn.com/sequence/JBbyR0QYn1smSEQ7/images/integrations/stripe/stripe_payment_methods.png?fit=max&auto=format&n=JBbyR0QYn1smSEQ7&q=85&s=918cc7d8b38d77321463da828698c54d" alt="Payment method settings" width="3248" height="2112" data-path="images/integrations/stripe/stripe_payment_methods.png" />
    </Frame>
  </Accordion>

  <Accordion title="How do we disconnect from Stripe?">
    Login to your Stripe dashboard, head to settings and disconnect from Sequence.
  </Accordion>

  <Accordion title="How can I use Stripe's test mode with a Sequence Sandbox?">
    Connect to Stripe from your Sequence sandbox account. That will create another, test-mode account that is connected to your Sequence Sandbox account.
  </Accordion>

  <Accordion title="How do I refund a payment?">
    Log in to your Stripe dashboard and locate the payment you want to refund. Next, refund the payment via the button shown below.

    <Frame>
      <img src="https://mintcdn.com/sequence/JBbyR0QYn1smSEQ7/images/integrations/stripe/stripe_refund.png?fit=max&auto=format&n=JBbyR0QYn1smSEQ7&q=85&s=b369bfb399505e3b554d61332edce3b3" alt="Refund payment in Stripe" width="3248" height="2112" data-path="images/integrations/stripe/stripe_refund.png" />
    </Frame>
  </Accordion>
</AccordionGroup>
