Technical Case Study

How I Built a Two-Party Mediation Payment Workflow

A mediation can involve one appointment but two separate payment responsibilities. For TexMediator, I connected scheduling, structured intake data, server-side automation, and Stripe so the second party's payment request could be generated without the mediator recreating it by hand.

✓ Acuity Scheduling ✓ Server-side webhook ✓ Stripe invoicing

What is a two-party mediation payment workflow?

A two-party mediation payment workflow keeps the mediation organized as one scheduled matter while allowing each responsible party to handle its own payment. In the TexMediator implementation, the booking form collects the second party's billing email, a scheduling webhook sends the appointment data to server-side automation, and the integration creates and sends the appropriate Stripe invoice for Party B.

The Business Problem

One appointment did not mean one payer.

A conventional checkout flow assumes one customer is paying for one transaction. Mediation can be different: two law firms or parties may be responsible for separate shares of the same scheduled service.

The appointment had to stay unified

The mediation itself still needed one date, one time, one matter, one intake process, and one set of scheduling details. Creating a second appointment just to collect another payment would fragment the operational record.

The second party needed its own billing step

The workflow needed a reliable way to identify the second party's billing contact and issue the correct payment request without asking the first party to cover the entire mediation fee.

Manual invoice creation added avoidable work

Re-entering names, email addresses, appointment details, and payment amounts after every qualifying booking would create repetitive work and another opportunity for information to be copied incorrectly.

System Architecture

How the mediation payment automation works

The workflow uses the information already collected during scheduling to decide when a second-party invoice should be created and where it should be sent.

1. Schedule the mediation

An attorney selects the mediation service, date, and time through the scheduling experience. The appointment becomes the central record for the workflow.

2. Collect structured intake data

The scheduling form collects the case information needed for the appointment, including the second party's email address used by the payment automation.

3. Receive the scheduling event

When a qualifying appointment is scheduled, Acuity sends a signed webhook to the server-side integration. The endpoint verifies the request before processing the booking data.

4. Read the Party B information

The function reads the appointment and intake data, finds the Party B billing email, and applies the workflow rules for the selected mediation type.

5. Create the Stripe invoice

The server-side integration uses Stripe to create the second-party invoice for the appropriate mediation share instead of requiring the mediator to build that invoice manually.

6. Send the separate payment request

Stripe sends the invoice to the second party's billing email. The appointment remains the operational center of the mediation while the payment responsibility is handled separately.

Data Flow

The workflow in one line

Mediation booking → Acuity Scheduling → structured intake data → signed webhook → server-side function → Stripe → separate Party B invoice.

Component Role in the workflow
Custom website Gives the client a branded path into the mediation information, pricing, policies, and booking experience.
Acuity Scheduling Holds the appointment and structured intake information used by the automation.
Webhook Notifies the server-side integration when the relevant scheduling event occurs.
Server-side function Verifies the event, reads the appointment data, applies the business rules, and calls the payment system without exposing private API credentials in browser code.
Stripe Creates and sends the separate invoice used for the second party's payment responsibility.

The Important Part

The integration is more than connecting two APIs.

The useful part of workflow automation is translating a real business process into explicit rules: when something should happen, which data it should use, and what should happen when required information is missing.

Trigger only on the right event

The automation should respond to the intended scheduling event rather than creating invoices from unrelated page views, form visits, or browser-side actions.

Use the booking as the source of truth

The second party's billing information is collected as part of the appointment flow, so the automation can work from structured booking data instead of relying on a later manual handoff.

Keep sensitive credentials server-side

Payment credentials and webhook validation belong in server-side code. The public website can start the customer journey without exposing private integration secrets to the browser.

Why Automate It

What the workflow removes from the mediator's day

The purpose was not automation for its own sake. It was to remove a repetitive handoff from a real professional-service workflow.

Less duplicate data entry

Information already supplied during scheduling can be reused by the billing workflow instead of being typed into another system again.

Clearer payment responsibility

Each party can receive the payment request intended for that party without turning one law firm into the default payer for the entire mediation.

A more connected client experience

Scheduling, case intake, confirmation, video-meeting information, and payment steps operate as parts of one designed process rather than as unrelated tools the mediator has to coordinate manually.

See the broader website, intake, scheduling, Zoom, and payment work in the TexMediator case study .

Reusable Architecture

This pattern is useful beyond mediation.

The same architecture can be adapted when one booking or service creates follow-up work for multiple people, departments, customers, or payers. The exact implementation depends on the business rules and the systems being connected.

Professional services

One engagement can involve multiple responsible parties who need separate invoices, confirmations, or document requests.

Booking-based businesses

A scheduled service can trigger internal tasks, customer follow-up, deposits, balance requests, or participant-specific communication.

Operational workflows

Webhooks and APIs can connect forms, calendars, payments, email, databases, and internal systems around a defined business process.

Learn more about custom software development and workflow automation from Renatus .

Frequently Asked Questions

Two-party mediation payment workflow FAQ

Can two parties pay separately for the same mediation?

Yes. One mediation can remain a single scheduled matter while the workflow sends separate payment requests to the parties responsible for their own shares.

How does the second-party invoice get created?

The booking captures Party B's billing email. A scheduling webhook triggers server-side logic, which reads the appointment data and uses Stripe to create and send the appropriate invoice.

Does the mediator create the second invoice manually?

Not for the automated flow. Once the required booking information is present, the integration can create and send the second-party invoice without rebuilding it by hand.

What technology is used?

The implementation combines a custom website, Acuity Scheduling intake data, a signed scheduling webhook, a server-side function, and Stripe invoicing.

Why use a server-side function?

The server-side function can validate the incoming event, apply the business rules, and communicate with Stripe without placing private payment credentials in public browser code.

Can this workflow be adapted for another business?

Yes. The same event-driven pattern can support other businesses where a booking or form submission needs to trigger participant-specific billing, notifications, records, or internal actions.

Have a workflow your current software does not handle cleanly?

Renatus builds focused integrations and custom software around real business processes, including scheduling, forms, payments, databases, portals, and operational automation.