Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Commerce Escrow

Security covered Under active development

Part of the Commerce ecosystem · 506 projects

This module integrates Drupal Commerce with Escrow.com, allowing for secure transactions using Escrow Pay and Escrow Offer. It synchronizes payments and order statuses between Drupal and Escrow.com in real-time through webhook integration.

This module integrates Drupal Commerce with Escrow.com including the Escrow Pay [1] and the Escrow Offer [2].

  1. https://www.escrow.com/pay/docs
  2. https://www.escrow.com/offer/docs

Features

  • Both methods are implemented as offsite payment gateways.
  • Webhook integration for real time updates.
  • Payments in Drupal Commerce synchronized with Escrow.com.
  • Supports voids through the order management interface
  • Product variation bundle type EscrowItem with several escrow-specific fields.
  • Order and payment workflow synchronized via webhook integration for automated workflow.

Need help using or extending this module?

  • Hire the project maintainers: Vallic offers Drupal Commerce support and development, and runs Vallic Cloud, Drupal hosting.
  • Community support: Use the issue queue.

Payment gateway configuration

Once you've installed the module, you must navigate to the Drupal Commerce payment gateway configuration screen to define a payment gateway configuration. This will require providing an API key, email of Escrow.com account holder and configuring the mode (Live vs. Test).

Order type configuration

Go to Commerce => Configuration => Order Types and edit a desired order type which you want to use with Escrow integration and under workflow choose Escrow Workflow.

Product variation configuration

Go to Commerce => Configuration => Product variation types and edit a desired product variation type which you want to use with Escrow integration and under traits choose Escrow Item.

Now that product variation type will get several Escrow specific fields.

  • Brokered: if you are brokering sale of this product between a seller and buyer.
  • Broker Fee percentage: specify the fee which you will charge for brokering service.
  • Broker Fee split: split the broke fee to a buyer or seller or equally to both sides.
  • Escrow Fee: split the escrow fee to buyer or seller or equally to both sides.
  • Escrow item type: defining the typo of goods to be sold via Escrow.com
  • Inspection period: how long the Escrow offer is valid, between 1 and 30 days.
  • Display Escrow fee information: you can during checkout show estimated fee to be charged on Escrow.com
  • Extra attributes fees: adds additional fee to be charged on Escrow.com
  • Single item: defines if the product variation is allowed only once to be sold.
  • In stock: a flag to determine if product is in stock, depends on Single item logic.

Webhook configuration

All Escrow payment gateways share one webhook URL with a secret token, shown under
Commerce > Configuration > Payment > Escrow settings:
https://yourwebsite.com/payment/webhook/escrow/{token}

Register that URL as a webhook on Escrow.com, once on each Escrow.com account
the gateways use. The order decides which gateway handles an event. Keep the URL
private like the API key.

Custom configuration / modifications.

You don't need to use the provided order and payment workflow. The provided product variation type Escrow item is a requirement to be used.

The automated order and payment states can be stopped via event subscriber \Drupal\commerce_escrow\Event\EscrowEvents::ESCROW_WEBHOOK and setStopWebhook method.

You can enrich or alter transaction payload via event subscriber \Drupal\commerce_escrow\Event\EscrowEvents::ESCROW_ORDER_PAYLOAD

The http client for communication with Escrow.com has all available methods for interacting with Escrow.com API. If you want to use it in your custom code, you can easily initiate it like this:

$client = new EscrowClient('api_key', 'account_email', 'test');
$payload = [
  'currency' = 'usd',
  ......
];
$client->createTransaction($payload);

Requirements

This module should be added to your codebase via Composer

composer require "drupal/commerce_escrow"

You must also have an Escrow account or developer access to the account you intend to configure for your integration.

You can sign up for one here.

There are no other requirements than Commerce Core 3

Drupal 11 · not 10

Ask your assistant about Commerce Escrow

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
10
Tracked since
Aug 2025
Latest release
3 weeks ago
Releases (12 mo)
6 ▲ from 4
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
2.0.x-dev Dev 11 Nov 5, 2026
2.0.0 Stable 11 Nov 5, 2026
2.x-dev Dev 11 Nov 4, 2026
1.1.0 Stable 10–11 Nov 3, 2026
1.1.x-dev Dev 10–11 Nov 3, 2026
1.0.2 Stable 10–11 Apr 6, 2026
1.0.1 Stable 10–11 Aug 12, 2025
1.0.0 Stable 10–11 Aug 8, 2025
1.0.x-dev Dev 10–11 Aug 7, 2025
1.x-dev Dev 10–11 Aug 7, 2025