Skip to content

Commit

Permalink
fix 5.3.3 compatibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
akDeveloper committed May 14, 2016
1 parent 696a72d commit 1f76282
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 17 deletions.
11 changes: 2 additions & 9 deletions composer.json
@@ -1,7 +1,7 @@
{
"name": "aktive_merchant/aktive_merchant",
"description": "Aktive-Merchant provides a common interface to process payments using multiple gateways.",
"keywords": ["payments", "merchant", "gateway"],
"keywords": ["payments", "creditcard", "merchant", "gateway", "stripe", "authorize-net", "paypal", "datacash", "bridgepay", "cardstream", "centinel", "eway", "exact", "fatzebra", "hsbc", "mercury", "modirum", "moneris", "pin", "psigate", "realex", "worldpay"],
"homepage": "https://github.com/akDeveloper/Aktive-Merchant",
"type": "library",
"license": "MIT",
Expand All @@ -12,18 +12,11 @@
}
],
"require": {
"php": ">=5.4",
"php": ">=5.3.3",
"ext-curl": "*",
"ext-simplexml": "*",
"thapp/xmlbuilder": "0.1.*",
"symfony/event-dispatcher": "~2.3,<3.0"
},
"repositories": [
{
"type": "vcs",
"url": "https://github.com/tomdmaguire/xmlbuilder"
}
],
"require-dev": {
"phpunit/phpunit": "4.8.*"
},
Expand Down
3 changes: 1 addition & 2 deletions lib/AktiveMerchant/Billing/Gateways/Eway.php
Expand Up @@ -156,7 +156,7 @@ public function capture($money, $authorization, $options = array())
"TotalAmount" => $this->amount($money)
);

$cc = new CreditCard([]);
$cc = new CreditCard(array());
$this->addCreditcard($cc);
#$this->addInvoice($options);
$this->addOptionalData();
Expand Down Expand Up @@ -417,7 +417,6 @@ private function postData($parameters = array())
$xml = new \SimpleXMLElement('<ewaygateway></ewaygateway>');

foreach ($this->post as $name => $value) {

$xml->addChild("eway$name", $value);
}

Expand Down
2 changes: 1 addition & 1 deletion lib/AktiveMerchant/Billing/Gateways/Iridium.php
Expand Up @@ -282,7 +282,7 @@ private function createXmlBuilder($action)
$this->xml->{'soap:Envelope'}(null, null, $this->SOAP_ATTRIBUTES);
$this->xml->{'soap:Body'}(null, 'soap:Envelope');

$this->xml->$call(null, 'soap:Body', [], 'https://www.thepaymentgateway.net/');
$this->xml->$call(null, 'soap:Body', array(), 'https://www.thepaymentgateway.net/');
$this->xml->PaymentMessage(null, $call);

$this->xml->MerchantAuthentication(
Expand Down
2 changes: 1 addition & 1 deletion lib/AktiveMerchant/Billing/Gateways/Stripe.php
Expand Up @@ -301,7 +301,7 @@ private function parse($body)
$body = json_decode($body, true);

if (empty($body)) {
$body = [];
$body = array();
}
return new Options($body);
}
Expand Down
5 changes: 2 additions & 3 deletions lib/AktiveMerchant/Billing/Gateways/Worldpay.php
Expand Up @@ -4,12 +4,11 @@

namespace AktiveMerchant\Billing\Gateways;

use AktiveMerchant\Common\Options;
use AktiveMerchant\Billing\Gateway;
use AktiveMerchant\Billing\CreditCard;
use AktiveMerchant\Billing\Response;
use AktiveMerchant\Common\XmlBuilder;
use AktiveMerchant\Billing\CreditCard;
use AktiveMerchant\Common\SimpleXmlBuilder;
use AktiveMerchant\Common\Options;

/**
* Integration of WorldPay gateway
Expand Down
1 change: 0 additions & 1 deletion tests/AktiveMerchant/TestCase.php
Expand Up @@ -6,7 +6,6 @@

class TestCase extends \PHPUnit_Framework_TestCase
{

public function getFixtures()
{
$ini = parse_ini_file(__DIR__ . "/../fixtures.ini", true);
Expand Down

0 comments on commit 1f76282

Please sign in to comment.