-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from thephpleague/master
update from source
- Loading branch information
Showing
47 changed files
with
1,383 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# CiviCRM editor configuration normalization | ||
# @see http://editorconfig.org/ | ||
|
||
# This is the top-most .editorconfig file; do not search in parent directories. | ||
root = true | ||
|
||
# All files. | ||
[*] | ||
end_of_line = LF | ||
indent_style = space | ||
indent_size = 4 | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,31 @@ | ||
language: php | ||
|
||
php: | ||
- 5.3 | ||
- 5.4 | ||
- 5.5 | ||
- 5.6 | ||
- 7.0 | ||
- hhvm | ||
- 7.1 | ||
- 7.2 | ||
|
||
# This triggers builds to run on the new TravisCI infrastructure. | ||
# See: http://docs.travis-ci.com/user/workers/container-based-infrastructure/ | ||
sudo: false | ||
|
||
## Cache composer | ||
cache: | ||
directories: | ||
- $HOME/.composer/cache | ||
|
||
env: | ||
global: | ||
- setup=basic | ||
|
||
matrix: | ||
allow_failures: | ||
- php: hhvm | ||
include: | ||
- php: 5.6 | ||
env: setup=lowest | ||
|
||
before_script: | ||
- composer install -n --dev --prefer-source | ||
install: | ||
- if [[ $setup = 'basic' ]]; then travis_retry composer install --prefer-dist --no-interaction; fi | ||
- if [[ $setup = 'lowest' ]]; then travis_retry composer update --prefer-dist --no-interaction --prefer-lowest --prefer-stable; fi | ||
|
||
script: vendor/bin/phpcs --standard=PSR2 src && vendor/bin/phpunit --coverage-text |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
parameters: | ||
git_dir: . | ||
bin_dir: vendor/bin | ||
tasks: | ||
phpunit: | ||
config_file: ~ | ||
testsuite: ~ | ||
group: [] | ||
always_execute: false | ||
phpcs: | ||
standard: PSR2 | ||
warning_severity: ~ | ||
ignore_patterns: | ||
- tests/ | ||
triggered_by: [php] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
namespace Omnipay\AuthorizeNet\Message; | ||
|
||
use Omnipay\Common\CreditCard; | ||
|
||
/** | ||
* Authorize.Net AIM Capture Only Request | ||
*/ | ||
class AIMCaptureOnlyRequest extends AIMAuthorizeRequest | ||
{ | ||
protected $action = 'captureOnlyTransaction'; | ||
|
||
public function getData() | ||
{ | ||
$this->validate('amount'); | ||
$data = $this->getBaseData(); | ||
$data->transactionRequest->amount = $this->getAmount(); | ||
$this->addPayment($data); | ||
$data->transactionRequest->authCode = $this->getAuthCode(); | ||
$this->addSolutionId($data); | ||
$this->addBillingData($data); | ||
$this->addCustomerIP($data); | ||
$this->addTransactionSettings($data); | ||
|
||
return $data; | ||
} | ||
} |
Oops, something went wrong.