Changeset 3211948
- Timestamp:
- 12/23/2024 01:06:15 AM (16 months ago)
- Location:
- paylink/trunk
- Files:
-
- 3 edited
-
includes/class-wc-gateway-paylink.php (modified) (5 diffs)
-
paylink.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
paylink/trunk/includes/class-wc-gateway-paylink.php
r3207149 r3211948 6 6 * @class WC_Gateway_Paylink 7 7 * @extends WC_Payment_Gateway 8 * @version 3.0. 68 * @version 3.0.7 9 9 * @package WooCommerce\Classes\Payment 10 10 */ … … 16 16 private string $callback_url; // The URL where Paylink will send the payment status callback. 17 17 private string $card_brands; // The card brands to use for the payment. 18 private bool $display_thank_you; // Display a Thank you page before redirecting to the Paylink payment page.18 private bool $display_thank_you; // Display a Thank you page before redirecting to the Paylink payment page. 19 19 private string $instructions; // Gateway instructions that will be added to the thank you page and emails. 20 20 private string $fail_msg; // The error message that appears to the user if the payment fails. 21 private bool $test_mode; // Enable Test Mode.21 private bool $test_mode; // Enable Test Mode. 22 22 23 23 // General properties … … 96 96 protected function setup_properties() 97 97 { 98 $this->id = 'paylink';99 $this->icon = apply_filters('woocommerce_paylink_icon', plugins_url('../assets/icon.min.png', __FILE__));100 $this->method_title = __('Paylink Payment Gateway', 'paylink');98 $this->id = 'paylink'; 99 $this->icon = apply_filters('woocommerce_paylink_icon', plugins_url('../assets/icon.min.png', __FILE__)); 100 $this->method_title = __('Paylink Payment Gateway', 'paylink'); 101 101 $this->method_description = __("Paylink payment gateway for WooCommerce, It provides your customers with the popular payment methods in the Kingdom of Saudi Arabia, such as", 'paylink') . ' ' . self::_get_valid_card_brands_string(); 102 $this->has_fields = false;102 $this->has_fields = false; 103 103 } 104 104 105 105 // ---------------------------------- inheritdoc Methods ---------------------------------- 106 106 107 /** 107 108 * {@inheritdoc} … … 223 224 // Return thankyou redirect. 224 225 return array( 225 'result' => 'success',226 'result' => 'success', 226 227 'redirect' => add_query_arg('order-pay', $order->get_id(), add_query_arg('key', $order->get_order_key(), $checkout_payment_url)), 227 228 ); … … 383 384 foreach ($items as $item) { 384 385 $product = $item->get_product(); 386 387 $description = $product->get_description(); 388 $title = $product->get_name(); 389 390 // Ensure the description does not exceed 4000 characters 391 if (strlen($description) > 3900) { 392 $description = substr($description, 0, 3900); 393 } 394 395 if (strlen($title) > 250) { 396 $title = substr($title, 0, 250); 397 } 398 399 385 400 $products[] = [ 386 'title' => $ product->get_name(),401 'title' => $title, 387 402 'price' => $product->get_price(), 388 403 'qty' => $item->get_quantity(), 389 'description' => $ product->get_description(),404 'description' => $description, 390 405 'isDigital' => 'false', 391 406 // 'isDigital' => $product->is_virtual(), -
paylink/trunk/paylink.php
r3207149 r3211948 11 11 * Author URI: https://paylink.sa 12 12 * Description: Use this woocommerce payment gateway plugin to enable clients of your store to pay using Paylink gateway. 13 * Version: 3.0. 613 * Version: 3.0.7 14 14 * License: GPL-2.0+ 15 15 * License URL: http://www.gnu.org/licenses/gpl-2.0.txt -
paylink/trunk/readme.txt
r3207149 r3211948 4 4 Tested up to: 6.7.1 5 5 Requires PHP: 7.0 6 Stable tag: 3.0. 66 Stable tag: 3.0.7 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset
for help on using the changeset viewer.