
2025·Em produção
Rage Store
Motor Automatizado de E-commerce e Provisionamento
Problema
Solução
Stack
Node.jsDiscord.jsAPI do Mercado PagoSQLite
Highlights
Arquitetura
Snippet
bot/checkout.jsjavascript
async function handleCheckout(interaction, productId) {
const product = await db.getProduct(productId);
const payment = await mercadopago.preferences.create({
items: [{ title: product.name, unit_price: product.price, quantity: 1 }],
external_reference: interaction.user.id,
});
await interaction.reply({ content: payment.init_point, ephemeral: true });
}Próximo