{
    "id": 1029,
    "date": "2025-04-06T11:53:34",
    "date_gmt": "2025-04-06T16:53:34",
    "guid": {
        "rendered": "https:\/\/mandebitcoin.com\/?page_id=1029"
    },
    "modified": "2025-04-06T12:41:03",
    "modified_gmt": "2025-04-06T17:41:03",
    "slug": "donaciones",
    "status": "publish",
    "type": "page",
    "link": "http:\/\/mandebitcoin.com\/en\/donaciones\/",
    "title": {
        "rendered": "Donaciones"
    },
    "content": {
        "rendered": "<div id=\"donation-form\" style=\"max-width: 400px; margin: auto; padding: 20px;\">\n  <h3>Apoya el proyecto<\/h3>\n  \n  <label>Nombre (opcional)<\/label>\n  <input type=\"text\" id=\"username\" placeholder=\"Tu nombre\" style=\"width: 100%; margin-bottom: 10px;\" \/>\n\n  <label>Mensaje (opcional)<\/label>\n  <textarea id=\"message\" placeholder=\"Un mensaje para Man de Bitcoin\" style=\"width: 100%; margin-bottom: 20px;\"><\/textarea>\n\n  <div>\n    <button onclick=\"createInvoice(100)\">\ud83d\udd14 Donar 100 sats (Campanita)<\/button><br\/><br\/>\n    <button onclick=\"createInvoice(500)\">\ud83e\udde8 Donar 500 sats (Explosi\u00f3n)<\/button><br\/><br\/>\n    <button onclick=\"createInvoice(1000)\">\ud83e\udde0 Donar 1000 sats (Modo Maximalista)<\/button><br\/><br\/>\n    <button onclick=\"createInvoice(2100)\">\ud83c\udfa4 Donar 2100 sats (Sats incoming!)<\/button>\n  <\/div>\n\n  <div id=\"invoice-result\" style=\"margin-top: 20px; display: none;\">\n    <h4>Factura generada<\/h4>\n    <img decoding=\"async\" id=\"qr\" src=\"\" alt=\"QR\" style=\"width: 200px;\" \/>\n    <p><strong>Lightning Invoice:<\/strong><\/p>\n    <textarea id=\"invoice\" style=\"width: 100%; height: 80px;\"><\/textarea>\n    <button onclick=\"copyInvoice()\">\ud83d\udccb Copiar factura<\/button>\n  <\/div>\n<\/div>\n\n<script>\n  window.createInvoice = async function(amount) {\n    console.log(\"Bot\u00f3n presionado: \" + amount + \" sats\");\n\n    const storeId = \"BX3ffQEeaDKxCC7v3CkX3JCjTxs9v8uVsRGcfiFTYaPv\";\n    const btcpayUrl = \"https:\/\/mandebitcoin.com\/wp-content\/themes\/flatsome-child\/btcpay-proxy.php\";\n\n    const data = {\n      amount: (amount \/ 100000000).toString(), \/\/ convertir sats a BTC\n      currency: \"BTC\",\n      checkout: {\n        speedPolicy: \"HighSpeed\",\n        paymentMethods: [\"BTC-LightningNetwork\"],\n        redirectURL: window.location.href\n      },\n      metadata: {\n        customerName: document.getElementById(\"username\").value,\n        customerMessage: document.getElementById(\"message\").value,\n        event: amount + \" sats\"\n      }\n    };\n\n    try {\n      const response = await fetch(btcpayUrl, {\n        method: \"POST\",\n        headers: {\n          \"Content-Type\": \"application\/json\"\n        },\n        body: JSON.stringify(data)\n      });\n\n      const invoice = await response.json();\n\n      if (!invoice || !invoice.paymentRequests) {\n        alert(\"Error al generar la factura\");\n        console.error(\"Respuesta inv\u00e1lida:\", invoice);\n        return;\n      }\n\n      const bolt11 = invoice.paymentRequests[0].BOLT11;\n\n      document.getElementById(\"qr\").src = `https:\/\/api.qrserver.com\/v1\/create-qr-code\/?size=200x200&data=${encodeURIComponent(bolt11)}`;\n      document.getElementById(\"invoice\").value = bolt11;\n      document.getElementById(\"invoice-result\").style.display = \"block\";\n    } catch (error) {\n      console.error(\"Error al crear la factura:\", error);\n      alert(\"Hubo un problema al generar la factura.\");\n    }\n  };\n\n  window.copyInvoice = function() {\n    const invoiceField = document.getElementById(\"invoice\");\n    invoiceField.select();\n    document.execCommand(\"copy\");\n    alert(\"\u00a1Factura copiada!\");\n  };\n<\/script>",
        "protected": false
    },
    "excerpt": {
        "rendered": "",
        "protected": false
    },
    "author": 1,
    "featured_media": 0,
    "parent": 0,
    "menu_order": 0,
    "comment_status": "closed",
    "ping_status": "closed",
    "template": "page-blank-landingpage.php",
    "meta": {
        "footnotes": ""
    },
    "class_list": [
        "post-1029",
        "page",
        "type-page",
        "status-publish",
        "hentry"
    ],
    "yoast_head": "<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Donaciones - Man De Bitcoin<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/mandebitcoin.com\/en\/donaciones\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Donaciones - Man De Bitcoin\" \/>\n<meta property=\"og:url\" content=\"https:\/\/mandebitcoin.com\/en\/donaciones\/\" \/>\n<meta property=\"og:site_name\" content=\"Man De Bitcoin\" \/>\n<meta property=\"article:modified_time\" content=\"2025-04-06T17:41:03+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@ManDeBitcoin\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/mandebitcoin.com\\\/donaciones\\\/\",\"url\":\"https:\\\/\\\/mandebitcoin.com\\\/donaciones\\\/\",\"name\":\"Donaciones - Man De Bitcoin\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/mandebitcoin.com\\\/#website\"},\"datePublished\":\"2025-04-06T16:53:34+00:00\",\"dateModified\":\"2025-04-06T17:41:03+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/mandebitcoin.com\\\/donaciones\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/mandebitcoin.com\\\/donaciones\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/mandebitcoin.com\\\/donaciones\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Portada\",\"item\":\"https:\\\/\\\/mandebitcoin.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Donaciones\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/mandebitcoin.com\\\/#website\",\"url\":\"https:\\\/\\\/mandebitcoin.com\\\/\",\"name\":\"Man De Bitcoin\",\"description\":\"Forjando un futuro seguro y transparente\",\"publisher\":{\"@id\":\"https:\\\/\\\/mandebitcoin.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/mandebitcoin.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/mandebitcoin.com\\\/#organization\",\"name\":\"Man De Bitcoin\",\"url\":\"https:\\\/\\\/mandebitcoin.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/mandebitcoin.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/mandebitcoin.com\\\/wp-content\\\/uploads\\\/2024\\\/07\\\/man-de-bitcoin-logo.png\",\"contentUrl\":\"https:\\\/\\\/mandebitcoin.com\\\/wp-content\\\/uploads\\\/2024\\\/07\\\/man-de-bitcoin-logo.png\",\"width\":729,\"height\":729,\"caption\":\"Man De Bitcoin\"},\"image\":{\"@id\":\"https:\\\/\\\/mandebitcoin.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/x.com\\\/ManDeBitcoin\",\"https:\\\/\\\/www.youtube.com\\\/@ManDeBitcoin\",\"https:\\\/\\\/www.instagram.com\\\/mandebitcoin\",\"https:\\\/\\\/www.tiktok.com\\\/@mandebitcoin\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->",
    "yoast_head_json": {
        "title": "Donaciones - Man De Bitcoin",
        "robots": {
            "index": "index",
            "follow": "follow",
            "max-snippet": "max-snippet:-1",
            "max-image-preview": "max-image-preview:large",
            "max-video-preview": "max-video-preview:-1"
        },
        "canonical": "https:\/\/mandebitcoin.com\/en\/donaciones\/",
        "og_locale": "en_US",
        "og_type": "article",
        "og_title": "Donaciones - Man De Bitcoin",
        "og_url": "https:\/\/mandebitcoin.com\/en\/donaciones\/",
        "og_site_name": "Man De Bitcoin",
        "article_modified_time": "2025-04-06T17:41:03+00:00",
        "twitter_card": "summary_large_image",
        "twitter_site": "@ManDeBitcoin",
        "twitter_misc": {
            "Est. reading time": "1 minute"
        },
        "schema": {
            "@context": "https:\/\/schema.org",
            "@graph": [
                {
                    "@type": "WebPage",
                    "@id": "https:\/\/mandebitcoin.com\/donaciones\/",
                    "url": "https:\/\/mandebitcoin.com\/donaciones\/",
                    "name": "Donaciones - Man De Bitcoin",
                    "isPartOf": {
                        "@id": "https:\/\/mandebitcoin.com\/#website"
                    },
                    "datePublished": "2025-04-06T16:53:34+00:00",
                    "dateModified": "2025-04-06T17:41:03+00:00",
                    "breadcrumb": {
                        "@id": "https:\/\/mandebitcoin.com\/donaciones\/#breadcrumb"
                    },
                    "inLanguage": "en-US",
                    "potentialAction": [
                        {
                            "@type": "ReadAction",
                            "target": [
                                "https:\/\/mandebitcoin.com\/donaciones\/"
                            ]
                        }
                    ]
                },
                {
                    "@type": "BreadcrumbList",
                    "@id": "https:\/\/mandebitcoin.com\/donaciones\/#breadcrumb",
                    "itemListElement": [
                        {
                            "@type": "ListItem",
                            "position": 1,
                            "name": "Portada",
                            "item": "https:\/\/mandebitcoin.com\/"
                        },
                        {
                            "@type": "ListItem",
                            "position": 2,
                            "name": "Donaciones"
                        }
                    ]
                },
                {
                    "@type": "WebSite",
                    "@id": "https:\/\/mandebitcoin.com\/#website",
                    "url": "https:\/\/mandebitcoin.com\/",
                    "name": "Man De Bitcoin",
                    "description": "Forjando un futuro seguro y transparente",
                    "publisher": {
                        "@id": "https:\/\/mandebitcoin.com\/#organization"
                    },
                    "potentialAction": [
                        {
                            "@type": "SearchAction",
                            "target": {
                                "@type": "EntryPoint",
                                "urlTemplate": "https:\/\/mandebitcoin.com\/?s={search_term_string}"
                            },
                            "query-input": {
                                "@type": "PropertyValueSpecification",
                                "valueRequired": true,
                                "valueName": "search_term_string"
                            }
                        }
                    ],
                    "inLanguage": "en-US"
                },
                {
                    "@type": "Organization",
                    "@id": "https:\/\/mandebitcoin.com\/#organization",
                    "name": "Man De Bitcoin",
                    "url": "https:\/\/mandebitcoin.com\/",
                    "logo": {
                        "@type": "ImageObject",
                        "inLanguage": "en-US",
                        "@id": "https:\/\/mandebitcoin.com\/#\/schema\/logo\/image\/",
                        "url": "https:\/\/mandebitcoin.com\/wp-content\/uploads\/2024\/07\/man-de-bitcoin-logo.png",
                        "contentUrl": "https:\/\/mandebitcoin.com\/wp-content\/uploads\/2024\/07\/man-de-bitcoin-logo.png",
                        "width": 729,
                        "height": 729,
                        "caption": "Man De Bitcoin"
                    },
                    "image": {
                        "@id": "https:\/\/mandebitcoin.com\/#\/schema\/logo\/image\/"
                    },
                    "sameAs": [
                        "https:\/\/x.com\/ManDeBitcoin",
                        "https:\/\/www.youtube.com\/@ManDeBitcoin",
                        "https:\/\/www.instagram.com\/mandebitcoin",
                        "https:\/\/www.tiktok.com\/@mandebitcoin"
                    ]
                }
            ]
        }
    },
    "_links": {
        "self": [
            {
                "href": "https:\/\/mandebitcoin.com\/en\/wp-json\/wp\/v2\/pages\/1029",
                "targetHints": {
                    "allow": [
                        "GET"
                    ]
                }
            }
        ],
        "collection": [
            {
                "href": "https:\/\/mandebitcoin.com\/en\/wp-json\/wp\/v2\/pages"
            }
        ],
        "about": [
            {
                "href": "https:\/\/mandebitcoin.com\/en\/wp-json\/wp\/v2\/types\/page"
            }
        ],
        "author": [
            {
                "embeddable": true,
                "href": "https:\/\/mandebitcoin.com\/en\/wp-json\/wp\/v2\/users\/1"
            }
        ],
        "replies": [
            {
                "embeddable": true,
                "href": "https:\/\/mandebitcoin.com\/en\/wp-json\/wp\/v2\/comments?post=1029"
            }
        ],
        "version-history": [
            {
                "count": 5,
                "href": "https:\/\/mandebitcoin.com\/en\/wp-json\/wp\/v2\/pages\/1029\/revisions"
            }
        ],
        "predecessor-version": [
            {
                "id": 1035,
                "href": "https:\/\/mandebitcoin.com\/en\/wp-json\/wp\/v2\/pages\/1029\/revisions\/1035"
            }
        ],
        "wp:attachment": [
            {
                "href": "https:\/\/mandebitcoin.com\/en\/wp-json\/wp\/v2\/media?parent=1029"
            }
        ],
        "curies": [
            {
                "name": "wp",
                "href": "https:\/\/api.w.org\/{rel}",
                "templated": true
            }
        ]
    }
}