Plugin Directory

Changeset 3027671


Ignore:
Timestamp:
01/27/2024 04:40:57 PM (2 years ago)
Author:
credocentral
Message:

2.0.0 woocommerce block update

Location:
credo-payment-forms/trunk
Files:
5 added
4 edited

Legend:

Unmodified
Added
Removed
  • credo-payment-forms/trunk/includes/class-wc-gateway-credo.php

    r2977716 r3027671  
    854854
    855855            $credo_response = json_decode( wp_remote_retrieve_body( $request ) );
    856             echo '<script>console.log("PHP error: ' . json_encode( $credo_params ) . '")</script>';
     856
    857857
    858858            return array(
     
    865865
    866866            $credo_response = wp_remote_retrieve_body( $request );
    867             echo '<script>console.log("PHP error: ' . $credo_response . '")</script>';
     867
    868868
    869869            return;
     
    13781378        return false;
    13791379    }
     1380
     1381
     1382    public function get_logo_url() {
     1383
     1384        $base_location = wc_get_base_location();
     1385
     1386
     1387            $url = WC_HTTPS::force_https_url( plugins_url( 'assets/images/credo-wc.png', WC_CREDO_MAIN_FILE ) );
     1388
     1389
     1390        return apply_filters( 'wc_paystack_gateway_icon_url', $url, $this->id );
     1391    }
    13801392}
  • credo-payment-forms/trunk/languages/woo-credo.pot

    r2956832 r3027671  
    753753msgstr ""
    754754
     755#: resources/js/frontend/blocks/base/index.js:8
     756msgid "Credo "
     757msgstr ""
     758
    755759#: includes/class-wc-gateway-credo.php:527
    756760msgid "5 gateways"
  • credo-payment-forms/trunk/readme.txt

    r2979484 r3027671  
    33Tags: Credo, woocommerce, payment gateway mastercard, visa, verve
    44Requires at least: 5.8
    5 Tested up to: 6.3
    6 Stable tag: 1.0.9
     5Tested up to: 6.4
     6Stable tag: 2.0.0
    77Requires PHP: 7.4
    88License URI: http://www.gnu.org/licenses/gpl-2.0.txt
     
    1212== Description ==
    1313
    14 Credo makes it easy for businesses to accept secure payments from multiple local and global payment channels.
     14Credo enables easier, intelligent, and rewarding payments for businesses and consumers alike, by combining the best of digital payments and digital innovation.
    1515
    1616With Credo for WooCommerce, you can accept payments via:
     
    2222= Why Credo? =
    2323
    24 * Start receiving payments instantly—go from sign-up to your first real transaction in as little as 5 minutes
     24* Easy onboarding. Start receiving payments instantly. Go from sign-up to your first real transaction in as little as 5 minutes
     25* Settlement the way you want them.
    2526* Simple, transparent pricing—no hidden charges or fees
     27* Advance fraud protection
     28* Your business growth our promise
    2629* Understand your customers better through a simple and elegant dashboard
    2730* Access to attentive, empathetic customer support 24/7
    2831* Free updates as we launch new features and payment options
    29 * Clearly documented APIs to build your custom payment experiences
     32* Integration as easy as ABC
    3033
    3134Sign up on [credocentral.com/register](https://credocentral.com/register) to get started.
  • credo-payment-forms/trunk/woo-credo.php

    r2979484 r3027671  
    55 * Plugin URI: https://credocentral.com
    66 * Description: WooCommerce payment gateway for Credo
    7  * Version: 1.0.9
     7 * Version: 2.0.0
    88 * Author: Lanre Yusuf
    99 * Author URI: https://linkedin.com/in/lanre-yusuf-a55b3a80
     
    1111 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
    1212 * WC requires at least: 7.0
    13  * WC tested up to: 7.8
     13 * WC tested up to: 8.3
    1414 * Text Domain: woo-credo
    1515 * Domain Path: /languages
     
    2323}
    2424
    25 const WC_CREDO_MAIN_FILE = __FILE__;
     25
     26define('WC_CREDO_MAIN_FILE', __FILE__);
    2627define( 'WC_CREDO_URL', untrailingslashit( plugins_url( '/', __FILE__ ) ) );
    2728
    28 const WC_CREDO_VERSION = '1.0.0';
     29const WC_CREDO_VERSION = '2.0.0';
    2930
    3031/**
     
    4243    add_action( 'admin_init', 'tbz_wc_credo_testmode_notice' );
    4344
    44     require_once dirname( __FILE__ ) . '/includes/class-wc-gateway-credo.php';
     45    require_once __DIR__ . '/includes/class-wc-gateway-credo.php';
    4546
    4647    add_filter( 'woocommerce_payment_gateways', 'tbz_wc_add_credo_gateway', 99 );
     
    140141    }
    141142);
     143
     144
     145/**
     146 * Registers WooCommerce Blocks integration.
     147 */
     148function tbz_wc_gateway_credo_woocommerce_block_support() {
     149    if ( class_exists( 'Automattic\WooCommerce\Blocks\Payments\Integrations\AbstractPaymentMethodType' ) ) {
     150        require_once __DIR__ . '/includes/class-wc-gateway-credo-blocks-support.php';
     151
     152        add_action(
     153            'woocommerce_blocks_payment_method_type_registration',
     154            static function( Automattic\WooCommerce\Blocks\Payments\PaymentMethodRegistry $payment_method_registry ) {
     155                $payment_method_registry->register( new WC_Gateway_Credo_Blocks_Support() );
     156
     157            }
     158        );
     159    }
     160}
     161add_action( 'woocommerce_blocks_loaded', 'tbz_wc_gateway_credo_woocommerce_block_support' );
     162
Note: See TracChangeset for help on using the changeset viewer.