You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Official Node.js SDK for the Conekta Payments API. Auto-generated client library from an OpenAPI specification that enables integration with payments, subscriptions, BNPL, SPEI transfers, credit cards, and payouts.
npm run build # Compile TS to CommonJS + ESM
npm run test# Jest with coverage
npm run clean # Clean node_modules, dist, coverage
Makefile
make test# Run tests
make node # Regenerate code from OpenAPI spec
Tests
Framework: Jest + ts-jest
Mock server: Mockoon (API mock on localhost:3000)
Files: __tests__/*.spec.ts
CI matrix: Node 18, 20, 22, 24
Running Tests Locally
# Start mock server
docker run -d -p 3000:3000 mockoon/cli:latest -d https://raw.githubusercontent.com/conekta/openapi/main/mocks/conekta_api.json --port 3000
# Run tests
BASE_PATH=http://localhost:3000 npm test
Code Generation
Code in api/ and model/ is auto-generated from the OpenAPI specification. Do not edit manually.