Shop D3: Connect-Webhook (account.updated, Checkout-Abschluss/Verwerfen, charge.refunded nachtragen)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ClaudeandClaude Opus 5.5 committed 2026-10-05 09:04:47 +00:00
1 parent 987b184aa1
commit 7464a4ef55
6 files changed
+593

No files matched your search

+5
View File
@@ -286,6 +286,11 @@ export async function startFakeStripe() {
refunds.set(obj.id, obj)
return [200, obj]
}
if (method === 'GET' && path === '/v1/refunds') {
const pi = query.get('payment_intent')
const items = [...bucket(refundMaps, account).values()].filter((r) => !pi || r.payment_intent === pi)
return [200, { object: 'list', data: items, has_more: false, url: '/v1/refunds' }]
}
if (method === 'GET' && (m = path.match(/^\/v1\/refunds\/([^/]+)$/))) {
const found = bucket(refundMaps, account).get(m[1])
return found ? [200, found] : noSuch('refund', m[1])