Skip to content

Commit 77d2e1e

Browse files
authored
Merge pull request ggrammar#23 from gamagori/feature/give-proper-credit
Feature/give proper credit
2 parents e0a2f34 + bba163a commit 77d2e1e

File tree

3 files changed

+27
-6
lines changed

3 files changed

+27
-6
lines changed

CONTRIBUTORS.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# pizzapi Contributors
2+
3+
## Maintainers
4+
5+
### [Grant Gordon](https://github.com/gamagori)
6+
###### Current Maintainer
7+
8+
## Contributors
9+
10+
### [Arie van Luttikhuizen](https://github.com/aluttik)
11+
###### Original Author

pizzapi/order.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,13 @@ def pay_with(self, card=False):
112112
self.data['Payments'] = [
113113
{
114114
'Type': 'CreditCard',
115-
'Expiration': self.credit_card.expiration,
115+
'Expiration': card.expiration,
116116
'Amount': self.data['Amounts'].get('Customer', 0),
117-
'CardType': self.credit_card.card_type,
118-
'Number': int(self.credit_card.number),
119-
'SecurityCode': int(self.credit_card.cvv),
120-
'PostalCode': int(self.credit_card.zip)
117+
'CardType': card.card_type,
118+
'Number': int(card.number),
119+
'SecurityCode': int(card.cvv),
120+
'PostalCode': int(card.zip)
121121
}
122122
]
123+
124+
return response

setup.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,16 @@ def run(self):
129129
# your project is installed. For an analysis of "install_requires" vs pip's
130130
# requirements files see:
131131
# https://packaging.python.org/en/latest/requirements.html
132-
install_requires=['requests', 'xmltodict'],
132+
install_requires=[
133+
'pyhamcrest',
134+
'requests',
135+
'xmltodict',
136+
],
133137
include_package_data=True,
138+
tests_require=[
139+
'mock',
140+
'pytest',
141+
],
134142

135143
# setup.py publish support.
136144
cmdclass={

0 commit comments

Comments
 (0)