Skip to content
Browse files

API change: POST to /v1/payments no longer accepts payment_gateway

  • Loading branch information...
1 parent d54e9ee commit c429050d52619e733065aa6e6c36ddba041e0a92 @stebunovd stebunovd committed
Showing with 4 additions and 4 deletions.
  1. +1 −1 .gitignore
  2. +3 −3 tests.py
View
2 .gitignore
@@ -18,5 +18,5 @@ nosetests.xml
.idea
.DS_Store
-
+testtest11.py
README.html
View
6 tests.py
@@ -35,14 +35,14 @@ def test_payments(self):
unipag.Payment.create(
amount=randrange(1, invoice.amount),
invoice=invoice.id,
- payment_gateway='masterbank.ru'
+ connection='masterbank.ru'
)
# Generate 3 stand-alone payments
for i in range(3):
unipag.Payment.create(
amount=randrange(1, invoice.amount),
currency='RUB',
- payment_gateway='masterbank.ru'
+ connection='masterbank.ru'
)
# Check that only payments linked to invoice are returned
payments = unipag.Payment.list(invoice=invoice.id)
@@ -71,7 +71,7 @@ def test_default_currency(self):
},
unipag.Payment.create: {
'amount': 42,
- 'payment_gateway': 'masterbank.ru'
+ 'connection': 'masterbank.ru'
},
}
for method, args in unipag_calls.items():

0 comments on commit c429050

Please sign in to comment.
Something went wrong with that request. Please try again.