From f798035a17ccbbcffba96af2b0b8ddd3aa80661c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Leszczyk?= Date: Wed, 25 May 2022 13:58:33 +0200 Subject: [PATCH] wip --- packages/dashboard-v2/src/pages/payments.js | 27 +++++++++++++-------- 1 file changed, 17 insertions(+), 10 deletions(-) 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 && (