Changeset 12647 for main/waeup.ikoba/branches/uli-fake-gw-provider/src/waeup/ikoba/payments/demo_provider.py
- Timestamp:
- 2 Mar 2015, 00:46:09 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/branches/uli-fake-gw-provider/src/waeup/ikoba/payments/demo_provider.py
r12637 r12647 15 15 title = _(u'Demo Creditcard') 16 16 17 def create_payment(self, payer, payment_item , payee=None):17 def create_payment(self, payer, payment_item_list=[], payee=None): 18 18 """Create a payment. 19 19 """ 20 20 payment = Payment() 21 21 payment.gateway_service = 'demo' # must be grok.name above 22 payment.payed_item_id = payment_item.item_id23 payment.amount = payment_item.amount24 22 payment.payer_id = payer.payer_id 23 for item in payment_item_list: 24 payment.add_payment_item(item) 25 25 return payment
Note: See TracChangeset for help on using the changeset viewer.