-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
305 additions
and
237 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
class WC_Gateway_PayuPaypo extends WC_PayUGateways | ||
{ | ||
protected $paytype = 'dpp'; | ||
|
||
function __construct() | ||
{ | ||
parent::__construct('payupaypo'); | ||
|
||
if ($this->is_enabled()) { | ||
$this->show_terms_info = false; | ||
$this->icon = apply_filters('woocommerce_payu_icon', plugins_url( '/assets/images/paypo.svg', PAYU_PLUGIN_FILE )); | ||
|
||
if (!is_admin()) { | ||
if (!$this->try_retrieve_banks()) { | ||
add_filter('woocommerce_available_payment_gateways', [$this, 'unset_gateway']); | ||
} | ||
} | ||
} | ||
} | ||
|
||
public function payment_fields() | ||
{ | ||
parent::payment_fields(); | ||
$this->agreements_field(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
class WC_Gateway_PayuTwistoPl extends WC_PayUGateways | ||
{ | ||
protected $paytype = 'dpt'; | ||
|
||
function __construct() | ||
{ | ||
parent::__construct('payutwistopl'); | ||
|
||
if ($this->is_enabled()) { | ||
$this->show_terms_info = false; | ||
$this->icon = apply_filters('woocommerce_payu_icon', plugins_url( '/assets/images/twisto-pl.svg', PAYU_PLUGIN_FILE )); | ||
|
||
if (!is_admin()) { | ||
if (!$this->try_retrieve_banks()) { | ||
add_filter('woocommerce_available_payment_gateways', [$this, 'unset_gateway']); | ||
} | ||
} | ||
} | ||
} | ||
|
||
public function payment_fields() | ||
{ | ||
parent::payment_fields(); | ||
$this->agreements_field(); | ||
} | ||
} |
Oops, something went wrong.