JSFiddle - React, Tailwind, and code Playground

by kkdaily

JavaScript

const blah = `------WebKitFormBoundaryysZQHpHLPysNAAkC
Content-Disposition: form-data; name="details"

{
    "create_time": "2020-01-18T14:18:02Z",
    "update_time": "2020-01-18T14:18:20Z",
    "id": "1366760427677160R",
    "intent": "CAPTURE",
    "status": "COMPLETED",
    "payer": {
        "email_address": "[email protected]",
        "payer_id": "8UQBFMF7PJHLQ",
        "address": {
            "country_code": "US"
        },
        "name": {
            "given_name": "John",
            "surname": "Doe"
        }
    },
    "purchase_units": [
        {
            "reference_id": "default",
            "amount": {
                "value": "1.20",
                "currency_code": "USD"
            },
            "payee": {
                "email_address": "[email protected]",
                "merchant_id": "A586TM3HVU6N4"
            },
            "shipping": {
                "name": {
                    "full_name": "John Doe"
                },
                "address": {
                    "address_line_1": "1 Main St",
                    "admin_area_2": "San Jose",
                    "admin_area_1": "CA",
                    "postal_code": "95131",
                    "country_code": "US"
                }
            },
            "payments": {
                "captures": [
                    {
                        "status": "COMPLETED",
                        "id": "9634381599854883V",
                        "final_capture": true,
                        "create_time": "2020-01-18T14:18:20Z",
                        "update_time": "2020-01-18T14:18:20Z",
                        "amount": {
                            "value": "1.20",
                            "currency_code": "USD"
                        },
                        "seller_protection": {
                            "status": "ELIGIBLE",
                            "dispute_categories": [
                                "ITEM_NOT_RECEIVED",
       ...