Skip to content

Ongoing release

Latest
Compare
Choose a tag to compare
@keriat keriat released this 26 Nov 04:31
· 5 commits to master since this release

Ongoing release to update Packagist.

Includes:

  • README.md updates;
  • project configuration file updated;
  • Fixed exception messages strings to properly identify source (addressed in #12);
  • Updated interface RequestInterface to match abstract class Request implementation;
  • Allow setting payment gateway url;
  • VictoriaBank test payment gateway has incomplete SSL certificate chain and breaks onboarding tests #14;
  • Introduced an additional setting similar to Request->_debugMode: Request->_sslVerify
  • minor refactoring and documenting done.

New functionality

New customers are required to complete functionality tests according to the documentation with a test payment gateway.

Current implementation has the gateway url hardcoded in the Request class. This pull request allows the caller to set a different gateway url to enable onboarding test scenarios.

$victoriaBankGateway = new VictoriaBankGateway();
$victoriaBankGateway->setGatewayUrl('https://ecomt.victoriabank.md/cgi-bin/cgi_link');

SSL issue with the bank URL

To avoid facing SSL-incomplete chain while addressing TEST-gateway (only in DEBUG/TEST modes) two new options were introduced: verify_peer and verify_peer_name. It works as an additional parameters on the request() function stream context options for the CompletionRequest and ReversalRequest classes:

'ssl' => [
    "verify_peer" => false,
    "verify_peer_name" => false,
]