Giter Site home page Giter Site logo

gesman / bitcoin-payments-for-woocommerce Goto Github PK

View Code? Open in Web Editor NEW
31.0 31.0 38.0 586 KB

Bitcoin Payments for WooCommerce is a Wordpress plugin that allows you to accept payments in bitcoins for physical and digital products at your WooCommerce-powered online store.

PHP 100.00%

bitcoin-payments-for-woocommerce's People

Contributors

gesman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bitcoin-payments-for-woocommerce's Issues

bwwc-cron.php (hardcron) always generates a new electrum address

This cron script generates electrum addresses well past the max count when the hardcron setting is enabled. My wp_bwwc_btc_addresses had 300+ addresses after a day when I setup the cron to be run every 5 minutes. The culprit seems to be this query:

      // NULL == not found
      // Retrieve:
      //     'unused'   - with fresh zero balances
      //     'assigned' - expired, with fresh zero balances (if 'reuse_expired_addresses' is true)
      //
      // Hence - any returned address will be clean to use.
      $query =
        "SELECT COUNT(*) as `total_unused_addresses` FROM `$btc_addresses_table_name`
           WHERE `origin_id`='$origin_id'
           AND `total_received_funds`='0'
           AND (('$current_time' - `received_funds_checked_at`) < '$funds_received_value_expires_in_secs')
           AND (`status`='unused' $reuse_expired_addresses_query_part)
           ";

Specifically this where clause statement:

AND (('$current_time' - `received_funds_checked_at`) < '$funds_received_value_expires_in_secs')

Since the received_funds_checked_at field never gets updated for unused addresses after they're generated, the query doesn't count them, so a new address gets generated on each run.

Does not work with proxy

Configuring wordpress so that outbound connections are only possible through a proxy, with the proxy defined in wp-config.php, breaks this plugin. It ignores the proxy setting in wordpress, and attempts to connect to blockchain.info/blockexplorer.com/bitcoinway.com directly. At least those are the ones I found after digging through the code so I could make custom firewall rules to allow the traffic.

unpaid orders are not automatically cancelled

Woocommerce uses a woocommerce_cancel_unpaid_orders scheduled task for this, but it only applies to orders with status = 'pending', not 'on-hold' (which is the status assigned to new bitcoin orders).

Apparently the 'on-hold' status is supposed to represent an order that has not been paid and requires manual admin interaction (like a check payment).

See 36e4294 for fix.

Not using Nonces and/or checking permissions

add a nonce to POST calls to prevent unauthorized access.

Relying on nonces for authorization purposes is a security issue. Use current_user_can() in order to prevent users without the right permissions from accessing things.

checkout to the thankyou page skipping the QR code pagr

I don't know why exactly, but after selecting bitcoin as payment method, and proceeding my woocommerce bring me directly to the thankyou page skipping the QR code page.

url on the thankyou page is: domain.com/checkout/order-received/6526/?key=wc_order_536aa78e4954f&order=6526

I don't have any error, I already tried to re-install the plugin

thanks for any help

Error coming in bitcoin-payments-for-woocommerce

`Hello Gesman,

I have some question regarding for bitcoin-payment-for woocommerce.

I have download the bitcoin-payment-for woocommerce plugin code for github and install to my wordpress.

After that fill all the detail as requirement as you see in screenshot

screenshot_10

After that when we click on the place order button in check out page than

error message is showing.. (As you see in screen shot)

error

So Please help me to solve this error.

Thanks , `

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.