@paykit-sdk/stripe 1.1.3 → 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/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
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
|
}
|