From eec69d33853f030fb38e8557d67601268b06f709 Mon Sep 17 00:00:00 2001 From: Muhammad Bilal Date: Fri, 27 Aug 2021 20:58:43 +0500 Subject: [PATCH] Word case fixed Fixed publicToken case from PublicToken. Wasted 2 hours because of that --- src/functions/bin/payment-methods.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/functions/bin/payment-methods.ts b/src/functions/bin/payment-methods.ts index e45b56b..1e95d5c 100644 --- a/src/functions/bin/payment-methods.ts +++ b/src/functions/bin/payment-methods.ts @@ -20,7 +20,7 @@ exports.handler = async function (event: APIGatewayEvent, context: Context, call const SITE_URL = process.env.URL || 'http://localhost:3000'; // Validate that the request is coming from Snipcart - const response = await fetch(`${API_URL}/api/public/custom-payment-gateway/validate?publicToken=${request.PublicToken}`) + const response = await fetch(`${API_URL}/api/public/custom-payment-gateway/validate?publicToken=${request.publicToken}`) // Return 404 if the request is not from Snipcart if (!response.ok) return { @@ -40,4 +40,4 @@ exports.handler = async function (event: APIGatewayEvent, context: Context, call statusCode: 200, body: JSON.stringify(paymentMethodList) }; -} \ No newline at end of file +}