0001-keyware-remove-payment_methods-parameter-43030.patch
eopayment/keyware.py | ||
---|---|---|
54 | 54 |
'caption': _('API key'), |
55 | 55 |
'required': True, |
56 | 56 |
}, |
57 |
{ |
|
58 |
'name': 'payment_methods', |
|
59 |
'caption': _('Allowed payment methods'), |
|
60 |
'type': list, |
|
61 |
}, |
|
62 | 57 |
], |
63 | 58 |
} |
64 | 59 | |
... | ... | |
76 | 71 |
'last_name': last_name, |
77 | 72 |
} |
78 | 73 |
} |
79 |
if self.payment_methods: |
|
80 |
body['payment_methods'] = self.payment_methods |
|
81 | 74 | |
82 | 75 |
resp = self.call_endpoint('POST', 'orders', data=body) |
83 | 76 |
return resp['id'], URL, resp['order_url'] |
tests/test_keyware.py | ||
---|---|---|
146 | 146 |
'normal_return_url': RETURN_URL, |
147 | 147 |
'automatic_return_url': WEBHOOK_URL, |
148 | 148 |
'api_key': API_KEY, |
149 |
'payment_methods': ['ideal'], |
|
150 | 149 |
}) |
151 | 150 | |
152 | 151 | |
153 |
- |