Skip to content

Commit

Permalink
Merge pull request #487 from flowforge/fix-stipe-invoice
Browse files Browse the repository at this point in the history
Fix for 500 in stripe callback
  • Loading branch information
hardillb authored Apr 19, 2022
2 parents e2de1c8 + 22ade4e commit 7f9b286
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#### 0.4.1: Maintence Release

- Fix for Stripe "charge.succeeded" callback (#484) @hardillb

#### 0.4.0: Release

- Timezone support for Node-RED (#452) @PLCMercenary
Expand Down
2 changes: 1 addition & 1 deletion forge/ee/routes/billing/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ module.exports = async function (app) {
case 'charge.succeeded':
// gate on config setting
if (app.config.billing?.stripe?.activation_price) {
invoice = await stripe.invoice.retrieve(event.data.object.invoice)
invoice = await stripe.invoices.retrieve(event.data.object.invoice)
invoice.lines.data.forEach(item => {
if (item.price.id === app.config.billing?.stripe?.activation_price) {
activation = true
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@flowforge/flowforge",
"version": "0.4.0",
"version": "0.4.1",
"description": "An open source low-code development platform",
"scripts": {
"start": "node forge/app.js",
Expand Down

0 comments on commit 7f9b286

Please sign in to comment.