Skip to content

alce/conekta-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 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

Contributors 4

  •  
  •  
  •  
  •