Skip to content

Commit

Permalink
Merge pull request #4 from wirecard/orderReferenceAlphaNumeric
Browse files Browse the repository at this point in the history
#3 trim the ordereference and enable chars as input
  • Loading branch information
rinnhofer authored Apr 6, 2017
2 parents ae1ca1d + e49ca57 commit 39e09d0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Helper/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
class Data extends \Magento\Framework\App\Helper\AbstractHelper
{

protected $_pluginVersion = '1.0.1';
protected $_pluginVersion = '1.0.2';
protected $_pluginName = 'Wirecard/CheckoutSeamless';

/**
Expand Down
2 changes: 1 addition & 1 deletion Model/AbstractPayment.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ public function initPaymentByCart(CheckoutCart $cart, $urls, \Magento\Framework\
$quote->save();

$orderId = $quote->getReservedOrderId();
$init->setOrderReference(sprintf('%010d', $orderId));
$init->setOrderReference(sprintf('%010s', substr($orderId, -10)));

$returnUrl = $urls['return'];
$returnUrl .= strpos($urls['return'], '?') ? '&' : '?';
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "wirecard/magento2-wcs",
"description": "Wirecard Checkout Seamless",
"type": "magento2-module",
"version": "1.0.1",
"version": "1.0.2",
"license": [
"MIT"
],
Expand Down

0 comments on commit 39e09d0

Please sign in to comment.