Record Payments Intents
This commit is contained in:
22
dbTools/payments.js
Normal file
22
dbTools/payments.js
Normal 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;
|
||||
Reference in New Issue
Block a user