Skip to content

Commit

Permalink
Cambio de url produccion
Browse files Browse the repository at this point in the history
  • Loading branch information
danielquiroz87 committed Jul 20, 2017
1 parent 1f103d0 commit 143df02
Show file tree
Hide file tree
Showing 15 changed files with 580 additions and 7 deletions.
11 changes: 11 additions & 0 deletions .idea/epayco-python.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

544 changes: 544 additions & 0 deletions .idea/workspace.xml

Large diffs are not rendered by default.

Binary file modified pyepayco/__pycache__/__init__.cpython-36.pyc
Binary file not shown.
Binary file modified pyepayco/__pycache__/client.cpython-36.pyc
Binary file not shown.
Binary file modified pyepayco/__pycache__/epayco.cpython-36.pyc
Binary file not shown.
Binary file modified pyepayco/__pycache__/errors.cpython-36.pyc
Binary file not shown.
Binary file modified pyepayco/__pycache__/resources.cpython-36.pyc
Binary file not shown.
4 changes: 2 additions & 2 deletions pyepayco/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def setKeys(self, array={}):

class Client:

BASE_URL = "http://ec2-54-167-68-102.compute-1.amazonaws.com";
BASE_URL = "https://api.secure.payco.co";
BASE_URL_SECURE = "https://secure.payco.co";
IV = "0000000000000000";
LENGUAGE = "python";
Expand Down Expand Up @@ -91,6 +91,7 @@ def request(self,method='POST',url="",api_key="",data={}, private_key="",test=""

headers = {'Content-Type':'application/json','Accept' : "application/json" ,'type':'sdk'}


try:
if (method == "GET"):
if (switch):
Expand All @@ -112,7 +113,6 @@ def request(self,method='POST',url="",api_key="",data={}, private_key="",test=""

url_params = addData
url_params.update(data)

response=requests.get(self.build_url(url), data={},params=url_params,auth=(api_key, ""),headers=headers)

else:
Expand Down
7 changes: 3 additions & 4 deletions pyepayco/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,13 +346,12 @@ class Bank(Resource):
* @return object
"""

def pseBank(self):
options = None
def pseBank(self,options = None):
return self.request(
"GET",
"restpagos/pse/bancos.json",
self.epayco.api_key,
options,
{'public_key':self.epayco.api_key},
self.epayco.private_key,
self.epayco.test,
True,
Expand All @@ -365,7 +364,7 @@ def pseBank(self):
* @return object
"""

def pse(self, options=None):
def create(self, options=None):
return self.request(
"POST",
"restpagos/pagos/debitos.json",
Expand Down
Empty file added pyepayco/test/__init__.py
Empty file.
2 changes: 1 addition & 1 deletion pyepayco/test/testing.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import epayco
import pyepayco.epayco as epayco
import unittest

class EpaycoTest(unittest.TestCase):
Expand Down
1 change: 1 addition & 0 deletions pyepayco/utils/key_lang.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"phone": "telefono",
"cell_phone": "celular",
"address": "direccion",
"end_date": "fechaexpiracion",
"ip": "ip",
"url_response": "url_respuesta",
"url_confirmation": "url_confirmacion",
Expand Down

0 comments on commit 143df02

Please sign in to comment.