Changeset 3027671
- Timestamp:
- 01/27/2024 04:40:57 PM (2 years ago)
- Location:
- credo-payment-forms/trunk
- Files:
-
- 5 added
- 4 edited
-
assets/js/blocks (added)
-
assets/js/blocks/frontend (added)
-
assets/js/blocks/frontend/blocks.asset.php (added)
-
assets/js/blocks/frontend/blocks.js (added)
-
includes/class-wc-gateway-credo-blocks-support.php (added)
-
includes/class-wc-gateway-credo.php (modified) (3 diffs)
-
languages/woo-credo.pot (modified) (1 diff)
-
readme.txt (modified) (3 diffs)
-
woo-credo.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
credo-payment-forms/trunk/includes/class-wc-gateway-credo.php
r2977716 r3027671 854 854 855 855 $credo_response = json_decode( wp_remote_retrieve_body( $request ) ); 856 echo '<script>console.log("PHP error: ' . json_encode( $credo_params ) . '")</script>'; 856 857 857 858 858 return array( … … 865 865 866 866 $credo_response = wp_remote_retrieve_body( $request ); 867 echo '<script>console.log("PHP error: ' . $credo_response . '")</script>'; 867 868 868 869 869 return; … … 1378 1378 return false; 1379 1379 } 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 } 1380 1392 } -
credo-payment-forms/trunk/languages/woo-credo.pot
r2956832 r3027671 753 753 msgstr "" 754 754 755 #: resources/js/frontend/blocks/base/index.js:8 756 msgid "Credo " 757 msgstr "" 758 755 759 #: includes/class-wc-gateway-credo.php:527 756 760 msgid "5 gateways" -
credo-payment-forms/trunk/readme.txt
r2979484 r3027671 3 3 Tags: Credo, woocommerce, payment gateway mastercard, visa, verve 4 4 Requires at least: 5.8 5 Tested up to: 6. 36 Stable tag: 1.0.95 Tested up to: 6.4 6 Stable tag: 2.0.0 7 7 Requires PHP: 7.4 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.txt … … 12 12 == Description == 13 13 14 Credo makes it easy for businesses to accept secure payments from multiple local and global payment channels.14 Credo enables easier, intelligent, and rewarding payments for businesses and consumers alike, by combining the best of digital payments and digital innovation. 15 15 16 16 With Credo for WooCommerce, you can accept payments via: … … 22 22 = Why Credo? = 23 23 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. 25 26 * Simple, transparent pricing—no hidden charges or fees 27 * Advance fraud protection 28 * Your business growth our promise 26 29 * Understand your customers better through a simple and elegant dashboard 27 30 * Access to attentive, empathetic customer support 24/7 28 31 * Free updates as we launch new features and payment options 29 * Clearly documented APIs to build your custom payment experiences32 * Integration as easy as ABC 30 33 31 34 Sign up on [credocentral.com/register](https://credocentral.com/register) to get started. -
credo-payment-forms/trunk/woo-credo.php
r2979484 r3027671 5 5 * Plugin URI: https://credocentral.com 6 6 * Description: WooCommerce payment gateway for Credo 7 * Version: 1.0.97 * Version: 2.0.0 8 8 * Author: Lanre Yusuf 9 9 * Author URI: https://linkedin.com/in/lanre-yusuf-a55b3a80 … … 11 11 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt 12 12 * WC requires at least: 7.0 13 * WC tested up to: 7.813 * WC tested up to: 8.3 14 14 * Text Domain: woo-credo 15 15 * Domain Path: /languages … … 23 23 } 24 24 25 const WC_CREDO_MAIN_FILE = __FILE__; 25 26 define('WC_CREDO_MAIN_FILE', __FILE__); 26 27 define( 'WC_CREDO_URL', untrailingslashit( plugins_url( '/', __FILE__ ) ) ); 27 28 28 const WC_CREDO_VERSION = ' 1.0.0';29 const WC_CREDO_VERSION = '2.0.0'; 29 30 30 31 /** … … 42 43 add_action( 'admin_init', 'tbz_wc_credo_testmode_notice' ); 43 44 44 require_once dirname( __FILE__ ). '/includes/class-wc-gateway-credo.php';45 require_once __DIR__ . '/includes/class-wc-gateway-credo.php'; 45 46 46 47 add_filter( 'woocommerce_payment_gateways', 'tbz_wc_add_credo_gateway', 99 ); … … 140 141 } 141 142 ); 143 144 145 /** 146 * Registers WooCommerce Blocks integration. 147 */ 148 function 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 } 161 add_action( 'woocommerce_blocks_loaded', 'tbz_wc_gateway_credo_woocommerce_block_support' ); 162
Note: See TracChangeset
for help on using the changeset viewer.