@paykit-sdk/stripe 1.1.2 → 1.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -174,7 +174,6 @@ STRIPE_WEBHOOK_SECRET=whsec_...
174
174
  ## Support
175
175
 
176
176
  - [Stripe Documentation](https://stripe.com/docs)
177
- - [PayKit Issues](https://github.com/devodii/paykit/issues)
178
177
 
179
178
  ## License
180
179
 
package/dist/index.js CHANGED
@@ -210,7 +210,7 @@ var StripeProvider = class {
210
210
  id: event.id,
211
211
  data: toPaykitSubscription(subscription)
212
212
  });
213
- } else if (event.type == "invoice.paid") {
213
+ } else if (event.type == "invoice.paid" && event.data.object.status == "paid") {
214
214
  const invoice = event.data.object;
215
215
  return (0, import_core2.toPaykitEvent)({ type: "$invoicePaid", created: event.created, id: event.id, data: toPaykitInvoice(invoice) });
216
216
  }
package/dist/index.mjs CHANGED
@@ -177,7 +177,7 @@ var StripeProvider = class {
177
177
  id: event.id,
178
178
  data: toPaykitSubscription(subscription)
179
179
  });
180
- } else if (event.type == "invoice.paid") {
180
+ } else if (event.type == "invoice.paid" && event.data.object.status == "paid") {
181
181
  const invoice = event.data.object;
182
182
  return toPaykitEvent({ type: "$invoicePaid", created: event.created, id: event.id, data: toPaykitInvoice(invoice) });
183
183
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paykit-sdk/stripe",
3
- "version": "1.1.2",
3
+ "version": "1.1.4",
4
4
  "description": "Stripe provider for PayKit",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",
@@ -24,7 +24,7 @@
24
24
  "stripe": "^18.2.1"
25
25
  },
26
26
  "peerDependencies": {
27
- "@paykit-sdk/core": "^1.1.2"
27
+ "@paykit-sdk/core": "^1.1.3"
28
28
  },
29
29
  "devDependencies": {
30
30
  "tsup": "^8.0.0",