@owlmeans/server-payment 0.1.21 → 0.2.0-alpha.0
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 +52 -54
- package/agent-meta/manifest.json +2 -2
- package/agent-meta/skills/server-payment/SKILL.md +272 -330
- package/agent-meta/skills/server-payment/parts/reference.md +3 -3
- package/build/access/types.d.ts +7 -16
- package/build/access/types.d.ts.map +1 -1
- package/build/access.d.ts.map +1 -1
- package/build/access.js +6 -8
- package/build/access.js.map +1 -1
- package/build/actions/resync.d.ts +3 -3
- package/build/actions/resync.js +5 -5
- package/build/actions/resync.js.map +1 -1
- package/build/actions/webhook.d.ts +4 -1
- package/build/actions/webhook.d.ts.map +1 -1
- package/build/actions/webhook.js +8 -4
- package/build/actions/webhook.js.map +1 -1
- package/build/bootstrap/types.d.ts +13 -7
- package/build/bootstrap/types.d.ts.map +1 -1
- package/build/bootstrap.d.ts +4 -4
- package/build/bootstrap.d.ts.map +1 -1
- package/build/bootstrap.js +19 -10
- package/build/bootstrap.js.map +1 -1
- package/build/catalogue/types.d.ts +3 -3
- package/build/catalogue/types.d.ts.map +1 -1
- package/build/catalogue.d.ts.map +1 -1
- package/build/catalogue.js +4 -8
- package/build/catalogue.js.map +1 -1
- package/build/checkout/types.d.ts +21 -0
- package/build/checkout/types.d.ts.map +1 -0
- package/build/{plugins/stripe → checkout}/types.js.map +1 -1
- package/build/checkout.d.ts +6 -0
- package/build/checkout.d.ts.map +1 -0
- package/build/checkout.js +374 -0
- package/build/checkout.js.map +1 -0
- package/build/config.d.ts +10 -16
- package/build/config.d.ts.map +1 -1
- package/build/config.js +18 -59
- package/build/config.js.map +1 -1
- package/build/consts.d.ts +3 -49
- package/build/consts.d.ts.map +1 -1
- package/build/consts.js +3 -61
- package/build/consts.js.map +1 -1
- package/build/consumer/cancellation/types.d.ts +6 -4
- package/build/consumer/cancellation/types.d.ts.map +1 -1
- package/build/consumer/cancellation.d.ts.map +1 -1
- package/build/consumer/cancellation.js +11 -5
- package/build/consumer/cancellation.js.map +1 -1
- package/build/consumer/capture/types.d.ts +8 -12
- package/build/consumer/capture/types.d.ts.map +1 -1
- package/build/consumer/capture.d.ts.map +1 -1
- package/build/consumer/capture.js +48 -53
- package/build/consumer/capture.js.map +1 -1
- package/build/consumer/index.d.ts +4 -0
- package/build/consumer/index.d.ts.map +1 -1
- package/build/consumer/index.js +2 -0
- package/build/consumer/index.js.map +1 -1
- package/build/consumer/reconcile.d.ts.map +1 -1
- package/build/consumer/reconcile.js +82 -72
- package/build/consumer/reconcile.js.map +1 -1
- package/build/consumer/records/types.d.ts +4 -4
- package/build/consumer/records/types.d.ts.map +1 -1
- package/build/consumer/records.d.ts.map +1 -1
- package/build/consumer/records.js +16 -13
- package/build/consumer/records.js.map +1 -1
- package/build/consumer/service.d.ts +2 -2
- package/build/consumer/service.d.ts.map +1 -1
- package/build/consumer/service.js +28 -21
- package/build/consumer/service.js.map +1 -1
- package/build/consumer/types.d.ts +1 -4
- package/build/consumer/types.d.ts.map +1 -1
- package/build/consumer/types.local.d.ts +1 -9
- package/build/consumer/types.local.d.ts.map +1 -1
- package/build/consumer/withdrawal/types.d.ts +14 -12
- package/build/consumer/withdrawal/types.d.ts.map +1 -1
- package/build/consumer/withdrawal.d.ts.map +1 -1
- package/build/consumer/withdrawal.js +55 -71
- package/build/consumer/withdrawal.js.map +1 -1
- package/build/index.d.ts +12 -6
- package/build/index.d.ts.map +1 -1
- package/build/index.js +7 -4
- package/build/index.js.map +1 -1
- package/build/paygate/providers.d.ts +13 -0
- package/build/paygate/providers.d.ts.map +1 -0
- package/build/paygate/providers.js +38 -0
- package/build/paygate/providers.js.map +1 -0
- package/build/paygate/registry.d.ts +6 -0
- package/build/paygate/registry.d.ts.map +1 -0
- package/build/paygate/registry.js +37 -0
- package/build/paygate/registry.js.map +1 -0
- package/build/paygate/types.d.ts +577 -0
- package/build/paygate/types.d.ts.map +1 -0
- package/build/{plugins/session → paygate}/types.js.map +1 -1
- package/build/plan/types.d.ts +6 -1
- package/build/plan/types.d.ts.map +1 -1
- package/build/plan.d.ts.map +1 -1
- package/build/plan.js +16 -2
- package/build/plan.js.map +1 -1
- package/build/plugins/checkout-policy/types.d.ts +5 -3
- package/build/plugins/checkout-policy/types.d.ts.map +1 -1
- package/build/plugins/checkout-policy.d.ts.map +1 -1
- package/build/plugins/checkout-policy.js +5 -3
- package/build/plugins/checkout-policy.js.map +1 -1
- package/build/plugins/consts.local.d.ts +8 -10
- package/build/plugins/consts.local.d.ts.map +1 -1
- package/build/plugins/consts.local.js +2 -19
- package/build/plugins/consts.local.js.map +1 -1
- package/build/plugins/customer-lock/types.d.ts +2 -2
- package/build/plugins/customer-lock/types.d.ts.map +1 -1
- package/build/plugins/customer-lock.js +2 -2
- package/build/plugins/customer-lock.js.map +1 -1
- package/build/plugins/estimate/cache.js +1 -1
- package/build/plugins/estimate/cache.js.map +1 -1
- package/build/plugins/estimate/types.d.ts +10 -10
- package/build/plugins/estimate/types.d.ts.map +1 -1
- package/build/plugins/estimate.d.ts.map +1 -1
- package/build/plugins/estimate.js +48 -122
- package/build/plugins/estimate.js.map +1 -1
- package/build/plugins/events/types.d.ts +17 -10
- package/build/plugins/events/types.d.ts.map +1 -1
- package/build/plugins/events.d.ts +6 -5
- package/build/plugins/events.d.ts.map +1 -1
- package/build/plugins/events.js +162 -173
- package/build/plugins/events.js.map +1 -1
- package/build/plugins/fx/types.d.ts +10 -21
- package/build/plugins/fx/types.d.ts.map +1 -1
- package/build/plugins/fx.d.ts +1 -1
- package/build/plugins/fx.d.ts.map +1 -1
- package/build/plugins/fx.js +17 -54
- package/build/plugins/fx.js.map +1 -1
- package/build/plugins/portal/types.d.ts +8 -37
- package/build/plugins/portal/types.d.ts.map +1 -1
- package/build/plugins/portal.d.ts.map +1 -1
- package/build/plugins/portal.js +38 -208
- package/build/plugins/portal.js.map +1 -1
- package/build/plugins/refunds/types.d.ts +11 -11
- package/build/plugins/refunds/types.d.ts.map +1 -1
- package/build/plugins/refunds.d.ts.map +1 -1
- package/build/plugins/refunds.js +14 -39
- package/build/plugins/refunds.js.map +1 -1
- package/build/plugins/snapshot/types.d.ts +11 -0
- package/build/plugins/snapshot/types.d.ts.map +1 -0
- package/build/plugins/snapshot/types.js +2 -0
- package/build/plugins/snapshot/types.js.map +1 -0
- package/build/plugins/snapshot.d.ts +4 -0
- package/build/plugins/snapshot.d.ts.map +1 -0
- package/build/plugins/snapshot.js +19 -0
- package/build/plugins/snapshot.js.map +1 -0
- package/build/plugins/subscriptions/types.d.ts +17 -17
- package/build/plugins/subscriptions/types.d.ts.map +1 -1
- package/build/plugins/subscriptions.d.ts +4 -4
- package/build/plugins/subscriptions.d.ts.map +1 -1
- package/build/plugins/subscriptions.js +69 -77
- package/build/plugins/subscriptions.js.map +1 -1
- package/build/plugins/types.local.d.ts +9 -43
- package/build/plugins/types.local.d.ts.map +1 -1
- package/build/plugins/webhook-manager/types.d.ts +15 -43
- package/build/plugins/webhook-manager/types.d.ts.map +1 -1
- package/build/plugins/webhook-manager.d.ts +3 -3
- package/build/plugins/webhook-manager.d.ts.map +1 -1
- package/build/plugins/webhook-manager.js +21 -199
- package/build/plugins/webhook-manager.js.map +1 -1
- package/build/protocol.d.ts +1 -1
- package/build/protocol.d.ts.map +1 -1
- package/build/protocol.js +1 -1
- package/build/protocol.js.map +1 -1
- package/build/service.d.ts +11 -11
- package/build/service.d.ts.map +1 -1
- package/build/service.js +59 -23
- package/build/service.js.map +1 -1
- package/build/sync/types.d.ts +17 -13
- package/build/sync/types.d.ts.map +1 -1
- package/build/sync.d.ts.map +1 -1
- package/build/sync.js +22 -122
- package/build/sync.js.map +1 -1
- package/build/types.d.ts +46 -101
- package/build/types.d.ts.map +1 -1
- package/build/utils/types.d.ts +0 -8
- package/build/utils/types.d.ts.map +1 -1
- package/build/utils.d.ts +1 -4
- package/build/utils.d.ts.map +1 -1
- package/build/utils.js +1 -15
- package/build/utils.js.map +1 -1
- package/package.json +20 -22
- package/src/access/types.ts +7 -16
- package/src/access.ts +7 -15
- package/src/actions/resync.ts +5 -5
- package/src/actions/webhook.ts +8 -4
- package/src/bootstrap/types.ts +13 -7
- package/src/bootstrap.ts +23 -13
- package/src/catalogue/types.ts +3 -3
- package/src/catalogue.ts +4 -8
- package/src/checkout/types.ts +21 -0
- package/src/checkout.ts +414 -0
- package/src/config.ts +19 -66
- package/src/consts.ts +3 -69
- package/src/consumer/cancellation/types.ts +6 -4
- package/src/consumer/cancellation.ts +13 -7
- package/src/consumer/capture/types.ts +8 -12
- package/src/consumer/capture.ts +50 -59
- package/src/consumer/index.ts +4 -0
- package/src/consumer/reconcile.ts +69 -68
- package/src/consumer/records/types.ts +4 -4
- package/src/consumer/records.ts +19 -14
- package/src/consumer/service.ts +35 -22
- package/src/consumer/types.local.ts +1 -8
- package/src/consumer/types.ts +1 -4
- package/src/consumer/withdrawal/types.ts +14 -12
- package/src/consumer/withdrawal.ts +61 -77
- package/src/index.ts +12 -6
- package/src/paygate/providers.ts +48 -0
- package/src/paygate/registry.ts +53 -0
- package/src/paygate/types.ts +640 -0
- package/src/plan/types.ts +6 -1
- package/src/plan.ts +21 -3
- package/src/plugins/checkout-policy/types.ts +5 -3
- package/src/plugins/checkout-policy.ts +6 -5
- package/src/plugins/consts.local.ts +2 -26
- package/src/plugins/customer-lock/types.ts +2 -2
- package/src/plugins/customer-lock.ts +2 -2
- package/src/plugins/estimate/cache.ts +1 -1
- package/src/plugins/estimate/types.ts +10 -10
- package/src/plugins/estimate.ts +52 -128
- package/src/plugins/events/types.ts +17 -9
- package/src/plugins/events.ts +172 -190
- package/src/plugins/fx/types.ts +10 -23
- package/src/plugins/fx.ts +28 -64
- package/src/plugins/portal/types.ts +8 -38
- package/src/plugins/portal.ts +48 -229
- package/src/plugins/refunds/types.ts +11 -11
- package/src/plugins/refunds.ts +16 -40
- package/src/plugins/snapshot/types.ts +11 -0
- package/src/plugins/snapshot.ts +22 -0
- package/src/plugins/subscriptions/types.ts +17 -17
- package/src/plugins/subscriptions.ts +81 -81
- package/src/plugins/types.local.ts +9 -33
- package/src/plugins/webhook-manager/types.ts +15 -43
- package/src/plugins/webhook-manager.ts +24 -220
- package/src/protocol.ts +1 -1
- package/src/service.ts +66 -30
- package/src/sync/types.ts +17 -13
- package/src/sync.ts +25 -143
- package/src/types.ts +47 -97
- package/src/utils/types.ts +0 -9
- package/src/utils.ts +2 -20
- package/tests/capabilities.spec.ts +219 -0
- package/tests/entitlement.spec.ts +4 -4
- package/tests/gate-handlers.spec.ts +6 -6
- package/tests/gate.spec.ts +2 -2
- package/tests/grants.spec.ts +2 -2
- package/tests/internal-plan.spec.ts +2 -2
- package/tests/limit-gate.spec.ts +2 -2
- package/tests/paygates.spec.ts +132 -0
- package/tests/protocol.spec.ts +4 -5
- package/tests/usage.spec.ts +2 -2
- package/tests/webhook.spec.ts +137 -0
- package/build/plugins/session/types.d.ts +0 -34
- package/build/plugins/session/types.d.ts.map +0 -1
- package/build/plugins/session.d.ts +0 -4
- package/build/plugins/session.d.ts.map +0 -1
- package/build/plugins/session.js +0 -71
- package/build/plugins/session.js.map +0 -1
- package/build/plugins/status.d.ts +0 -8
- package/build/plugins/status.d.ts.map +0 -1
- package/build/plugins/status.js +0 -21
- package/build/plugins/status.js.map +0 -1
- package/build/plugins/stripe/types.d.ts +0 -20
- package/build/plugins/stripe/types.d.ts.map +0 -1
- package/build/plugins/stripe.d.ts +0 -6
- package/build/plugins/stripe.d.ts.map +0 -1
- package/build/plugins/stripe.js +0 -518
- package/build/plugins/stripe.js.map +0 -1
- package/src/plugins/session/types.ts +0 -30
- package/src/plugins/session.ts +0 -86
- package/src/plugins/status.ts +0 -22
- package/src/plugins/stripe/types.ts +0 -20
- package/src/plugins/stripe.ts +0 -571
- package/tests/checkout-consumer.spec.ts +0 -366
- package/tests/checkout-locks.spec.ts +0 -161
- package/tests/checkout-plugins.spec.ts +0 -164
- package/tests/checkout.spec.ts +0 -313
- package/tests/consumer-events.spec.ts +0 -215
- package/tests/consumer-fixtures.ts +0 -141
- package/tests/consumer-ops.spec.ts +0 -361
- package/tests/consumer-rights.integration.spec.ts +0 -147
- package/tests/consumer-rights.spec.ts +0 -606
- package/tests/context.ts +0 -110
- package/tests/estimate.spec.ts +0 -350
- package/tests/events.spec.ts +0 -367
- package/tests/fake-stripe.ts +0 -1004
- package/tests/gateway-options.spec.ts +0 -180
- package/tests/portal.spec.ts +0 -202
- package/tests/sync.spec.ts +0 -114
- package/tests/usage.integration.spec.ts +0 -165
- package/tests/webhook-manager.spec.ts +0 -149
- /package/build/{plugins/session → checkout}/types.js +0 -0
- /package/build/{plugins/stripe → paygate}/types.js +0 -0
package/src/plugins/session.ts
DELETED
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import type Stripe from 'stripe'
|
|
2
|
-
import { CheckoutPricingMode, ProductError, TaxBehavior, checkoutPricingHelper } from '@owlmeans/payment'
|
|
3
|
-
import type { PaymentPlan, PaymentProduct } from '../types.js'
|
|
4
|
-
import { NEEDS_POSTAL_CODE, NEEDS_POSTAL_CODE_OR_STATE } from './consts.local.js'
|
|
5
|
-
import type { StripeErrorShape } from './types.local.js'
|
|
6
|
-
import type { StripeSessionHelper } from './session/types.js'
|
|
7
|
-
|
|
8
|
-
export const createStripeSessionHelper = (): StripeSessionHelper => {
|
|
9
|
-
const canFulfillPayment = (session: Stripe.Checkout.Session): boolean => {
|
|
10
|
-
if (session.mode !== 'payment') return false
|
|
11
|
-
if (session.payment_status === 'paid'
|
|
12
|
-
&& (session.amount_total !== 0 || session.metadata?.pricingMode !== CheckoutPricingMode.Amount)) return true
|
|
13
|
-
|
|
14
|
-
return (session.payment_status === 'no_payment_required' || session.payment_status === 'paid')
|
|
15
|
-
&& session.status === 'complete' && session.metadata?.pricingMode === CheckoutPricingMode.Amount
|
|
16
|
-
&& session.allow_promotion_codes === true && session.amount_total === 0
|
|
17
|
-
&& Number.isSafeInteger(session.amount_subtotal) && (session.amount_subtotal ?? 0) > 0
|
|
18
|
-
&& session.total_details?.amount_discount === session.amount_subtotal
|
|
19
|
-
&& session.total_details?.amount_tax === 0
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
const amountCheckoutLineItem = (
|
|
23
|
-
product: PaymentProduct, plan: PaymentPlan, amountMinor: number, behavior: TaxBehavior = TaxBehavior.Exclusive,
|
|
24
|
-
): { lineItem: Stripe.Checkout.SessionCreateParams.LineItem; chargeMinor: number; currency: string } => {
|
|
25
|
-
if (plan.amountPolicy == null) throw new ProductError(`amount-policy:${plan.sku}`)
|
|
26
|
-
checkoutPricingHelper.assertCheckoutAmount(plan.amountPolicy, amountMinor)
|
|
27
|
-
const chargeMinor = checkoutPricingHelper.chargeAmountMinor(amountMinor, plan.amountPolicy)
|
|
28
|
-
const currency = plan.amountPolicy.currency.toLowerCase()
|
|
29
|
-
return {
|
|
30
|
-
lineItem: {
|
|
31
|
-
price_data: {
|
|
32
|
-
product: product.sku, currency, unit_amount: chargeMinor, tax_behavior: behavior,
|
|
33
|
-
},
|
|
34
|
-
quantity: 1,
|
|
35
|
-
},
|
|
36
|
-
chargeMinor,
|
|
37
|
-
currency,
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
const quantityCheckoutLineItem = (
|
|
42
|
-
price: Stripe.Price, policy: { minimum: number; maximum: number; default: number },
|
|
43
|
-
): Stripe.Checkout.SessionCreateParams.LineItem => ({
|
|
44
|
-
price: price.id,
|
|
45
|
-
adjustable_quantity: { enabled: true, minimum: policy.minimum, maximum: policy.maximum },
|
|
46
|
-
quantity: policy.default,
|
|
47
|
-
})
|
|
48
|
-
|
|
49
|
-
const present = (value: string | null | undefined): boolean => value != null && value.trim() !== ''
|
|
50
|
-
|
|
51
|
-
const isTaxLocatable = (address: Stripe.Address | null | undefined): boolean => {
|
|
52
|
-
const country = address?.country?.toUpperCase()
|
|
53
|
-
if (country == null || country === '') {
|
|
54
|
-
return false
|
|
55
|
-
}
|
|
56
|
-
if (NEEDS_POSTAL_CODE.has(country)) {
|
|
57
|
-
return present(address?.postal_code)
|
|
58
|
-
}
|
|
59
|
-
if (NEEDS_POSTAL_CODE_OR_STATE.has(country)) {
|
|
60
|
-
return present(address?.postal_code) || present(address?.state)
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
return true
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
const isMissingTermsUrl = (error: unknown): boolean => {
|
|
67
|
-
if (error == null || typeof error !== 'object') {
|
|
68
|
-
return false
|
|
69
|
-
}
|
|
70
|
-
const typed = error as StripeErrorShape
|
|
71
|
-
const kind = typed.rawType ?? typed.raw?.type ?? typed.type
|
|
72
|
-
if (kind != null && kind !== 'invalid_request_error' && kind !== 'StripeInvalidRequestError') {
|
|
73
|
-
return false
|
|
74
|
-
}
|
|
75
|
-
const param = (typed.param ?? typed.raw?.param ?? '').replace(/\s/g, '')
|
|
76
|
-
const message = typed.message ?? typed.raw?.message ?? ''
|
|
77
|
-
const aboutTerms = /terms of service/i.test(message)
|
|
78
|
-
const onTermsParam = /^consent_collection(\[|\.)terms_of_service\]?$/.test(param)
|
|
79
|
-
|
|
80
|
-
return (onTermsParam && aboutTerms) || (aboutTerms && /\burl\b/i.test(message) && /dashboard/i.test(message))
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
return { canFulfillPayment, amountCheckoutLineItem, quantityCheckoutLineItem, isTaxLocatable, isMissingTermsUrl }
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
export const stripeSessionHelper = createStripeSessionHelper()
|
package/src/plugins/status.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type Stripe from 'stripe'
|
|
2
|
-
import { SubscriptionStatus } from '@owlmeans/payment'
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Stripe's subscription status as a `SubscriptionStatus`. `past_due` still entitles (flagged);
|
|
6
|
-
* `unpaid`, `paused` and paused collection revoke until resumed.
|
|
7
|
-
*/
|
|
8
|
-
export const mapStatus = (subscription: Pick<Stripe.Subscription, 'status' | 'pause_collection'>): SubscriptionStatus => {
|
|
9
|
-
switch (subscription.status) {
|
|
10
|
-
case 'active':
|
|
11
|
-
return subscription.pause_collection != null ? SubscriptionStatus.Suspended : SubscriptionStatus.Active
|
|
12
|
-
case 'trialing':
|
|
13
|
-
return subscription.pause_collection != null ? SubscriptionStatus.Suspended : SubscriptionStatus.Trial
|
|
14
|
-
case 'past_due': return SubscriptionStatus.PastDue
|
|
15
|
-
case 'unpaid': return SubscriptionStatus.Suspended
|
|
16
|
-
case 'paused': return SubscriptionStatus.Suspended
|
|
17
|
-
case 'incomplete': return SubscriptionStatus.Created
|
|
18
|
-
case 'incomplete_expired': return SubscriptionStatus.Ended
|
|
19
|
-
case 'canceled': return SubscriptionStatus.Canceled
|
|
20
|
-
default: return SubscriptionStatus.Created
|
|
21
|
-
}
|
|
22
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type Stripe from 'stripe'
|
|
2
|
-
import type { CheckoutPlugin, CreateLinkParams } from '../../types.js'
|
|
3
|
-
|
|
4
|
-
/** Stripe Checkout of a context. */
|
|
5
|
-
export interface StripeCheckoutHelper {
|
|
6
|
-
/**
|
|
7
|
-
* A Stripe Checkout URL: an amount or quantity purchase of a consumable product, or a subscription
|
|
8
|
-
* to `planSku` (else the product's first recurring plan). A free plan is never checked out.
|
|
9
|
-
*
|
|
10
|
-
* With a consumer-rights policy: a locked billing country overrides the declared one (another is
|
|
11
|
-
* `BillingCountryLocked`); the charge currency is the profile's, else the region's; an amount
|
|
12
|
-
* checkout is narrowed by the checkout plugins (`CheckoutLimitExceeded`) and charged without FX
|
|
13
|
-
* when its policy currency is the charge currency; a subscription needs a fresh start request
|
|
14
|
-
* bound to its plan; the terms checkbox and the legal submit texts come from the copy.
|
|
15
|
-
*
|
|
16
|
-
* Under `stripe.lockCustomerEmail` the session's customer carries `params.email` (required), so
|
|
17
|
-
* Checkout shows it read-only.
|
|
18
|
-
*/
|
|
19
|
-
createCheckoutLink: (stripe: Stripe, params: CreateLinkParams, plugins?: readonly CheckoutPlugin[]) => Promise<string>
|
|
20
|
-
}
|