Skip to content

feat: add stripe connect settlement options#473

Merged
brendanjryan merged 2 commits into
mainfrom
brendanjryan/stripe-connect-settlement
May 21, 2026
Merged

feat: add stripe connect settlement options#473
brendanjryan merged 2 commits into
mainfrom
brendanjryan/stripe-connect-settlement

Conversation

@brendanjryan
Copy link
Copy Markdown
Collaborator

Summary

Added server-side Stripe Connect settlement options for Stripe charge PaymentIntent creation.

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented May 21, 2026

Open in StackBlitz

npm i https://pkg.pr.new/mppx@473

commit: bbb229e

@brendanjryan brendanjryan marked this pull request as ready for review May 21, 2026 17:46
Copy link
Copy Markdown

@logananderson-stripe logananderson-stripe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Left a couple of comments but nothing blocking

> & { decimals: number }

type ConnectSettlement = {
/** Connected account used as the Stripe account context for the request. */
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be possible to add the stripe docs link here?

Comment thread src/stripe/server/Charge.test.ts Outdated
return {
applicationFeeAmount: 12,
onBehalfOf: 'acct_merchant',
stripeAccount: 'acct_platform',
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: stripeAccount is normally the connected account not the platform

return settlement
}

function validateAccountId(value: string | undefined, name: string) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Its awesome to have these basic validations but I am assuming we return an error if the payment intent fails to create? For example, if the platform doesn't have access to the merchant or something like that.

@brendanjryan brendanjryan merged commit 1ee47a2 into main May 21, 2026
11 checks passed
@brendanjryan brendanjryan deleted the brendanjryan/stripe-connect-settlement branch May 21, 2026 22:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants