GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - conekta/conekta-node: Node.js library for Conekta api calls

BranchesTags
Open more actions menu

Latest commit

 

History

385 Commits
385 Commits

Folders and files

NameName
Last commit message
Last commit date
.devcontainer
.devcontainer
 
 
.github
.github
 
 
.openapi-generator
.openapi-generator
 
 
__tests__
__tests__
 
 
api
api
 
 
cert
cert
 
 
docs
docs
 
 
examples
examples
 
 
model
model
 
 
templates/node
templates/node
 
 
.dockerignore
.dockerignore
 
 
.editorconfig
.editorconfig
 
 
.gitignore
.gitignore
 
 
.npmignore
.npmignore
 
 
.nvmrc
.nvmrc
 
 
.openapi-generator-ignore
.openapi-generator-ignore
 
 
AUTHORS.md
AUTHORS.md
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
Dockerfile
Dockerfile
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
VERSION
VERSION
 
 
agents.md
agents.md
 
 
api.ts
api.ts
 
 
base.ts
base.ts
 
 
common.ts
common.ts
 
 
conekta.png
conekta.png
 
 
config-node.json
config-node.json
 
 
configuration.ts
configuration.ts
 
 
docker-compose.yml
docker-compose.yml
 
 
index.ts
index.ts
 
 
jest.config.js
jest.config.js
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
tsconfig.esm.json
tsconfig.esm.json
 
 
tsconfig.json
tsconfig.json
 
 

Repository files navigation

Conekta API library for Node.js

Node.js CI Downloads npm bundle size (scoped) Version Try on RunKit

This is the officially supported Node.js library for using Conekta's APIs.

Supported API versions

The library supports all APIs under the following services:

API Description Service Name Supported version
Payments API Our classic integration for online payments. Current supported version Payments API v2.3.0

For more information, refer to our documentation.

Prerequisites

  • Conekta account
  • API key. your API credential .
  • Install Node.js version 18 or later.

Installation

Install the Node.JS package:

npm install --save conekta

Alternatively, you can download the release on GitHub.

Updating

To update the Node.JS package:

npm update conekta

Check for breaking changes on the releases page.

Using the library

In order to submit http request to Conekta API you need to initialize the client. The following example makes a order request:

import { CustomersApi, Configuration, Customer, CustomerResponse } from "conekta";

const apikey = "key_xxxxx";
const config = new Configuration({ accessToken: apikey });
const client = new CustomersApi(config);

const customer: Customer = {
  name: "John Constantine",
  email: "[email protected]",
  phone: "+5215555555555"
}

client.createCustomer(customer).then(response => {
  const customerResponse = response.data as CustomerResponse;
  console.log(customerResponse.id);
}).catch(error => {
  console.error("here", error);
});

Running the tests

Navigate to conekta-node folder and run the following commands.

npm run build
npm run test

Contributing

We encourage you to contribute to this repository, so everyone can benefit from new features, bug fixes, and any other improvements. Have a look at our contributing guidelines to find out how to raise a pull request.

Support

If you have a feature request, or spotted a bug or a technical problem, create an issue here.

For other questions, contact our Support Team.

Licence

This repository is available under the MIT license.

See also

  • Conekta docs

About

Node.js library for Conekta api calls

conekta.com

Resources

Readme
MIT license

Code of conduct

Code of conduct

Contributing

Contributing
Activity
Custom properties

Stars

40 stars

Watchers

16 watching

Forks

23 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.