2017 © Pedro Peláez
 

library conekta-php-namespaces

Conekta PHP Library

image

sairoko12/conekta-php-namespaces

Conekta PHP Library

  • Wednesday, January 11, 2017
  • by sairoko12
  • Repository
  • 1 Watchers
  • 0 Stars
  • 55 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 25 Forks
  • 0 Open issues
  • 26 Versions
  • 0 % Grown

The README.md

alt tag, (*1)

Conekta PHP v.3.0.0

This is a php library that allows interaction with https://api.conekta.io API., (*2)

Installation

Obtain the latest version of the Conekta PHP bindings with:, (*3)

git clone https://github.com/conekta/conekta-php

To get started, add the following to your PHP script:, (*4)

require_once("/path/to/conekta-php/lib/Conekta.php");

You can also install this library with composer:, (*5)

require: "conekta/conekta-php": "3.0.0", (*6)

Usage

\Conekta\Conekta::setApiKey('1tv5yJp3xnVZ7eK67m4h');
try {
  $charge = \Conekta\Charge::create(array(
    "amount"=> 51000,
    "currency"=> "MXN",
    "description"=> "Pizza Delivery",
    "reference_id"=> "orden_de_id_interno",
    "card"=> $_POST['conektaTokenId']
    //"tok_a4Ff0dD2xYZZq82d9"
  ));
} catch (Conekta_Error $e) {
  echo $e->getMessage(); //Dev Message
  echo $e->message_to_purchaser;
  //El pago no pudo ser procesado
}

{
  "id": "5286828b8ee31e64b7001739",
  "livemode": false,
  "created_at": 1384546955,
  "status": "paid",
  "currency": "MXN",
  "description": "Some desc",
  "reference_id": null,
  "failure_code": null,
  "failure_message": null,
  "object": "charge",
  "amount": 2000,
  "fee": 371,
  "payment_method": {
    "name": "Mario Moreno",
    "exp_month": "05",
    "exp_year": "15",
    "auth_code": "861491",
    "object": "card_payment",
    "last4": "4242",
    "brand": "visa"
  },
  "details": {
    "name": null,
    "phone": null,
    "email": null,
    "line_items": []
  }
}

Documentation

Please see https://www.conekta.io/docs/api for up-to-date documentation., (*7)

Tests

In order to run tests you have to install SimpleTest (https://github.com/simpletest/simpletest) via Composer (http://getcomposer.org/) (recommended way):, (*8)

composer.phar update --dev

Run test suite:, (*9)

php ./test/Conekta.php

License

Developed by Conekta. Available with MIT License., (*10)

We are hiring

If you are a comfortable working with a range of backend languages (Java, Python, Ruby, PHP, etc) and frameworks, you have solid foundation in data structures, algorithms and software design with strong analytical and debugging skills. Send your CV, github to quieroser@conekta.io, (*11)

The Versions

11/01 2017

dev-feature/changelog-update

dev-feature/changelog-update https://www.conekta.io/

Conekta PHP Library

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

The Development Requires

api payment processing conekta

11/01 2017

dev-feature/upgrade-1.1

dev-feature/upgrade-1.1 https://www.conekta.io/

Conekta PHP Library

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

The Development Requires

api payment processing conekta

11/01 2017

dev-feature/exceptions-fix

dev-feature/exceptions-fix https://www.conekta.io/

Conekta PHP Library

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

The Development Requires

api payment processing conekta

10/01 2017

dev-feature/version-bump

dev-feature/version-bump https://www.conekta.io/

Conekta PHP Library

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

The Development Requires

api payment processing conekta

28/12 2016

dev-feature/error-list-refactor

dev-feature/error-list-refactor https://www.conekta.io/

Conekta PHP Library

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

The Development Requires

api payment processing conekta

22/12 2016

dev-fix/contextual-data-change

dev-fix/contextual-data-change https://www.conekta.io/

Conekta PHP Library

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

The Development Requires

api payment processing conekta

21/12 2016

dev-feature/change-contextual-date-attr

dev-feature/change-contextual-date-attr https://www.conekta.io/

Conekta PHP Library

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

The Development Requires

api payment processing conekta

17/11 2016

dev-master

9999999-dev https://www.conekta.io/

Conekta PHP Library

  Sources   Download

MIT

The Requires

  • ext-curl *
  • ext-json *
  • ext-mbstring *
  • php >=5.3

 

The Development Requires

api payment processing conekta

17/11 2016

dev-dev

dev-dev https://www.conekta.io/

Conekta PHP Library

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

The Development Requires

api payment processing conekta

16/11 2016

v3.0.0

3.0.0.0 https://www.conekta.io/

Conekta PHP Library

  Sources   Download

MIT

The Requires

  • php >=5.2
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

The Development Requires

api payment processing conekta

05/07 2016

v2.0.5

2.0.5.0 https://www.conekta.io/

PHP Library

  Sources   Download

MIT

The Requires

  • php >=5.2
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

The Development Requires

api payment processing conekta

24/02 2016

v2.0.4

2.0.4.0 https://www.conekta.io/

PHP Library

  Sources   Download

MIT

The Requires

  • php >=5.2
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

The Development Requires

api payment processing conekta

24/02 2016

v2.0.3

2.0.3.0 https://www.conekta.io/

PHP Library

  Sources   Download

MIT

The Requires

  • php >=5.2
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

The Development Requires

api payment processing conekta

26/01 2016

v2.0.2

2.0.2.0 https://www.conekta.io/

PHP Library

  Sources   Download

MIT

The Requires

  • php >=5.2
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

The Development Requires

api payment processing conekta

25/01 2016

v2.0.1

2.0.1.0 https://www.conekta.io/

PHP Library

  Sources   Download

MIT

The Requires

  • php >=5.2
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

The Development Requires

api payment processing conekta

07/11 2014

v2.0.0

2.0.0.0 https://www.conekta.io/

PHP Library

  Sources   Download

MIT

The Requires

  • php >=5.2
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

The Development Requires

api payment processing conekta

06/08 2014

v1.9.9

1.9.9.0 https://www.conekta.io/

PHP Library

  Sources   Download

MIT

The Requires

  • php >=5.2
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

The Development Requires

api payment processing conekta

21/07 2014

v1.9.8

1.9.8.0 https://www.conekta.io/

PHP Library

  Sources   Download

MIT

The Requires

  • php >=5.2
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

The Development Requires

api payment processing conekta

22/05 2014

1.9.7

1.9.7.0 https://www.conekta.io/

PHP Library

  Sources   Download

MIT

The Requires

  • php >=5.2
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

The Development Requires

api payment processing conekta

12/05 2014

v1.9.6

1.9.6.0 https://www.conekta.io/

PHP Library

  Sources   Download

MIT

The Requires

  • php >=5.2
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

The Development Requires

api payment processing conekta

29/04 2014

v1.9.5

1.9.5.0 https://www.conekta.io/

PHP Library

  Sources   Download

MIT

The Requires

  • php >=5.2
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

The Development Requires

api payment processing conekta

29/04 2014

v1.9.4

1.9.4.0 https://www.conekta.io/

PHP Library

  Sources   Download

MIT

The Requires

  • php >=5.2
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

The Development Requires

api payment processing conekta

08/04 2014

v1.9.3

1.9.3.0 https://www.conekta.io/

PHP Library

  Sources   Download

MIT

The Requires

  • php >=5.2
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

The Development Requires

api payment processing conekta

03/04 2014

v1.9.2

1.9.2.0 https://www.conekta.io/

PHP Library

  Sources   Download

MIT

The Requires

  • php >=5.2
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

The Development Requires

api payment processing conekta

21/01 2014

v1.9.1

1.9.1.0 https://www.conekta.io/

PHP Library

  Sources   Download

MIT

The Requires

  • php >=5.2
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

The Development Requires

api payment processing conekta

14/01 2014

v1.9.0

1.9.0.0 https://www.conekta.io/

PHP Library

  Sources   Download

MIT

The Requires

  • php >=5.2
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

The Development Requires

api payment processing conekta