 
 
		
				
			NORTHMULTIMEDIA
Gamma
Verificación en dos pasos activada
Verificado por Whatsapp
Verificado por Binance
		El Código va dentro de fuctions.php
function bloqueo_contenido_shortcode() {    ob_start();    ?>    <div id="bloqueo-contenido" style="position: fixed; width: 100%; height: 100%; top: 0; left: 0; background: rgba(0, 0, 0, 0.8); color: #fff; text-align: center; z-index: 9999;">        <div style="position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);">            <h2>Contenido bloqueado</h2>            <p>Para acceder a este contenido, por favor realice el pago.</p>            <div id="pago-paypal"></div>        </div>    </div>    <script src="https://www.paypal.com/sdk/js?client-id=AdT_7wjYlpsFVC0vVeam4ohDO4vPlz5lfhNgBVp_itWj_j7VXXXg337D2cCcIQEsNaXWsRHKKXzUnXXX"></script>    <script>        document.addEventListener('DOMContentLoaded', function() {            paypal.Buttons({                createOrder: function(data, actions) {                    return actions.order.create({                        purchase_units: [{                            amount: {                                value: '0.01' // Cambia esto por el monto deseado                            }                        }]                    });                },                onApprove: function(data, actions) {                    return actions.order.capture().then(function(details) {                        fetch('/verificar-pago.php', {                            method: 'POST',                            headers: { 'Content-Type': 'application/json' },                            body: JSON.stringify({ orderID: data.orderID })                        }).then(function(response) {                            return response.json();                        }).then(function(data) {                            if (data.status === 'success') {                                document.getElementById('bloqueo-contenido').style.display = 'none';                            } else {                                alert('El pago no fue exitoso. Detalles: ' + JSON.stringify(data));                            }                        });                    });                }            }).render('#pago-paypal');        });    </script>    <?php    return ob_get_clean();}add_shortcode('bloqueo_contenido', 'bloqueo_contenido_shortcode');Al momento de hacer el pago, el pago si se efectúa y cae a la cuenta pero no desbloquea el contenido y muestra el siguiente error en verificar-pago.php
{    "status": "failure",    "error": "HTTP Status 401",    "response": "{\"error\":\"invalid_client\",\"error_description\":\"Client Authentication failed\"}"}Saludos Betas y los leo en los comentarios.
 
  
 
		 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		 
 