/** * Prepares the environment before running a test. */ protected function setUp() { parent::setUp(); $customerId = $this->_customerId; $shopId = $this->_shopId; $secret = $this->_secret; $language = $this->_language; $oToolkitClient = new WirecardCEE_QPay_ToolkitClient(array('CUSTOMER_ID' => $customerId, 'SHOP_ID' => $shopId, 'SECRET' => $secret, 'LANGUAGE' => $language, 'TOOLKIT_PASSWORD' => $this->_toolkitPassword)); $this->object = $oToolkitClient->getOrderDetails($this->_orderNumber); }
/** * Prepares the environment before running a test. */ protected function setUp() { parent::setUp(); $customerId = $this->_customerId; $shopId = $this->_shopId; $secret = $this->_secret; $language = $this->_language; $oToolkitClient = new WirecardCEE_QPay_ToolkitClient(array('CUSTOMER_ID' => $customerId, 'SHOP_ID' => $shopId, 'SECRET' => $secret, 'LANGUAGE' => $language, 'TOOLKIT_PASSWORD' => $this->_toolkitPassword)); $this->object = $oToolkitClient->recurPayment($this->_sourceOrderNumber, $this->_amount, $this->_currency, $this->_orderDescription, $this->_orderNumber, $this->_depositFlag); }
public function __construct($config = null) { parent::__construct($config); $this->_requestData[self::COMMAND] = self::$COMMAND_TRANSFER_FUND; }
public function testConfigFallback() { $object = new WirecardCEE_QPay_ToolkitClient(); $oUserConfig = $object->getUserConfig(); $this->assertInstanceOf('WirecardCEE_Stdlib_Config', $oUserConfig); $this->assertEquals($oUserConfig->CUSTOMER_ID, 'D200001'); }