mirror of
https://github.com/profullstack/logicsrc.git
synced 2026-08-14 06:47:28 +00:00
Scaffold LogicSRC and CommandBoard plugins
This commit is contained in:
parent
59927e140c
commit
5c9ea821f6
67 changed files with 5958 additions and 0 deletions
33
plugins/coinpay/src/index.ts
Normal file
33
plugins/coinpay/src/index.ts
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
import type { PluginDefinition } from "@logicsrc/plugin-core";
|
||||
import { coinPayManifest } from "./manifest.js";
|
||||
|
||||
export const coinPayPlugin: PluginDefinition = {
|
||||
manifest: coinPayManifest,
|
||||
configDefaults: {
|
||||
enabled: true,
|
||||
default_payment_provider: true,
|
||||
default_identity_provider: true,
|
||||
api_url: "${COINPAY_API_URL}",
|
||||
api_key: "${COINPAY_API_KEY}",
|
||||
webhook_secret: "${COINPAY_WEBHOOK_SECRET}"
|
||||
},
|
||||
routes: [
|
||||
{ method: "POST", path: "/api/plugins/coinpay/did/auth", capability: "did.auth" },
|
||||
{ method: "POST", path: "/api/plugins/coinpay/escrows", capability: "escrow.create" },
|
||||
{ method: "POST", path: "/api/plugins/coinpay/webhooks/payment-status", capability: "webhook.payment_status" }
|
||||
],
|
||||
events: [
|
||||
{ event: "task.approved", capability: "escrow.release" },
|
||||
{ event: "payment.released", capability: "reputation.payment_event" }
|
||||
],
|
||||
permissions: [
|
||||
"payments:read",
|
||||
"payments:request",
|
||||
"payments:release",
|
||||
"escrows:create",
|
||||
"escrows:refund"
|
||||
],
|
||||
tuiPanels: [{ id: "coinpay-status", title: "CoinPay" }]
|
||||
};
|
||||
|
||||
export { coinPayManifest };
|
||||
Loading…
Add table
Add a link
Reference in a new issue