protected function setUp() { $this->request = new PurchaseRequest($this->getHttpClient(), $this->getHttpRequest()); $this->request->initialize(array( 'accountId' => '111111', 'siteId' => '222222', 'siteCode' => '333333', 'notifyUrl' => 'http://localhost/notify', 'cancelUrl' => 'http://localhost/cancel', 'returnUrl' => 'http://localhost/return', 'gateway' => 'IDEAL', 'issuer' => 'issuer', 'transactionId' => '123456', 'currency' => 'EUR', 'amount' => '100.00', 'description' => 'desc', 'extraData1' => 'extra 1', 'extraData2' => 'extra 2', 'extraData3' => 'extra 3', 'language' => 'a language', 'items' => 'the items', 'clientIp' => '127.0.0.1', 'googleAnalyticsCode' => 'analytics code', 'card' => array( 'email' => '*****@*****.**', 'firstName' => 'first name', 'lastName' => 'last name', 'address1' => 'address 1', 'address2' => 'address 2', 'postcode' => '1000', 'city' => 'a city', 'country' => 'a country', 'phone' => 'phone number', ) )); }
protected function setUp() { $this->request = new RestPurchaseRequest($this->getHttpClient(), $this->getHttpRequest()); $this->request->initialize(array('apiKey' => '123456789', 'amount' => 10.0, 'currency' => 'eur', 'description' => 'Test transaction', 'cancel_url' => 'http://localhost/cancel', 'notify_url' => 'http://localhost/notify', 'return_url' => 'http://localhost/return', 'close_window' => false, 'days_active' => 3, 'send_mail' => true, 'gateway' => 'IDEAL', 'google_analytics_code' => '123456789', 'manual' => false, 'transactionId' => 'TEST-TRANS-1', 'type' => 'redirect', 'var1' => 'extra data 1', 'var2' => 'extra data 2', 'var3' => 'extra data 3')); }