Plugin Directory

Changeset 2590661


Ignore:
Timestamp:
08/30/2021 03:50:10 AM (5 years ago)
Author:
infinitools
Message:

Version update

Location:
decentralized-bitcoin-cryptodec-payment-gateway-for-woocommerce
Files:
799 added
12 edited

Legend:

Unmodified
Added
Removed
  • decentralized-bitcoin-cryptodec-payment-gateway-for-woocommerce/trunk/README.txt

    r2590462 r2590661  
    11=== Decentralized Bitcoin CryptoDEC Payment Gateway for WooCommerce ===
    22Contributors: infinitools, ampae
    3 Donate link: https://www.blockchain.com/btc/address/145DqifJDedAiRBY9bSVwgR3uyMw7CgWUd
     3Donate link: https://www.blockchain.com/btc/address/bc1qnkzn2wrw7qkaa9kgnarv7fajpvdv02m7u5mt8e
    44Tags: cryptodec, bitcoin, bitcoin payment, crypto, cryptocurrency, woocommerce, payment gateway, woocommerce gateway, woocommerce payment
    5 Requires PHP: 7.2
     5Requires PHP: 7.4
    66Requires at least: 4.6
    77Tested up to: 5.8
    8 Stable tag: 2.0.1
     8Stable tag: 2.0.2
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    2727* Transaction ID request form on Checkout
    2828* Option to force customers to provide Transaction ID
    29 * Works with Electrum and Exodus wallets, uses Zpub to generate Bech32 Native SegWit (bc1..) wallets.
    30 * Assign single unique wallet to every customer to simplify recurring payments
     29* Tested and works perfectly with Electrum, Exodus, Jaxx and many other wallets, uses Zpub to generate Bech32 Native SegWit (bc1..) wallets.
     30* HD (
     31Hierarchical Deterministic) wallets enabled, unique wallet ID will be assigned to every customer. All funds will end up to your wallet automatically.
    3132* You control your wallets, you control your keys
    3233* No third party
     
    8485
    8586= Why this plugin ? =
    86 Even though Bitcoin is already long time widely accepted many people still don’t realize that blockchain technology empowers us to conduct business without need to rely on any 3rd party.  Unfortunately we still see a lot of plugins that offers 3rd party “processing” service for Bitcoin abusing the fact that many of us not yet get our head around beauty of blockchain technology. For that reason there’s not so much plugins out there that offer such functionality, so I have to create one.
     87Even though Bitcoin is already long time widely accepted many people still don’t realize that blockchain technology empowers us to conduct business without need to rely on any 3rd party.  Unfortunately we still see a lot of plugins that offers 3rd party "processing" service for Bitcoin abusing the fact that many of us not yet get our head around beauty of blockchain technology. For that reason there’s not so much plugins out there that offer such functionality, so we have to create one.
    8788
     89== Credits and Libraries ==
     90This plugin has been written from scratch and based on our own plugins framework. To achieve the desired functionality this plugin uses a few best maintained OpenSource libraries:
     91
     92* QR Code generator - chillerlan - MIT License
     93* Bitcoin PHP - BitcoinWasp - unlicense.org
    8894
    8995== Upgrade Notice ==
     
    9197Safe to upgrade
    9298
     99== Donations are Welcome!  ==
     100
     101This plugin is free software. If you like this plugin, please consider buying us a cup of coffee, it really helps for better and faster maintenance.
     102
     103bitcoin:bc1qnkzn2wrw7qkaa9kgnarv7fajpvdv02m7u5mt8e
     104
     105Thank you!
     106
     107
    93108== Changelog ==
     109
     110= 2.0.2 AUG 30, 2021 =
     111* update QR Code coin and amount added and tested with most popular mobile wallets
     112* update to PHP 7.4, tested up to PHP 8.0
     113* fix few minor bugs
     114* updated code cleanup
    94115
    95116= 2.0.1 AUG 27, 2021 =
    96117* add feature - Zpub BIP84 public key extrapolation to assign unique BECH32 Native SegWit wallets to users.
    97118* add feature - local QR Code generation.
    98 * few minor bugs fixed
     119* fix few minor bugs
    99120
    100121= 1.0.3 AUG 20, 2021 =
    101 * fixed few minor bugs
     122* fix few minor bugs
    102123
    103124= 1.0.2 Jan 28, 2021 =
    104125* add extra options: Force Transaction ID
    105 * Check for double Transaction ID
     126* add Check for double Transaction ID
    106127
    107128= 1.0.1 Jan 28, 2021 =
  • decentralized-bitcoin-cryptodec-payment-gateway-for-woocommerce/trunk/admin/options.php

    r2590458 r2590661  
    4242          ),
    4343
    44 /*
    45             'itls_crypto_btc_enabled' => array(
    46 
    47                 'name' => 'itls_crypto_btc_enabled',
    48                 'type' => 'check',
    49                 'print' => __(''),
    50                 'help' => 'Switch (On/Off) if you want to use or disable BTC payments. Default: On.',
    51                 'data' => 'bool',
    52                 'value' => '1',
    53 
    54             ),
    55 */
    56 /*
    57             'itls_crypto_btc' => array(
    58 
    59                 'name' => 'itls_crypto_btc',
    60                 'type' => 'multifields',
    61                 'print' => __('BTC Wallet Addresses'),
    62                 'help' => 'Add your BTC wallet address to receive funds here. Only valid values will be added. After adress added and saved another field will appear. You can add up to 8 addresses.',
    63                 'data' => 'btcaddress',
    64                 'value' => '',
    65                 'items' => array ()
    66 
    67             ),
    68 */
    69 
    70 
    7144        )
    7245    ),
  • decentralized-bitcoin-cryptodec-payment-gateway-for-woocommerce/trunk/admin/tmpl-options.php

    r2590458 r2590661  
    5151}
    5252
    53 /*
    54 $count_cust_ITLS_wc_pay_gw_posts = wp_count_posts('ITLS_wc_pay_gw_templates')->publish;
    55 if ($count_cust_ITLS_wc_pay_gw_posts<1) {
    56 }
    57 */
    5853?>
    5954        </div>
  • decentralized-bitcoin-cryptodec-payment-gateway-for-woocommerce/trunk/cryptodec-payment-gateway.php

    r2590458 r2590661  
    22/*
    33 * Plugin Name: Decentralized Bitcoin CryptoDEC Payment Gateway for WooCommerce
    4  * Plugin URI: https://github.com/
     4 * Plugin URI: https://wordpress.org/plugins/decentralized-bitcoin-cryptodec-payment-gateway-for-woocommerce/
    55 * Description: Take decentrolized payments in Bitcoin on your store without middleman for free.
    66 * Author: ITLS
    77 * Author URI: https://ampae.com
    8  * Version: 2.0.1
     8 * Version: 2.0.2
    99 * Text Domain: decentralized-bitcoin-cryptodec-payment-gateway-for-woocommerce
    1010 *
     
    4646    'full_name'         => 'CryptoDecPaymentGateway',
    4747    'full_author'       => 'ITLS',
    48     'version'           => '2.0.1',
     48    'version'           => '2.0.2',
    4949
    5050    'settings_version'  => '4',
  • decentralized-bitcoin-cryptodec-payment-gateway-for-woocommerce/trunk/inc/cron.php

    r2590475 r2590661  
    22function ITLS_do_action()
    33{
    4     //add_action( 'init', 'ITLS_do_action_x',10,0 );
    54    add_action('init', 'ITLS_do_action_x');
    65}
  • decentralized-bitcoin-cryptodec-payment-gateway-for-woocommerce/trunk/inc/itls-btc-class.php

    r2590458 r2590661  
    1818            return number_format(($value)*(pow(10, -8)), 8, '.', '');
    1919        }
    20 /*
    21         public function getFresh($my_addrsa)
    22         {
    23             global $sochain;
    24             $res = null;
    25             $tmpres = null;
    26             $tmpx = array();
    27             foreach ($my_addrsa as $my_addr) {
    28                 $tmpRes = $sochain->getLastTime($my_addr);
    29                 $tmpx[$my_addr] = $tmpRes;
    30             }
    31             asort($tmpx);
    32             $res = array_key_first($tmpx);
    33             return $res;
    34         }
    35 */
     20
    3621        public function getBtcAmount($cart_total, $curr_code)
    3722        {
  • decentralized-bitcoin-cryptodec-payment-gateway-for-woocommerce/trunk/inc/itls-btc-wp-class.php

    r2590475 r2590661  
    4646        }
    4747
    48         public function get_qr_code($walletAddress, $cryptoTotal)
     48        public function get_qr_code($walletAddress, $cryptoTotal, $coin='bitcoin')
    4949        {
    50             $qrData = $walletAddress;
     50            $qrData = $coin.':'.$walletAddress.'?amount='.$cryptoTotal;
    5151            $res = (new QRCode)->render($qrData);
    5252            return $res;
  • decentralized-bitcoin-cryptodec-payment-gateway-for-woocommerce/trunk/inc/itls-crypto-dec-payment-gateway-class.php

    r2590475 r2590661  
    119119            <?php
    120120            }
    121             /*
    122                         public function ITLS_cryptodec_gateway_disable( $available_gateways ) {
    123                            //if ( ! is_admin() ) {
    124                                   unset( $available_gateways['cryptodec_gateway'] );
    125                            //}
    126                            return $available_gateways;
    127                         }
    128             */
     121
    129122            /*
    130123             * We're processing the payments here
  • decentralized-bitcoin-cryptodec-payment-gateway-for-woocommerce/trunk/inc/itls-hd.php

    r2590458 r2590661  
    22namespace Itls\CryptoWp;
    33
    4 //require_once('btclib/autoload.php');
    54include_once plugin_dir_path(__FILE__) . '../lib/btclib/autoload.php';
    65
  • decentralized-bitcoin-cryptodec-payment-gateway-for-woocommerce/trunk/inc/model.php

    r2590458 r2590661  
    11<?php
    2 /*
    3 function ITLS_cd_count_btc_address_per_user() {
    4     global $wpdb;
    5     $tableName = $wpdb->prefix . 'usermeta';
    6     $metaKey = 'best_btc_wallet';
    7     $query = "SELECT user_id, meta_value, COUNT( * ) c FROM `$tableName` WHERE meta_key = '".$metaKey."' GROUP BY meta_value";
    8     $ret = $wpdb->query($query);
    9     //print_r($ret);
    10 }
    11 */
    122
    133function ITLS_cd_put_payment($address, $coin, $orderId, $total, $hash = '', $hash_by = '', $status = 'PENDING')
  • decentralized-bitcoin-cryptodec-payment-gateway-for-woocommerce/trunk/inc/plugin.php

    r2590475 r2590661  
    117117
    118118                        <th><?php esc_html_e('BTC Wallet ID:', 'decentralized-bitcoin-cryptodec-payment-gateway-for-woocommerce'); ?></th>
    119                         <td><?php echo esc_attr($my_wallet); ?></td>
     119                        <td><?php echo "<a href='https://www.blockchain.com/btc/address/".esc_attr($my_wallet)."' target='_blank' >".esc_attr($my_wallet)."</a>"; ?></td>
    120120
    121121                        <th><?php esc_html_e('Total:', 'decentralized-bitcoin-cryptodec-payment-gateway-for-woocommerce'); ?></th>
     
    123123
    124124                        <th><strong><?php esc_html_e('Transaction ID :', 'decentralized-bitcoin-cryptodec-payment-gateway-for-woocommerce') ; ?></strong></th>
    125                         <td><?php echo esc_attr($transaction); ?></td>
     125                        <td><?php echo "<a href='https://www.blockchain.com/btc/tx/".esc_attr($transaction)."' target='_blank' >".esc_attr($transaction)."</a>"; ?></td>
    126126                    </tr>
    127127                </tbody>
     
    143143        $amount = get_post_meta($order_id, '_cryptodec_total', true);
    144144        $txid = get_post_meta($order_id, '_cryptodec_transaction_id', true);
    145         $qrCode = $itls_btc_wp->get_qr_code($wallet, 0);
     145        $qrCode = $itls_btc_wp->get_qr_code($wallet, $amount, 'bitcoin'); // 0 !!!
    146146
    147147        $order = wc_get_order($order_id);
Note: See TracChangeset for help on using the changeset viewer.