Skip to content

Commit

Permalink
bug/SHPWR-330-net-prices-sent-in-backend
Browse files Browse the repository at this point in the history
  • Loading branch information
rpWhittington committed Aug 9, 2018
1 parent 3ac0ed6 commit 561c2f6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public function update($version)
new \RpayRatePay\Bootstrapping\DatabaseSetup($this),
new \RpayRatePay\Bootstrapping\TranslationsSetup($this),
new \RpayRatePay\Bootstrapping\PaymentsSetup($this),
// new \RpayRatePay\Bootstrapping\ShopConfigSetup($this),
new \RpayRatePay\Bootstrapping\ShopConfigSetup($this),
new \RpayRatePay\Bootstrapping\CronjobSetup($this),
new \RpayRatePay\Bootstrapping\AdditionalOrderAttributeSetup($this),
];
Expand Down
4 changes: 3 additions & 1 deletion Bootstrapping/Events/BackendOrderControllerSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
*/
namespace RpayRatePay\Bootstrapping\Events;

use RatePAY\Service\Util;
use RpayRatePay\Component\Mapper\PaymentRequestData;
use RpayRatePay\Component\Service\PaymentProcessor;

Expand Down Expand Up @@ -77,7 +78,8 @@ public function beforeCreateOrderAction(\Enlight_Hook_HookArgs $hookArgs)

$paymentRequestData = $this->orderStructToPaymentRequestData($orderStruct, $paymentType, $customer);

$paymentRequester = new \Shopware_Plugins_Frontend_RpayRatePay_Component_Mapper_ModelFactory(null, true);
$netItemPrices = \Shopware_Plugins_Frontend_RpayRatePay_Component_Service_Util::customerCreatesNetOrders($customer);
$paymentRequester = new \Shopware_Plugins_Frontend_RpayRatePay_Component_Mapper_ModelFactory(null, true, $netItemPrices);

$answer = $paymentRequester->callPaymentRequest($paymentRequestData);

Expand Down

0 comments on commit 561c2f6

Please sign in to comment.