Skip to content

Commit

Permalink
Merge pull request #4 from compropago/staging
Browse files Browse the repository at this point in the history
fixing deploy route
  • Loading branch information
danteay committed Jan 11, 2017
2 parents 64f965a + 7d1f7eb commit 66d646e
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 17 deletions.
22 changes: 12 additions & 10 deletions README.md
Expand Up @@ -35,6 +35,13 @@ Con ComproPago puede recibir pagos en OXXO, 7Eleven y más tiendas en todo Méxi

## Instalación ComproPago Python SDK

### Instalacion por Pypi

Puede descargar facilmente el sdk de compropago con el manejador de paquetes de Python **Pypi** con el siguiente comando

```bash
pip3 install compropago
```

### Instalación por GitHub

Expand All @@ -51,10 +58,6 @@ git clone https://github.com/compropago/sdk-python.git

## Documentación

### Documentación ComproPago Python SDK

### Documentación de ComproPago

**[API de ComproPago](https://compropago.com/documentacion/api)**

ComproPago te ofrece un API tipo REST para integrar pagos en efectivo en tu comercio electrónico o tus aplicaciones.
Expand Down Expand Up @@ -84,7 +87,6 @@ Para poder hacer uso de la librería es necesario incluir la librería principal

```python
from compropago.client import Client
from compropago.tools.validations import Validations
from compropago.factory.factory import Factory
```

Expand Down Expand Up @@ -125,13 +127,13 @@ de la variable **client** como se muestra a continuación.


```python

order_info = {
'order_id': 123,
'order_name': 'M4 unit python',
'order_price': 123.45,
'customer_name': 'Eduardo Aguilar',
'customer_email': 'eduardo.aguilar@compropago.com'
'customer_email': 'eduardo.aguilar@compropago.com',
'payment_type': 'OXXO'
}

order = Factory.get_instance_of('PlaceOrderInfo', order_info)
Expand Down Expand Up @@ -195,10 +197,10 @@ providers = client.api.list_providers()

```python
# @param [Bolean] auth
# @param [Float] limit
# @param [Bolean] fetch
# @param [Float] limit
# @param [string] currency
# @return [list]
def list_providers(self, auth = False, limit = 0)
def list_providers(self, auth = False, limit = 0, currency = 'MXN')
```

##### Envío de instrucciones SMS
Expand Down
10 changes: 5 additions & 5 deletions compropago/config.py
@@ -1,8 +1,8 @@
SETTINGS = {
"sdk_version": "1.0.0",
# "api_live_uri": "http://api.compropago.com/v1/",
# "api_sandbox_uri": "http://api.compropago.com/v1/"
"sdk_version": "1.0.0.2",
"api_live_uri": "http://api.compropago.com/v1/",
"api_sandbox_uri": "http://api.compropago.com/v1/"

"api_live_uri": "http://api-staging-compropago.herokuapp.com/v1/",
"api_sandbox_uri": "http://api-staging-compropago.herokuapp.com/v1/"
# "api_live_uri": "http://api-staging-compropago.herokuapp.com/v1/",
# "api_sandbox_uri": "http://api-staging-compropago.herokuapp.com/v1/"
}
4 changes: 2 additions & 2 deletions setup.py
Expand Up @@ -7,11 +7,11 @@
'compropago/factory/models',
'compropago/tools'
],
version='1.0.0.1',
version='1.0.0.2',
description='SDK python para ComproPago',
author='Eduardo Aguilar',
author_email='eduardo.aguilar@compropago.com',
url='https://github.com/compropago/sdk-python',
download_url='https://github.com/compropago/sdk-python/tarball/1.0.0',
download_url='https://github.com/compropago/sdk-python/tarball/1.0.0.2',
keywords=['payments', 'sdk', 'gateway', 'compropago'],
)

0 comments on commit 66d646e

Please sign in to comment.