Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/npm_and_yarn/multi-092c445592
Browse files Browse the repository at this point in the history
  • Loading branch information
priyadam authored Jan 9, 2025
2 parents c8a1ea5 + ea67c34 commit be33d4b
Show file tree
Hide file tree
Showing 31 changed files with 1,104 additions and 720 deletions.
9 changes: 7 additions & 2 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,14 @@ TWILIO_AUTH_TOKEN=TWILIO_SECRET_KEY
# **We always run in single-campaign mode now so this is mandatory!**
# Use campaign seeder file for local dev campaigns.
VUE_APP_CAMPAIGN_MODE=single
VUE_APP_FEATURED_CAMPAIGN=1
VUE_APP_FEATURED_CAMPAIGN=2

VUE_APP_EMPTY_TRANSACTIONS=off
VUE_APP_SHOW_EXT_DONATION=false
VUE_APP_EXT_DONATION_URL=
VUE_APP_NO_COST_MAIL=false

POSTGRES_USER=postgres
POSTGRES_PASSWORD=postgres
POSTGRES_PORT=5432
POSTGRES_HOST=amplify_db
POSTGRES_HOST=amplify_db
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ package-lock.json
.env.test
.env.local
.env.*.local
.env.test

# Log files
npm-debug.log*
Expand Down
166 changes: 143 additions & 23 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@
"@fortawesome/free-regular-svg-icons": "^6.2.0",
"@fortawesome/free-solid-svg-icons": "^6.2.0",
"@fortawesome/vue-fontawesome": "^2.0.8",
"@sendgrid/client": "^8.1.3",
"@sendgrid/mail": "^8.1.3",
"@stripe/stripe-js": "^1.35.0",
"@vue-stripe/vue-stripe": "^4.4.4",
"axios": "^0.27.2",
Expand All @@ -60,6 +62,7 @@
"express": "^4.21.1",
"express-jwt": "^8.4.0",
"express-rate-limit": "^6.6.0",
"handlebars": "^4.7.8",
"jwks-rsa": "^2.1.4",
"knex": "^2.4.2",
"lob": "^6.6.3",
Expand Down
26 changes: 26 additions & 0 deletions script/send-letters.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
const axios = require('axios')
const letterData = require('./catchup.js')

;(async () => {
const data = JSON.parse(letterData)

for (const transaction of data) {
try {
const response = await axios.post(
'https://amplify-hooks-0194518485a8.herokuapp.com/api/checkout/process-transaction',
{
data: {
object: {
id: transaction.stripe_id
}
},
type: 'payment_intent.succeeded'
}
)

if (response.statusCode == 201) console.log(transaction.stripe_id)
} catch (error) {
console.error(error)
}
}
})()
Loading

0 comments on commit be33d4b

Please sign in to comment.