Payment Shared

Shared order builder, pricing rules and guards for building payment adapters

Community 0 10/wk MIT v0.2.0

Installation

pnpm add payload-payment-shared

About

Payment Shared is a set of helper functions that payment adapters for Payload need in common. It turns a paid transaction into an order, so a browser return and a gateway webhook that both try to create the same order end up with one consistent record. It also resolves line prices in minor units, including sale and B2B prices, and keeps checkout consents such as newsletter opt-in and terms acceptance intact.

The package adds guards that a payment flow usually needs. A currency mismatch between the cart and what the shopper saw fails loudly, a lock stops duplicate order creation, and guest checkouts are not linked to an existing customer account by email unless the caller allows it. Errors carry stable codes that are easy to group in monitoring.

Package info

Package name
payload-payment-shared
Latest version
0.2.0
Unpacked size
264 kB
License
MIT
Weekly downloads
10
Last publish
Aug 15, 2026

More from blazeITHugo

View profile

Adds Comgate card, bank transfer and wallet payments to the ecommerce plugin

Adds CorvusPay card checkout and refunds to the ecommerce plugin

Cash on delivery payment method for the ecommerce plugin, with optional courier surcharge

Chat panel in the Payload admin where an AI assistant reads and edits content within user permissions

Similar adapters

More in Payments

Tpay payment methods for the ecommerce plugin: BLIK, transfers and cards

Adds Razorpay Checkout as a payment method in the Payload ecommerce plugin

Adds Adyen card and redirect payments to Payload Ecommerce checkout