Skip to content

Commit

Permalink
Enable credit card by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Quoc Dat Pham committed Jun 21, 2017
1 parent 4021066 commit 9ee805f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/lemonway/lemonway.php
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ public function addStatusSplitpayment(){
'fr'=> 'Paiement en plusieurs fois accepté'
);

return $this->addStatus(self::LEMONWAY_SPLIT_PAYMENT_OS,$translationsStatus,'#32CD32',false,false,true,true,true,false,true);
return $this->addStatus(self::LEMONWAY_SPLIT_PAYMENT_OS, $translationsStatus, '#32CD32', false, false, true, true, true, false, true);
}

/**
Expand Down Expand Up @@ -252,12 +252,14 @@ public function install()
//COMMON CREDIT CARD Configuration
foreach (self::$subMethods as $method){
Configuration::updateValue('LEMONWAY_' . strtoupper($method['code']) . '_ONECLIC_ENABLED', null);
Configuration::updateValue('LEMONWAY_' . strtoupper($method['code']) . '_ENABLED', null);
Configuration::updateValue('LEMONWAY_' . strtoupper($method['code']) . '_TITLE', $method['title']);
}

Configuration::updateValue('LEMONWAY_CC_ENABLED', 1);
Configuration::updateValue('LEMONWAY_CC_XTIMES_ENABLED', null);

//CREDIT CARD X TIMES (split)
Configuration::updateValue('LEMONWAY_CC_XTIMES_SPLITPAYMENTS',null);
Configuration::updateValue('LEMONWAY_CC_XTIMES_SPLITPAYMENTS', null);

//Prepare status values
$key = self::LEMONWAY_PENDING_OS;
Expand Down Expand Up @@ -1195,4 +1197,3 @@ public function isVersion17()
return (bool)version_compare(_PS_VERSION_ ,'1.7','>=');
}
}

0 comments on commit 9ee805f

Please sign in to comment.