Plugin Directory

Changeset 1803277


Ignore:
Timestamp:
01/15/2018 02:27:08 PM (8 years ago)
Author:
nickvdberg
Message:

fix error

Location:
woo-ea
Files:
7 added
2 edited

Legend:

Unmodified
Added
Removed
  • woo-ea/tags/1.0.5/earnbox-for-woocommerce.php

    r1769669 r1803277  
    22/**
    33 * Plugin Name: EarnBox for WooCommerce
    4  * Plugin URI: https://john.local:4444
     4 * Plugin URI: https://earnbox.co
    55 * Description: Unleash the power of cashbacks.
    66 * Author: EarnBox
     
    236236        $shopName = rawurlencode(get_bloginfo( 'name' ));
    237237        $adminEmail = sanitize_email(get_option('admin_email'));
    238         $url = "https://john.local:4444/push-invite/-/$shopURL/-/$shopName/$adminEmail/-/?lang=" . get_locale();
     238        $url = "https://earnbox.co/push-invite/-/$shopURL/-/$shopName/$adminEmail/-/?lang=" . get_locale();
    239239
    240240        $response = wp_remote_post( $url, array(
     
    304304                    'title'       => __( 'API Key', 'wc-earnbox-gateway' ),
    305305                    'type'        => 'text',
    306                     'description' => __( 'Your API key from john.local:4444.', 'wc-earnbox-gateway' ),
     306                    'description' => __( 'Your API key from earnbox.co.', 'wc-earnbox-gateway' ),
    307307                    'default'     => __( '', 'wc-earnbox-gateway' ),
    308308                    'desc_tip'    => true,
     
    312312                    'title'       => __( 'Secret Key', 'wc-earnbox-gateway' ),
    313313                    'type'        => 'text',
    314                     'description' => __( 'Your Secret key from john.local:4444.', 'wc-earnbox-gateway' ),
     314                    'description' => __( 'Your Secret key from earnbox.co.', 'wc-earnbox-gateway' ),
    315315                    'default'     => __( '', 'wc-earnbox-gateway' ),
    316316                    'desc_tip'    => true,
     
    377377            if ( !$password ) throw new Exception( __( 'Please enter a password', 'wc-earnbox-gateway' ) );
    378378            if (!is_email( $email )) throw new Exception( __( 'Please enter a valid email address', 'wc-earnbox-gateway' ) );
    379       $url = esc_url_raw( "https://john.local:4444/pay/{$amount}/{$api}/{$email}/{$password}/{$location}" );
     379      $url = esc_url_raw( "https://earnbox.co/pay/{$amount}/{$api}/{$email}/{$password}/{$location}" );
    380380
    381381            $response = wp_remote_post( $url, array(
     
    533533    $tmp = $coupon->get_email_restrictions();
    534534    $customer_email = array_shift($tmp);
    535     $url = esc_url_raw( "https://john.local:4444/refund/{$secret}/{$coupon_amount}/{$customer_email}" );
     535    $url = esc_url_raw( "https://earnbox.co/refund/{$secret}/{$coupon_amount}/{$customer_email}" );
    536536
    537537    $response = wp_remote_post( $url, array(
     
    572572        $secret = $earnboxSettings['secret'];
    573573        $amount = $order->get_total();
    574         $url = esc_url_raw( "https://john.local:4444/reward/{$secret}/{$amount}/url" );
     574        $url = esc_url_raw( "https://earnbox.co/reward/{$secret}/{$amount}/url" );
    575575
    576576        $cashbackURL = wp_remote_post( $url, array(
  • woo-ea/trunk/readme.txt

    r1769604 r1803277  
    33Requires at least: 3.8.0
    44Tested up to: 4.9.0
    5 Stable tag: 1.0.5
     5Stable tag: 1.0.6
    66Requires PHP: 5.3
    77License: GPLv3
Note: See TracChangeset for help on using the changeset viewer.