diff --git a/src/routes/payment/+server.ts b/src/routes/payment/+server.ts index f83dd9aa..fe4cf2ec 100644 --- a/src/routes/payment/+server.ts +++ b/src/routes/payment/+server.ts @@ -23,7 +23,7 @@ export const POST = async ({ request, locals }) => { return new Response(JSON.stringify({ error: 'Invalid signature' }), { status: 403, headers: { - "Content-Type": "application/json","X-API-KEY": apiKey + "Content-Type": "application/json" } }); } @@ -72,7 +72,7 @@ export const POST = async ({ request, locals }) => { return new Response(JSON.stringify({ message: 'Payment data received successfully' }), { status: 200, headers: { - "Content-Type": "application/json","X-API-KEY": apiKey + "Content-Type": "application/json" } }); } catch (error) { @@ -80,7 +80,7 @@ export const POST = async ({ request, locals }) => { return new Response(JSON.stringify({ error: 'Internal server error' }), { status: 500, headers: { - "Content-Type": "application/json","X-API-KEY": apiKey + "Content-Type": "application/json" } }); }