integrations/ecommerce/stripe/dist¶
Interfaces¶
StripeCancelSubscriptionInput¶
Extends¶
Properties¶
expand?¶
Inherited from¶
id¶
Inherited from¶
options?¶
Inherited from¶
params?¶
StripeCreatePaymentIntentInput¶
Properties¶
options?¶
params¶
StripeCreateRefundInput¶
Properties¶
options?¶
params¶
StripeCredentialStatusInput¶
Properties¶
connectMode?¶
requiredScopes?¶
restrictedKeyScopes?¶
secretKeyConfigured?¶
stripeAccountConfigured?¶
webhookSigningSecretConfigured?¶
StripeEcommerceClient¶
Properties¶
rawClient¶
Methods¶
cancelSubscription()¶
Parameters¶
| Parameter | Type |
|---|---|
input |
StripeCancelSubscriptionInput |
Returns¶
Promise\<Response\<Subscription>>
closeDispute()¶
Parameters¶
| Parameter | Type |
|---|---|
input |
StripeIdInput |
Returns¶
Promise\<Response\<Dispute>>
createPaymentIntent()¶
Parameters¶
| Parameter | Type |
|---|---|
input |
StripeCreatePaymentIntentInput |
Returns¶
Promise\<Response\<PaymentIntent>>
createRefund()¶
Parameters¶
| Parameter | Type |
|---|---|
input |
StripeCreateRefundInput |
Returns¶
Promise\<Response\<Refund>>
createWebhookEndpoint()¶
Parameters¶
| Parameter | Type |
|---|---|
input |
{ options?: StripeRequestOptions; params: WebhookEndpointCreateParams; } |
input.options? |
StripeRequestOptions |
input.params |
WebhookEndpointCreateParams |
Returns¶
Promise\<Response\<WebhookEndpoint>>
deleteWebhookEndpoint()¶
Parameters¶
| Parameter | Type |
|---|---|
input |
StripeIdInput |
Returns¶
Promise\<Response\<DeletedWebhookEndpoint>>
getAccount()¶
Parameters¶
| Parameter | Type |
|---|---|
options? |
StripeRequestOptions |
Returns¶
Promise\<Account>
getCheckoutSession()¶
Parameters¶
| Parameter | Type |
|---|---|
input |
StripeIdInput |
Returns¶
Promise\<Response\<Session>>
getCustomer()¶
Parameters¶
| Parameter | Type |
|---|---|
input |
StripeIdInput |
Returns¶
Promise\<Response\<any>>
getDispute()¶
Parameters¶
| Parameter | Type |
|---|---|
input |
StripeIdInput |
Returns¶
Promise\<Response\<Dispute>>
getInvoice()¶
Parameters¶
| Parameter | Type |
|---|---|
input |
StripeIdInput |
Returns¶
Promise\<Response\<Invoice>>
getPaymentIntent()¶
Parameters¶
| Parameter | Type |
|---|---|
input |
StripeIdInput |
Returns¶
Promise\<Response\<PaymentIntent>>
getRefund()¶
Parameters¶
| Parameter | Type |
|---|---|
input |
StripeIdInput |
Returns¶
Promise\<Response\<Refund>>
getSubscription()¶
Parameters¶
| Parameter | Type |
|---|---|
input |
StripeIdInput |
Returns¶
Promise\<Response\<Subscription>>
getWebhookEndpoint()¶
Parameters¶
| Parameter | Type |
|---|---|
input |
StripeIdInput |
Returns¶
Promise\<Response\<WebhookEndpoint>>
listCheckoutSessions()¶
Parameters¶
| Parameter | Type |
|---|---|
input? |
StripeListInput |
Returns¶
Promise\<ApiList\<Session>>
listRefunds()¶
Parameters¶
| Parameter | Type |
|---|---|
input? |
StripeListInput |
Returns¶
Promise\<ApiList\<Refund>>
listWebhookEndpoints()¶
Parameters¶
| Parameter | Type |
|---|---|
input? |
StripeListInput |
Returns¶
Promise\<ApiList\<WebhookEndpoint>>
parseWebhook()¶
Parameters¶
| Parameter | Type |
|---|---|
input |
StripeWebhookParseInput |
Returns¶
Promise\<{
event: Event;
rawBody: string;
signatureHeader: string;
}>
searchCustomers()¶
Parameters¶
| Parameter | Type |
|---|---|
input |
StripeSearchCustomersInput |
Returns¶
Promise\<ApiSearchResult\<Customer>>
updateDispute()¶
Parameters¶
| Parameter | Type |
|---|---|
input |
StripeIdInput & { params: DisputeUpdateParams; } |
Returns¶
Promise\<Response\<Dispute>>
updateSubscription()¶
Parameters¶
| Parameter | Type |
|---|---|
input |
StripeUpdateSubscriptionInput |
Returns¶
Promise\<Response\<Subscription>>
updateWebhookEndpoint()¶
Parameters¶
| Parameter | Type |
|---|---|
input |
StripeIdInput & { params: WebhookEndpointUpdateParams; } |
Returns¶
Promise\<Response\<WebhookEndpoint>>
StripeEcommerceClientOptions¶
Properties¶
apiVersion?¶
maxNetworkRetries?¶
rawClient?¶
secretKey¶
stripeAccount?¶
timeoutMs?¶
StripeIdInput¶
Extended by¶
Properties¶
expand?¶
id¶
options?¶
StripeListInput¶
Indexable¶
Properties¶
ending_before?¶
expand?¶
limit?¶
options?¶
starting_after?¶
StripeRawClientInput¶
Properties¶
rawClientOnly?¶
StripeRequestOptions¶
Properties¶
idempotencyKey?¶
stripeAccount?¶
StripeSearchCustomersInput¶
Properties¶
expand?¶
limit?¶
options?¶
page?¶
query¶
StripeUpdateSubscriptionInput¶
Extends¶
Properties¶
expand?¶
Inherited from¶
id¶
Inherited from¶
options?¶
Inherited from¶
params¶
StripeWebhookParseInput¶
Properties¶
request¶
requireSignature?¶
signatureHeader?¶
signingSecret?¶
toleranceSeconds?¶
Type Aliases¶
StripeConnectMode¶
StripeWebhookEndpointManageInput¶
type StripeWebhookEndpointManageInput =
| {
action: "create";
options?: StripeRequestOptions;
params: Stripe.WebhookEndpointCreateParams;
}
| {
action: "get";
} & StripeIdInput
| {
action: "list";
} & StripeListInput
| {
action: "update";
params: Stripe.WebhookEndpointUpdateParams;
} & StripeIdInput
| {
action: "delete";
} & StripeIdInput;
Functions¶
createStripeEcommerceClient()¶
Parameters¶
| Parameter | Type |
|---|---|
options |
StripeEcommerceClientOptions |
Returns¶
createStripeEcommerceIntegration()¶
function createStripeEcommerceIntegration(options): DefinedIntegration<{
capabilities: [{
audiences: ["customer-facing", "internal-support", "mixed"];
capability: "receive";
description: "Validates and parses Stripe webhook events for SDK-user-owned commerce and payment support workflows.";
exposesSensitiveData: true;
label: "Receive Stripe events";
providerObjects: [{
kind: "stripeEvent";
label: "Stripe Event";
}];
requiresCredential: true;
}, {
audiences: ["internal-support", "mixed"];
capability: "read-provider-object";
description: "Reads customers, Checkout Sessions, PaymentIntents, subscriptions, invoices, refunds, and disputes.";
exposesSensitiveData: true;
label: "Read Stripe commerce records";
providerObjects: [{
kind: "stripeCustomer";
label: "Stripe Customer";
}, {
kind: "stripeCheckoutSession";
label: "Stripe Checkout Session";
}, {
kind: "stripePaymentIntent";
label: "Stripe PaymentIntent";
}, {
kind: "stripeSubscription";
label: "Stripe Subscription";
}, {
kind: "stripeInvoice";
label: "Stripe Invoice";
}, {
kind: "stripeRefund";
label: "Stripe Refund";
}, {
kind: "stripeDispute";
label: "Stripe Dispute";
}];
requiresCredential: true;
}, {
audiences: ["internal-support", "mixed"];
capability: "search-provider-object";
description: "Lists and searches support-relevant Stripe objects with SDK-user-supplied filters.";
exposesSensitiveData: true;
label: "Search Stripe commerce records";
providerObjects: [{
kind: "stripeCustomer";
label: "Stripe Customer";
}, {
kind: "stripeCheckoutSession";
label: "Stripe Checkout Session";
}, {
kind: "stripePaymentIntent";
label: "Stripe PaymentIntent";
}];
requiresCredential: true;
}];
category: "ecommerce";
channelAudiences: ["customer-facing", "internal-support", "mixed"];
coverage: {
evidence: [{
label: "Stripe API reference";
url: "https://docs.stripe.com/api";
}, {
label: "Stripe Node SDK";
url: "https://github.com/stripe/stripe-node";
}, {
label: "Stripe webhook signature verification";
url: "https://docs.stripe.com/webhooks/signature";
}];
notes: ["Coverage is limited to Cognidesk-normalized Stripe commerce support operations backed by the official Stripe SDK.", "The official Stripe SDK remains available as an explicit raw-client escape hatch; raw SDK coverage is not Cognidesk adapter coverage.", "Generated Stripe full-provider API clones are intentionally not part of this package."];
scope: "support-workflow-subset";
};
credentialRequirements: [{
description: "Server-side Stripe secret or restricted key selected and owned by the SDK user.";
id: "stripe-secret-key";
label: "Stripe secret key";
metadata: {
scopeKind: "provider-permission-labels";
};
required: true;
scopes: ["customers:read", "payment_intents:read", "checkout_sessions:read", "subscriptions:read", "invoices:read", "refunds:read", "disputes:read", "subscriptions:write", "webhook_endpoints:read", "webhook_endpoints:write"];
}, {
description: "Endpoint signing secret used to validate Stripe-Signature headers against the raw request body.";
id: "stripe-webhook-signing-secret";
label: "Stripe webhook signing secret";
required: true;
}, {
description: "SDK-user-selected account context for platform or connected-account routing.";
id: "stripe-connect-mode";
label: "Stripe Connect mode";
required: false;
}];
directions: ["receive-only", "send-only", "bidirectional"];
id: "ecommerce.stripe";
limitations: ["The SDK user chooses Stripe account mode, restricted-key permissions, event destinations, webhook subscriptions, checkout UI, refund policy, dispute evidence policy, consent, and retention.", "This package provides normalized support-operation foundations and raw-client access; it does not decide when to charge, refund, cancel, submit evidence, or expose payment data to an operator."];
maintainers: [{
name: "Cognidesk";
type: "official";
}];
metadata: {
defaultApiVersion: "2026-05-27.dahlia";
docs: "https://docs.stripe.com/api";
implementation: {
generatedFullProviderApiClone: false;
rawClientEscapeHatch: true;
sdkPackage: "stripe";
strategy: "official-sdk";
};
rawProviderRequest: {
acknowledgementRequired: true;
capability: "ecommerce.payments";
coverage: "escape-hatch-not-full-provider-api";
};
sdkPackage: "stripe";
};
name: "Stripe";
operations: [{
alias: "ecommerce.event.receive";
capability: "receive";
exposesSensitiveData: true;
providerObjects: [{
kind: "stripeEvent";
}];
}, {
alias: "ecommerce.order.read";
capability: "read-provider-object";
exposesSensitiveData: true;
providerObjects: [{
kind: "stripeCheckoutSession";
}];
providerOperation: "checkout.sessions.retrieve";
}, {
alias: "ecommerce.order.search";
capability: "search-provider-object";
exposesSensitiveData: true;
providerObjects: [{
kind: "stripeCheckoutSession";
}];
providerOperation: "checkout.sessions.list";
}];
packageName: "@cognidesk/integration-ecommerce-stripe";
privacyNotes: ["Stripe records can include customer contact data, billing/shipping addresses, payment state, subscription terms, invoice history, refund reasons, dispute evidence, and account metadata.", "Secret keys, Connect account routing, and webhook signing secrets stay server-side; Studio receives only readiness state and policy-visible metadata."];
provider: "stripe";
trustLevel: "official";
}, unknown, never>;
Parameters¶
| Parameter | Type |
|---|---|
options |
StripeEcommerceClientOptions |
Returns¶
DefinedIntegration\<{
capabilities: [{
audiences: ["customer-facing", "internal-support", "mixed"];
capability: "receive";
description: "Validates and parses Stripe webhook events for SDK-user-owned commerce and payment support workflows.";
exposesSensitiveData: true;
label: "Receive Stripe events";
providerObjects: [{
kind: "stripeEvent";
label: "Stripe Event";
}];
requiresCredential: true;
}, {
audiences: ["internal-support", "mixed"];
capability: "read-provider-object";
description: "Reads customers, Checkout Sessions, PaymentIntents, subscriptions, invoices, refunds, and disputes.";
exposesSensitiveData: true;
label: "Read Stripe commerce records";
providerObjects: [{
kind: "stripeCustomer";
label: "Stripe Customer";
}, {
kind: "stripeCheckoutSession";
label: "Stripe Checkout Session";
}, {
kind: "stripePaymentIntent";
label: "Stripe PaymentIntent";
}, {
kind: "stripeSubscription";
label: "Stripe Subscription";
}, {
kind: "stripeInvoice";
label: "Stripe Invoice";
}, {
kind: "stripeRefund";
label: "Stripe Refund";
}, {
kind: "stripeDispute";
label: "Stripe Dispute";
}];
requiresCredential: true;
}, {
audiences: ["internal-support", "mixed"];
capability: "search-provider-object";
description: "Lists and searches support-relevant Stripe objects with SDK-user-supplied filters.";
exposesSensitiveData: true;
label: "Search Stripe commerce records";
providerObjects: [{
kind: "stripeCustomer";
label: "Stripe Customer";
}, {
kind: "stripeCheckoutSession";
label: "Stripe Checkout Session";
}, {
kind: "stripePaymentIntent";
label: "Stripe PaymentIntent";
}];
requiresCredential: true;
}];
category: "ecommerce";
channelAudiences: ["customer-facing", "internal-support", "mixed"];
coverage: {
evidence: [{
label: "Stripe API reference";
url: "https://docs.stripe.com/api";
}, {
label: "Stripe Node SDK";
url: "https://github.com/stripe/stripe-node";
}, {
label: "Stripe webhook signature verification";
url: "https://docs.stripe.com/webhooks/signature";
}];
notes: ["Coverage is limited to Cognidesk-normalized Stripe commerce support operations backed by the official Stripe SDK.", "The official Stripe SDK remains available as an explicit raw-client escape hatch; raw SDK coverage is not Cognidesk adapter coverage.", "Generated Stripe full-provider API clones are intentionally not part of this package."];
scope: "support-workflow-subset";
};
credentialRequirements: [{
description: "Server-side Stripe secret or restricted key selected and owned by the SDK user.";
id: "stripe-secret-key";
label: "Stripe secret key";
metadata: {
scopeKind: "provider-permission-labels";
};
required: true;
scopes: ["customers:read", "payment_intents:read", "checkout_sessions:read", "subscriptions:read", "invoices:read", "refunds:read", "disputes:read", "subscriptions:write", "webhook_endpoints:read", "webhook_endpoints:write"];
}, {
description: "Endpoint signing secret used to validate Stripe-Signature headers against the raw request body.";
id: "stripe-webhook-signing-secret";
label: "Stripe webhook signing secret";
required: true;
}, {
description: "SDK-user-selected account context for platform or connected-account routing.";
id: "stripe-connect-mode";
label: "Stripe Connect mode";
required: false;
}];
directions: ["receive-only", "send-only", "bidirectional"];
id: "ecommerce.stripe";
limitations: ["The SDK user chooses Stripe account mode, restricted-key permissions, event destinations, webhook subscriptions, checkout UI, refund policy, dispute evidence policy, consent, and retention.", "This package provides normalized support-operation foundations and raw-client access; it does not decide when to charge, refund, cancel, submit evidence, or expose payment data to an operator."];
maintainers: [{
name: "Cognidesk";
type: "official";
}];
metadata: {
defaultApiVersion: "2026-05-27.dahlia";
docs: "https://docs.stripe.com/api";
implementation: {
generatedFullProviderApiClone: false;
rawClientEscapeHatch: true;
sdkPackage: "stripe";
strategy: "official-sdk";
};
rawProviderRequest: {
acknowledgementRequired: true;
capability: "ecommerce.payments";
coverage: "escape-hatch-not-full-provider-api";
};
sdkPackage: "stripe";
};
name: "Stripe";
operations: [{
alias: "ecommerce.event.receive";
capability: "receive";
exposesSensitiveData: true;
providerObjects: [{
kind: "stripeEvent";
}];
}, {
alias: "ecommerce.order.read";
capability: "read-provider-object";
exposesSensitiveData: true;
providerObjects: [{
kind: "stripeCheckoutSession";
}];
providerOperation: "checkout.sessions.retrieve";
}, {
alias: "ecommerce.order.search";
capability: "search-provider-object";
exposesSensitiveData: true;
providerObjects: [{
kind: "stripeCheckoutSession";
}];
providerOperation: "checkout.sessions.list";
}];
packageName: "@cognidesk/integration-ecommerce-stripe";
privacyNotes: ["Stripe records can include customer contact data, billing/shipping addresses, payment state, subscription terms, invoice history, refund reasons, dispute evidence, and account metadata.", "Secret keys, Connect account routing, and webhook signing secrets stay server-side; Studio receives only readiness state and policy-visible metadata."];
provider: "stripe";
trustLevel: "official";
}, unknown, never>
createStripeEcommerceIntegrationFromClient()¶
function createStripeEcommerceIntegrationFromClient(client): DefinedIntegration<{
capabilities: [{
audiences: ["customer-facing", "internal-support", "mixed"];
capability: "receive";
description: "Validates and parses Stripe webhook events for SDK-user-owned commerce and payment support workflows.";
exposesSensitiveData: true;
label: "Receive Stripe events";
providerObjects: [{
kind: "stripeEvent";
label: "Stripe Event";
}];
requiresCredential: true;
}, {
audiences: ["internal-support", "mixed"];
capability: "read-provider-object";
description: "Reads customers, Checkout Sessions, PaymentIntents, subscriptions, invoices, refunds, and disputes.";
exposesSensitiveData: true;
label: "Read Stripe commerce records";
providerObjects: [{
kind: "stripeCustomer";
label: "Stripe Customer";
}, {
kind: "stripeCheckoutSession";
label: "Stripe Checkout Session";
}, {
kind: "stripePaymentIntent";
label: "Stripe PaymentIntent";
}, {
kind: "stripeSubscription";
label: "Stripe Subscription";
}, {
kind: "stripeInvoice";
label: "Stripe Invoice";
}, {
kind: "stripeRefund";
label: "Stripe Refund";
}, {
kind: "stripeDispute";
label: "Stripe Dispute";
}];
requiresCredential: true;
}, {
audiences: ["internal-support", "mixed"];
capability: "search-provider-object";
description: "Lists and searches support-relevant Stripe objects with SDK-user-supplied filters.";
exposesSensitiveData: true;
label: "Search Stripe commerce records";
providerObjects: [{
kind: "stripeCustomer";
label: "Stripe Customer";
}, {
kind: "stripeCheckoutSession";
label: "Stripe Checkout Session";
}, {
kind: "stripePaymentIntent";
label: "Stripe PaymentIntent";
}];
requiresCredential: true;
}];
category: "ecommerce";
channelAudiences: ["customer-facing", "internal-support", "mixed"];
coverage: {
evidence: [{
label: "Stripe API reference";
url: "https://docs.stripe.com/api";
}, {
label: "Stripe Node SDK";
url: "https://github.com/stripe/stripe-node";
}, {
label: "Stripe webhook signature verification";
url: "https://docs.stripe.com/webhooks/signature";
}];
notes: ["Coverage is limited to Cognidesk-normalized Stripe commerce support operations backed by the official Stripe SDK.", "The official Stripe SDK remains available as an explicit raw-client escape hatch; raw SDK coverage is not Cognidesk adapter coverage.", "Generated Stripe full-provider API clones are intentionally not part of this package."];
scope: "support-workflow-subset";
};
credentialRequirements: [{
description: "Server-side Stripe secret or restricted key selected and owned by the SDK user.";
id: "stripe-secret-key";
label: "Stripe secret key";
metadata: {
scopeKind: "provider-permission-labels";
};
required: true;
scopes: ["customers:read", "payment_intents:read", "checkout_sessions:read", "subscriptions:read", "invoices:read", "refunds:read", "disputes:read", "subscriptions:write", "webhook_endpoints:read", "webhook_endpoints:write"];
}, {
description: "Endpoint signing secret used to validate Stripe-Signature headers against the raw request body.";
id: "stripe-webhook-signing-secret";
label: "Stripe webhook signing secret";
required: true;
}, {
description: "SDK-user-selected account context for platform or connected-account routing.";
id: "stripe-connect-mode";
label: "Stripe Connect mode";
required: false;
}];
directions: ["receive-only", "send-only", "bidirectional"];
id: "ecommerce.stripe";
limitations: ["The SDK user chooses Stripe account mode, restricted-key permissions, event destinations, webhook subscriptions, checkout UI, refund policy, dispute evidence policy, consent, and retention.", "This package provides normalized support-operation foundations and raw-client access; it does not decide when to charge, refund, cancel, submit evidence, or expose payment data to an operator."];
maintainers: [{
name: "Cognidesk";
type: "official";
}];
metadata: {
defaultApiVersion: "2026-05-27.dahlia";
docs: "https://docs.stripe.com/api";
implementation: {
generatedFullProviderApiClone: false;
rawClientEscapeHatch: true;
sdkPackage: "stripe";
strategy: "official-sdk";
};
rawProviderRequest: {
acknowledgementRequired: true;
capability: "ecommerce.payments";
coverage: "escape-hatch-not-full-provider-api";
};
sdkPackage: "stripe";
};
name: "Stripe";
operations: [{
alias: "ecommerce.event.receive";
capability: "receive";
exposesSensitiveData: true;
providerObjects: [{
kind: "stripeEvent";
}];
}, {
alias: "ecommerce.order.read";
capability: "read-provider-object";
exposesSensitiveData: true;
providerObjects: [{
kind: "stripeCheckoutSession";
}];
providerOperation: "checkout.sessions.retrieve";
}, {
alias: "ecommerce.order.search";
capability: "search-provider-object";
exposesSensitiveData: true;
providerObjects: [{
kind: "stripeCheckoutSession";
}];
providerOperation: "checkout.sessions.list";
}];
packageName: "@cognidesk/integration-ecommerce-stripe";
privacyNotes: ["Stripe records can include customer contact data, billing/shipping addresses, payment state, subscription terms, invoice history, refund reasons, dispute evidence, and account metadata.", "Secret keys, Connect account routing, and webhook signing secrets stay server-side; Studio receives only readiness state and policy-visible metadata."];
provider: "stripe";
trustLevel: "official";
}, unknown, never>;
Parameters¶
| Parameter | Type |
|---|---|
client |
StripeEcommerceClient |
Returns¶
DefinedIntegration\<{
capabilities: [{
audiences: ["customer-facing", "internal-support", "mixed"];
capability: "receive";
description: "Validates and parses Stripe webhook events for SDK-user-owned commerce and payment support workflows.";
exposesSensitiveData: true;
label: "Receive Stripe events";
providerObjects: [{
kind: "stripeEvent";
label: "Stripe Event";
}];
requiresCredential: true;
}, {
audiences: ["internal-support", "mixed"];
capability: "read-provider-object";
description: "Reads customers, Checkout Sessions, PaymentIntents, subscriptions, invoices, refunds, and disputes.";
exposesSensitiveData: true;
label: "Read Stripe commerce records";
providerObjects: [{
kind: "stripeCustomer";
label: "Stripe Customer";
}, {
kind: "stripeCheckoutSession";
label: "Stripe Checkout Session";
}, {
kind: "stripePaymentIntent";
label: "Stripe PaymentIntent";
}, {
kind: "stripeSubscription";
label: "Stripe Subscription";
}, {
kind: "stripeInvoice";
label: "Stripe Invoice";
}, {
kind: "stripeRefund";
label: "Stripe Refund";
}, {
kind: "stripeDispute";
label: "Stripe Dispute";
}];
requiresCredential: true;
}, {
audiences: ["internal-support", "mixed"];
capability: "search-provider-object";
description: "Lists and searches support-relevant Stripe objects with SDK-user-supplied filters.";
exposesSensitiveData: true;
label: "Search Stripe commerce records";
providerObjects: [{
kind: "stripeCustomer";
label: "Stripe Customer";
}, {
kind: "stripeCheckoutSession";
label: "Stripe Checkout Session";
}, {
kind: "stripePaymentIntent";
label: "Stripe PaymentIntent";
}];
requiresCredential: true;
}];
category: "ecommerce";
channelAudiences: ["customer-facing", "internal-support", "mixed"];
coverage: {
evidence: [{
label: "Stripe API reference";
url: "https://docs.stripe.com/api";
}, {
label: "Stripe Node SDK";
url: "https://github.com/stripe/stripe-node";
}, {
label: "Stripe webhook signature verification";
url: "https://docs.stripe.com/webhooks/signature";
}];
notes: ["Coverage is limited to Cognidesk-normalized Stripe commerce support operations backed by the official Stripe SDK.", "The official Stripe SDK remains available as an explicit raw-client escape hatch; raw SDK coverage is not Cognidesk adapter coverage.", "Generated Stripe full-provider API clones are intentionally not part of this package."];
scope: "support-workflow-subset";
};
credentialRequirements: [{
description: "Server-side Stripe secret or restricted key selected and owned by the SDK user.";
id: "stripe-secret-key";
label: "Stripe secret key";
metadata: {
scopeKind: "provider-permission-labels";
};
required: true;
scopes: ["customers:read", "payment_intents:read", "checkout_sessions:read", "subscriptions:read", "invoices:read", "refunds:read", "disputes:read", "subscriptions:write", "webhook_endpoints:read", "webhook_endpoints:write"];
}, {
description: "Endpoint signing secret used to validate Stripe-Signature headers against the raw request body.";
id: "stripe-webhook-signing-secret";
label: "Stripe webhook signing secret";
required: true;
}, {
description: "SDK-user-selected account context for platform or connected-account routing.";
id: "stripe-connect-mode";
label: "Stripe Connect mode";
required: false;
}];
directions: ["receive-only", "send-only", "bidirectional"];
id: "ecommerce.stripe";
limitations: ["The SDK user chooses Stripe account mode, restricted-key permissions, event destinations, webhook subscriptions, checkout UI, refund policy, dispute evidence policy, consent, and retention.", "This package provides normalized support-operation foundations and raw-client access; it does not decide when to charge, refund, cancel, submit evidence, or expose payment data to an operator."];
maintainers: [{
name: "Cognidesk";
type: "official";
}];
metadata: {
defaultApiVersion: "2026-05-27.dahlia";
docs: "https://docs.stripe.com/api";
implementation: {
generatedFullProviderApiClone: false;
rawClientEscapeHatch: true;
sdkPackage: "stripe";
strategy: "official-sdk";
};
rawProviderRequest: {
acknowledgementRequired: true;
capability: "ecommerce.payments";
coverage: "escape-hatch-not-full-provider-api";
};
sdkPackage: "stripe";
};
name: "Stripe";
operations: [{
alias: "ecommerce.event.receive";
capability: "receive";
exposesSensitiveData: true;
providerObjects: [{
kind: "stripeEvent";
}];
}, {
alias: "ecommerce.order.read";
capability: "read-provider-object";
exposesSensitiveData: true;
providerObjects: [{
kind: "stripeCheckoutSession";
}];
providerOperation: "checkout.sessions.retrieve";
}, {
alias: "ecommerce.order.search";
capability: "search-provider-object";
exposesSensitiveData: true;
providerObjects: [{
kind: "stripeCheckoutSession";
}];
providerOperation: "checkout.sessions.list";
}];
packageName: "@cognidesk/integration-ecommerce-stripe";
privacyNotes: ["Stripe records can include customer contact data, billing/shipping addresses, payment state, subscription terms, invoice history, refund reasons, dispute evidence, and account metadata.", "Secret keys, Connect account routing, and webhook signing secrets stay server-side; Studio receives only readiness state and policy-visible metadata."];
provider: "stripe";
trustLevel: "official";
}, unknown, never>
createStripeEcommerceLiveChecks()¶
function createStripeEcommerceLiveChecks(options): {
description: string;
id: string;
requiredCredentialIds: string[];
run: Promise<{
details: unknown;
}>;
}[];
Parameters¶
| Parameter | Type |
|---|---|
options |
{ client: Pick\<StripeEcommerceClient, "getAccount">; } |
options.client |
Pick\<StripeEcommerceClient, "getAccount"> |
Returns¶
{
description: string;
id: string;
requiredCredentialIds: string[];
run: Promise\<{
details: unknown;
}>;
}[]
parseStripeWebhook()¶
function parseStripeWebhook(rawClient, input): Promise<{
event: Event;
rawBody: string;
signatureHeader: string;
}>;
Parameters¶
| Parameter | Type |
|---|---|
rawClient |
Stripe |
input |
StripeWebhookParseInput |
Returns¶
Promise\<{
event: Event;
rawBody: string;
signatureHeader: string;
}>
stripeEcommerceCredentialStatuses()¶
function stripeEcommerceCredentialStatuses(input): {
expiresAt?: string;
message?: string;
providerPackageId?: string;
requirementId: string;
scopes?: string[];
state: | "required"
| "configured"
| "permission-blocked"
| "not-required"
| "missing"
| "expired"
| "insufficient-scope"
| "unavailable";
}[];
Parameters¶
| Parameter | Type |
|---|---|
input |
StripeCredentialStatusInput |
Returns¶
{
expiresAt?: string;
message?: string;
providerPackageId?: string;
requirementId: string;
scopes?: string[];
state: | "required"
| "configured"
| "permission-blocked"
| "not-required"
| "missing"
| "expired"
| "insufficient-scope"
| "unavailable";
}[]
References¶
defaultStripeApiVersion¶
Re-exports defaultStripeApiVersion
stripeEcommerceProviderManifest¶
Re-exports stripeEcommerceProviderManifest