Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,12 @@ TWILIO_AUTH_TOKEN=TWILIO_SECRET_KEY
VUE_APP_CAMPAIGN_MODE=single
VUE_APP_FEATURED_CAMPAIGN=1

VUE_APP_EMPTY_TRANSACTIONS=on
VUE_APP_SHOW_EXT_DONATION=false
VUE_APP_EXT_DONATION_URL=
VUE_APP_NO_COST_MAIL=true

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.18.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
Loading