JSFiddle - React, Tailwind, and code Playground
by kkdaily
JavaScript
var x = JSON.parse("{\"resource\":\"/invoice-payment-failed\",\"path\":\"/invoice-payment-failed\",\"httpMethod\":\"POST\",\"headers\":{\"Accept\":\"*/*; q=0.5, application/xml\",\"Cache-Control\":\"no-cache\",\"CloudFront-Forwarded-Proto\":\"https\",\"CloudFront-Is-Desktop-Viewer\":\"true\",\"CloudFront-Is-Mobile-Viewer\":\"false\",\"CloudFront-Is-SmartTV-Viewer\":\"false\",\"CloudFront-Is-Tablet-Viewer\":\"false\",\"CloudFront-Viewer-Country\":\"US\",\"Content-Type\":\"application/json; charset=utf-8\",\"Host\":\"ovrhajpldl.execute-api.us-east-1.amazonaws.com\",\"Stripe-Signature\":\"t=1561125431,v1=5e9e00d93a51177f3c6ee2d8cac687004846d64cc0ef2428dac5fbde5ec01e00,v0=de580ba32f9c2cc75b7f2b972e7cae9ddd7e794d915bbf36adc29583a75af92e\",\"User-Agent\":\"Stripe/1.0 (+https://stripe.com/docs/webhooks)\",\"Via\":\"1.1 cc939d428763f6bf98a05191227da596.cloudfront.net (CloudFront)\",\"X-Amz-Cf-Id\":\"io_bz12nA4stLXAnI-5jTYTC8CsHVHWGujAhijD53VQaH1aVmkBVLg==\",\"X-Amzn-Trace-Id\":\"Root=1-5d0ce238-c5e7fb207d7af68c9d0fc9e0\",\"X-Forwarded-For\":\"54.187.205.235, 52.46.17.50\",\"X-Forwarded-Port\":\"443\",\"X-Forwarded-Proto\":\"https\"},\"multiValueHeaders\":{\"Accept\":[\"*/*; q=0.5, application/xml\"],\"Cache-Control\":[\"no-cache\"],\"CloudFront-Forwarded-Proto\":[\"https\"],\"CloudFront-Is-Desktop-Viewer\":[\"true\"],\"CloudFront-Is-Mobile-Viewer\":[\"false\"],\"CloudFront-Is-SmartTV-Viewer\":[\"false\"],\"CloudFront-Is-Tablet-Viewer\":[\"false\"],\"CloudFront-Viewer-Country\":[\"US\"],\"Content-Type\":[\"application/json; charset=utf-8\"],\"Host\":[\"ovrhajpldl.execute-api.us-east-1.amazonaws.com\"],\"Stripe-Signature\":[\"t=1561125431,v1=5e9e00d93a51177f3c6ee2d8cac687004846d64cc0ef2428dac5fbde5ec01e00,v0=de580ba32f9c2cc75b7f2b972e7cae9ddd7e794d915bbf36adc29583a75af92e\"],\"User-Agent\":[\"Stripe/1.0 (+https://stripe.com/docs/webhooks)\"],\"Via\":[\"1.1 cc939d428763f6bf98a05191227da596.cloudfront.net...