Dullaz Commerce

EmDash 電商:商品、庫存、訂單、結賬,以及可插拔的支付提供商抽象層。

外掛

Dullaz Commerce

EmDash 電商:商品、庫存、訂單、結賬,以及可插拔的支付提供商抽象層。

  • 分類: 電商
  • 狀態: 可用
  • 版本: 0.1.1
  • 價格: 未知
  • 來源: npm 套件
  • 安裝方式: npm 原生整合
  • 核實日期: 2026-11-01

EmDash 電商:商品、庫存、訂單、結賬,以及可插拔的支付提供商抽象層。

安裝

從 npm 安裝此套件:

npm install @dullaz/commerce

在 Astro 設定中註冊此外掛:

// astro.config.mjs
import { commercePlugin } from "@dullaz/commerce";

export default defineConfig({
  integrations: [
    emdash({
      database: d1({ binding: "DB" }),
      storage: r2({ binding: "MEDIA" }),
      plugins: [commercePlugin({ defaultCurrency: "USD" })],
    }),
  ],
});

詳細資訊