Skip to content

Commit

Permalink
Add authorize.net solution id
Browse files Browse the repository at this point in the history
  • Loading branch information
hillelcoren committed Oct 4, 2017
1 parent b3457e9 commit abeea7b
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 12 deletions.
8 changes: 8 additions & 0 deletions app/Ninja/PaymentDrivers/AuthorizeNetAIMPaymentDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,12 @@
class AuthorizeNetAIMPaymentDriver extends BasePaymentDriver
{
protected $transactionReferenceParam = 'refId';

protected function paymentDetails($paymentMethod = false)
{
$data = parent::paymentDetails();
$data['solutionId'] = $this->accountGateway->getConfigField('testMode') ? 'AAA100303' : 'AAA172036';

return $data;
}
}
7 changes: 6 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@
"websight/l5-google-cloud-storage": "dev-master",
"wepay/php-sdk": "^0.2",
"wildbit/laravel-postmark-provider": "3.0",
"abdala/omnipay-pagseguro": "0.2"
"abdala/omnipay-pagseguro": "0.2",
"omnipay/authorizenet": "dev-solution-id as 2.5.0"
},
"require-dev": {
"codeception/c3": "~2.0",
Expand Down Expand Up @@ -167,6 +168,10 @@
{
"type": "vcs",
"url": "https://github.com/hillelcoren/omnipay-gocardlessv2"
},
{
"type": "vcs",
"url": "https://github.com/hillelcoren/omnipay-authorizenet"
}
]
}
32 changes: 21 additions & 11 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit abeea7b

Please sign in to comment.