Skip to content

Commit

Permalink
v1.1.3 Removed deprecated methods
Browse files Browse the repository at this point in the history
  • Loading branch information
PayXpert Integration committed Jul 14, 2020
1 parent 83df6b8 commit 476519b
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 deletions.
13 changes: 7 additions & 6 deletions Model/ConfigGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

use Payxpert\Connect2Pay\Model\Payment\Payxpert;
use Magento\Checkout\Model\ConfigProviderInterface;
use Magento\Store\Model\ScopeInterface;

class ConfigGateway implements ConfigProviderInterface
{
Expand Down Expand Up @@ -49,12 +50,12 @@ public function __construct(
*/
public function getConfig()
{
$active = $this->_config->getValue('payment/payxpert/active');
$originatorId = $this->_config->getValue('payment/payxpert/originator');
$password = $this->_config->getValue('payment/payxpert/password');
$url = $this->_config->getValue('payment/payxpert/url');
$apiUrl = $this->_config->getValue('payment/payxpert/api_url');
$iframe = $this->_config->getValue('payment/payxpert/iframe');
$active = $this->_config->getValue('payment/payxpert/active', ScopeInterface::SCOPE_STORE);
$originatorId = $this->_config->getValue('payment/payxpert/originator', ScopeInterface::SCOPE_STORE);
$password = $this->_config->getValue('payment/payxpert/password', ScopeInterface::SCOPE_STORE);
$url = $this->_config->getValue('payment/payxpert/url', ScopeInterface::SCOPE_STORE);
$apiUrl = $this->_config->getValue('payment/payxpert/api_url', ScopeInterface::SCOPE_STORE);
$iframe = $this->_config->getValue('payment/payxpert/iframe', ScopeInterface::SCOPE_STORE);

if (!$active) {
return [];
Expand Down
6 changes: 3 additions & 3 deletions Model/Payment/Payxpert.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,10 @@ public function startTransaction(\Magento\Sales\Model\Order $order)

$c2pClient->setOrderID( $order->getId() );
// $c2pClient->setCustomerIP( $fields['customerIP'] );
$c2pClient->setPaymentType( Connect2PayClient::_PAYMENT_TYPE_CREDITCARD );
$c2pClient->setPaymentMode( Connect2PayClient::_PAYMENT_MODE_SINGLE );
$c2pClient->setPaymentMethod( Connect2PayClient::PAYMENT_TYPE_CREDITCARD );
$c2pClient->setPaymentMode( Connect2PayClient::PAYMENT_MODE_SINGLE );
$c2pClient->setShopperID( $order->getCustomerID() );
$c2pClient->setShippingType( Connect2PayClient::_SHIPPING_TYPE_VIRTUAL );
$c2pClient->setShippingType( Connect2PayClient::SHIPPING_TYPE_VIRTUAL );
$c2pClient->setAmount( $order->getGrandTotal() * 100 );
$c2pClient->setOrderDescription( "Order #" . $order->getId() );
$c2pClient->setCurrency( $order->getOrderCurrency()->getCurrencyCode() );
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ The author of this plugin can NEVER be held responsible for this software.
There is no warranty what so ever. You accept this by using this software.

## Changelog
* 1.1.2 - Removed PHP verison requirement
* 1.1.3 - Removed deprecated methods
* 1.1.2 - Removed PHP version requirement
* 1.1.1 - PSR-4
* 1.1.0 - Iframe support
* 1.0.1 - Fixed callback response
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"payxpert/connect2pay": "*"
},
"type": "magento2-module",
"version": "1.1.2",
"version": "1.1.3",
"license": [
"Apache-2.0"
],
Expand Down

0 comments on commit 476519b

Please sign in to comment.