Skip to content

nubleer/conekta-go

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Conekta

Package conekta is a wrapper for the conekta API modify by nubleer team.

Important!!

This package is considered alpha and the public API will still change slightly before it's considered stable.

Getting Started

First, get your account's private API key. This package will need it in order to authenticate your requests.

export CONEKTA_API_KEY=YOUR_PRIVATE_KEY

Or

  client := conekta.NewClient()
  client.ApiKey = "YOUR_PRIVATE_KEY"

Get the package

go get github.com/nubleer/conekta-go/conekta

Usage

package main

import "github.com/nubleer/conekta"

func main() {
  client := conekta.NewClient()
  client.ApiKey = "YOUR_PRIVATE_KEY"

  charge := conekta.Charge{
    Description: "Some description",
    Amount: 45000,
    Cash: PaymentOxxo{"type":"oxxo"},
  }

  charge, err = client.Charges.Create(charge)

About

Go wrapper for conekta's REST API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 97.4%
  • Shell 2.6%