Skip to content

feat: APP-821 stripe account set up from org dashboard#2775

Merged
blushi merged 2 commits intodevfrom
feat-APP-821-org-stripe-account
Jan 13, 2026
Merged

feat: APP-821 stripe account set up from org dashboard#2775
blushi merged 2 commits intodevfrom
feat-APP-821-org-stripe-account

Conversation

@blushi
Copy link
Copy Markdown
Member

@blushi blushi commented Dec 16, 2025

Description

https://regennetwork.atlassian.net/browse/APP-821
needs https://github.com/regen-network/regen-server/pull/558

Also FIXES: setting up authz from org, on org creation when migrating stripe connected account


Author Checklist

All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.

I have...

  • provided a link to the relevant issue or specification
  • provided instructions on how to test
  • reviewed "Files changed" and left comments if necessary
  • confirmed all CI checks have passed

How to test

IMPORTANT
You need to create a new DAO from this PR to test this since I had to add authz grant authorization for allowing an org owner/editor to grant authorization to our server account for managing credits/sell orders
Once you have set up this new org, reach out to @blushi so I can allow your organization to use stripe connect so you can see the stripe set up banner

From /dashboard/organization/sell-orders, try to set up a new stripe account.
Once this is done, make sure your org has some credits (you can send some credits from one of your account that has some to your organization dao address) and try to create a fiat sell order.

Reviewers Checklist

All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items
.

I have...

  • confirmed all author checklist items have been addressed
  • reviewed code correctness and readability
  • verified React components follow DRY principles
  • reviewed documentation is accurate
  • reviewed tests
  • manually tested (if applicable)

@netlify
Copy link
Copy Markdown

netlify bot commented Dec 16, 2025

Deploy Preview for terrasos ready!

Name Link
🔨 Latest commit 67a2b69
🔍 Latest deploy log https://app.netlify.com/projects/terrasos/deploys/69662286dfaaef0008fd3973
😎 Deploy Preview https://deploy-preview-2775--terrasos.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@blushi blushi marked this pull request as ready for review December 16, 2025 12:43
@blushi
Copy link
Copy Markdown
Member Author

blushi commented Dec 16, 2025

@erikalogie @S4mmyb see testing instructions

@erikalogie
Copy link
Copy Markdown
Collaborator

@blushi blushi force-pushed the feat-APP-821-org-stripe-account branch from 46eb72e to 4846ef7 Compare December 17, 2025 09:36
@blushi
Copy link
Copy Markdown
Member Author

blushi commented Dec 17, 2025

https://www.loom.com/share/4adca922ede14d4d880bb8865cb2407c?from_recorder=1&focus_title=1

did you create the DAO from this PR deploy preview? see my advice for testing on going PRs here:#2772 (comment)
this works for me

@S4mmyb
Copy link
Copy Markdown
Member

S4mmyb commented Dec 29, 2025

Worked for me!

@blushi
Copy link
Copy Markdown
Member Author

blushi commented Jan 7, 2026

@codex review

@blushi
Copy link
Copy Markdown
Member Author

blushi commented Jan 7, 2026

@alexander-astrand could you have a look at this PR when you can? thanks!

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4846ef70ac

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

grantee
) {
// Ungrant for current account
const ungrantMsgs = msgTypes.map(typeUrl =>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Are we sure a grant always exists here? If it doesn’t (never set up or already revoked), could this revoke fail and block the migration?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

if activeAccount?.stripeConnectedAccountId is set up then the grant has to be there, otherwise that would mean the stripe/authz set up is already broken and any credits bought with fiat from the seller would fail to transfer

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Good point, if stripeConnectedAccountId exists, the grants were created during setup. The check is sufficient.

Copy link
Copy Markdown
Contributor

@alexander-astrand alexander-astrand left a comment

Choose a reason for hiding this comment

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

Can't find anything worthy to comment on here, great job!

@blushi blushi force-pushed the feat-APP-821-org-stripe-account branch from 4846ef7 to 67a2b69 Compare January 13, 2026 10:46
@blushi blushi enabled auto-merge (squash) January 13, 2026 10:48
@blushi blushi merged commit 0fd68ae into dev Jan 13, 2026
12 of 14 checks passed
@blushi blushi deleted the feat-APP-821-org-stripe-account branch January 13, 2026 10:51
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.

4 participants