Record Payments Intents

This commit is contained in:
aeroreyna
2022-01-23 20:16:50 -08:00
parent f147bf70fd
commit cb056a078a
3 changed files with 59 additions and 7 deletions

22
dbTools/payments.js Normal file
View File

@@ -0,0 +1,22 @@
const DBName = "EMI_SOCIAL";
postDB = (DB)=>{
DB.paymentsCols = DB.db.db(DBName).collection("payments");
DB.newIntent = (intent) => {
return DB.paymentsCols.insertOne(intent).catch((err)=>{
console.log(err);
return false;
});
}
DB.newResult = (paymentResult) => {
return DB.paymentsCols.insertOne(paymentResult).catch((err)=>{
console.log(err);
return false;
});
}
}
module.exports = postDB;