Quantcast
Channel: Preguntas activas con las etiquetas mercadopago - Stack Overflow en español
Viewing all articles
Browse latest Browse all 213

No puedo lograr conexión con mercado pago api

$
0
0

Lo estoy trabajando en un servidor local pero me sigue tirando los mismos errores.

Warning: require(../modelos/rutas.php): Failed to open stream: No such file or directory in C:\xampp2\htdocs\tantocomolocreas\tantocomolocreas\modo-produccion\frontend\extensiones\vendor\mercado_pago.php on line 3

Fatal error: Uncaught Error: Failed opening required '../modelos/rutas.php' (include_path='C:\xampp2\php\PEAR') in C:\xampp2\htdocs\tantocomolocreas\tantocomolocreas\modo-produccion\frontend\extensiones\vendor\mercado_pago.php:3 Stack trace: #0 {main} thrown in C:\xampp2\htdocs\tantocomolocreas\tantocomolocreas\modo-produccion\frontend\extensiones\vendor\mercado_pago.php on line 3

<?phprequire_once "../modelos/rutas.php";require_once "../modelos/carrito.modelo.php";require 'vendor/autoload.php';MercadoPago\SDK::setAccessToken('#');$preference = new MercadoPago\Preference();$item = new MercadoPago\Item();$item-> id = '0001';$item-> title = 'Producto';$item-> quantity = 1;$item-> unite_price = 1000.00;$item-> currency_id = "ARS" ;$preference->items = array ($item);$preference->back_urls = array("success" => "https://localhost/tantocomolocreas/captura.php","fail" => "https://localhost/tantocomolocreas/fallo.php");$preferene->auto_return = "approved";$preferene->binary_mode = true;$preference->save(); ?>

Viewing all articles
Browse latest Browse all 213

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>