Guide

Take card payments with Stripe.

Connect your own Stripe account, save a client’s card, and let Revvly charge invoices to it automatically — with retries, 3-D Secure and payment webhooks. Card numbers never reach Revvly.

01What Stripe does here

Stripe is only the card rail. Revvly stays the record of what each client owes: it raises the invoice, and Stripe moves the money. Revvly uses Stripe customers, saved cards and one-off payments; it does not use Stripe Billing, Stripe subscriptions or Stripe invoices for this. If Stripe already bills your customers and you want to move that billing to Revvly, read Move from Stripe Billing to Revvly after this guide.

Only workspace admins can connect Stripe, change the charging settings or see the Payments tab.

02Connect your Stripe account

Where
  1. Org Settings
  2. Billing & finance
  3. Card payments

The tab is shown to workspace admins only.

Feature None to switch on.

Permission integrations.stripe.manage and finance.card.charge, held by admins and owners.

There are two ways to connect. Use Connect with Stripe when it is offered: you approve Revvly in Stripe and come back to the Payments tab. Revvly then acts on your account without ever holding your secret key.

If Connect is not offered, or you prefer it, paste a restricted key and the matching publishable key. The key needs write access to Customers, SetupIntents, PaymentIntents, PaymentMethods and Webhook Endpoints. Revvly stores the key encrypted and never shows it again, and registers its own webhook endpoint on your account so Stripe can tell it when a card was saved or a payment settled.

One workspace per Stripe account
A Stripe account can be connected to one workspace at a time. If you return from Stripe with “in use”, another workspace already holds it: disconnect it there first.
Approval link expires
The approval step must be finished within 15 minutes. If it expires, start again.
Live or test
Connect the account in the mode you mean to use. Test-mode keys charge nothing real, which is the way to try this out first.

03Save a client’s card

Open the client, go to the Billing tab and use Add card in the Card on file section. The card is entered in Stripe’s own form, so the number never reaches Revvly. Replace card and Remove card are in the same place. Workspace admins, and anyone whose role allows card changes, see these buttons; others see the card but cannot change it. The section needs Stripe to be connected first. To collect a card from your own page instead, call startPaymentMethodSetup on the public GraphQL API for the client (by clientId or clientExternalId, with a key that has the WRITE capability). A customer who already has a card in Stripe keeps it: when you move a subscription from Stripe Billing, Revvly adopts that card.

Revvly keeps only Stripe’s summary — the brand, the last four digits and the expiry — and returns it as Client.paymentMethod. The card becomes the client’s default only when Stripe confirms it, which can take a moment after the form closes. Until then the client shows no card and nothing is charged.

04Which invoices are charged automatically

Turn on Charge issued invoices to the saved card on the Payments tab. An invoice is then charged to the client’s card when all of these hold:

  • it is issued, still unpaid and has something due, and is not a credit note;
  • it was raised by Revvly (a subscription invoice or one you created by hand), not imported from a spreadsheet, Drive or Stripe;
  • it is not reconstructed history from a backfill;
  • it was issued after both the Stripe connection and the card existed.

That last rule is deliberate: connecting Stripe never reaches back and collects invoices that were already out. A draft is charged when it is issued, not when it was created. An invoice outside these rules is collected the usual way — see Collect what you are owed — or through the payment webhook.

05When a payment fails

Declined
Revvly tries again on the retry days you set on the Payments tab (the default is 1, 3, 5 and 7 days after the first decline), then stops. The usual payment reminders carry on as for any unpaid invoice.
Authentication needed
Some cards need the customer to confirm with their bank (3-D Secure). The charge waits as “action required” and settles once the customer completes it.
Refused outright
If Stripe refuses the request itself — for example the amount is below Stripe’s minimum — repeating cannot help, so Revvly stops at once.
Stripe unreachable
An outage is not counted as a decline. Revvly retries every 15 minutes with the same payment, so a customer is never charged twice, and gives up after 12 tries in a row.
Paid, but not on the invoice yet
If Stripe took the money but recording it on the invoice failed, Revvly keeps retrying and raises an alert for the Revvly team after repeated failures. The money is not lost.

The payment is recorded on the invoice with a reference of the form stripe:<payment id>, so the invoice, the webhook and any retry always agree it is one payment.

06Follow payments with webhooks

Three events say what the card did. Subscribe an endpoint to the ones you need; an endpoint only receives the events it lists.

payment.succeeded
The card payment settled and is on the invoice.
payment.failed
A charge failed. Adds willRetry, nextAttemptAt, declineCode and message.
payment.action_required
The customer must authenticate with their bank.

Each carries chargeId, invoiceId, paymentIntentId, the client (id and externalId) and the amount in major units. Nothing about the card is included. They describe the card; invoice.paid and invoice.overdue still describe the invoice, so an integration that only wants invoice state need not subscribe to these. Set up endpoints as in Outbound webhooks.

07Disconnect Stripe

Disconnect on the Payments tab stops automatic charging and removes the stored key; in restricted-key mode Revvly also asks Stripe to delete the webhook it registered. Saved customers and cards are filed under your Stripe account, so reconnecting the same account finds them again and a different account never inherits them. If you remove Revvly from inside Stripe, Revvly sees it and marks the connection disconnected.

08If something does not work

A card was saved but paymentMethod is still null
Revvly waits for Stripe to confirm the card. If it never does, Stripe’s notifications are not reaching Revvly: disconnect and connect again so the webhook is registered afresh, and contact support if it persists.
An old invoice was not charged
Expected. Only invoices issued after both the connection and the card existed are charged automatically.
Connect with Stripe is not offered
Connect is a platform setting. Use a restricted key instead, or ask your Revvly contact.
“Would not let Revvly register its webhook”
The restricted key lacks write access to Webhook Endpoints. Add it and connect again.
A charge is stuck as awaiting authentication
The customer has not completed 3-D Secure. Ask them to, or collect the invoice another way.