diff options
| author | Joe Carstairs <65492573+Sycamost@users.noreply.github.com> | 2023-08-07 20:56:20 +0100 |
|---|---|---|
| committer | Joe Carstairs <65492573+Sycamost@users.noreply.github.com> | 2023-08-07 20:56:20 +0100 |
| commit | 1681f5e3b888c752bace4918914f69fbed7ad181 (patch) | |
| tree | 4b9f64bb687be6140a80a54e615cee7ed2af0510 /api-src/createPaypalOrder.ts | |
| parent | 48f6b38c333fdaf57fe418c6e6a5fc4bfb928921 (diff) | |
Adds logs to createPaypalOrder
Diffstat (limited to 'api-src/createPaypalOrder.ts')
| -rw-r--r-- | api-src/createPaypalOrder.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/api-src/createPaypalOrder.ts b/api-src/createPaypalOrder.ts index c0053d4..5d30e1f 100644 --- a/api-src/createPaypalOrder.ts +++ b/api-src/createPaypalOrder.ts @@ -4,8 +4,13 @@ import { paypalCreateOrder } from './_paypal'; export default async function handler(request: VercelRequest, response: VercelResponse) { const { productDescription, shortDescription, totalPrice }: Partial<Order> = request.body; + console.info('api/createPaypalOrder: Received body: '); + console.info('productDescription: ' + productDescription); + console.info('shortDescription: ' + shortDescription); + console.info('totalPrice: ' + totalPrice); if (request.method !== 'POST') { + console.warn('Method was not POST. Method was ' + request.method); response.status(404); return; } |
