Skip to content
This repository has been archived by the owner on Sep 15, 2023. It is now read-only.

Commit

Permalink
corrige url de invoice (#12)
Browse files Browse the repository at this point in the history
* corrige url de invoice

* fmt
  • Loading branch information
rodrigondec authored Sep 1, 2020
1 parent f85338d commit 0592f7a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion imopay_wrapper/wrapper/transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,7 @@ def action(self):

def create_invoice(self, data: dict):
instance = InvoiceTransaction(**data)
url = self._construct_url(action=self.action, subaction="create_invoice")
url = self._construct_url(
action=self.action, subaction="create_invoice_transaction"
)
return self._post(url, instance.to_dict())
2 changes: 1 addition & 1 deletion tests/wrapper/test_transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def test_create_invoice(self):
}

expected_url = self.client._construct_url(
action=self.client.action, subaction="create_invoice"
action=self.client.action, subaction="create_invoice_transaction"
)

with patch(
Expand Down

0 comments on commit 0592f7a

Please sign in to comment.