"https://esm.sh/mercadopago@1.5.15" Is not workin on deploy

"https://esm.sh/mercadopago@1.5.15" Is not workin on deno deploy, any clues? it works on local but on prod it hans wen using
4 Replies
fro.profesional
fro.profesionalOP2y ago
GitHub
[Bug]: I had a project that is not working out of nowhere · Issue ...
Problem description Playground project timing out Steps to reproduce Go to playgrand Try consume https://dan-hono.deno.dev/mercadopago Expected behavior Shoul return response, its and skd for http ...
fro.profesional
fro.profesionalOP2y ago
It worked manally, probalby not deno problem
const headers = new Headers()
headers.append("Authorization", `Bearer ${token}`)
headers.append("Content-Type", "application/json")

const preferenceFetch = await fetch("https://api.mercadopago.com/checkout/preferences", {
method: "POST",
headers,
body: JSON.stringify(preference)
})
const headers = new Headers()
headers.append("Authorization", `Bearer ${token}`)
headers.append("Content-Type", "application/json")

const preferenceFetch = await fetch("https://api.mercadopago.com/checkout/preferences", {
method: "POST",
headers,
body: JSON.stringify(preference)
})
Ghabbw
Ghabbw15mo ago
Hi! are you latinoamerican? I'm from Argentina, and I'm trying to use mercadopago in my Deno Fresh project... but it is so hard, all tutorials are for Nodejs ... I tried using IA assitance but I'm stuck, help this rookie
fro.profesional
fro.profesionalOP15mo ago
Yes, it did work but I switched to STRIPE You can always use the HTTP API or now that Deno deploy supports npm specifiers. Example npm:mercadopago What issues are you having?