feat(payments): persist helcimCustomerCode + skip getOrCreateCustomer on card-on-file
This commit is contained in:
parent
0a41b30db7
commit
ac5e979c78
10 changed files with 330 additions and 33 deletions
|
|
@ -62,6 +62,7 @@ export default defineEventHandler(async (event) => {
|
|||
circle: body.circle,
|
||||
contributionAmount: body.contributionAmount,
|
||||
helcimCustomerId: customerData.id,
|
||||
helcimCustomerCode: customerData.customerCode,
|
||||
status: 'pending_payment',
|
||||
'agreement.acceptedAt': new Date()
|
||||
}
|
||||
|
|
@ -75,6 +76,7 @@ export default defineEventHandler(async (event) => {
|
|||
circle: body.circle,
|
||||
contributionAmount: body.contributionAmount,
|
||||
helcimCustomerId: customerData.id,
|
||||
helcimCustomerCode: customerData.customerCode,
|
||||
status: 'pending_payment',
|
||||
agreement: { acceptedAt: new Date() }
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue