@unchainedshop/plugins
Version:
Official plugin collection for the Unchained Engine with payment, delivery, and pricing adapters
26 lines (25 loc) • 656 B
TypeScript
import { type Context } from '@unchainedshop/api';
import { type CryptopayModule } from './module.ts';
export default function handleWebhook({ secret, wallet, price, ping, }: {
secret: string;
wallet?: {
address: string;
blockHeight: number;
amount: string;
contract?: string;
decimals?: number;
currencyCode: string;
};
price?: {
baseCurrency: string;
token: string;
rate: number;
timestamp: string;
};
ping?: {
blockHeight: number;
currencyCode: string;
};
}, context: Context & {
modules: CryptopayModule;
}): Promise<void>;