payloadcms

ecommerce

Official
by payloadcms
payload
Stores & catalogs
v3
v4
4.0.0-canary.20261205 · prerelease
MIT

Overview

Summary generated from the README

Official Payload ecommerce plugin providing a set of utilities for building shops. Stripe confirmation is idempotent per transaction, so retries return the same order and public transaction ID. A pending transaction is atomically claimed before the order is created, the cart updated and inventory decremented. PostgreSQL users must apply a migration adding a processing status; MongoDB and SQLite need none.

Features

  • Idempotent Stripe confirmation that returns the same order and transaction ID on retries
  • Atomic claim of pending transactions before order creation
  • Cart update and inventory decrement during settlement
  • Full rollback of settlement on adapters that support database transactions
  • Fail-closed processing status when a crash occurs without database transactions

Use cases

  • Build a Payload storefront that safely handles repeated Stripe confirmation requests
  • Prevent duplicate orders and double inventory decrements during checkout retries

From the author

Ecommerce plugin for Payload

Installation

npm i @payloadcms/plugin-ecommerce

46.1k

Stars

4.5k

Forks

1821

Open Issues

Today

Last Updated

19.0k

Weekly Downloads

v3.94.2

npm Version

1.6 MB

Unpacked Size

3

Dependencies

Repository stars

46.1K+1.8K since Sep 7

Show data
Repository stars by day (UTC)
DateStars
Dec 6, 202646,145
Dec 5, 202646,136
Dec 4, 202646,125
Dec 3, 202646,106
Dec 2, 202646,087
Dec 1, 202646,068
Nov 30, 202646,059
Nov 29, 202646,037
Nov 28, 202646,035
Nov 27, 202646,022
Nov 26, 202646,012
Nov 25, 202645,993
Nov 24, 202645,976
Nov 23, 202645,958
Nov 22, 202645,947
Nov 21, 202645,937
Nov 20, 202645,926
Nov 19, 202645,901
Nov 18, 202645,868
Nov 17, 202645,852
Nov 16, 202645,831
Nov 15, 202645,820
Nov 14, 202645,807
Nov 13, 202645,792
Nov 12, 202645,779
Nov 11, 202645,763
Nov 10, 202645,742
Nov 9, 202645,731
Nov 8, 202645,722
Nov 7, 202645,704
Nov 6, 202645,681
Nov 5, 202645,670
Nov 4, 202645,647
Nov 3, 202645,629
Nov 2, 202645,611
Nov 1, 202645,603
Oct 31, 202645,592
Oct 30, 202645,574
Oct 29, 202645,561
Oct 28, 202645,543
Oct 27, 202645,519
Oct 26, 202645,492
Oct 25, 202645,472
Oct 24, 202645,449
Oct 23, 202645,430
Oct 22, 202645,405
Oct 21, 202645,259
Oct 20, 202645,239
Oct 19, 202645,213
Oct 18, 202645,192
Oct 17, 202645,165
Oct 16, 202645,148
Oct 15, 202645,122
Oct 14, 202645,100
Oct 13, 202645,082
Oct 12, 202645,057
Oct 11, 202645,032
Oct 10, 202645,023
Oct 9, 202645,003
Oct 8, 202644,983
Oct 7, 202644,959
Oct 6, 202644,935
Oct 5, 202644,924
Oct 4, 202644,907
Oct 3, 202644,891
Oct 2, 202644,876
Oct 1, 202644,859
Sep 30, 202644,846
Sep 29, 202644,829
Sep 28, 202644,805
Sep 27, 202644,787
Sep 26, 202644,769
Sep 25, 202644,737
Sep 24, 202644,709
Sep 23, 202644,691
Sep 22, 202644,669
Sep 21, 202644,641
Sep 20, 202644,628
Sep 19, 202644,609
Sep 18, 202644,595
Sep 17, 202644,570
Sep 16, 202644,548
Sep 15, 202644,523
Sep 14, 202644,501
Sep 13, 202644,488
Sep 12, 202644,470
Sep 11, 202644,447
Sep 10, 202644,427
Sep 9, 202644,402
Sep 8, 202644,384
Sep 7, 202644,364

Shared by 12 plugins in payloadcms/payload.

npm weekly downloads

20K+11.5K since Sep 7

Show data
npm weekly downloads by day (UTC)
DateWeekly downloads
Dec 6, 202619,958
Dec 5, 202618,916
Dec 4, 202618,315
Dec 3, 202617,621
Dec 2, 202616,621
Dec 1, 202616,752
Nov 30, 202616,618
Nov 29, 202614,718
Nov 28, 202614,491
Nov 27, 202614,628
Nov 26, 202614,709
Nov 25, 202613,954
Nov 24, 202613,650
Nov 23, 202613,121
Nov 22, 202612,609
Nov 21, 202612,667
Nov 20, 202613,124
Nov 19, 202613,062
Nov 18, 202613,292
Nov 17, 202612,764
Nov 16, 202612,704
Nov 15, 202613,657
Nov 14, 202614,261
Nov 13, 202614,768
Nov 12, 202615,135
Nov 11, 202616,680
Nov 10, 202617,701
Nov 9, 202618,058
Nov 8, 202617,449
Nov 7, 202617,263
Nov 6, 202617,049
Nov 5, 202617,835
Nov 4, 202618,539
Nov 3, 202617,763
Nov 2, 202617,909
Nov 1, 202618,951
Oct 31, 202619,848
Oct 30, 202619,739
Oct 29, 202616,401
Oct 28, 202611,862
Oct 27, 202611,721
Oct 26, 202610,945
Oct 25, 202610,020
Oct 24, 20269,080
Oct 23, 20266,655
Oct 22, 20269,222
Oct 21, 202611,166
Oct 20, 202611,066
Oct 19, 202611,875
Oct 18, 202611,468
Oct 17, 202611,763
Oct 16, 202614,640
Oct 15, 202615,414
Oct 14, 202615,504
Oct 13, 202615,289
Oct 12, 202615,501
Oct 11, 202615,162
Oct 10, 202614,933
Oct 9, 202613,389
Oct 8, 202611,614
Oct 7, 202611,415
Oct 6, 202611,089
Oct 5, 202610,089
Oct 4, 202610,184
Oct 3, 20269,469
Oct 2, 20269,886
Oct 1, 202610,332
Sep 30, 202610,234
Sep 29, 202610,313
Sep 28, 202610,558
Sep 27, 202610,863
Sep 26, 202611,014
Sep 25, 202610,485
Sep 24, 20269,869
Sep 23, 202610,181
Sep 22, 202610,082
Sep 21, 202610,401
Sep 20, 20269,281
Sep 19, 20268,884
Sep 18, 20268,959
Sep 17, 20269,143
Sep 16, 20268,281
Sep 15, 20268,548
Sep 14, 20267,958
Sep 13, 20268,077
Sep 12, 20268,263
Sep 11, 20268,460
Sep 10, 20268,547
Sep 9, 20269,057
Sep 8, 20268,842
Sep 7, 20268,481

Each point is npm's rolling 7-day download count.

Health Score

100/100Excellent

Composite score based on GitHub activity, stars, npm downloads, publish recency, dependency count, and package size.

Badge for your README

Payload Directory health badge
Markdown
[![Payload Directory](https://payloaddirectory.dev/badge/official-plugin-ecommerce.svg)](https://payloaddirectory.dev/plugins/official-plugin-ecommerce)
HTML
<a href="https://payloaddirectory.dev/plugins/official-plugin-ecommerce"><img src="https://payloaddirectory.dev/badge/official-plugin-ecommerce.svg" alt="Payload Directory"></a>
Updated Dec 5, 2026Created Jan 5, 2021Published Nov 24, 2026

README

Payload Ecommerce

A set of utilities... more to come

Stripe confirmation retries

Stripe confirmation is idempotent per ecommerce transaction: retries return the same order and public transactionID. Core atomically claims a pending transaction before creating the order, updating the cart, and decrementing inventory. PostgreSQL users must generate and apply a schema migration that adds processing to the ecommerce transaction status enum; MongoDB and SQLite require no schema migration for this change.

Database adapters with transaction support roll back the complete settlement on failure. Without database transactions, concurrent requests are still serialized by the transaction status claim, but a process crash can leave a transaction in processing. This state fails closed and must be investigated; it is not reset automatically because the system cannot safely infer which side effects completed.

Similar plugins

View on GitHubView on npmOfficial Payload plugin