Skip to content

Commit

Permalink
remove payment_scripts, ref #395
Browse files Browse the repository at this point in the history
  • Loading branch information
kcppdevelopers committed Jan 20, 2016
1 parent d560d72 commit d722560
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions classes/wc-gateway-paypal-pro-payflow-angelleye.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@ function __construct() {
'refunds'
);

add_action( 'wp_enqueue_scripts', array( $this, 'payment_scripts' ) );

/* 1.6.6 */
add_action( 'woocommerce_update_options_payment_gateways', array( $this, 'process_admin_options' ) );

Expand All @@ -77,19 +75,7 @@ function add_log( $message ) {
$this->log = new WC_Logger();
$this->log->add( 'paypal_payflow', $message );
}
/**
* payment_scripts function.
*
* @access public
*/
function payment_scripts() {

if ( ! is_checkout() )
return;

wp_enqueue_style( 'wc-paypal-pro', plugins_url( 'assets/css/checkout.css', dirname( __FILE__ ) ) );
wp_enqueue_script( 'card-type-detection', plugins_url( 'assets/js/card-type-detection.min.js', dirname( __FILE__ ) ), 'jquery', '1.0.0', true );
}

/**
* Initialise Gateway Settings Form Fields
*/
Expand Down

0 comments on commit d722560

Please sign in to comment.