Private
Tracker *Bug Feature Support Testing
Subject *
Description Edit try { const refundParams = { amount: Math.round(refundAmount * 100), reason: "requested_by_customer", metadata: { subscriptionContractId: subscriptionContract._id.toString(), dbName, source: "cancellation_settlement_refund", }, }; if (paymentIntentId) { refundParams.payment_intent = paymentIntentId; } else if (chargeId) { refundParams.charge = chargeId; } const stripeRefundObj = await stripe.refunds.create(refundParams); stripeRefundId = stripeRefundObj.id; refundReference = stripeRefundObj.id; refundMethod = "credit_card"; console.log(`✅ [REFUND] Stripe refund ${stripeRefundId} created for contract ${subscriptionContract._id}`); } catch (stripeErr) { console.error("❌ [REFUND] Stripe refund failed:", stripeErr); throw new CustomError(`Stripe Refund Failed: ${stripeErr.message}`, 400); } Using this api to integrate any flow make sure all parameters will be common to use any other flow Same method will call e-commerce cancellation process , e-commerce return process, sale return to original payment process also
Status Resolved
Priority *Low Normal High Immediate
Assignee Ajit ABindu DandaChandra SekharDivya InapakurthiKarthik PalakondaPavan Kumar MuralaRavi Shankar PalleRavindra AtthotaSai MahanandaSai Priyatham SadineniSowjanya atthotaSravani RangannapalemTeja Sriram SanganiYalavarthi Thriveni
Target version Sprint (10/05/2026- 10/09/2026) sprint (10/12/2026 - 10/31/2026) Backlog
Parent task
Start date
Due date
Estimated time Hours
% Done0 % 10 % 20 % 30 % 40 % 50 % 60 % 70 % 80 % 90 % 100 %