コード例 #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());
 }
コード例 #2
0
ファイル: SaferpayTest.php プロジェクト: eliberty/saferpay
 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());
 }
コード例 #3
0
ファイル: SaferpayTest.php プロジェクト: payment/saferpay
 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());
 }