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:
1 parent
987b184aa1
commit
7464a4ef55
6 files changed
+593
No files matched your search
@@ -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])
|
||||
|
||||
Reference in new issue
Block a user