示例#1
0
 /**
  * @param bool $oneTime
  * @param bool $recurringSequence
  * @param bool $mandateChange
  */
 protected function _initModel($oneTime = true, $recurringSequence = false, $mandateChange = false)
 {
     $this->_model = new Itabs_Debit_Model_Xml_Payment('DE98ZZZ09999999999', 'Test Company', 'DE68210501700012345678', 'BELADEBEXXX');
     $this->_model->setOneTimePayment($oneTime);
     $this->_model->setRecurringSequence($recurringSequence);
     for ($i = 1; $i <= 3; $i++) {
         $booking = new Itabs_Debit_Model_Xml_Booking();
         $booking->setAccountOwner('Debitor Name');
         $booking->setIban('DE68210501700012345678');
         $booking->setSwift('BELADEBEXXX');
         $booking->setAmount($i * 100);
         $booking->setBookingText('Order ' . $i);
         $booking->setMandateId($i);
         $booking->setMandateChange($mandateChange);
         $this->_model->addBooking($booking);
     }
 }