Skip to content

Commit

Permalink
ready for coreshop 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
solverat committed Mar 26, 2019
1 parent 920a485 commit e83cce8
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 4 deletions.
40 changes: 40 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
######################
# Compiled source #
######################
*.com
*.class
*.dll
*.exe
*.o
*.so

######################
# Packages #
######################
# it's better to unpack these files and commit the raw source
# git has its own built in compression methods
*.7z
*.dmg
*.gz
*.iso
*.jar

######################
# Logs and databases #
######################
*.log

######################
# Global #
######################
.DS_*
._*
.idea
.cache/
.config/
ehthumbs.db
Thumbs.db
node_modules
.composer
.bash_history
.viminfo
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@
}
],
"require": {
"php": "^7.0",
"dachcom-digital/payum-saferpay": "~1.0.0"
"php": "^7.1",
"dachcom-digital/payum-saferpay": "~1.0.0",
"coreshop/core-shop": "~2.0.0"
},
"config": {
"bin-dir": "bin"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

use CoreShop\Component\Order\Model\OrderInterface;
use CoreShop\Component\Order\Repository\OrderRepositoryInterface;
use CoreShop\Component\Payment\Model\PaymentInterface;
use CoreShop\Component\Core\Model\PaymentInterface;
use Payum\Core\Bridge\Spl\ArrayObject;
use Payum\Core\Extension\Context;
use Payum\Core\Extension\ExtensionInterface;
Expand Down Expand Up @@ -60,7 +60,7 @@ public function onPostExecute(Context $context)
}

/** @var OrderInterface $order */
$order = $this->orderRepository->find($payment->getOrderId());
$order = $payment->getOrder();
$gatewayLanguage = 'en';

if (!empty($order->getLocaleCode())) {
Expand Down

0 comments on commit e83cce8

Please sign in to comment.