WordPress + WooCommerce 7+
Adds a 'Loyalty' menu to WP Admin, a 'Sign in with Deakee' button to your account page, and credits points on every completed order. Centralized ledger (your DB) syncs to the customer's Deakee wallet automatically.
Download the .zip and unzip — copy plugins/woocommerce into wp-content/plugins/ as deakee-loyalty.
Activate 'Deakee Loyalty' in WP Admin → Plugins.
Go to Deakee Loyalty → Settings, paste your DEAKEE_CLIENT_ID + DEAKEE_CLIENT_SECRET from deakee.com/partners/oauth2.
Set the callback URL in your Deakee partner app to https://YOUR-STORE.com/?deakee=callback.
Done. New orders credit points automatically; customers see them on their My Account → Loyalty tab.
插件需要一个 Deakee 合作伙伴 OAuth2 应用 — 几分钟在 deakee.com/partners/oauth2 创建一个。
所有交互都通过标准 OAuth2 — 用户在你店铺点"用 Deakee 登录",授权后回到你这里。
客户积分有两份:一份在你的本地数据库(你完全掌控),一份同步到他们的 Deakee 钱包。
推送积分用 /api/oauth/transfer-tokens — 凭幂等键安全重试。
不涉及区块链 / 加密货币 — 这是普通的 OAuth2 + REST,跟 Stripe Connect 一样简单。