Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions apps/api/src/stripe/stripe.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,6 @@ export class StripeService {
},
{ idempotencyKey: `${idempotencyKey}--subscription` },
)
//include metadata in payment-intent
// In API version 2025-03-31+, invoices have a 'payments' array instead of direct payment_intent field
const invoice = subscription.latest_invoice as InvoiceWithPayments

Expand Down Expand Up @@ -475,10 +474,6 @@ export class StripeService {
throw new BadRequestException('Payment Intent is missing from stripe')
}

if (!intent.metadata.campaignId) {
throw new BadRequestException('Campaign id is missing from payment intent metadata')
}

return await this.api.createRefund({
payment_intent: paymentIntentId,
reason: 'requested_by_customer',
Expand Down
Loading