![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
flowcl-node-api-client
Advanced tools
Cliente Node (No oficial) para consumir el API de Flow.
Flow.cl es una pasarela de pagos para comercio electrónico. Este cliente le permite integrar su ecommerce para recibir pagos online.
Instale la última versión en su proyecto desde npm
npm install flowcl-node-api-client --save
La documentación completa del API REST de Flow la encuentrá aquí: https://www.flow.cl/docs/api.html
Configure correctamente el cliente en el archivo lib/config.json. Lo primero que debe configurar es su apiKey y secretKey del comercio registrado en Flow. Esto lo obtiene en la sección Mis datos acceda a https://www.flow.cl, una vez autenticado con su cuenta Flow, seleccione Mis datos y recupere su apiKey y secretKey desde la sección Seguridad.
{
"apiKey": "1F90971E-8276-4713-97FF-2BLF5091EE3B",
"secretKey": "f8b45f9b8bcdb5702dc86a1b894492303741c405",
"apiURL": "https://www.flow.cl/api",
"baseURL": "https://www.misitio/apiFlow"
}
En este ejemplo crearemos una Orden de Cobro y redireccionaremos el browser del pagador para efectuar el pago
/**
* Ejemplo de creación de una orden de cobro, iniciando una transacción de pago
* Utiliza el método payment/create
*/
const FlowApi = require("flowcl-node-api-client");
const config = require("./config.json");
//Para datos opcionales campo "optional" prepara un arreglo JSON
const optional = {
"rut": "9999999-9",
"otroDato": "otroDato"
};
//Prepara el arreglo de datos
const params = {
"commerceOrder": Math.floor(Math.random() * (2000 - 1100 + 1)) + 1100,
"subject": "Pago de prueba",
"currency": "CLP",
"amount": 5000,
"email": "efuentealba@json.cl",
"paymentMethod": 9,
"urlConfirmation": config.baseURL + "/payment_confirm",
"urlReturn": config.baseURL + "/result",
...optional
};
//Define el metodo a usar
const serviceName = "payment/create";
try {
// Instancia la clase FlowApi
const flowApi = new FlowApi(config);
// Ejecuta el servicio
let response = await flowApi.send(serviceName, params, "POST");
//Prepara url para redireccionar el browser del pagador
redirect = response.url + "?token=" + response.token;
console.log(`location: ${redirect}`)
} catch(error) {
console.log(error.message)
}
Otros ejemplos los podrá ver en la carpeta examples/server.js de este cliente.
FAQs
Cliente Node (No oficial) para consumir el API de Flow.
The npm package flowcl-node-api-client receives a total of 0 weekly downloads. As such, flowcl-node-api-client popularity was classified as not popular.
We found that flowcl-node-api-client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.