Install
Works with Drupal: ^11Using Composer to manage Drupal site dependencies
Alternative installation files
Download tar.gz
79.85 KB
MD5: 9994335a733805b4b2c954c3f799a523
SHA-1: c69ac1d67912c6f4f97ce00290ee9c90fa71bfb7
SHA-256: d73247130e449083409e0cfd8265b8335e6affba795bc01b64e29d767da1784b
Download zip
114.8 KB
MD5: 0228aebafcfbb8e4907767cf5c3e4912
SHA-1: 984cc3ca9414e431f3593671e29faa7d0f37aa8c
SHA-256: 6d35afc95e8b846510a1d958f7304ec1e71c67d3418e2aa5b8ad8f0bf5e7462e
Release notes
Several sites, and copies of a site, can now share one Stripe account safely.
Stripe sends every event of an account to every webhook endpoint on it, each signed with that endpoint's own secret. So a site verified other sites' events as readily as its own, and their order ids are numbers its own orders have too. Name each site, and each copy of it, in settings.php:
$settings['commerce_stripe_recurring_site'] = 'shop-production';- Checkout sessions, subscriptions, payment intents and customers carry the name in their metadata, under the new
site_metadata_keyconvention (defaultcsr_site). Invoices made from a subscription carry it too. - An event naming another site is acknowledged and dropped. It changes no order, and the site's
WebhookEventsubscribers never see it. - Events naming no site go through the existing checks, as before.
- New command:
drush commerce-stripe-recurring:stamp-sitenames the site on subscriptions made before this release. Run it once, on the site where the orders were made, never on a copy of its database.
Without the setting nothing changes, apart from one thing: a site with no name drops events that name another site. See "Several sites on one Stripe account" in the README.