bugfixing
This commit is contained in:
parent
748948913e
commit
5a7b68362f
@ -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"
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user