/** * @covers \Epay\Client::processConfirmation() * @throws \Epay\Exceptions\Amount\EmptyAmount * @throws \Epay\Exceptions\Certificate\UnknownError * @throws \Epay\Exceptions\Order\EmptyId * @throws \Epay\Exceptions\Order\NotNumeric * @throws \Epay\Exceptions\Order\NullId */ public function testProcessConfirmationPositive() { $client = new Client(array('MERCHANT_CERTIFICATE_ID' => '00c182b189', 'MERCHANT_NAME' => 'Demo Shop', 'PRIVATE_KEY_FN' => ROOT_DIR . '/tests/data/cert.prv', 'PRIVATE_KEY_PASS' => 'nissan', 'PRIVATE_KEY_ENCRYPTED' => 1, 'XML_TEMPLATE_FN' => ROOT_DIR . '/tests/data/template.xml', 'XML_TEMPLATE_CONFIRM_FN' => ROOT_DIR . '/tests/data/template_confirm.xml', 'PUBLIC_KEY_FN' => ROOT_DIR . '/tests/data/kkbca_test.pub', 'MERCHANT_ID' => '92061101')); $xml = $client->processConfirmation('reference', 'code', 1, $client->getCurrencyId('KZT'), 1000); $this->assertInternalType('string', $xml); $xml = $client->processConfirmation('reference', 'code', 1, $client->getCurrencyId('KZT'), 1000, true); $this->assertInternalType('string', $xml); }