Skip to content

Commit

Permalink
Fix bug with live keys
Browse files Browse the repository at this point in the history
  • Loading branch information
Kendysond committed Apr 12, 2017
1 parent f2b4b88 commit d732448
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion paystack/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<module>
<name>paystack</name>
<displayName><![CDATA[Paystack]]></displayName>
<version><![CDATA[1.0.0]]></version>
<version><![CDATA[1.0.2]]></version>
<description><![CDATA[Accept payments for your products via Paystack. Compatible with Prestashop 1.7 and higher]]></description>
<author><![CDATA[Douglas Kendyson]]></author>
<tab><![CDATA[payments_gateways]]></tab>
Expand Down
5 changes: 4 additions & 1 deletion paystack/paystack.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function __construct()
{
$this->name = 'paystack';
$this->tab = 'payments_gateways';
$this->version = '1.0.0';
$this->version = '1.0.2';
$this->ps_versions_compliancy = array('min' => '1.7', 'max' => _PS_VERSION_);
$this->author = 'Douglas Kendyson';
$this->controllers = array('payment', 'validation');
Expand Down Expand Up @@ -193,6 +193,9 @@ public function hookPaymentOptions($params)
$config = $this->getConfigFieldsValues();
if ($config['PAYSTACK_MODE'] == 1) {
$key = $config['PAYSTACK_TEST_PUBLICKEY'];
}else{
$key = $config['PAYSTACK_LIVE_PUBLICKEY'];

}

if($key == ''){
Expand Down

0 comments on commit d732448

Please sign in to comment.