We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ce887b commit 8027287Copy full SHA for 8027287
apps/api/src/donations/helpers/payment-intent-helpers.ts
@@ -96,7 +96,7 @@ export function getInvoiceData(invoice: Stripe.Invoice): PaymentData {
96
personId = line.metadata.personId
97
}
98
if (line.metadata.type) {
99
- type = line.metadata.type ?? DonationType.donation
+ type = line.metadata.type
100
101
})
102
@@ -118,7 +118,7 @@ export function getInvoiceData(invoice: Stripe.Invoice): PaymentData {
118
paymentMethodId: invoice.collection_method,
119
stripeCustomerId: invoice.customer as string,
120
personId,
121
- type,
+ type: type || DonationType.donation,
122
123
124
0 commit comments