Пример #1
0
 public function testSend()
 {
     $request = new QueryRequest($this->url, $this->clientId, $this->password);
     $request->setTransaction('3500900013767946');
     $response = $request->send();
     $this->assertTrue($response->succeed());
 }
Пример #2
0
<?php

use Rnr\Swedbank\Requests\QueryRequest;
require '../bootstrap.php';
$request = new QueryRequest(getenv('URL'), getenv('CLIENT_ID'), getenv('PASSWORD'));
$request->setTransaction($_REQUEST['dts_reference']);
$response = $request->send();
echo $response->succeed() ? 'Status: OK' : 'Status: failed';