Merge pull request #51 from pwhelan/patch-1

Show icon when choosing payment method.
This commit is contained in:
serhack 2018-03-23 07:09:23 +01:00 committed by GitHub
commit 91d3f12f46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,6 +73,11 @@ class Monero_Gateway extends WC_Payment_Gateway
$this->monero_daemon = new Monero_Library($this->host, $this->port); $this->monero_daemon = new Monero_Library($this->host, $this->port);
} }
public function get_icon()
{
return apply_filters('woocommerce_gateway_icon', "<img src='http://cdn.monerointegrations.com/logomonero.png' />");
}
public function init_form_fields() public function init_form_fields()
{ {
$this->form_fields = array( $this->form_fields = array(