Skip to content

Commit

Permalink
soluciona de problemascon fecha de conciliación
Browse files Browse the repository at this point in the history
  • Loading branch information
fixmycode committed Sep 25, 2020
1 parent a5a15de commit 254693b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion pykhipu/responses.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ def __init__(self, payment_id, payment_url, simplified_transfer_url,

@classmethod
def from_data(cls, data):
conciliation_date = dateutil.parser.parse(data.get('conciliation_date'))
conciliation_date = data.get('conciliation_date')
if conciliation_date:
conciliation_date = dateutil.parser.parse(conciliation_date)
expires_date = dateutil.parser.parse(data.get('expires_date'))

return cls(data.get('payment_id'), data.get('payment_url'),
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pykhipu"
version = "0.1.7"
version = "0.1.8"
description = "Wrapper for the Khipu payment service API v2.0"
authors = ["Pablo Albornoz <pablo.albornoz.n@gmail.com>"]
license = "MIT"
Expand Down

0 comments on commit 254693b

Please sign in to comment.