Skip to content

Commit

Permalink
REST - Seems to have a reference to Braintree in it, ref #591
Browse files Browse the repository at this point in the history
  • Loading branch information
kcppdevelopers committed Nov 16, 2016
1 parent 0be137a commit 34fb372
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
5 changes: 5 additions & 0 deletions angelleye-includes/angelleye-utility.php
Original file line number Diff line number Diff line change
Expand Up @@ -670,6 +670,11 @@ public static function angelleye_paypal_credit_card_rest_setting_fields() {
'default' => 'WC-PCCR',
'desc_tip' => true,
),
'card_icon' => array(
'title' => __( 'Card Icon', 'paypal-for-woocommerce' ),
'type' => 'text',
'default' => WP_PLUGIN_URL . "/" . plugin_basename( dirname( dirname( __FILE__ ) ) ) . '/assets/images/cards.png'
),
'debug' => array(
'title' => __('Debug Log', 'paypal-for-woocommerce'),
'type' => 'checkbox',
Expand Down
9 changes: 8 additions & 1 deletion classes/wc-gateway-paypal-credit-cards-rest-angelleye.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ class WC_Gateway_PayPal_Credit_Card_Rest_AngellEYE extends WC_Payment_Gateway_CC
public $customer_id;
function __construct() {
$this->id = 'paypal_credit_card_rest';
$this->icon = apply_filters('woocommerce_paypal_credit_card_rest_icon', plugins_url('/assets/images/cards.png', plugin_basename(dirname(__FILE__))));
$this->has_fields = true;
$this->method_title = 'PayPal Credit Card (REST)';
$this->woocommerce_paypal_supported_currencies = array( 'AUD', 'BRL', 'CAD', 'MXN', 'NZD', 'HKD', 'SGD', 'USD', 'EUR', 'JPY', 'NOK', 'CZK', 'DKK', 'HUF', 'ILS', 'MYR', 'PHP', 'PLN', 'SEK', 'CHF', 'TWD', 'THB', 'GBP' );
Expand All @@ -25,6 +24,14 @@ function __construct() {
);
$this->init_form_fields();
$this->init_settings();
$card_icon = $this->get_option('card_icon', 'no');
if($card_icon == 'no') {
$card_icon = WP_PLUGIN_URL . "/" . plugin_basename( dirname( dirname( __FILE__ ) ) ) . '/assets/images/cards.png';
}
$this->icon = apply_filters('woocommerce_paypal_credit_card_rest_icon', $card_icon);
if (is_ssl()) {
$this->icon = preg_replace("/^http:/i", "https:", $this->icon);
}
$this->enable_tokenized_payments = $this->get_option('enable_tokenized_payments', 'no');
if($this->enable_tokenized_payments == 'yes') {
array_push($this->supports, "tokenization");
Expand Down

0 comments on commit 34fb372

Please sign in to comment.