diff --git a/components/dashboard/src/components/UsageBasedBillingConfig.tsx b/components/dashboard/src/components/UsageBasedBillingConfig.tsx index c8a95a358903d8..2be921d468c13a 100644 --- a/components/dashboard/src/components/UsageBasedBillingConfig.tsx +++ b/components/dashboard/src/components/UsageBasedBillingConfig.tsx @@ -94,20 +94,6 @@ export default function UsageBasedBillingConfig({ hideSubheading = false }: Prop refreshSubscriptionDetails(attributionId); }, [attributionId, refreshSubscriptionDetails]); - const handleAddPaymentMethod = useCallback(async () => { - if (!attributionId) { - return; - } - - try { - createPaymentIntent.mutateAsync(attributionId); - setShowAddPaymentMethodModal(true); - } catch (e) { - console.error(e); - toast(e.message || "Oh no, there was a problem with our payment service."); - } - }, [attributionId, createPaymentIntent, toast]); - // Handle stripe setup-intent or payment-intent redirect flow useEffect(() => { const params = new URLSearchParams(location.search); @@ -318,13 +304,27 @@ export default function UsageBasedBillingConfig({ hideSubheading = false }: Prop