Ignore:
Timestamp:
2 Mar 2015, 00:46:09 (10 years ago)
Author:
uli
Message:

Consider changed Payment interface.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.ikoba/branches/uli-fake-gw-provider/src/waeup/ikoba/payments/demo_provider.py

    r12637 r12647  
    1515    title = _(u'Demo Creditcard')
    1616
    17     def create_payment(self, payer, payment_item,  payee=None):
     17    def create_payment(self, payer, payment_item_list=[],  payee=None):
    1818        """Create a payment.
    1919        """
    2020        payment = Payment()
    2121        payment.gateway_service = 'demo'  # must be grok.name above
    22         payment.payed_item_id = payment_item.item_id
    23         payment.amount = payment_item.amount
    2422        payment.payer_id = payer.payer_id
     23        for item in payment_item_list:
     24            payment.add_payment_item(item)
    2525        return payment
Note: See TracChangeset for help on using the changeset viewer.