Changeset 2907044
- Timestamp:
- 05/02/2023 01:51:16 PM (3 years ago)
- Location:
- quadpay-gateway-for-woocommerce
- Files:
-
- 8 edited
- 1 copied
-
tags/1.7.2 (copied) (copied from quadpay-gateway-for-woocommerce/trunk)
-
tags/1.7.2/includes/class-quadpay-settings.php (modified) (2 diffs)
-
tags/1.7.2/includes/class-quadpay-widget.php (modified) (7 diffs)
-
tags/1.7.2/quadpay.php (modified) (1 diff)
-
tags/1.7.2/readme.txt (modified) (2 diffs)
-
trunk/includes/class-quadpay-settings.php (modified) (2 diffs)
-
trunk/includes/class-quadpay-widget.php (modified) (7 diffs)
-
trunk/quadpay.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
quadpay-gateway-for-woocommerce/tags/1.7.2/includes/class-quadpay-settings.php
r2712100 r2907044 120 120 'default' => '', 121 121 ), 122 'merchant_id' => array( 123 'title' => __( 'Merchant ID', 'woo_quadpay' ), 124 'type' => 'text', 125 'description' => __( 'Zip Merchant ID credential.', 'woo_quadpay' ), 126 'default' => '', 127 ), 122 128 'mfpp' => array( 123 129 'title' => __( 'Merchant Fee for Payment Plan', 'woo_quadpay' ), … … 126 132 'description' => __( 'Enable only if option is arranged and configured on Zip side. When enabled, fee may be applied to customers choosing Zip.', 'woo_quadpay' ), 127 133 'default' => 'no' 128 ),129 'merchant_id' => array(130 'title' => __( 'Merchant ID', 'woo_quadpay' ),131 'type' => 'text',132 'description' => __( 'Zip Merchant ID credential. Needed only if MFPP is enabled.', 'woo_quadpay' ),133 'default' => '',134 134 ), 135 135 'logging' => array( -
quadpay-gateway-for-woocommerce/tags/1.7.2/includes/class-quadpay-widget.php
r2688749 r2907044 76 76 $widget_wrapper = $this->settings->get_option( 'product_page_widget_wrapper', '' ); 77 77 $widget_customization = $this->settings->get_option( 'product_page_widget_customization', '' ); 78 $merchantId = $this->settings->get_option( 'merchant_id', '' ); 78 79 79 80 $price = $product->get_price(); … … 83 84 ?> 84 85 <div style="min-height:20px;<?php echo $widget_wrapper; ?>"> 85 <quadpay-widget<?php echo $tag_version_suffix ?> amount="<?php echo $price; ?>" <?php echo $widget_customization; ?>></quadpay-widget<?php echo $tag_version_suffix ?>> 86 <quadpay-widget<?php echo $tag_version_suffix ?> 87 amount="<?php echo $price; ?>" 88 <?php if (!empty($merchantId)):?> 89 merchantId="<?php echo $merchantId; ?>" 90 <?php endif; ?> 91 <?php echo $widget_customization; ?>> 92 </quadpay-widget<?php echo $tag_version_suffix ?>> 86 93 </div> 87 94 <?php … … 113 120 $widget_wrapper = $this->settings->get_option( 'product_page_widget_wrapper', '' ); 114 121 $widget_customization = $this->settings->get_option( 'product_page_widget_customization', '' ); 122 $merchantId = $this->settings->get_option( 'merchant_id', '' ); 115 123 116 124 $price = $product->get_price(); … … 120 128 ?> 121 129 <div style="min-height:20px;<?php echo $widget_wrapper; ?>"> 122 <quadpay-widget<?php echo $tag_version_suffix ?> amount="<?php echo $price; ?>" <?php echo $widget_customization; ?>></quadpay-widget<?php echo $tag_version_suffix ?>> 130 <quadpay-widget<?php echo $tag_version_suffix ?> 131 amount="<?php echo $price; ?>" 132 <?php if (!empty($merchantId)):?> 133 merchantId="<?php echo $merchantId; ?>" 134 <?php endif; ?> 135 <?php echo $widget_customization; ?> 136 > 137 </quadpay-widget<?php echo $tag_version_suffix ?>> 123 138 </div> 124 139 <?php … … 143 158 $widget_wrapper = $this->settings->get_option( 'cart_widget_wrapper', '' ); 144 159 $widget_customization = $this->settings->get_option( 'cart_widget_customization', '' ); 160 $merchantId = $this->settings->get_option( 'merchant_id', '' ); 145 161 146 162 $tag_version_suffix = ( $this->settings->get_option_bool( 'widget_backward_compatibility' ) ) ? '' : '-v3'; … … 149 165 ?> 150 166 <div style="min-height:20px;<?php echo $widget_wrapper; ?>"> 151 <quadpay-widget<?php echo $tag_version_suffix ?> amount="<?php echo $amount; ?>" <?php echo $widget_customization; ?>></quadpay-widget<?php echo $tag_version_suffix ?>> 167 <quadpay-widget<?php echo $tag_version_suffix ?> 168 amount="<?php echo $amount; ?>" 169 <?php if (!empty($merchantId)):?> 170 merchantId="<?php echo $merchantId; ?>" 171 <?php endif; ?> 172 <?php echo $widget_customization; ?>> 173 </quadpay-widget<?php echo $tag_version_suffix ?>> 152 174 </div> 153 175 <?php … … 169 191 $widget_wrapper = $this->settings->get_option( 'payment_widget_wrapper', '' ); 170 192 $widget_customization = $this->settings->get_option( 'payment_widget_customization', '' ); 193 $merchantId = $this->settings->get_option( 'merchant_id', '' ); 171 194 172 195 ob_start(); 173 196 ?> 174 197 <div style="<?php echo $widget_wrapper; ?>"> 175 <zip-payment-widget amount="<?php echo $amount; ?>" <?php echo $widget_customization; ?>></zip-payment-widget> 198 <zip-payment-widget amount="<?php echo $amount; ?>" 199 <?php if (!empty($merchantId)):?> 200 merchantId="<?php echo $merchantId; ?>" 201 <?php endif; ?> 202 <?php echo $widget_customization; ?>> 203 </zip-payment-widget> 176 204 </div> 177 205 <?php -
quadpay-gateway-for-woocommerce/tags/1.7.2/quadpay.php
r2782373 r2907044 5 5 Author: Zip Co Limited 6 6 Author URI: https://zip.co 7 Version: 1.7. 17 Version: 1.7.2 8 8 WC requires at least: 3.1.0 9 WC tested up to: 6.89 WC tested up to: 7.5 10 10 */ 11 11 12 define( 'QUADPAY_WC_VERSION', '1.7. 1' );12 define( 'QUADPAY_WC_VERSION', '1.7.2' ); 13 13 define( 'QUADPAY_WC_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); 14 14 -
quadpay-gateway-for-woocommerce/tags/1.7.2/readme.txt
r2782391 r2907044 3 3 * Tags: QuadPay, WooCommerce, payment, gateway 4 4 * Requires at least: 4.7 5 * Tested up to: 6. 06 * Stable tag: 1.7. 15 * Tested up to: 6.2 6 * Stable tag: 1.7.2 7 7 * Requires PHP: 7.0 8 8 * License: GPLv3 … … 58 58 59 59 == Changelog == 60 = 1.7.2 = 61 * Added merchantId to widget tag if it is set in Payment settings 62 * Compatibility - tested up to WordPress 6.2 63 * Compatibility - tested up to WooCommerce 7.5 60 64 61 65 = 1.7.1 = -
quadpay-gateway-for-woocommerce/trunk/includes/class-quadpay-settings.php
r2712100 r2907044 120 120 'default' => '', 121 121 ), 122 'merchant_id' => array( 123 'title' => __( 'Merchant ID', 'woo_quadpay' ), 124 'type' => 'text', 125 'description' => __( 'Zip Merchant ID credential.', 'woo_quadpay' ), 126 'default' => '', 127 ), 122 128 'mfpp' => array( 123 129 'title' => __( 'Merchant Fee for Payment Plan', 'woo_quadpay' ), … … 126 132 'description' => __( 'Enable only if option is arranged and configured on Zip side. When enabled, fee may be applied to customers choosing Zip.', 'woo_quadpay' ), 127 133 'default' => 'no' 128 ),129 'merchant_id' => array(130 'title' => __( 'Merchant ID', 'woo_quadpay' ),131 'type' => 'text',132 'description' => __( 'Zip Merchant ID credential. Needed only if MFPP is enabled.', 'woo_quadpay' ),133 'default' => '',134 134 ), 135 135 'logging' => array( -
quadpay-gateway-for-woocommerce/trunk/includes/class-quadpay-widget.php
r2688749 r2907044 76 76 $widget_wrapper = $this->settings->get_option( 'product_page_widget_wrapper', '' ); 77 77 $widget_customization = $this->settings->get_option( 'product_page_widget_customization', '' ); 78 $merchantId = $this->settings->get_option( 'merchant_id', '' ); 78 79 79 80 $price = $product->get_price(); … … 83 84 ?> 84 85 <div style="min-height:20px;<?php echo $widget_wrapper; ?>"> 85 <quadpay-widget<?php echo $tag_version_suffix ?> amount="<?php echo $price; ?>" <?php echo $widget_customization; ?>></quadpay-widget<?php echo $tag_version_suffix ?>> 86 <quadpay-widget<?php echo $tag_version_suffix ?> 87 amount="<?php echo $price; ?>" 88 <?php if (!empty($merchantId)):?> 89 merchantId="<?php echo $merchantId; ?>" 90 <?php endif; ?> 91 <?php echo $widget_customization; ?>> 92 </quadpay-widget<?php echo $tag_version_suffix ?>> 86 93 </div> 87 94 <?php … … 113 120 $widget_wrapper = $this->settings->get_option( 'product_page_widget_wrapper', '' ); 114 121 $widget_customization = $this->settings->get_option( 'product_page_widget_customization', '' ); 122 $merchantId = $this->settings->get_option( 'merchant_id', '' ); 115 123 116 124 $price = $product->get_price(); … … 120 128 ?> 121 129 <div style="min-height:20px;<?php echo $widget_wrapper; ?>"> 122 <quadpay-widget<?php echo $tag_version_suffix ?> amount="<?php echo $price; ?>" <?php echo $widget_customization; ?>></quadpay-widget<?php echo $tag_version_suffix ?>> 130 <quadpay-widget<?php echo $tag_version_suffix ?> 131 amount="<?php echo $price; ?>" 132 <?php if (!empty($merchantId)):?> 133 merchantId="<?php echo $merchantId; ?>" 134 <?php endif; ?> 135 <?php echo $widget_customization; ?> 136 > 137 </quadpay-widget<?php echo $tag_version_suffix ?>> 123 138 </div> 124 139 <?php … … 143 158 $widget_wrapper = $this->settings->get_option( 'cart_widget_wrapper', '' ); 144 159 $widget_customization = $this->settings->get_option( 'cart_widget_customization', '' ); 160 $merchantId = $this->settings->get_option( 'merchant_id', '' ); 145 161 146 162 $tag_version_suffix = ( $this->settings->get_option_bool( 'widget_backward_compatibility' ) ) ? '' : '-v3'; … … 149 165 ?> 150 166 <div style="min-height:20px;<?php echo $widget_wrapper; ?>"> 151 <quadpay-widget<?php echo $tag_version_suffix ?> amount="<?php echo $amount; ?>" <?php echo $widget_customization; ?>></quadpay-widget<?php echo $tag_version_suffix ?>> 167 <quadpay-widget<?php echo $tag_version_suffix ?> 168 amount="<?php echo $amount; ?>" 169 <?php if (!empty($merchantId)):?> 170 merchantId="<?php echo $merchantId; ?>" 171 <?php endif; ?> 172 <?php echo $widget_customization; ?>> 173 </quadpay-widget<?php echo $tag_version_suffix ?>> 152 174 </div> 153 175 <?php … … 169 191 $widget_wrapper = $this->settings->get_option( 'payment_widget_wrapper', '' ); 170 192 $widget_customization = $this->settings->get_option( 'payment_widget_customization', '' ); 193 $merchantId = $this->settings->get_option( 'merchant_id', '' ); 171 194 172 195 ob_start(); 173 196 ?> 174 197 <div style="<?php echo $widget_wrapper; ?>"> 175 <zip-payment-widget amount="<?php echo $amount; ?>" <?php echo $widget_customization; ?>></zip-payment-widget> 198 <zip-payment-widget amount="<?php echo $amount; ?>" 199 <?php if (!empty($merchantId)):?> 200 merchantId="<?php echo $merchantId; ?>" 201 <?php endif; ?> 202 <?php echo $widget_customization; ?>> 203 </zip-payment-widget> 176 204 </div> 177 205 <?php -
quadpay-gateway-for-woocommerce/trunk/quadpay.php
r2782373 r2907044 5 5 Author: Zip Co Limited 6 6 Author URI: https://zip.co 7 Version: 1.7. 17 Version: 1.7.2 8 8 WC requires at least: 3.1.0 9 WC tested up to: 6.89 WC tested up to: 7.5 10 10 */ 11 11 12 define( 'QUADPAY_WC_VERSION', '1.7. 1' );12 define( 'QUADPAY_WC_VERSION', '1.7.2' ); 13 13 define( 'QUADPAY_WC_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); 14 14 -
quadpay-gateway-for-woocommerce/trunk/readme.txt
r2782391 r2907044 3 3 * Tags: QuadPay, WooCommerce, payment, gateway 4 4 * Requires at least: 4.7 5 * Tested up to: 6. 06 * Stable tag: 1.7. 15 * Tested up to: 6.2 6 * Stable tag: 1.7.2 7 7 * Requires PHP: 7.0 8 8 * License: GPLv3 … … 58 58 59 59 == Changelog == 60 = 1.7.2 = 61 * Added merchantId to widget tag if it is set in Payment settings 62 * Compatibility - tested up to WordPress 6.2 63 * Compatibility - tested up to WooCommerce 7.5 60 64 61 65 = 1.7.1 =
Note: See TracChangeset
for help on using the changeset viewer.