diff --git a/packages/dashboard-v2/src/pages/payments.js b/packages/dashboard-v2/src/pages/payments.js index c1ac7aff..518cd60c 100644 --- a/packages/dashboard-v2/src/pages/payments.js +++ b/packages/dashboard-v2/src/pages/payments.js @@ -112,6 +112,17 @@ const PlansSlider = () => { } }; + const manageSubscription = async () => { + try { + const response = await accountsService.post("stripe/billing"); + console.log(response); + debugger; + } catch (error) { + setShowPaymentError(true); + console.error(error); + } + }; + return (
@@ -162,11 +173,9 @@ const PlansSlider = () => {
{(!hasActivePlan || isHigherThanCurrent) && (isCurrentPlanPaid ? ( -
- -
+ ) : ( } {isLower && ( -
- -
+ )}
{plan.limits && (