my whole project working fine but when admin try to send money to freelancer it get failed
this is the issue i am getting in console error
Console Error
## Error Message
PayPal error: {}
at handlePayPalPayout (src/app/dashboard/admin/page.tsx:155:17)
## Code Frame
153 | if (!res.ok) {
154 | alert("❌ PayPal transfer failed. Check logs.");
> 155 | console.error("PayPal error:", data);
| ^
156 | setLoading(false);
157 | return;
158 | }
Next.js version: 15.5.2 (Turbopack)
and this is the format i follow in .env.local file
CLIENT_ID=
CLIENT_SECRET=
PAYPAL_API_BASE=https://api-m.sandbox.paypal.com
PAYPAL_ENV=sandbox