忠诚度插件 · 免费

Shopify

Shopify (custom app or App Store)

A Shopify embedded app (Express + Polaris) that listens for orders/paid webhooks and credits the customer's centralized loyalty balance. Customers sign in with Deakee from the storefront to link their account.

接入步骤

  1. 1

    Download + unzip. Inside plugins/shopify run pnpm install && pnpm build.

  2. 2

    Create a Shopify custom app at YOUR-STORE.myshopify.com/admin/settings/apps.

  3. 3

    Set DEAKEE_CLIENT_ID, DEAKEE_CLIENT_SECRET, SHOPIFY_API_KEY, SHOPIFY_API_SECRET in .env.

  4. 4

    Run pnpm start; install the app from the admin → Apps → Develop apps.

  5. 5

    Subscribe to the orders/paid webhook (the installer wizard does this automatically).

连接到 Deakee

插件需要一个 Deakee 合作伙伴 OAuth2 应用 — 几分钟在 deakee.com/partners/oauth2 创建一个。

所有交互都通过标准 OAuth2 — 用户在你店铺点"用 Deakee 登录",授权后回到你这里。

客户积分有两份:一份在你的本地数据库(你完全掌控),一份同步到他们的 Deakee 钱包。

推送积分用 /api/oauth/transfer-tokens — 凭幂等键安全重试。

不涉及区块链 / 加密货币 — 这是普通的 OAuth2 + REST,跟 Stripe Connect 一样简单。

打开 OAuth2 后台