Skip to content

Commit

Permalink
fix financialAccount param (#194)
Browse files Browse the repository at this point in the history
  • Loading branch information
tedsch-stripe authored Nov 15, 2024
1 parent 2ad0d8f commit 24512e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/api/setup_accounts/create_financial_credit/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -14,7 +14,7 @@ export async function POST(req: NextRequest) {
{
amount: 1000,
currency: 'usd',
financial_account: financial_account,
financial_account: financialAccount,
network: 'ach',
},
{
Expand Down

0 comments on commit 24512e3

Please sign in to comment.