DocsPayment connections

Payment connections

Connect Stripe, Square, PayPal, Housecall Pro or any other tool: the inbound URL, secrets, the mapping of a payload to a payment, and the live test.

On this page

Overview#

A payment connection sends the payments of a payment processor, or of any tool you can make post JSON, to a site's revenue ledger. Each connection has its own inbound URL and its own secret. When a payment arrives it is checked, read, normalised to an id, an amount, a currency and a time, and recorded once.

Connections belong to a site and are managed by admins of that site on its Payments page. A site can have up to 10 connections, in the Growth and Agency plans. Four processors have a built-in connector, and every other tool uses the generic connector:

ConnectorStatusWhat it means
StripeVerifiedWe verified event names, fields and the signature check against the documentation of the vendor on 2026-11-19.
SquarePartly verifiedWe checked it against the documentation of the vendor on 2026-11-19. The connection lists the points that we could not confirm.
PayPalPartly verifiedWe checked it against the documentation of the vendor on 2026-11-19. The connection lists the points that we could not confirm.
Housecall ProMapped pathWe could not verify built-in rules against the vendor’s documentation. Only the signature check is built in, so you set the mapping and test it.
Any other tool (Zapier, Make, your own server)You define itYou choose the authentication and the mapping, and can test both before going live.

Needs INTEGRATIONS_KEY

Secrets are stored encrypted with a key set on the deployment (INTEGRATIONS_KEY). Without it connections cannot be created, and the Payments page says so. Everything else, including the conversions API, works without it.

Without a visitor token a payment is recorded as unmatched revenue at site level: it is counted for reporting and never used to pick a winner.

What happens to a request#

  • The inbound URL, /api/hooks/pay/<connection id> on your dashboard's origin, accepts POST only and is public: the connection's secret is what authorises a request.
  • The body is read as text, at most 256 KB, and checked against the signature or token before anything is read from it.
  • The connector's rules read the payment (see the mapping). An event the connection does not record, such as another event type, is acknowledged and ignored.
  • The payment is written to the ledger. It is idempotent on the site, the connection, the kind (purchase or refund) and the processor's own payment or event id: a delivery that arrives twice, as processors do, is recorded once.
  • Each request leaves one row in the activity log with its result, the processor's ids and the normalised amount. The payload, the headers and the token are never stored. Rows are kept for 90 days.

A connection accepts 600 requests per minute. A paused connection acknowledges requests without reading them, so the processor does not disable the endpoint; a deleted one answers not found.

Connecting a processor#

Open your site, then Payments, then Connect a processor, and choose the tool. You give the connection a name, the secret the processor issued, and optionally the revenue goal matched payments count toward. The next page shows the inbound URL and the steps for that processor, with copy buttons. You can pause, rotate the secret or delete the connection from the same page.

  • Secrets are shown once. A vendor's credential is pasted by you and never shown again (only its last characters, as a hint). The secret of a generic connection is generated for you and shown once at creation.
  • Rotating replaces the secret at once; update the sender right after.
  • The same URL, byte for byte. Square signs over the URL, so register exactly the URL shown.

Stripe#

Connect with Stripe sign-in (recommended)

You do not need to make a webhook or copy a secret. Do these steps on the Connect a processor page:

  • Select Stripe. Then select Sign in to Stripe.
  • Select Connect with Stripe. Stripe opens.
  • Sign in to the Stripe account that takes the payments for the site.
  • Read the access request. Then select Connect.
  • Stripe sends you back. The connection is ready. Payments show as they arrive.

Stripe asks for full access, because that is the access Stripe gives to connected platforms. We use it only to receive payment and refund events. We do not keep a key to your account, and we do not make charges, refunds or payouts. To remove the access, delete the connection, or remove the platform in your Stripe settings. When you remove it in Stripe, the connection shows that the access was removed.

A connection gets the payments of one mode: live or test. Payments of the other mode show as Ignored. To match payments to tests, pass the visitor token in your checkout, as for any connection.

Paste a signing secret

We verified event names, fields and the signature check against the documentation of the vendor on 2026-11-19.

Authentication
Stripe signs every request (Stripe-Signature, HMAC-SHA256 over timestamp.body); requests older than 5 minutes are refused.
Signing secret
In the Stripe Dashboard create a webhook endpoint with the URL below, then paste its signing secret (starts with whsec_). Lift stores it encrypted and never shows it again.
Events recorded
  • checkout.session.completed: purchase. Only when payment_status is paid.
  • checkout.session.async_payment_succeeded: purchase. Delayed payment methods.
  • payment_intent.succeeded: purchase. API mode only.
  • refund.created: refund. Only when the refund status is succeeded.
  • refund.updated: refund. Only when the refund status is succeeded.
Amounts
Integers in the currency minor unit (cents). The amount recorded is the Checkout Session amount_total (after discounts and tax) or the PaymentIntent amount_received.
Visitor token
  • Checkout Session client_reference_id = the visitor token, or metadata.lift_token = the visitor token.
  • Payment Links: add ?client_reference_id=<token> to the link.
  • PaymentIntent (API mode): metadata.lift_token = the visitor token.

Limits

  • Subscription renewals (invoice.paid) are not recorded in this version; the first checkout payment is.
  • A refund is attributed through the original payment: it must have been recorded by this connection.
  • A refund that later fails (refund.failed) is not reversed; only succeeded refunds are recorded.

Could not be confirmed against the vendor's documentation

  • Currencies with three minor digits are not supported by Lift in this version, so Stripe amounts in them are rejected rather than converted.

Subscribe the endpoint to the events of one mode:

  • Checkout and Payment Links: checkout.session.completed, checkout.session.async_payment_succeeded, refund.created and refund.updated.
  • API mode (PaymentIntents): payment_intent.succeeded, refund.created and refund.updated.

Square#

We checked it against the documentation of the vendor on 2026-11-19. The connection lists the points that we could not confirm.

Authentication
Square signs every request (x-square-hmacsha256-signature, HMAC-SHA256 over notification URL plus body). The URL registered in Square must be exactly the URL below.
Signature key
In the Square Developer Console add a webhook subscription with the notification URL below and subscribe it to payment.created, payment.updated, refund.created and refund.updated. Paste its signature key. Lift stores it encrypted and never shows it again.
Events recorded
  • payment.created: purchase. Only when status is COMPLETED.
  • payment.updated: purchase. Only when status is COMPLETED.
  • refund.created: refund. Only when status is COMPLETED.
  • refund.updated: refund. Only when status is COMPLETED.
Amounts
Integers in the smallest denomination of the currency (cents). Tips are not counted as revenue.
Visitor token
  • Payment reference_id = the visitor token (40 characters allowed, the token is 36).
  • Or put the visitor token anywhere in the payment note.

Limits

  • The signature check needs the exact notification URL; if Square shows a different URL than the one below the check fails.
  • Order metadata is not delivered with payment events, so it cannot carry the token.

Could not be confirmed against the vendor's documentation

  • The docs page does not state the signature byte order in prose; it is taken from the official SDK source.
  • Order metadata is not part of a payment event, so it cannot carry the token; reference_id and note can.

PayPal#

We checked it against the documentation of the vendor on 2026-11-19. The connection lists the points that we could not confirm.

Authentication
PayPal signs every request with its certificate; Lift downloads the certificate from a PayPal host only and checks the signature and the webhook id.
Webhook id
PayPal has no shared secret: requests are signed with PayPal's certificate and checked against the webhook id of your subscription. Create the webhook for the URL below in the PayPal developer dashboard, subscribe it to PAYMENT.CAPTURE.COMPLETED and PAYMENT.CAPTURE.REFUNDED, and paste its webhook id. Lift stores it encrypted.
Events recorded
  • PAYMENT.CAPTURE.COMPLETED: purchase. Only when the capture status is COMPLETED.
  • PAYMENT.CAPTURE.REFUNDED: refund. Only when the resource is a refund.
Amounts
Decimal strings in major units ("49.99"). Converted to minor units exactly; more decimals than the currency allows are rejected.
Visitor token
  • purchase_units[].custom_id = the visitor token (shown as custom_id on the capture).

Limits

  • Each connection needs its own webhook id; sandbox and live use different webhooks.
  • Only PAYMENT.CAPTURE.* events are recorded; subscription sales (PAYMENT.SALE.*) are not.

Could not be confirmed against the vendor's documentation

  • The exact shape of the resource inside PAYMENT.CAPTURE.REFUNDED is checked against the Payments v2 refund schema only; an event that does not look like a refund is ignored rather than guessed.
  • The certificate host for live events is not named in the pages read; Lift accepts only api.paypal.com, api-m.paypal.com and their sandbox counterparts over HTTPS.
  • Whether the link to the original capture is present in every refund event is not confirmed; without it the refund is recorded at site level.

Housecall Pro#

We could not verify built-in rules against the vendor’s documentation. Only the signature check is built in, so you set the mapping and test it.

Authentication
Housecall Pro signs every request (Api-Timestamp and Api-Signature, HMAC-SHA256 over timestamp.body). Lift checks it; you set the field mapping because the amount unit and currency are not documented.
Signing secret
Housecall Pro gives you a signing secret when webhooks are enabled for your account. Paste it here; Lift stores it encrypted and never shows it again.
Events to subscribe (suggested)
  • invoice.paid: purchase. Suggested, not built in.
  • invoice.refund.succeeded: refund. Suggested, not built in.
Amounts
Not documented (dollars or cents). Send a test payload from your account and set the unit in the mapping once you have confirmed it against an invoice you know.
Visitor token
  • Put the visitor token in the job description or a note when your booking form creates the job; the mapping can pick it out of that text.

Limits

  • Shipped as the generic mapped path: only the signature scheme is built in.
  • Customer personal data is present in Housecall Pro payloads; Lift reads only the paths you map and stores none of the rest.

Could not be confirmed against the vendor's documentation

  • The encoding of Api-Signature (hex or base64) is not stated; the generic check accepts either.
  • The unit of amounts (dollars or cents) is not stated.
  • There is no currency in the payload.
  • There is no event id and no refund id in the payload, so idempotency must be built from the invoice id and the time.
  • There is no documented custom field that reaches the webhook; the job description, notes and tags do, and the generic path can pick a visitor token out of any of them.

You choose the unit of the amount when you connect, and you can change the mapping and test it on a payload from your own account. Suggested starting points:

  • invoice.paid: externalId = invoice.id, amount = invoice.amount, time = invoice.paid_at
  • invoice.refund.succeeded: externalId = a template such as refund-{{invoice.id}}-{{event_occurred_at}}, orderId = invoice.id
  • Token: a path such as invoice.job_id is not enough; the token must be in text the webhook carries (job description, notes or tags).

Any other tool#

For any tool that can send an HTTP request, including your own server, Zapier and Make, create a generic connection. It gives you a URL and a secret, and you decide how the request proves itself and where in your JSON each value is.

Authentication

SchemeThe sender
bearersends Authorization: Bearer <secret>. The simplest, and what Zapier and Make can do.
hmacsigns the raw body with HMAC-SHA256 keyed with the secret, and sends the signature as hex or base64 in a header you name (optionally after a prefix such as sha256=). With a timestamp header (Unix seconds) the signed text is <timestamp>.<body> and requests older than the accepted age (default 300 seconds, at most 3600) are refused.
A bearer requestbash
curl -X POST https://lift.example.com/api/hooks/pay/YOUR_CONNECTION_ID \
  -H "Authorization: Bearer lift_paysec_YOUR_CONNECTION_SECRET" \
  -H "Content-Type: application/json" \
  -d '{
    "externalId": "order-1001",
    "amount": "49.99",
    "currency": "USD",
    "isRefund": false,
    "visitorToken": "lvt_0123456789abcdef0123456789abcdef"
  }'
A signed request (HMAC, hex)js
import { createHmac } from 'node:crypto';

const body = JSON.stringify({
  externalId: 'order-1001',
  amount: '49.99',
  currency: 'USD',
  visitorToken: token,
});
// Sign the exact bytes you send.
const signature = createHmac('sha256', process.env.LIFT_PAYMENT_SECRET).update(body).digest('hex');

await fetch('https://lift.example.com/api/hooks/pay/YOUR_CONNECTION_ID', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json', 'x-lift-signature': signature },
  body,
});

The default payload

A new generic connection reads a flat JSON object. Everything but externalId, amount and currency is optional:

FieldMeaning
externalIdYour id of the payment: the idempotency key.
amountA decimal in major units: "49.99". Always positive; a refund is flagged, not negative.
currencyThree letters, the site currency.
occurredAtISO 8601. Default: the time we receive the request.
isRefundtrue for a refund.
visitorTokenThe visitor token your checkout carried.
orderIdFor a refund, the id of the original payment.
The default mappingjson
{
  "version": 1,
  "rules": [
    {
      "name": "refund",
      "when": [
        {
          "path": "isRefund",
          "op": "eq",
          "value": true
        }
      ],
      "kind": "refund",
      "externalId": {
        "path": "externalId"
      },
      "amount": {
        "source": {
          "path": "amount"
        },
        "unit": "major"
      },
      "currency": {
        "path": "currency"
      },
      "occurredAt": {
        "source": {
          "path": "occurredAt"
        },
        "format": "iso"
      },
      "visitorToken": {
        "path": "visitorToken"
      },
      "orderId": {
        "path": "orderId"
      }
    },
    {
      "name": "purchase",
      "when": [],
      "kind": "purchase",
      "externalId": {
        "path": "externalId"
      },
      "amount": {
        "source": {
          "path": "amount"
        },
        "unit": "major"
      },
      "currency": {
        "path": "currency"
      },
      "occurredAt": {
        "source": {
          "path": "occurredAt"
        },
        "format": "iso"
      },
      "visitorToken": {
        "path": "visitorToken"
      },
      "orderId": {
        "path": "orderId"
      }
    }
  ]
}

If your tool already sends its own field names, change the mapping to read them instead of reshaping the payload.

The mapping#

A mapping says where in an incoming JSON body each value of a payment is. It is data, never code: no scripts, no arbitrary expressions. The built-in connectors are mappings too, run by the same engine. A mapping has up to 8 rules; the first rule whose conditions all hold reads the payload.

A rule

FieldMeaning
nameShown in test results. Up to 60 characters.
whenUp to 6 conditions, all of which must hold: eq, neq, in (up to 10 values), exists, missing. Empty: always.
kindpurchase or refund. A refund rule produces a refund.
externalIdRequired. The payment id.
amountRequired. A source and a unit: minor and major. minor is an integer in cents, major a decimal in dollars. vendorExponents corrects currencies whose vendor unit differs from the standard.
currencyRequired. A source, usually a path; a fixed value when the payload has none.
occurredAtOptional. A source and a format: iso, unix_s and unix_ms. A time more than a day ahead is refused.
visitorTokenOptional. The first alternative that contains a token wins.
orderIdOptional. The id a refund points at.

Sources

SourceReads
{ "path": "a.b" }A field. Paths use a.b, a[0] or a.0, and links[rel=up].href for the first list item whose rel is up. At most 12 segments; a string longer than 1024 characters counts as absent.
{ "path": "a", "afterLast": "/" }The part of a text after its last "/" (or another separator).
{ "const": "USD" }A fixed value.
{ "template": "refund-{{invoice.id}}" }Text with up to 6 {{path}} parts, each of which must exist. Useful for an id the vendor does not send.
{ "firstOf": [ … ] }The first of up to 4 alternatives that yields a value.
A mapping for another tooljson
{
  "version": 1,
  "rules": [
    {
      "name": "paid invoice",
      "when": [{ "path": "event", "op": "eq", "value": "invoice.paid" }],
      "kind": "purchase",
      "externalId": { "path": "invoice.id" },
      "amount": { "source": { "path": "invoice.amount" }, "unit": "major" },
      "currency": { "const": "USD" },
      "visitorToken": { "path": "invoice.notes" },
      "orderId": { "path": "invoice.id" }
    }
  ]
}

Amounts and currencies

  • Amounts are converted exactly to minor units of the currency, never through floating point. More decimals than the currency has, or a value that is not a plain number, is refused.
  • Zero-decimal currencies (BIF, CLP, DJF, GNF, ISK and JPY and others) have no cents: an amount of 500 is 500. Stripe sends ISK and UGX with two decimals for backward compatibility; the Stripe connector accounts for that.
  • Currencies with three minor digits (BHD, CLF, IQD, JOD, KWD, LYD, OMR, TND and UYW) are not supported in this version and are refused rather than converted.
  • A site records revenue in one currency. A payment in another is stored for visibility and counted nowhere; it is never converted.
  • Refunds are positive in the payload and stored as negative amounts. A purchase with a negative amount, or a zero amount, is not recorded.

When a payload cannot be read

CodeMeaning
invalid_payloadThe body is not a JSON object.
no_rule_matchedNo rule of the mapping applies to this event. Thus, the connection skips it on purpose.
missing_external_idThe path that the mapping reads has no payment id.
invalid_external_idThe payment id has characters we do not accept (letters, digits and . _ : ~ = + / - only, up to 255).
personal_data_rejectedAn id looked like an e-mail address, so the connection refused it. Map an id that is not personal data.
missing_amountThe path that the mapping reads has no amount.
invalid_amountThe amount is not a plain number.
amount_precisionThe amount has more decimals than the currency allows. Check whether it is in minor units or major units.
amount_out_of_rangeThe amount is larger than the limit.
amount_negativeA purchase has a negative amount. Map refunds with a refund rule, and send their amount as a positive number.
zero_amountThe amount is zero, so there is nothing to record.
missing_currencyThe path that the mapping reads has no currency.
invalid_currencyThe currency is not a three-letter ISO 4217 code.
unsupported_currencyThis version does not support this currency. It rejects three-decimal currencies and does not convert them.
invalid_occurred_atThe time of the payment is not in the format that the mapping says.

Send a test payload#

On a connection's page, Send a test payload takes the JSON a sender would post and shows exactly what would be recorded: the rule that matched, the payment id, amount and currency, the time, whether it is a refund, whether a visitor token was found, and whether the payment would be matched or unmatched, with the reason. For a generic or Housecall Pro connection it tests the draft on screen, so you can check a change before saving it.

  • Nothing is stored and no ledger row is written.
  • The payload is read in memory and dropped.
  • Signatures are not checked, so a test never needs the secret. A real request must still be authentic.
  • It tells you when an id already exists, so a real delivery would be a duplicate.

What a sender sees#

Processors retry on errors and disable endpoints that keep failing, so authentic requests are answered 200 whenever possible, even for events that are not recorded.

200 OKjson
{ "received": true, "verdict": "recorded", "matched": false }
StatusWhen
200verdict is recorded, duplicate, ignored (an event that is not recorded, or a paused connection), rejected (for example another currency) or, for the built-in connectors, unparseable (an authentic body the rules could not read). matched says whether a visitor was found.
401The request did not prove who sent it. One identical body for every cause, so a forger learns nothing.
402The plan does not include the revenue ledger.
404Unknown or deleted connection.
413The body is larger than 262144 bytes.
422Generic connection only: the payload could not be read. The reason names the field, so your own tool shows it in its logs.
429More than 600 requests in a minute; Retry-After says when to retry.
500Our failure; the sender should retry.
503The deployment has no INTEGRATIONS_KEY, so the secret cannot be opened.
401 Unauthorizedjson
{ "received": false, "error": "invalid_signature" }

Health and troubleshooting#

Each connection shows when the last event arrived, counts of what was received, recorded, unmatched, duplicated, ignored, rejected and failed, and the share of recorded payments that matched a visitor. The activity table lists recent requests with their result and reason; failures also stay in the counters.

ReasonMeaning
missing_signatureThe request carried no signature or bearer token.
malformed_signatureThe signature header is not readable.
bad_signatureThe signature did not match. The secret may be wrong or have been rotated.
timestamp_out_of_toleranceThe request signature is too old, or the clock of the sender is off. Thus, the connection refused it as a possible replay.
secret_not_setThe connection has no secret stored.
certificate_untrustedThe certificate that signed the request is not one we trust.
certificate_unavailableThe connection could not get the signing certificate. The sender will try again.
  • Signature failed after you rotated the secret: the sender still has the old one.
  • Square signature failures: the registered notification URL is not exactly the URL on the connection page.
  • Everything is unmatched: the token does not reach the processor. Check the carrier for that checkout in the visitor token page, and use the test panel with a real event to see whether the token is found.
  • Amounts are 100 times too large or small: the unit in the mapping is wrong. Compare with an invoice you know.

Zapier and Make#

Neither tool needs a server. Create a generic connection with bearer authentication, then follow the recipe. The Payments page shows the same recipes with your connection's real URL.

Zapier

Use a Zap with the payment or order in your current tool as the trigger. Add a Webhooks by Zapier action after it.

  • Choose the Webhooks by Zapier app and the POST action.
  • URL: https://lift.example.com/api/hooks/pay/YOUR_CONNECTION_ID
  • Payload type: Json.
  • Data: one row for each field below. If you use the default mapping, the names must match.
  • externalId: the order or payment id from the trigger (this is the idempotency key, so a replay never counts twice)
  • amount: the order total, as a decimal in USD (for example 49.99)
  • currency: USD
  • occurredAt (optional): the time of the payment, ISO 8601
  • isRefund (optional): true for a refund. The amount stays positive.
  • visitorToken: the Lift token your checkout stored (if you do not have it, leave it out)
  • orderId (optional): for a refund, the id of the original payment
  • Headers: add Authorization with the value Bearer followed by a space and the connection secret.
  • Test the Zap. Then check Recent activity on the connection page. To see what the site would record, use “Send a test payload” first.

Make

Use a scenario with the payment or order in your tool as the first module. Add an HTTP module after it.

  • Add the HTTP module “Make a request”.
  • URL: https://lift.example.com/api/hooks/pay/YOUR_CONNECTION_ID
  • Method: POST.
  • Headers: name Authorization, value Bearer followed by a space and the connection secret.
  • Body type: Raw, content type JSON (application/json).
  • Request content: a JSON object with the fields below, filled from the earlier module.
  • externalId: the order or payment id from the trigger (this is the idempotency key, so a replay never counts twice)
  • amount: the order total, as a decimal in USD (for example 49.99)
  • currency: USD
  • occurredAt (optional): the time of the payment, ISO 8601
  • isRefund (optional): true for a refund. The amount stays positive.
  • visitorToken: the Lift token your checkout stored (if you do not have it, leave it out)
  • orderId (optional): for a refund, the id of the original payment
  • Run the scenario one time. Then check Recent activity on the connection page.

Privacy#

  • Only the paths the mapping names are read. Housecall Pro and Square payloads contain customer names, e-mail addresses and phone numbers; none of it is stored or logged.
  • An id that looks like an e-mail address is refused (personal_data_rejected) rather than stored.
  • The activity log holds ids, the normalised amount and the result. Never the payload, a header or a token.
  • Secrets are sealed with the deployment's key and are never returned, logged or sent to the browser; vendor credentials are checked from the sealed copy.
  • The vendor connectors were checked against the vendors' documentation on 2026-11-19. Where a point could not be confirmed, the page above says so and the connector ships as a mapped path you test yourself.