diff --git a/apps/api/src/stripe/stripe.service.ts b/apps/api/src/stripe/stripe.service.ts index 240c6089..38edcd67 100644 --- a/apps/api/src/stripe/stripe.service.ts +++ b/apps/api/src/stripe/stripe.service.ts @@ -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 @@ -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',