/**
  * Get document
  *
  * @see Pronamic_Gateways_IDealAdvanced_XML_RequestMessage::getDocument()
  */
 public function get_document()
 {
     $document = parent::get_document();
     // Transaction request
     $element = self::add_element($document, $document->documentElement, 'merchant');
     self::add_elements($document, $element, array('username' => $this->merchant->username, 'password' => $this->merchant->password, 'reference' => $this->merchant->reference, 'test' => Pronamic_WP_Pay_Util::to_string_boolean($this->merchant->test)));
     // Return
     return $document;
 }
 /**
  * Get document
  *
  * @see Pronamic_Gateways_IDealAdvanced_XML_RequestMessage::getDocument()
  */
 public function get_document()
 {
     $document = parent::get_document();
     // Retrieve Bank List
     $element = self::add_element($document, $document->documentElement, 'retrievebanklist');
     self::add_elements($document, $element, array('methodcode' => $this->method_code, 'test' => Pronamic_WP_Pay_Util::to_string_boolean($this->test)));
     // Return
     return $document;
 }
 /**
  * Get document
  *
  * @see Pronamic_Gateways_IDealAdvanced_XML_RequestMessage::getDocument()
  */
 public function get_document()
 {
     $document = parent::get_document();
     // Transaction request
     $element = self::add_element($document, $document->documentElement, 'transactionreq');
     self::add_elements($document, $element, array('username' => $this->transaction_request->username, 'password' => $this->transaction_request->password, 'reference' => $this->transaction_request->reference, 'description' => $this->transaction_request->description, 'amount' => Pronamic_WP_Pay_Gateways_PayDutch_Client::format_amount($this->transaction_request->amount), 'methodcode' => $this->transaction_request->method_code, 'issuerid' => $this->transaction_request->issuer_id, 'test' => Pronamic_WP_Pay_Util::to_string_boolean($this->transaction_request->test), 'successurl' => $this->transaction_request->success_url, 'failurl' => $this->transaction_request->fail_url));
     // Return
     return $document;
 }
 /**
  * Get parameters
  *
  * @return array
  */
 public function get_parameters($merchant_key)
 {
     return array('shopid' => $this->shop_id, 'merchantid' => $this->merchant_id, 'payment' => $this->payment, 'purchaseid' => $this->purchase_id, 'amount' => Pronamic_WP_Pay_Util::amount_to_cents($this->amount), 'issuerid' => $this->issuer_id, 'testmode' => Pronamic_WP_Pay_Util::to_string_boolean($this->test_mode), 'entrancecode' => $this->entrance_code, 'description' => $this->description, 'returnurl' => $this->return_url, 'cancelurl' => $this->cancel_url, 'callbackurl' => $this->callback_url, 'notifyurl' => $this->notify_url, 'sha1' => $this->get_sha1($merchant_key));
 }