@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
22 lines • 743 B
JavaScript
import { AppleTransactionsCollection } from './db/AppleTransactionsCollection.js';
export const configureAppleTransactionsModule = async ({ db }) => {
const AppleTransactions = await AppleTransactionsCollection(db);
return {
findTransactionById: async (transactionIdentifier) => {
return AppleTransactions.findOne({ _id: transactionIdentifier });
},
createTransaction: async (doc) => {
await AppleTransactions.insertOne({
...doc,
created: new Date(),
});
return doc._id;
},
};
};
export default {
appleTransactions: {
configure: configureAppleTransactionsModule,
},
};
//# sourceMappingURL=module.js.map