Skip to content

Commit

Permalink
Merge pull request #7 from MONEI/fix/https
Browse files Browse the repository at this point in the history
fix: repair https url
  • Loading branch information
Leandro Marty authored Dec 14, 2020
2 parents fafa7e4 + 29a909f commit d06ee27
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Or add the following to `composer.json`:
```json
{
"require": {
"monei/monei-php-sdk": "^0.1.5"
"monei/monei-php-sdk": "^0.1.6"
}
}
```
Expand Down
2 changes: 1 addition & 1 deletion build/config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"packageName": "MONEI PHP SDK",
"packageVersion": "0.1.5",
"packageVersion": "0.1.6",
"gitHost": "github.com",
"gitUserId": "monei",
"gitRepoId": "monei-php-sdk"
Expand Down
2 changes: 1 addition & 1 deletion build/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "monei-php-sdk",
"version": "0.1.5",
"version": "0.1.6",
"description": "MONEI PHP SDK",
"author": "monei",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions lib/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class Configuration
*
* @var string
*/
protected $host = 'http://api.monei.net/v1';
protected $host = 'https://api.monei.net/v1';

/**
* User agent of the HTTP request, set to "OpenAPI-Generator/{version}/PHP" by default
Expand Down Expand Up @@ -436,7 +436,7 @@ public function getHostSettings()
{
return array(
array(
"url" => "http://api.monei.net/v1",
"url" => "https://api.monei.net/v1",
"description" => "MONEI API v1",
)
);
Expand Down
2 changes: 1 addition & 1 deletion lib/MoneiClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function __construct(
) {
$this->config = $config ?: Configuration::getDefaultConfiguration();
$this->config->setApiKey('Authorization', $apiKey);
$this->config->setUserAgent('MONEI/PHP/0.1.5');
$this->config->setUserAgent('MONEI/PHP/0.1.6');

$this->payments = new PaymentsApi(null, $this->config);
}
Expand Down

0 comments on commit d06ee27

Please sign in to comment.