@unchainedshop/plugins
Version:
Because of a Typescript issue with upstream "postfinancecheckout", the Postfinance plugin has been disabled from transpilation, import the source ts files from src and enable node_module tsc or copy over the src/payment/postfinance-checkout to your projec
18 lines (15 loc) • 501 B
text/typescript
import { mongodb } from '@unchainedshop/mongodb';
import { TimestampFields } from '@unchainedshop/mongodb';
export type CryptopayTransaction = {
_id?: string;
blockHeight: number;
mostRecentBlockHeight: number;
amount: mongodb.Decimal128;
currency: string;
decimals: number;
contract: string;
orderPaymentId?: string;
} & TimestampFields;
export const CryptopayTransactionsCollection = (db: mongodb.Db) => {
return db.collection<CryptopayTransaction>('cryptopay_transactions');
};