@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
15 lines (11 loc) • 434 B
text/typescript
import { mongodb } from '@unchainedshop/mongodb';
import { TimestampFields } from '@unchainedshop/mongodb';
export type AppleTransaction = {
_id?: string;
matchedTransaction: any;
orderId: string;
} & TimestampFields;
export const AppleTransactionsCollection = async (db: mongodb.Db) => {
const AppleTransactions = db.collection<AppleTransaction>('payment_apple_iap_processed_transactions');
return AppleTransactions;
};