Plugin Directory

Changeset 3168431


Ignore:
Timestamp:
10/14/2024 09:46:19 AM (15 months ago)
Author:
cryptomus
Message:

Update text and add new version

Location:
cryptomus/trunk
Files:
4 added
3 edited

Legend:

Unmodified
Added
Removed
  • cryptomus/trunk/README.md

    r3090002 r3168431  
    55Tested up to: 6.5
    66Requires PHP: 5.6
    7 Stable tag: 1.2.6
     7Stable tag: trunk
    88License: License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    1212
    1313== Description ==
    14 Cryptomus is a cryptocurrency payment platform for businesses and individuals. Accepting cryptocurrency payments for your online business is now easier than ever with the Cryptomus plugin for WordPress. With the help of it, cryptocurrency options are being converted to fiat at current exchange rates.
     14Cryptomus is a cryptocurrency payment platform for businesses and individuals. Accepting cryptocurrency payments for your online business is now easier than ever with the Cryptomus cryptocurrency payment processor plugin for WordPress. With the help of it, cryptocurrency options are being converted to fiat at current exchange rates.
    1515
    1616Cryptomus plugin allows you to accept the following coins:
    1717
    1818* Bitcoin (BTC)
    19 * Tether (USDT)
     19* Tether (USDT TRC-20 & ERC-20)
    2020* Avalanche (AVAX)
    2121* Bitcoin Cash (BCH)
     
    6060= Accept Bitcoin Payments =
    6161
    62 Allow customers to transact using Bitcoin, the original and most widely recognized cryptocurrency, known for its robust blockchain technology and widespread acceptance.
     62Allow customers to pay Bitcoin invoices, the original and most widely recognized cryptocurrency, known for its robust blockchain technology and widespread acceptance.
    6363
    6464= Accept USDT Payments =
     
    129129First of all, you need to download the plugin, and then install it as we described above. Then you are ready to start accepting payments with Cryptomus on your WordPress website.
    130130
     131* Is it possible to accept crypto donations with Cryptomus?
     132Sure, just share your wallet address with visitors and get paid anytime, or create a payment widget, customize the design, and place it anywhere in your project.
     133 
     134* How can I accept fiat payments via Cryptomus?
     135You can use Cryptomus as a fiat-to-crypto payment gateway by letting your customers pay with fiat using third-party links from our partners. Just generate a special link and share it with your customers.
     136
     137
    131138
    132139Any questions left? Contact our [support team](https://t.me/cryptomussupport).         
  • cryptomus/trunk/cryptomus.php

    r3087636 r3168431  
    188188    return true;
    189189}
     190
     191function declare_cart_checkout_blocks_compatibility() {
     192    // Check if the required class exists
     193    if (class_exists('\Automattic\WooCommerce\Utilities\FeaturesUtil')) {
     194        // Declare compatibility for 'cart_checkout_blocks'
     195        \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility('cart_checkout_blocks', __FILE__, true);
     196    }
     197}
     198// Hook the custom function to the 'before_woocommerce_init' action
     199add_action('before_woocommerce_init', 'declare_cart_checkout_blocks_compatibility');
     200
     201// Hook the custom function to the 'woocommerce_blocks_loaded' action
     202add_action( 'woocommerce_blocks_loaded', 'cryptomus_register_order_approval_payment_method_type' );
     203/**
     204 * Custom function to register a payment method type
     205 */
     206function cryptomus_register_order_approval_payment_method_type() {
     207    // Include the custom Blocks Checkout class
     208    require_once plugin_dir_path(__FILE__) . 'class-block.php';
     209    // Hook the registration function to the 'woocommerce_blocks_payment_method_type_registration' action
     210    add_action(
     211        'woocommerce_blocks_payment_method_type_registration',
     212        function( Automattic\WooCommerce\Blocks\Payments\PaymentMethodRegistry $payment_method_registry ) {
     213            $payment_method_registry->register( new Cryptomus_Gateway_Blocks );
     214        }
     215    );
     216}
Note: See TracChangeset for help on using the changeset viewer.