Skip to content

Commit 7464146

Browse files
Merging pull request #15266
* Update new-payment.mjs * updates * pnpm-lock.yaml --------- Co-authored-by: michelle0927 <[email protected]>
1 parent 0284540 commit 7464146

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

components/stripe/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/stripe",
3-
"version": "0.6.1",
3+
"version": "0.6.2",
44
"description": "Pipedream Stripe Components",
55
"main": "stripe.app.mjs",
66
"keywords": [

components/stripe/sources/new-payment/new-payment.mjs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
key: "stripe-new-payment",
66
name: "New Payment",
77
type: "source",
8-
version: "0.1.1",
8+
version: "0.1.2",
99
description: "Emit new event for each new payment",
1010
methods: {
1111
...common.methods,
@@ -14,5 +14,15 @@ export default {
1414
"payment_intent.created",
1515
];
1616
},
17+
emitEvent(event) {
18+
const amount = event.data.object?.amount;
19+
this.$emit(event, {
20+
id: event.id,
21+
summary: `New payment${amount
22+
? " of $" + amount
23+
: ""} received`,
24+
ts: Date.parse(event.created),
25+
});
26+
},
1727
},
1828
};

pnpm-lock.yaml

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)