From 24512e393e9bc8fb194f68d59b52719200221e98 Mon Sep 17 00:00:00 2001 From: tedsch-stripe <96477726+tedsch-stripe@users.noreply.github.com> Date: Fri, 15 Nov 2024 03:32:06 -0800 Subject: [PATCH] fix financialAccount param (#194) --- app/api/setup_accounts/create_financial_credit/route.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/api/setup_accounts/create_financial_credit/route.ts b/app/api/setup_accounts/create_financial_credit/route.ts index b83a69e2..d2002d3a 100644 --- a/app/api/setup_accounts/create_financial_credit/route.ts +++ b/app/api/setup_accounts/create_financial_credit/route.ts @@ -5,7 +5,7 @@ import {NextRequest} from 'next/server'; export async function POST(req: NextRequest) { const json = await req.json(); - const {financial_account} = json; + const {financialAccount} = json; try { const session = await getServerSession(authOptions); const accountId = session?.user.stripeAccount.id; @@ -14,7 +14,7 @@ export async function POST(req: NextRequest) { { amount: 1000, currency: 'usd', - financial_account: financial_account, + financial_account: financialAccount, network: 'ach', }, {