Esempio n. 1
0
 public function testPayCompleteV2()
 {
     $saferpay = new Saferpay();
     $saferpay->setHttpClient(new BuzzClient());
     $payConfirmParameter = new PayConfirmParameter();
     $payConfirmParameter->setId('WxWrIlA48W06rAjKKOp5bzS80E5A');
     $payConfirmParameter->setAmount('1200');
     $payConfirmParameter->setAccountid('99867-94913159');
     $payCompleteResponse = $saferpay->payCompleteV2($payConfirmParameter, 'Settlement');
     /** @var PayCompleteResponse $payCompleteResponse */
     $this->assertEquals(0, $payCompleteResponse->getResult());
 }
Esempio n. 2
0
 public function testPayCompleteV2()
 {
     $saferpay = new Saferpay();
     $saferpay->setHttpClient(new BuzzClient());
     $payConfirmParameter = new PayConfirmParameter();
     $payConfirmParameter->setId('Ojp5Ibbz769YtAC7S92IAtGx6GYA');
     $payConfirmParameter->setAmount('1200');
     $payConfirmParameter->setAccountid('99867-94913159');
     $payCompleteResponse = $saferpay->payCompleteV2($payConfirmParameter, 'Settlement');
     /** @var PayCompleteResponse $payCompleteResponse */
     $this->assertEquals(0, $payCompleteResponse->getResult());
 }
Esempio n. 3
0
 public function testPayCompleteV2()
 {
     $saferpay = new Saferpay();
     $saferpay->setHttpClient(new BuzzClient());
     $payConfirmParameter = new PayConfirmParameter();
     $payConfirmParameter->setId('v9OUt6A2S667tAzGzIMbAhGtbptA');
     $payConfirmParameter->setAmount('1200');
     $payConfirmParameter->setAccountid('99867-94913159');
     $payCompleteResponse = $saferpay->payCompleteV2($payConfirmParameter, 'Settlement');
     /** @var PayCompleteResponse $payCompleteResponse */
     $this->assertEquals(0, $payCompleteResponse->getResult());
 }