public function setUp() { $cfg = new MerchantConfig('MERCHANT_CODE', 'SECRET_KEY', 'RO'); $user = new User('127.0.0.1'); $order = new Order(); $order->withBackRef('http://path/to/your/returnUrlScript')->withOrderRef('MerchantOrderRef')->withCurrency('RON')->withOrderDate('2014-09-19 10:00:00')->withOrderTimeout(1000)->withPayMethod('CCVISAMC')->withInstallmentsNumber(2)->withCampaignType('EXTRA_INSTALLMENTS'); $product = new Product(); $product->withCode('PCODE01')->withName('PNAME01')->withPrice(100.0)->withVAT(24.0)->withQuantity(1); $order->addProduct($product); $product = new Product(); $product->withCode('PCODE02')->withName('PNAME02')->withPrice(200.0)->withVAT(24.0)->withQuantity(1); $order->addProduct($product); $billing = new Billing(); $billing->withAddressLine1('ADDRESS1')->withAddressLine2('ADDRESS2')->withCity('Bucuresti')->withCountryCode('RO')->withEmail('*****@*****.**')->withFirstName('John')->withLastName('Doe')->withPhoneNumber('0755167887')->withIdentityCardNumber('324322'); $delivery = new Delivery(); $delivery->withAddressLine1('ADDRESS1')->withAddressLine2('ADDRESS2')->withCity('Bucuresti')->withCountryCode('RO')->withEmail('*****@*****.**')->withFirstName('John')->withLastName('Doe')->withPhoneNumber('0755167887'); $card = new Card('5431210111111111', '11', 2016, 123, 'test'); $this->request = new Request($cfg, $order, $billing, $delivery, $user); $this->request->setCard($card); }