Skip to content

Commit

Permalink
Release 1.0.28
Browse files Browse the repository at this point in the history
  • Loading branch information
sbossert committed Nov 4, 2019
1 parent 170e7fb commit eb6395a
Show file tree
Hide file tree
Showing 375 changed files with 4,197 additions and 57,164 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ This repository contains the OpenCart PostFinance Checkout payment module that

## Documentation

* [English](https://plugin-documentation.postfinance-checkout.ch/pfpayments/opencart-2.3/1.0.27/docs/en/documentation.html)
* [English](https://plugin-documentation.postfinance-checkout.ch/pfpayments/opencart-2.3/1.0.28/docs/en/documentation.html)

## License

Please see the [license file](https://github.com/pfpayments/opencart-2.3/blob/1.0.27/LICENSE) for more information.
Please see the [license file](https://github.com/pfpayments/opencart-2.3/blob/1.0.28/LICENSE) for more information.
4 changes: 2 additions & 2 deletions docs/en/documentation.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ <h2>Documentation</h2> </div>
</a>
</li>
<li>
<a href="https://github.com/pfpayments/opencart-2.3/releases/tag/1.0.27/">
<a href="https://github.com/pfpayments/opencart-2.3/releases/tag/1.0.28/">
Source
</a>
</li>
Expand All @@ -48,7 +48,7 @@ <h1>
<div class="olist arabic">
<ol class="arabic">
<li>
<p><a href="https://github.com/pfpayments/opencart-2.3/releases/tag/1.0.27/">Download</a> the extension.</p>
<p><a href="https://github.com/pfpayments/opencart-2.3/releases/tag/1.0.28/">Download</a> the extension.</p>
</li>
<li>
<p>Extract the files and upload the content of the <code>Upload</code> directory into the root directory of your store using FTP/SSH.</p>
Expand Down
2 changes: 1 addition & 1 deletion upload/system/library/postfinancecheckout/helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@ public static function exceptionErrorHandler($severity, $message, $file, $line){
}

public static function getBaseUrl(){
return "https://app-postfinancecheckout.com:443";
return rtrim("https://www.postfinance-checkout.ch/", '/');
}

public static function isEditableState($state){
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
[![Build Status](https://travis-ci.org/wallee-payment/php-sdk.svg?branch=master)](https://travis-ci.org/wallee-payment/php-sdk)
[![Build Status](https://travis-ci.org/pfpayments/php-sdk.svg?branch=master)](https://travis-ci.org/pfpayments/php-sdk)

# wallee SDK for PHP
# PostFinance Checkout SDK for PHP

This repository contains the open source PHP SDK that allows you to access wallee from your PHP app.
This repository contains the open source PHP SDK that allows you to access PostFinance Checkout from your PHP app.

## Requirements

* [PHP 5.6.0 and later](http://www.php.net/)

## Documentation

https://app-wallee.com/doc/api/web-service
https://www.postfinance-checkout.ch/doc/api/web-service

## Installation

Expand All @@ -25,7 +25,7 @@ composer installed.
Once composer is installed, execute the following command in your project root to install this library:

```sh
composer require wallee/sdk
composer require postfinancecheckout/sdk
```

### Manual Installation
Expand Down Expand Up @@ -53,22 +53,22 @@ $userId = 512;
$secret = "FKrO76r5VwJtBrqZawBspljbBNOxp5veKQQkOnZxucQ=";

// Setup API client
$client = new \Wallee\Sdk\ApiClient($userId, $secret);
$client = new \PostFinanceCheckout\Sdk\ApiClient($userId, $secret);

// Create API service instance
$transactionService = new \Wallee\Sdk\Service\TransactionService($client);
$transactionService = new \PostFinanceCheckout\Sdk\Service\TransactionService($client);

// Create transaction
$lineItem = new \Wallee\Sdk\Model\LineItemCreate();
$lineItem = new \PostFinanceCheckout\Sdk\Model\LineItemCreate();
$lineItem->setName('Red T-Shirt');
$lineItem->setUniqueId('5412');
$lineItem->setSku('red-t-shirt-123');
$lineItem->setQuantity(1);
$lineItem->setAmountIncludingTax(29.95);
$lineItem->setType(\Wallee\Sdk\Model\LineItemType::PRODUCT);
$lineItem->setType(\PostFinanceCheckout\Sdk\Model\LineItemType::PRODUCT);


$transaction = new \Wallee\Sdk\Model\TransactionCreate();
$transaction = new \PostFinanceCheckout\Sdk\Model\TransactionCreate();
$transaction->setCurrency("EUR");
$transaction->setLineItems(array($lineItem));
$transaction->setAutoConfirmationEnabled(true);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php
/**
* wallee SDK
* PostFinance Checkout SDK
*
* This library allows to interact with the wallee payment service.
* wallee SDK: 1.0.0
* This library allows to interact with the PostFinance Checkout payment service.
* PostFinance Checkout SDK: 1.0.0
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -23,17 +23,17 @@
* Autoload function.
*
* After registering this autoload function with SPL, the following line
* would cause the function to attempt to load the \Wallee\Sdk\Baz\Qux class
* would cause the function to attempt to load the \PostFinanceCheckout\Sdk\Baz\Qux class
* from /path/to/project/lib/Baz/Qux.php:
*
* new \Wallee\Sdk\Baz\Qux;
* new \PostFinanceCheckout\Sdk\Baz\Qux;
*
* @param string $class the fully-qualified class name.
*/
spl_autoload_register(function ($class) {

// project-specific namespace prefix
$prefix = 'Wallee\\Sdk\\';
$prefix = 'PostFinanceCheckout\\Sdk\\';

// base directory for the namespace prefix
$baseDir = __DIR__ . '/lib/';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "wallee/sdk",
"description": "wallee SDK for PHP",
"name": "postfinancecheckout/sdk",
"description": "PostFinance Checkout SDK for PHP",
"keywords": [
"wallee",
"postfinancecheckout",
"payment",
"php",
"sdk",
"api"
],
"homepage": "https://www.wallee.com",
"homepage": "https://www.postfinance.ch",
"license": "Apache-2.0",
"authors": [
{
Expand All @@ -25,9 +25,9 @@
"phpunit/phpunit": "~4.8"
},
"autoload": {
"psr-4": { "Wallee\\Sdk\\" : "lib/" }
"psr-4": { "PostFinanceCheckout\\Sdk\\" : "lib/" }
},
"autoload-dev": {
"psr-4": { "Wallee\\Sdk\\" : "test/" }
"psr-4": { "PostFinanceCheckout\\Sdk\\" : "test/" }
}
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php
/**
* wallee SDK
* PostFinance Checkout SDK
*
* This library allows to interact with the wallee payment service.
* wallee SDK: 1.0.0
* This library allows to interact with the PostFinance Checkout payment service.
* PostFinance Checkout SDK: 1.0.0
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -19,18 +19,18 @@
* limitations under the License.
*/

namespace Wallee\Sdk;
namespace PostFinanceCheckout\Sdk;

use Wallee\Sdk\ApiException;
use Wallee\Sdk\VersioningException;
use Wallee\Sdk\Http\HttpRequest;
use Wallee\Sdk\Http\HttpClientFactory;
use PostFinanceCheckout\Sdk\ApiException;
use PostFinanceCheckout\Sdk\VersioningException;
use PostFinanceCheckout\Sdk\Http\HttpRequest;
use PostFinanceCheckout\Sdk\Http\HttpClientFactory;

/**
* This class sends API calls to the endpoint.
*
* @category Class
* @package Wallee\Sdk
* @package PostFinanceCheckout\Sdk
* @author customweb GmbH
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License v2
*/
Expand All @@ -41,7 +41,7 @@ final class ApiClient {
*
* @var string
*/
private $basePath = 'https://app-wallee.com:443/api';
private $basePath = 'https://www.postfinance-checkout.ch:443/api';

/**
* An array of headers that are added to every request.
Expand Down Expand Up @@ -246,7 +246,7 @@ public function setConnectionTimeout($connectionTimeout) {
* Return the http client type to use for communication.
*
* @return string
* @see \Wallee\Sdk\Http\HttpClientFactory
* @see \PostFinanceCheckout\Sdk\Http\HttpClientFactory
*/
public function getHttpClientType() {
return $this->httpClientType;
Expand All @@ -258,7 +258,7 @@ public function getHttpClientType() {
*
* @param string $httpClientType the http client type
* @return ApiClient
* @see \Wallee\Sdk\Http\HttpClientFactory
* @see \PostFinanceCheckout\Sdk\Http\HttpClientFactory
*/
public function setHttpClientType($httpClientType) {
$this->httpClientType = $httpClientType;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php
/**
* wallee SDK
* PostFinance Checkout SDK
*
* This library allows to interact with the wallee payment service.
* wallee SDK: 1.0.0
* This library allows to interact with the PostFinance Checkout payment service.
* PostFinance Checkout SDK: 1.0.0
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -19,15 +19,15 @@
* limitations under the License.
*/

namespace Wallee\Sdk;
namespace PostFinanceCheckout\Sdk;

use Exception;

/**
* This exception is used to inform about problems during an API call.
*
* @category Class
* @package Wallee\Sdk
* @package PostFinanceCheckout\Sdk
* @author customweb GmbH
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License v2
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php
/**
* wallee SDK
* PostFinance Checkout SDK
*
* This library allows to interact with the wallee payment service.
* wallee SDK: 1.0.0
* This library allows to interact with the PostFinance Checkout payment service.
* PostFinance Checkout SDK: 1.0.0
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -19,13 +19,13 @@
* limitations under the License.
*/

namespace Wallee\Sdk;
namespace PostFinanceCheckout\Sdk;

/**
* This class holds the response data of an API call.
*
* @category Class
* @package Wallee\Sdk
* @package PostFinanceCheckout\Sdk
* @author customweb GmbH
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License v2
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php
/**
* wallee SDK
* PostFinance Checkout SDK
*
* This library allows to interact with the wallee payment service.
* wallee SDK: 1.0.0
* This library allows to interact with the PostFinance Checkout payment service.
* PostFinance Checkout SDK: 1.0.0
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -19,15 +19,15 @@
* limitations under the License.
*/

namespace Wallee\Sdk\Http;
namespace PostFinanceCheckout\Sdk\Http;

use Exception;

/**
* This exception is used to inform about connection problems during an HTTP request.
*
* @category Class
* @package Wallee\Sdk\Http
* @package PostFinanceCheckout\Sdk\Http
* @author customweb GmbH
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License v2
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php
/**
* wallee SDK
* PostFinance Checkout SDK
*
* This library allows to interact with the wallee payment service.
* wallee SDK: 1.0.0
* This library allows to interact with the PostFinance Checkout payment service.
* PostFinance Checkout SDK: 1.0.0
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -19,16 +19,16 @@
* limitations under the License.
*/

namespace Wallee\Sdk\Http;
namespace PostFinanceCheckout\Sdk\Http;

use Wallee\Sdk\Http\ConnectionException;
use Wallee\Sdk\ApiClient;
use PostFinanceCheckout\Sdk\Http\ConnectionException;
use PostFinanceCheckout\Sdk\ApiClient;

/**
* This class sends API calls via cURL.
*
* @category Class
* @package Wallee\Sdk\Http
* @package PostFinanceCheckout\Sdk\Http
* @author customweb GmbH
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License v2
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php
/**
* wallee SDK
* PostFinance Checkout SDK
*
* This library allows to interact with the wallee payment service.
* wallee SDK: 1.0.0
* This library allows to interact with the PostFinance Checkout payment service.
* PostFinance Checkout SDK: 1.0.0
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -19,13 +19,13 @@
* limitations under the License.
*/

namespace Wallee\Sdk\Http;
namespace PostFinanceCheckout\Sdk\Http;

/**
* This class provides an HTTP client instance that is supported by the environment.
*
* @category Class
* @package Wallee\Sdk\Http
* @package PostFinanceCheckout\Sdk\Http
* @author customweb GmbH
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License v2
*/
Expand Down
Loading

0 comments on commit eb6395a

Please sign in to comment.