Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notice Display Two Times, PFW-332 #1259

Merged
merged 1 commit into from Dec 26, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion classes/wc-gateway-paypal-pro-payflow-angelleye.php
Expand Up @@ -121,7 +121,6 @@ function __construct() {
$this->fraud_error_codes = array('125', '128', '131');
$this->fraud_warning_codes = array('126', '127');
do_action( 'angelleye_paypal_for_woocommerce_multi_account_api_' . $this->id, $this, null, null );
add_action('admin_notices', array($this, 'angelleye_paypal_pro_payflow_reference_transaction_notice'));

}

Expand Down Expand Up @@ -417,6 +416,7 @@ function init_form_fields() {
public function admin_options() {
echo '<h2>' . esc_html( $this->get_method_title() ) . '</h2>';
echo wp_kses_post( wpautop( $this->get_method_description() ) );
echo $this->angelleye_paypal_pro_payflow_reference_transaction_notice();
?>
<table class="form-table">
<?php
Expand All @@ -437,6 +437,7 @@ public function admin_options() {
} else {
$this->generate_settings_html();
}

?>
</table>
<script type="text/javascript">
Expand Down