Repository navigation
feat(bounties): fund bounties through CoinPay checkout sessions (stack 0.5.0) - #95
Conversation
…k 0.5.0) Bounty funding now creates a hosted checkout session (any wallet coin or PayPal) with the payer email, the DID as account_id and property c0upons.com. Email comes from the CoinPay login profile, else the form. The webhook uses verifyAndReadCoinPayWebhook and its paid flag. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
Warning Review the following alerts detected in dependencies. According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
|
| await db.sql`UPDATE bounties SET payment_id = ${paymentId} WHERE public_id = ${publicId}`; | ||
| sessionId = checkout.sessionId; | ||
| payUrl = checkout.checkoutUrl; | ||
| await db.sql`UPDATE bounties SET payment_id = ${sessionId} WHERE public_id = ${publicId}`; |
ThreatCrush Security Scan38 finding(s) MEDIUM: 32 | LOW: 6
Snippets are redacted; ThreatCrush never prints matched credential material. |
Bounty funding uses CoinPay hosted checkout sessions via @profullstack/stack 0.5.0: buyer picks any coin c0upons has a wallet for, or PayPal. Sends customer_email (CoinPay login profile email, else a new form field), account_id (the DID), property c0upons.com. payment_id holds the cs_ id until the webhook stores the paid payment id; the bounty page links /checkout/<cs_id>. Webhook moves to verifyAndReadCoinPayWebhook (paid = confirmed/forwarded, PayPal included). bun test 80 pass, tsc and next build clean.
🤖 Generated with Claude Code