feat(payments): persist helcimCustomerCode + skip getOrCreateCustomer on card-on-file

This commit is contained in:
Jennie Robinson Faber 2026-04-27 11:54:54 +01:00
parent 0a41b30db7
commit ac5e979c78
10 changed files with 330 additions and 33 deletions

View file

@ -61,6 +61,7 @@ export default defineEventHandler(async (event) => {
bio: body.motivation || undefined,
status: body.contributionAmount === 0 ? 'active' : 'pending_payment',
helcimCustomerId: helcimCustomer?.id,
helcimCustomerCode: helcimCustomer?.customerCode,
agreement: { acceptedAt: new Date() },
})