Plugin Directory

Changeset 2945994


Ignore:
Timestamp:
08/01/2023 11:13:53 AM (3 years ago)
Author:
cryptapi
Message:

v4.7.8 - minor bugfixes

Location:
cryptapi-payment-gateway-for-woocommerce
Files:
5 edited
8 copied

Legend:

Unmodified
Added
Removed
  • cryptapi-payment-gateway-for-woocommerce/tags/4.7.8/CryptAPI.php

    r2905747 r2945994  
    44Plugin URI: https://github.com/cryptapi/woocommerce-cryptapi
    55Description: Accept cryptocurrency payments on your WooCommerce website
    6 Version: 4.7.7
     6Version: 4.7.8
    77Requires at least: 5
    8 Tested up to: 6.2
     8Tested up to: 6.3
    99WC requires at least: 5.8
    10 WC tested up to: 7.6.1
     10WC tested up to: 7.9.0
    1111Requires PHP: 7.2
    1212Author: cryptapi
  • cryptapi-payment-gateway-for-woocommerce/tags/4.7.8/README.md

    r2905747 r2945994  
    347347* Minor fixes
    348348
     349#### 4.7.8
     350* Minor fixes
     351
    349352### Upgrade Notice
    350353#### 4.3
  • cryptapi-payment-gateway-for-woocommerce/tags/4.7.8/controllers/CryptAPI.php

    r2905747 r2945994  
    720720    function process_callback_data($data, $order, $validation = false)
    721721    {
     722        $coin = $data['coin'];
     723
     724        $saved_coin = $order->get_meta('cryptapi_currency');
     725
    722726        $paid = (float)$data['value_coin'];
    723727
     
    727731
    728732        $history = json_decode($order->get_meta('cryptapi_history'), true);
     733
     734        if ($coin !== $saved_coin) {
     735            $order->add_order_note(
     736                '[MISSMATCHED PAYMENT] Registered a ' . $paid . ' ' . strtoupper($coin) . '. Order not confirmed because requested currency is ' . $crypto_coin . '. If you wish, you may confirm it manually. (Funds were already forwarded to you).'
     737            );
     738
     739            die("*ok*");
     740        }
    729741
    730742        if (!$data['uuid']) {
     
    14791491
    14801492        $ajax_url = add_query_arg(array(
    1481             'action' => 'blockbee_validate_logs',
     1493            'action' => 'cryptapi_validate_logs',
    14821494            'order_id' => $order->get_ID(),
    14831495        ), home_url('/wp-admin/admin-ajax.php'));
  • cryptapi-payment-gateway-for-woocommerce/tags/4.7.8/define.php

    r2905747 r2945994  
    11<?php
    22
    3 define('CRYPTAPI_PLUGIN_VERSION', '4.7.7');
     3define('CRYPTAPI_PLUGIN_VERSION', '4.7.8');
    44define('CRYPTAPI_PLUGIN_PATH', plugin_dir_path(__FILE__));
    55define('CRYPTAPI_PLUGIN_URL', plugin_dir_url(__FILE__));
  • cryptapi-payment-gateway-for-woocommerce/tags/4.7.8/readme.txt

    r2905748 r2945994  
    33Tags: crypto payments, woocommerce, payment gateway, crypto, payment, pay with crypto, payment request, bitcoin, bnb, usdt, ethereum, monero, litecoin, bitcoin cash, shib, doge
    44Requires at least: 5
    5 Tested up to: 6.2
    6 Stable tag: 4.7.7
     5Tested up to: 6.3
     6Stable tag: 4.7.8
    77Requires PHP: 7.2
    88WC requires at least: 5.8
    9 WC tested up to: 7.6.1
     9WC tested up to: 7.9.0
    1010License: MIT
    1111
     
    347347* Minor fixes
    348348
     349= 4.7.8 =
     350* Minor fixes
     351
    349352== Upgrade Notice ==
    350353
  • cryptapi-payment-gateway-for-woocommerce/trunk/CryptAPI.php

    r2905747 r2945994  
    44Plugin URI: https://github.com/cryptapi/woocommerce-cryptapi
    55Description: Accept cryptocurrency payments on your WooCommerce website
    6 Version: 4.7.7
     6Version: 4.7.8
    77Requires at least: 5
    8 Tested up to: 6.2
     8Tested up to: 6.3
    99WC requires at least: 5.8
    10 WC tested up to: 7.6.1
     10WC tested up to: 7.9.0
    1111Requires PHP: 7.2
    1212Author: cryptapi
  • cryptapi-payment-gateway-for-woocommerce/trunk/README.md

    r2905747 r2945994  
    347347* Minor fixes
    348348
     349#### 4.7.8
     350* Minor fixes
     351
    349352### Upgrade Notice
    350353#### 4.3
  • cryptapi-payment-gateway-for-woocommerce/trunk/controllers/CryptAPI.php

    r2905747 r2945994  
    720720    function process_callback_data($data, $order, $validation = false)
    721721    {
     722        $coin = $data['coin'];
     723
     724        $saved_coin = $order->get_meta('cryptapi_currency');
     725
    722726        $paid = (float)$data['value_coin'];
    723727
     
    727731
    728732        $history = json_decode($order->get_meta('cryptapi_history'), true);
     733
     734        if ($coin !== $saved_coin) {
     735            $order->add_order_note(
     736                '[MISSMATCHED PAYMENT] Registered a ' . $paid . ' ' . strtoupper($coin) . '. Order not confirmed because requested currency is ' . $crypto_coin . '. If you wish, you may confirm it manually. (Funds were already forwarded to you).'
     737            );
     738
     739            die("*ok*");
     740        }
    729741
    730742        if (!$data['uuid']) {
     
    14791491
    14801492        $ajax_url = add_query_arg(array(
    1481             'action' => 'blockbee_validate_logs',
     1493            'action' => 'cryptapi_validate_logs',
    14821494            'order_id' => $order->get_ID(),
    14831495        ), home_url('/wp-admin/admin-ajax.php'));
  • cryptapi-payment-gateway-for-woocommerce/trunk/define.php

    r2905747 r2945994  
    11<?php
    22
    3 define('CRYPTAPI_PLUGIN_VERSION', '4.7.7');
     3define('CRYPTAPI_PLUGIN_VERSION', '4.7.8');
    44define('CRYPTAPI_PLUGIN_PATH', plugin_dir_path(__FILE__));
    55define('CRYPTAPI_PLUGIN_URL', plugin_dir_url(__FILE__));
  • cryptapi-payment-gateway-for-woocommerce/trunk/readme.txt

    r2905748 r2945994  
    33Tags: crypto payments, woocommerce, payment gateway, crypto, payment, pay with crypto, payment request, bitcoin, bnb, usdt, ethereum, monero, litecoin, bitcoin cash, shib, doge
    44Requires at least: 5
    5 Tested up to: 6.2
    6 Stable tag: 4.7.7
     5Tested up to: 6.3
     6Stable tag: 4.7.8
    77Requires PHP: 7.2
    88WC requires at least: 5.8
    9 WC tested up to: 7.6.1
     9WC tested up to: 7.9.0
    1010License: MIT
    1111
     
    347347* Minor fixes
    348348
     349= 4.7.8 =
     350* Minor fixes
     351
    349352== Upgrade Notice ==
    350353
Note: See TracChangeset for help on using the changeset viewer.