Changeset 9288 for main


Ignore:
Timestamp:
4 Oct 2012, 10:04:56 (12 years ago)
Author:
Henrik Bettermann
Message:

Submit correct pay_item_id.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.futminna/trunk/src/waeup/futminna/interswitch/browser.py

    r9285 r9288  
    157157    site_name = SITE_NAME
    158158    currency = CURRENCY
    159     pay_item_id = '5700'
     159    pay_item_id = ''
    160160    product_id = PRODUCT_ID
    161161
     
    200200
    201201        if self.context.student.current_mode in ('pg_ft'):
    202             pay_item_id = "11703"
     202            self.pay_item_id = "11703"
    203203        elif self.context.student.state == CLEARED and \
    204204            self.context.student.current_level == 100:
    205             pay_item_id = "11700"
     205            self.pay_item_id = "11700"
    206206        elif self.context.student.state == CLEARED and \
    207207            self.context.student.current_level == 200:
    208             pay_item_id = "11701"
     208            self.pay_item_id = "11701"
    209209        elif self.context.student.state == CLEARED and \
    210210            self.context.student.current_level == 300:
    211             pay_item_id = "11702"
     211            self.pay_item_id = "11702"
    212212        elif self.context.student.state == RETURNING and \
    213213            self.context.student.current_level in (100,110):
    214             pay_item_id = "11701"
     214            self.pay_item_id = "11701"
    215215        elif self.context.student.state == RETURNING and \
    216216            self.context.student.current_level in (200,210):
    217             pay_item_id = "11702"
     217            self.pay_item_id = "11702"
    218218        elif self.context.student.state == RETURNING and \
    219219            self.context.student.current_level in (300,310):
    220             pay_item_id = "11703"
     220            self.pay_item_id = "11703"
    221221        elif self.context.student.state == RETURNING and \
    222222            self.context.student.current_level in (400,410,500,510,600):
    223             pay_item_id = "11704"
    224         else:
    225             pay_item_id = ""
     223            self.pay_item_id = "11704"
     224
    226225
    227226        if self.context.student.current_mode == 'jm_ft':
     
    283282            return
    284283        student = self.context.student
     284        import pdb; pdb.set_trace()
    285285        success, msg, log = query_interswitch(self.context)
    286286        student.writeLogMessage(self, log)
Note: See TracChangeset for help on using the changeset viewer.