File manager - Edit - /home/opticamezl/www/newok/sagepay.zip
Back
PK ���\�W� � .travis.ymlnu &1i� language: php php: - 5.3 - 5.4 - 5.5 - 5.6 - hhvm before_script: - composer install -n --dev --prefer-source script: vendor/bin/phpcs --standard=PSR2 src && vendor/bin/phpunit --coverage-text PK ���\�� CONTRIBUTING.mdnu &1i� # Contributing Guidelines * Fork the project. * Make your feature addition or bug fix. * Add tests for it. This is important so I don't break it in a future version unintentionally. * Commit just the modifications, do not mess with the composer.json or CHANGELOG.md files. * Ensure your code is nicely formatted in the [PSR-2](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md) style and that all tests pass. * Send the pull request. * Check that the Travis CI build passed. If not, rinse and repeat. PK ���\mV�{J J phpunit.xml.distnu &1i� <?xml version="1.0" encoding="UTF-8"?> <phpunit backupGlobals="false" backupStaticAttributes="false" bootstrap="vendor/autoload.php" colors="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" processIsolation="false" stopOnFailure="false" syntaxCheck="false"> <testsuites> <testsuite name="Omnipay Test Suite"> <directory>./tests/</directory> </testsuite> </testsuites> <listeners> <listener class="Mockery\Adapter\Phpunit\TestListener" file="vendor/mockery/mockery/library/Mockery/Adapter/Phpunit/TestListener.php" /> </listeners> <filter> <whitelist> <directory>./src</directory> </whitelist> </filter> </phpunit> PK ���\���[j j README.mdnu &1i� # Omnipay: Sage Pay **Sage Pay driver for the Omnipay PHP payment processing library** [](https://travis-ci.org/thephpleague/omnipay-sagepay) [](https://packagist.org/packages/omnipay/sagepay) [](https://packagist.org/packages/omnipay/sagepay) [Omnipay](https://github.com/thephpleague/omnipay) is a framework agnostic, multi-gateway payment processing library for PHP 5.3+. This package implements Sage Pay support for Omnipay. ## Installation Omnipay is installed via [Composer](http://getcomposer.org/). To install, simply add it to your `composer.json` file: ```json { "require": { "omnipay/sagepay": "~2.0" } } ``` And run composer to update your dependencies: $ curl -s http://getcomposer.org/installer | php $ php composer.phar update ## Basic Usage The following gateways are provided by this package: * SagePay_Direct * SagePay_Server For general usage instructions, please see the main [Omnipay](https://github.com/thephpleague/omnipay) repository. ## Support If you are having general issues with Omnipay, we suggest posting on [Stack Overflow](http://stackoverflow.com/). Be sure to add the [omnipay tag](http://stackoverflow.com/questions/tagged/omnipay) so it can be easily found. If you want to keep up to date with release anouncements, discuss ideas for the project, or ask more detailed questions, there is also a [mailing list](https://groups.google.com/forum/#!forum/omnipay) which you can subscribe to. If you believe you have found a bug, please report it using the [GitHub issue tracker](https://github.com/thephpleague/omnipay-sagepay/issues), or better yet, fork the library and submit a pull request. PK ���\�|��O O src/DirectGateway.phpnu &1i� <?php namespace Omnipay\SagePay; use Omnipay\Common\AbstractGateway; /** * Sage Pay Direct Gateway */ class DirectGateway extends AbstractGateway { // Gateway identification. public function getName() { return 'Sage Pay Direct'; } public function getDefaultParameters() { return array( 'vendor' => '', 'testMode' => false, 'referrerId' => '', ); } // Vendor identification. public function getVendor() { return $this->getParameter('vendor'); } public function setVendor($value) { return $this->setParameter('vendor', $value); } // Access to the HTTP client for debugging. // NOTE: this is likely to be removed or replaced with something // more appropriate. public function getHttpClient() { return $this->httpClient; } // Available services. public function getReferrerId() { return $this->getParameter('referrerId'); } public function setReferrerId($value) { return $this->setParameter('referrerId', $value); } public function authorize(array $parameters = array()) { return $this->createRequest('\Omnipay\SagePay\Message\DirectAuthorizeRequest', $parameters); } public function completeAuthorize(array $parameters = array()) { return $this->createRequest('\Omnipay\SagePay\Message\DirectCompleteAuthorizeRequest', $parameters); } public function capture(array $parameters = array()) { return $this->createRequest('\Omnipay\SagePay\Message\CaptureRequest', $parameters); } public function purchase(array $parameters = array()) { return $this->createRequest('\Omnipay\SagePay\Message\DirectPurchaseRequest', $parameters); } public function completePurchase(array $parameters = array()) { return $this->completeAuthorize($parameters); } public function refund(array $parameters = array()) { return $this->createRequest('\Omnipay\SagePay\Message\RefundRequest', $parameters); } } PK ���\'��: : &