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
<?php | |
add_action('after_setup_theme', 'mwp_fake_gateway_init', 0); | |
function mwp_fake_gateway_init() { | |
if ( !class_exists( 'WC_Payment_Gateway' ) ) return; | |
class WC_MWP_FAKE extends WC_Payment_Gateway { | |
public function __construct(){ | |
$this->author = 'Mojtab Darvishi'; | |
$this->id = 'mwp_fake'; | |
$this->method_title = __('Fake Gateway', 'woocommerce'); | |
$this->method_description = __( 'Woocommerce Fake Gateway or Test Payments', 'woocommerce'); |
NewerOlder