Changeset 2996251
- Timestamp:
- 11/15/2023 09:30:25 AM (2 years ago)
- Location:
- omise
- Files:
-
- 6 added
- 44 edited
- 1 copied
-
tags/5.6.0 (copied) (copied from omise/trunk)
-
tags/5.6.0/CHANGELOG.md (modified) (1 diff)
-
tags/5.6.0/assets/javascripts/card-form-customization.js (modified) (2 diffs)
-
tags/5.6.0/assets/javascripts/omise-embedded-card.js (modified) (2 diffs)
-
tags/5.6.0/composer.json (modified) (1 diff)
-
tags/5.6.0/includes/admin/class-omise-page-card-form-customization.php (modified) (3 diffs)
-
tags/5.6.0/includes/admin/views/omise-page-card-form-customization.php (modified) (3 diffs)
-
tags/5.6.0/includes/admin/views/omise-page-settings.php (modified) (1 diff)
-
tags/5.6.0/includes/gateway/class-omise-payment-creditcard.php (modified) (2 diffs)
-
tags/5.6.0/languages/omise-ja.po (modified) (2 diffs)
-
tags/5.6.0/languages/omise.pot (modified) (2 diffs)
-
tags/5.6.0/omise-woocommerce.php (modified) (2 diffs)
-
tags/5.6.0/readme.txt (modified) (2 diffs)
-
tags/5.6.0/templates/myaccount/my-card.php (modified) (1 diff)
-
tags/5.6.0/templates/payment/form.php (modified) (1 diff)
-
tags/5.6.0/tests/unit/includes/admin (added)
-
tags/5.6.0/tests/unit/includes/admin/class-omise-page-card-form-customization-test.php (added)
-
tags/5.6.0/tests/unit/includes/gateway/abstract-omise-payment-base-card-test.php (modified) (1 diff)
-
tags/5.6.0/tests/unit/includes/gateway/abstract-omise-payment-offline-test.php (modified) (1 diff)
-
tags/5.6.0/tests/unit/includes/gateway/bootstrap-test-setup.php (modified) (3 diffs)
-
tags/5.6.0/tests/unit/includes/gateway/class-omise-offsite-test.php (modified) (1 diff)
-
tags/5.6.0/tests/unit/includes/gateway/class-omise-payment-creditcard-test.php (added)
-
tags/5.6.0/tests/unit/includes/gateway/class-omise-payment-internetbanking-test.php (modified) (1 diff)
-
tags/5.6.0/tests/unit/includes/gateway/class-omise-payment-konbini-test.php (modified) (1 diff)
-
tags/5.6.0/tests/unit/includes/gateway/class-omise-payment-ocbc-digital-test.php (modified) (2 diffs)
-
tags/5.6.0/tests/unit/includes/gateway/class-omise-payment-promptpay-test.php (modified) (2 diffs)
-
trunk/CHANGELOG.md (modified) (1 diff)
-
trunk/assets/javascripts/card-form-customization.js (modified) (2 diffs)
-
trunk/assets/javascripts/omise-embedded-card.js (modified) (2 diffs)
-
trunk/composer.json (modified) (1 diff)
-
trunk/includes/admin/class-omise-page-card-form-customization.php (modified) (3 diffs)
-
trunk/includes/admin/views/omise-page-card-form-customization.php (modified) (3 diffs)
-
trunk/includes/admin/views/omise-page-settings.php (modified) (1 diff)
-
trunk/includes/gateway/class-omise-payment-creditcard.php (modified) (2 diffs)
-
trunk/languages/omise-ja.po (modified) (2 diffs)
-
trunk/languages/omise.pot (modified) (2 diffs)
-
trunk/omise-woocommerce.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/templates/myaccount/my-card.php (modified) (1 diff)
-
trunk/templates/payment/form.php (modified) (1 diff)
-
trunk/tests/unit/includes/admin (added)
-
trunk/tests/unit/includes/admin/class-omise-page-card-form-customization-test.php (added)
-
trunk/tests/unit/includes/gateway/abstract-omise-payment-base-card-test.php (modified) (1 diff)
-
trunk/tests/unit/includes/gateway/abstract-omise-payment-offline-test.php (modified) (1 diff)
-
trunk/tests/unit/includes/gateway/bootstrap-test-setup.php (modified) (3 diffs)
-
trunk/tests/unit/includes/gateway/class-omise-offsite-test.php (modified) (1 diff)
-
trunk/tests/unit/includes/gateway/class-omise-payment-creditcard-test.php (added)
-
trunk/tests/unit/includes/gateway/class-omise-payment-internetbanking-test.php (modified) (1 diff)
-
trunk/tests/unit/includes/gateway/class-omise-payment-konbini-test.php (modified) (1 diff)
-
trunk/tests/unit/includes/gateway/class-omise-payment-ocbc-digital-test.php (modified) (2 diffs)
-
trunk/tests/unit/includes/gateway/class-omise-payment-promptpay-test.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
omise/tags/5.6.0/CHANGELOG.md
r2987898 r2996251 1 1 # CHANGELOG 2 3 ### [v5.6.0 _(Nov 15, 2023)_](https://github.com/omise/omise-woocommerce/releases/tag/v5.6.0) 4 - Support Google fonts other than Poppins. (PR [#416](https://github.com/omise/omise-woocommerce/pull/416)) 2 5 3 6 ### [v5.5.1 _(Nov 2, 2023)_](https://github.com/omise/omise-woocommerce/releases/tag/v5.5.1) -
omise/tags/5.6.0/assets/javascripts/card-form-customization.js
r2892466 r2996251 59 59 } 60 60 61 function handleFontChange() { 62 const fontName = document.getElementById('omise_sf_font_name'); 63 64 if (fontName.value === OMISE_CUSTOM_FONT_OTHER) { 65 document.getElementById('omise_sf_custom_font_name').style.display = null 66 } 67 68 fontName.addEventListener('change', (event) => { 69 const customFontName = document.getElementById('omise_sf_custom_font_name'); 70 const inputCustomFont = customFontName.querySelector('input') 71 72 if (event.target.value === OMISE_CUSTOM_FONT_OTHER) { 73 customFontName.style.display = null; 74 inputCustomFont.required = true; 75 } else { 76 customFontName.style.display = 'none'; 77 inputCustomFont.value = ''; 78 inputCustomFont.required = false; 79 } 80 }); 81 } 82 61 83 function initOmiseCardForm() { 62 84 const customCardFormTheme = CARD_FORM_THEME ?? 'light'; … … 92 114 setDesignFormValues(); 93 115 handleColorInputChanges(); 116 handleFontChange(); -
omise/tags/5.6.0/assets/javascripts/omise-embedded-card.js
r2949923 r2996251 26 26 element.style.height = iframeElementHeight + 'px' 27 27 28 let fontName = font.name 29 const isCustomFontSet = font.name.toLowerCase().trim() === OMISE_CUSTOM_FONT_OTHER.toLowerCase() 30 const isCustomFontEmpty = font.custom_name.trim() === '' 31 32 if (isCustomFontSet && !isCustomFontEmpty) { 33 fontName = font.custom_name.trim() 34 } 35 28 36 OmiseCard.configure({ 29 37 publicKey: publicKey, … … 35 43 customCardFormBrandIcons: brandIcons ?? null, 36 44 style: { 37 fontFamily: font .name,45 fontFamily: fontName, 38 46 fontSize: font.size, 39 47 input: { -
omise/tags/5.6.0/composer.json
r2946870 r2996251 6 6 "require-dev": { 7 7 "phpunit/phpunit": "^5.7 || ^9.5", 8 "mockery/mockery": "^1.6" 8 "mockery/mockery": "^1.6", 9 "brain/monkey": "^2.6" 9 10 }, 10 11 "scripts": { -
omise/tags/5.6.0/includes/admin/class-omise-page-card-form-customization.php
r2892466 r2996251 28 28 'name' => 'Poppins', 29 29 'size' => 16, 30 'custom_name' => '' 30 31 ], 31 32 'input' => [ … … 52 53 'name' => 'Poppins', 53 54 'size' => 16, 55 'custom_name' => '' 54 56 ], 55 57 'input' => [ … … 111 113 } 112 114 } 115 113 116 update_option(self::PAGE_NAME, $options); 114 117 $this->add_message('message', "Update has been saved!"); -
omise/tags/5.6.0/includes/admin/views/omise-page-card-form-customization.php
r2892466 r2996251 5 5 $cardIcons = $omiseCardGateway->get_card_icons(); 6 6 $publicKey = Omise()->settings()->public_key(); 7 $customFontOther = 'Other'; 7 8 ?> 8 9 … … 25 26 <td class="text-bold" style="width: 250px;">Font Name</td> 26 27 <td> 27 <select class="select-input" name="font[name]">28 <select id="omise_sf_font_name" class="select-input" name="font[name]"> 28 29 <option value="Poppins">Poppins</option> 29 <option value="Circular" selected>Circular</option> 30 </select> 31 <div class="description">Match font used in form with your selected font</div> 30 <option value="<?php echo $customFontOther ?>"><?php echo $customFontOther ?></option> 31 </select> 32 </td> 33 </tr> 34 35 <tr id="omise_sf_custom_font_name" style="display: none;"> 36 <td class="text-bold" style="width: 250px;"></td> 37 <td> 38 <input type="text" class="select-input" placeholder="Font Name" name="font[custom_name]" /> 39 <div class="description">Specify other font name (note: only Google Fonts supported)</div> 32 40 </td> 33 41 </tr> … … 190 198 window.CARD_BRAND_ICONS = JSON.parse(`<?php echo json_encode($cardIcons) ?>`); 191 199 window.LOCALE = `<?php echo get_locale(); ?>`; 200 window.OMISE_CUSTOM_FONT_OTHER = `<?php echo $customFontOther ?>`; 192 201 </script> 193 202 <script src="<?php echo $assetUrl . '/javascripts/omise-embedded-card.js'; ?>"></script> -
omise/tags/5.6.0/includes/admin/views/omise-page-settings.php
r2979883 r2996251 140 140 echo sprintf( 141 141 wp_kses( 142 __( 'Unless dynamic webhooks are enabled, you must add the URL belowas a new endpoint on your <a href="%s">Opn Payments dashboard</a> (HTTPS only).', 'omise' ),142 __( 'Unless dynamic webhooks are enabled, you must add the URL above as a new endpoint on your <a href="%s">Opn Payments dashboard</a> (HTTPS only).', 'omise' ), 143 143 [ 144 144 'a' => ['href' => []], -
omise/tags/5.6.0/includes/gateway/class-omise-payment-creditcard.php
r2892466 r2996251 16 16 $this->method_title = __( 'Opn Payments Credit / Debit Card', 'omise' ); 17 17 $this->method_description = wp_kses( 18 __( 'Accept payment through <strong>Credit / Debit Card</strong> via Opn Payments payment gateway.', 'omise' ),18 __( 'Accept payment through <strong>Credit / Debit Card</strong> via Opn Payments.', 'omise' ), 19 19 array( 20 20 'strong' => array() … … 149 149 'default' => Omise_Card_Image::get_amex_default_display(), 150 150 'description' => wp_kses( 151 __( 'This only controls the icons displayed on the checkout page.<br />It is not related to card processing on O mise payment gateway.', 'omise' ),151 __( 'This only controls the icons displayed on the checkout page.<br />It is not related to card processing on Opn Payments.', 'omise' ), 152 152 array( 'br' => array() ) 153 153 ) -
omise/tags/5.6.0/languages/omise-ja.po
r2892466 r2996251 128 128 129 129 #: includes/gateway/class-omise-payment-creditcard.php:23 130 msgid "Accept payment through <strong>Credit / Debit Card</strong> via Opn Payments payment gateway."130 msgid "Accept payment through <strong>Credit / Debit Card</strong> via Opn Payments." 131 131 msgstr "Opn Payments決済ゲートウェイを経由して<strong>クレジットカード/デビットカード</strong>決済を受け付けます。" 132 132 … … 176 176 177 177 #: includes/gateway/class-omise-payment-creditcard.php:134 178 msgid "This only controls the icons displayed on the checkout page.<br />It is not related to card processing on Opn Payments payment gateway."178 msgid "This only controls the icons displayed on the checkout page.<br />It is not related to card processing on Opn Payments." 179 179 msgstr "ご提供可能なカードブランドのアイコンを決済画面に表示できます。<br/>本項目の選択内容は、カード処理システムには影響いたしません。" 180 180 -
omise/tags/5.6.0/languages/omise.pot
r2892466 r2996251 127 127 128 128 #: includes/gateway/class-omise-payment-creditcard.php:23 129 msgid "Accept payment through <strong>Credit / Debit Card</strong> via Opn Payments payment gateway."129 msgid "Accept payment through <strong>Credit / Debit Card</strong> via Opn Payments." 130 130 msgstr "Opn Payments決済ゲートウェイを経由して<strong>クレジットカード/デビットカード</strong>決済を受け付けます。" 131 131 … … 175 175 176 176 #: includes/gateway/class-omise-payment-creditcard.php:134 177 msgid "This only controls the icons displayed on the checkout page.<br />It is not related to card processing on Opn Payments payment gateway."177 msgid "This only controls the icons displayed on the checkout page.<br />It is not related to card processing on Opn Payments." 178 178 msgstr "ご提供可能なカードブランドのアイコンを決済画面に表示できます。<br/>本項目の選択内容は、カード処理システムには影響いたしません。" 179 179 -
omise/tags/5.6.0/omise-woocommerce.php
r2987898 r2996251 5 5 * Plugin URI: https://www.omise.co/woocommerce 6 6 * Description: Opn Payments is a WordPress plugin designed specifically for WooCommerce. The plugin adds support for Opn Payments Payment Gateway's payment methods to WooCommerce. 7 * Version: 5. 5.17 * Version: 5.6.0 8 8 * Author: Opn Payments and contributors 9 9 * Author URI: https://github.com/omise/omise-woocommerce/graphs/contributors … … 23 23 * @var string 24 24 */ 25 public $version = '5. 5.1';25 public $version = '5.6.0'; 26 26 27 27 /** -
omise/tags/5.6.0/readme.txt
r2987898 r2996251 3 3 Tags: opn payments, payment, payment gateway, woocommerce plugin, omise, opn, installment, internet banking, alipay, paynow, truemoney wallet, woocommerce payment 4 4 Requires at least: 4.3.1 5 Tested up to: 6. 3.26 Stable tag: 5. 5.15 Tested up to: 6.4.0 6 Stable tag: 5.6.0 7 7 License: MIT 8 8 License URI: https://opensource.org/licenses/MIT … … 34 34 35 35 == Changelog == 36 37 = 5.6.0 = 38 39 - Support Google fonts other than Poppins. (PR [#416](https://github.com/omise/omise-woocommerce/pull/416)) 36 40 37 41 = 5.5.1 = -
omise/tags/5.6.0/templates/myaccount/my-card.php
r2892466 r2996251 57 57 window.CARD_BRAND_ICONS = JSON.parse(`<?php echo json_encode($viewData['cardIcons']) ?>`); 58 58 window.LOCALE = `<?php echo get_locale(); ?>`; 59 window.OMISE_CUSTOM_FONT_OTHER = 'Other'; 59 60 </script> 60 61 <?php endif; ?> -
omise/tags/5.6.0/templates/payment/form.php
r2892466 r2996251 61 61 window.LOCALE = `<?php echo get_locale(); ?>`; 62 62 window.HIDE_REMEMBER_CARD = `<?php echo $hideRememberCard ?>` == 'yes' ? true : false; 63 window.OMISE_CUSTOM_FONT_OTHER = 'Other'; 63 64 </script> 64 65 <?php endif; ?> -
omise/tags/5.6.0/tests/unit/includes/gateway/abstract-omise-payment-base-card-test.php
r2979883 r2996251 41 41 } 42 42 }; 43 } 44 45 /** 46 * close mockery after tests are done 47 */ 48 public function tearDown(): void 49 { 50 Mockery::close(); 43 51 } 44 52 -
omise/tags/5.6.0/tests/unit/includes/gateway/abstract-omise-payment-offline-test.php
r2979883 r2996251 9 9 parent::setUp(); 10 10 Mockery::mock('alias:Omise_Payment')->makePartial(); 11 require_once __DIR__ . '/../../../../includes/gateway/abstract-omise-payment-offline.php';12 11 } 13 12 } -
omise/tags/5.6.0/tests/unit/includes/gateway/bootstrap-test-setup.php
r2979883 r2996251 2 2 3 3 use PHPUnit\Framework\TestCase; 4 use Brain; 4 5 5 6 abstract class Bootstrap_Test_Setup extends TestCase … … 9 10 public function setUp(): void 10 11 { 11 // mocking WP built-in functions 12 if (!function_exists('wp_kses')) { 13 function wp_kses() {} 14 } 12 Brain\Monkey\setUp(); 13 Brain\Monkey\Functions\stubs( [ 14 'wp_kses' => null, 15 'add_action' => null, 16 ] ); 17 } 15 18 16 if (!function_exists('add_action')) { 17 function add_action() {} 18 } 19 /** 20 * close mockery after tests are done 21 */ 22 public function tearDown(): void 23 { 24 Brain\Monkey\tearDown(); 25 Mockery::close(); 19 26 } 20 27 … … 54 61 55 62 /** 56 * close mockery after tests are done57 */58 public function tearDown(): void59 {60 Mockery::close();61 }62 63 /**64 63 * @runInSeparateProcess 65 64 */ -
omise/tags/5.6.0/tests/unit/includes/gateway/class-omise-offsite-test.php
r2979883 r2996251 23 23 // destroy object and clear memory 24 24 unset($offsite); 25 }26 27 /**28 * close mockery after tests are done29 */30 public function tearDown(): void31 {32 parent::tearDown();33 Mockery::close();34 25 } 35 26 -
omise/tags/5.6.0/tests/unit/includes/gateway/class-omise-payment-internetbanking-test.php
r2979883 r2996251 9 9 $this->sourceType = 'fpx'; 10 10 parent::setUp(); 11 // require_once __DIR__ . '/../../../../includes/backends/class-omise-backend-fpx.php';12 11 require_once __DIR__ . '/../../../../includes/gateway/class-omise-payment-internetbanking.php'; 13 12 } -
omise/tags/5.6.0/tests/unit/includes/gateway/class-omise-payment-konbini-test.php
r2979883 r2996251 8 8 public function setUp(): void 9 9 { 10 parent::setUp(); 10 11 // Mocking the parent class 11 12 $offline = Mockery::mock('overload:Omise_Payment_Offline'); -
omise/tags/5.6.0/tests/unit/includes/gateway/class-omise-payment-ocbc-digital-test.php
r2979883 r2996251 19 19 function plugins_url() { 20 20 return "http://localhost"; 21 }22 }23 24 if (!function_exists('apply_filters')) {25 function apply_filters() {26 return "http://localhost/image.png";27 21 } 28 22 } … … 81 75 { 82 76 $result = $this->obj->get_icon(); 83 $this->assertEquals("http://localhost/image.png", $result); 77 $this->assertEquals( 78 "<img src='/ocbc-digital.png' class='Omise-Image' style='width: 60px; max-height: 30px;' alt='OCBC Digital' />", 79 $result 80 ); 84 81 } 85 82 -
omise/tags/5.6.0/tests/unit/includes/gateway/class-omise-payment-promptpay-test.php
r2979883 r2996251 1 1 <?php 2 3 use Mockery\Mock;4 2 5 3 class Omise_Payment_Promptpay_Test extends Omise_Payment_Offline_Test … … 15 13 public function setUp(): void 16 14 { 15 parent::setUp(); 17 16 function wc_timezone_offset() {} 18 17 function wp_create_nonce() {} -
omise/trunk/CHANGELOG.md
r2987898 r2996251 1 1 # CHANGELOG 2 3 ### [v5.6.0 _(Nov 15, 2023)_](https://github.com/omise/omise-woocommerce/releases/tag/v5.6.0) 4 - Support Google fonts other than Poppins. (PR [#416](https://github.com/omise/omise-woocommerce/pull/416)) 2 5 3 6 ### [v5.5.1 _(Nov 2, 2023)_](https://github.com/omise/omise-woocommerce/releases/tag/v5.5.1) -
omise/trunk/assets/javascripts/card-form-customization.js
r2892466 r2996251 59 59 } 60 60 61 function handleFontChange() { 62 const fontName = document.getElementById('omise_sf_font_name'); 63 64 if (fontName.value === OMISE_CUSTOM_FONT_OTHER) { 65 document.getElementById('omise_sf_custom_font_name').style.display = null 66 } 67 68 fontName.addEventListener('change', (event) => { 69 const customFontName = document.getElementById('omise_sf_custom_font_name'); 70 const inputCustomFont = customFontName.querySelector('input') 71 72 if (event.target.value === OMISE_CUSTOM_FONT_OTHER) { 73 customFontName.style.display = null; 74 inputCustomFont.required = true; 75 } else { 76 customFontName.style.display = 'none'; 77 inputCustomFont.value = ''; 78 inputCustomFont.required = false; 79 } 80 }); 81 } 82 61 83 function initOmiseCardForm() { 62 84 const customCardFormTheme = CARD_FORM_THEME ?? 'light'; … … 92 114 setDesignFormValues(); 93 115 handleColorInputChanges(); 116 handleFontChange(); -
omise/trunk/assets/javascripts/omise-embedded-card.js
r2949923 r2996251 26 26 element.style.height = iframeElementHeight + 'px' 27 27 28 let fontName = font.name 29 const isCustomFontSet = font.name.toLowerCase().trim() === OMISE_CUSTOM_FONT_OTHER.toLowerCase() 30 const isCustomFontEmpty = font.custom_name.trim() === '' 31 32 if (isCustomFontSet && !isCustomFontEmpty) { 33 fontName = font.custom_name.trim() 34 } 35 28 36 OmiseCard.configure({ 29 37 publicKey: publicKey, … … 35 43 customCardFormBrandIcons: brandIcons ?? null, 36 44 style: { 37 fontFamily: font .name,45 fontFamily: fontName, 38 46 fontSize: font.size, 39 47 input: { -
omise/trunk/composer.json
r2946870 r2996251 6 6 "require-dev": { 7 7 "phpunit/phpunit": "^5.7 || ^9.5", 8 "mockery/mockery": "^1.6" 8 "mockery/mockery": "^1.6", 9 "brain/monkey": "^2.6" 9 10 }, 10 11 "scripts": { -
omise/trunk/includes/admin/class-omise-page-card-form-customization.php
r2892466 r2996251 28 28 'name' => 'Poppins', 29 29 'size' => 16, 30 'custom_name' => '' 30 31 ], 31 32 'input' => [ … … 52 53 'name' => 'Poppins', 53 54 'size' => 16, 55 'custom_name' => '' 54 56 ], 55 57 'input' => [ … … 111 113 } 112 114 } 115 113 116 update_option(self::PAGE_NAME, $options); 114 117 $this->add_message('message', "Update has been saved!"); -
omise/trunk/includes/admin/views/omise-page-card-form-customization.php
r2892466 r2996251 5 5 $cardIcons = $omiseCardGateway->get_card_icons(); 6 6 $publicKey = Omise()->settings()->public_key(); 7 $customFontOther = 'Other'; 7 8 ?> 8 9 … … 25 26 <td class="text-bold" style="width: 250px;">Font Name</td> 26 27 <td> 27 <select class="select-input" name="font[name]">28 <select id="omise_sf_font_name" class="select-input" name="font[name]"> 28 29 <option value="Poppins">Poppins</option> 29 <option value="Circular" selected>Circular</option> 30 </select> 31 <div class="description">Match font used in form with your selected font</div> 30 <option value="<?php echo $customFontOther ?>"><?php echo $customFontOther ?></option> 31 </select> 32 </td> 33 </tr> 34 35 <tr id="omise_sf_custom_font_name" style="display: none;"> 36 <td class="text-bold" style="width: 250px;"></td> 37 <td> 38 <input type="text" class="select-input" placeholder="Font Name" name="font[custom_name]" /> 39 <div class="description">Specify other font name (note: only Google Fonts supported)</div> 32 40 </td> 33 41 </tr> … … 190 198 window.CARD_BRAND_ICONS = JSON.parse(`<?php echo json_encode($cardIcons) ?>`); 191 199 window.LOCALE = `<?php echo get_locale(); ?>`; 200 window.OMISE_CUSTOM_FONT_OTHER = `<?php echo $customFontOther ?>`; 192 201 </script> 193 202 <script src="<?php echo $assetUrl . '/javascripts/omise-embedded-card.js'; ?>"></script> -
omise/trunk/includes/admin/views/omise-page-settings.php
r2979883 r2996251 140 140 echo sprintf( 141 141 wp_kses( 142 __( 'Unless dynamic webhooks are enabled, you must add the URL belowas a new endpoint on your <a href="%s">Opn Payments dashboard</a> (HTTPS only).', 'omise' ),142 __( 'Unless dynamic webhooks are enabled, you must add the URL above as a new endpoint on your <a href="%s">Opn Payments dashboard</a> (HTTPS only).', 'omise' ), 143 143 [ 144 144 'a' => ['href' => []], -
omise/trunk/includes/gateway/class-omise-payment-creditcard.php
r2892466 r2996251 16 16 $this->method_title = __( 'Opn Payments Credit / Debit Card', 'omise' ); 17 17 $this->method_description = wp_kses( 18 __( 'Accept payment through <strong>Credit / Debit Card</strong> via Opn Payments payment gateway.', 'omise' ),18 __( 'Accept payment through <strong>Credit / Debit Card</strong> via Opn Payments.', 'omise' ), 19 19 array( 20 20 'strong' => array() … … 149 149 'default' => Omise_Card_Image::get_amex_default_display(), 150 150 'description' => wp_kses( 151 __( 'This only controls the icons displayed on the checkout page.<br />It is not related to card processing on O mise payment gateway.', 'omise' ),151 __( 'This only controls the icons displayed on the checkout page.<br />It is not related to card processing on Opn Payments.', 'omise' ), 152 152 array( 'br' => array() ) 153 153 ) -
omise/trunk/languages/omise-ja.po
r2892466 r2996251 128 128 129 129 #: includes/gateway/class-omise-payment-creditcard.php:23 130 msgid "Accept payment through <strong>Credit / Debit Card</strong> via Opn Payments payment gateway."130 msgid "Accept payment through <strong>Credit / Debit Card</strong> via Opn Payments." 131 131 msgstr "Opn Payments決済ゲートウェイを経由して<strong>クレジットカード/デビットカード</strong>決済を受け付けます。" 132 132 … … 176 176 177 177 #: includes/gateway/class-omise-payment-creditcard.php:134 178 msgid "This only controls the icons displayed on the checkout page.<br />It is not related to card processing on Opn Payments payment gateway."178 msgid "This only controls the icons displayed on the checkout page.<br />It is not related to card processing on Opn Payments." 179 179 msgstr "ご提供可能なカードブランドのアイコンを決済画面に表示できます。<br/>本項目の選択内容は、カード処理システムには影響いたしません。" 180 180 -
omise/trunk/languages/omise.pot
r2892466 r2996251 127 127 128 128 #: includes/gateway/class-omise-payment-creditcard.php:23 129 msgid "Accept payment through <strong>Credit / Debit Card</strong> via Opn Payments payment gateway."129 msgid "Accept payment through <strong>Credit / Debit Card</strong> via Opn Payments." 130 130 msgstr "Opn Payments決済ゲートウェイを経由して<strong>クレジットカード/デビットカード</strong>決済を受け付けます。" 131 131 … … 175 175 176 176 #: includes/gateway/class-omise-payment-creditcard.php:134 177 msgid "This only controls the icons displayed on the checkout page.<br />It is not related to card processing on Opn Payments payment gateway."177 msgid "This only controls the icons displayed on the checkout page.<br />It is not related to card processing on Opn Payments." 178 178 msgstr "ご提供可能なカードブランドのアイコンを決済画面に表示できます。<br/>本項目の選択内容は、カード処理システムには影響いたしません。" 179 179 -
omise/trunk/omise-woocommerce.php
r2987898 r2996251 5 5 * Plugin URI: https://www.omise.co/woocommerce 6 6 * Description: Opn Payments is a WordPress plugin designed specifically for WooCommerce. The plugin adds support for Opn Payments Payment Gateway's payment methods to WooCommerce. 7 * Version: 5. 5.17 * Version: 5.6.0 8 8 * Author: Opn Payments and contributors 9 9 * Author URI: https://github.com/omise/omise-woocommerce/graphs/contributors … … 23 23 * @var string 24 24 */ 25 public $version = '5. 5.1';25 public $version = '5.6.0'; 26 26 27 27 /** -
omise/trunk/readme.txt
r2987898 r2996251 3 3 Tags: opn payments, payment, payment gateway, woocommerce plugin, omise, opn, installment, internet banking, alipay, paynow, truemoney wallet, woocommerce payment 4 4 Requires at least: 4.3.1 5 Tested up to: 6. 3.26 Stable tag: 5. 5.15 Tested up to: 6.4.0 6 Stable tag: 5.6.0 7 7 License: MIT 8 8 License URI: https://opensource.org/licenses/MIT … … 34 34 35 35 == Changelog == 36 37 = 5.6.0 = 38 39 - Support Google fonts other than Poppins. (PR [#416](https://github.com/omise/omise-woocommerce/pull/416)) 36 40 37 41 = 5.5.1 = -
omise/trunk/templates/myaccount/my-card.php
r2892466 r2996251 57 57 window.CARD_BRAND_ICONS = JSON.parse(`<?php echo json_encode($viewData['cardIcons']) ?>`); 58 58 window.LOCALE = `<?php echo get_locale(); ?>`; 59 window.OMISE_CUSTOM_FONT_OTHER = 'Other'; 59 60 </script> 60 61 <?php endif; ?> -
omise/trunk/templates/payment/form.php
r2892466 r2996251 61 61 window.LOCALE = `<?php echo get_locale(); ?>`; 62 62 window.HIDE_REMEMBER_CARD = `<?php echo $hideRememberCard ?>` == 'yes' ? true : false; 63 window.OMISE_CUSTOM_FONT_OTHER = 'Other'; 63 64 </script> 64 65 <?php endif; ?> -
omise/trunk/tests/unit/includes/gateway/abstract-omise-payment-base-card-test.php
r2979883 r2996251 41 41 } 42 42 }; 43 } 44 45 /** 46 * close mockery after tests are done 47 */ 48 public function tearDown(): void 49 { 50 Mockery::close(); 43 51 } 44 52 -
omise/trunk/tests/unit/includes/gateway/abstract-omise-payment-offline-test.php
r2979883 r2996251 9 9 parent::setUp(); 10 10 Mockery::mock('alias:Omise_Payment')->makePartial(); 11 require_once __DIR__ . '/../../../../includes/gateway/abstract-omise-payment-offline.php';12 11 } 13 12 } -
omise/trunk/tests/unit/includes/gateway/bootstrap-test-setup.php
r2979883 r2996251 2 2 3 3 use PHPUnit\Framework\TestCase; 4 use Brain; 4 5 5 6 abstract class Bootstrap_Test_Setup extends TestCase … … 9 10 public function setUp(): void 10 11 { 11 // mocking WP built-in functions 12 if (!function_exists('wp_kses')) { 13 function wp_kses() {} 14 } 12 Brain\Monkey\setUp(); 13 Brain\Monkey\Functions\stubs( [ 14 'wp_kses' => null, 15 'add_action' => null, 16 ] ); 17 } 15 18 16 if (!function_exists('add_action')) { 17 function add_action() {} 18 } 19 /** 20 * close mockery after tests are done 21 */ 22 public function tearDown(): void 23 { 24 Brain\Monkey\tearDown(); 25 Mockery::close(); 19 26 } 20 27 … … 54 61 55 62 /** 56 * close mockery after tests are done57 */58 public function tearDown(): void59 {60 Mockery::close();61 }62 63 /**64 63 * @runInSeparateProcess 65 64 */ -
omise/trunk/tests/unit/includes/gateway/class-omise-offsite-test.php
r2979883 r2996251 23 23 // destroy object and clear memory 24 24 unset($offsite); 25 }26 27 /**28 * close mockery after tests are done29 */30 public function tearDown(): void31 {32 parent::tearDown();33 Mockery::close();34 25 } 35 26 -
omise/trunk/tests/unit/includes/gateway/class-omise-payment-internetbanking-test.php
r2979883 r2996251 9 9 $this->sourceType = 'fpx'; 10 10 parent::setUp(); 11 // require_once __DIR__ . '/../../../../includes/backends/class-omise-backend-fpx.php';12 11 require_once __DIR__ . '/../../../../includes/gateway/class-omise-payment-internetbanking.php'; 13 12 } -
omise/trunk/tests/unit/includes/gateway/class-omise-payment-konbini-test.php
r2979883 r2996251 8 8 public function setUp(): void 9 9 { 10 parent::setUp(); 10 11 // Mocking the parent class 11 12 $offline = Mockery::mock('overload:Omise_Payment_Offline'); -
omise/trunk/tests/unit/includes/gateway/class-omise-payment-ocbc-digital-test.php
r2979883 r2996251 19 19 function plugins_url() { 20 20 return "http://localhost"; 21 }22 }23 24 if (!function_exists('apply_filters')) {25 function apply_filters() {26 return "http://localhost/image.png";27 21 } 28 22 } … … 81 75 { 82 76 $result = $this->obj->get_icon(); 83 $this->assertEquals("http://localhost/image.png", $result); 77 $this->assertEquals( 78 "<img src='/ocbc-digital.png' class='Omise-Image' style='width: 60px; max-height: 30px;' alt='OCBC Digital' />", 79 $result 80 ); 84 81 } 85 82 -
omise/trunk/tests/unit/includes/gateway/class-omise-payment-promptpay-test.php
r2979883 r2996251 1 1 <?php 2 3 use Mockery\Mock;4 2 5 3 class Omise_Payment_Promptpay_Test extends Omise_Payment_Offline_Test … … 15 13 public function setUp(): void 16 14 { 15 parent::setUp(); 17 16 function wc_timezone_offset() {} 18 17 function wp_create_nonce() {}
Note: See TracChangeset
for help on using the changeset viewer.