You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: components/stripe/actions/capture-payment-intent/capture-payment-intent.mjs
+59-19Lines changed: 59 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,4 @@
1
-
importpickfrom"lodash.pick";
2
1
importappfrom"../../stripe.app.mjs";
3
-
importutilsfrom"../../common/utils.mjs";
4
2
5
3
exportdefault{
6
4
key: "stripe-capture-payment-intent",
@@ -14,39 +12,81 @@ export default {
14
12
id: {
15
13
propDefinition: [
16
14
app,
17
-
"payment_intent",
15
+
"paymentIntent",
18
16
],
19
17
optional: false,
20
18
},
21
-
amount_to_capture: {
19
+
amountToCapture: {
20
+
description: "The amount to capture from the PaymentIntent, which must be less than or equal to the original amount. Defaults to the full `amount_capturable` if it's not provided.",
22
21
propDefinition: [
23
22
app,
24
23
"amount",
25
24
],
26
-
description: "The amount to capture, which must be less than or equal to the original "+
27
-
"amount. Any additional amount will be automatically refunded. Defaults to the full "+
28
-
"`amount_capturable` if not provided.",
29
25
},
30
-
advanced: {
26
+
metadata: {
31
27
propDefinition: [
32
28
app,
33
29
"metadata",
34
30
],
35
-
label: "Advanced Options",
36
-
description: "Specify less-common options that you require. See [Capture a PaymentIntent]"+
37
-
"(https://stripe.com/docs/api/payment_intents/capture) for a list of supported options.",
31
+
},
32
+
applicationFeeAmount: {
33
+
type: "integer",
34
+
label: "Application Fee Amount",
35
+
description: "The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner’s Stripe account. The amount of the application fee collected will be capped at the total amount captured. For more information, see the PaymentIntents use case for connected accounts.",
36
+
optional: true,
37
+
},
38
+
finalCapture: {
39
+
type: "boolean",
40
+
label: "Final Capture",
41
+
description: "When capturing a PaymentIntent, setting final_capture to false notifies Stripe to not release the remaining uncaptured funds to make sure that they're captured in future requests. You can only use this setting when multicapture is available for PaymentIntents.",
42
+
optional: true,
43
+
},
44
+
statementDescriptor: {
45
+
propDefinition: [
46
+
app,
47
+
"statementDescriptor",
48
+
],
49
+
},
50
+
statementDescriptorSuffix: {
51
+
type: "string",
52
+
label: "Statement Descriptor Suffix",
53
+
description: "Provides information about a card charge. Concatenated to the account’s statement descriptor prefix to form the complete statement descriptor that appears on the customer’s statement.",
54
+
optional: true,
55
+
},
56
+
transferDataAmount: {
57
+
type: "integer",
58
+
label: "Transfer Data Amount",
59
+
description: "The amount that will be transferred automatically when a charge succeeds.",
0 commit comments