Skip to content

Commit bbe11fa

Browse files
unfulvio-godaddyunfulvioitambek-godaddynikolas4175-godaddy
authored
Handle support of Apple Pay and Google Pay in WC Cart/Checkout blocks (#656)
* Do not enqueue legacy ext checkout assets if block in use * Update changelog * Bail loading scripts if not product page or checkout block in use * Update ext checkout should enqueue script to consider specific blocks * Removed typed return to avoid breaking bc * Accidental typo * Add methods to work with the payment processing context * Remove `Blocks_Handler::is_checkout_block_in_use` check This check determines if block-based checkout is the default, but this is not what we want, because block checkout may be used even if not the default. * Add sanity check to session exists before adding a notice * Update changelog * Allow dynamic properties * Spacing * Add the checkout button text to the payment data payload (#660) * Add checkout button text to payment form data * Tweak message key * Update namespace ref * Update phpdocs * Add missing since tags * Fix since tags --------- Co-authored-by: Fulvio Notarstefano <fulvio.notarstefano@gmail.com> * Fix `remove_support()` method in base gateway class (#662) * only remove features that are already set * reindex after removal * Apply review feedback --------- Co-authored-by: Fulvio Notarstefano <fulvio.notarstefano@gmail.com> * Update phpdocs and array shorthand * Update changelog * Remove internal tag from stub method * Update phpdocs * Release: v5.12.1 --------- Co-authored-by: Fulvio Notarstefano <fulvio.notarstefano@gmail.com> Co-authored-by: Illimar Tambek <itambek@godaddy.com> Co-authored-by: Illimar Tambek (GoDaddy) <77076466+itambek-godaddy@users.noreply.github.com> Co-authored-by: Nik McLaughlin <76006259+nikolas4175-godaddy@users.noreply.github.com>
1 parent cbd57b5 commit bbe11fa

File tree

135 files changed

+1112
-984
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

135 files changed

+1112
-984
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "skyverge/wc-plugin-framework",
33
"description": "The official SkyVerge WooCommerce plugin framework",
4-
"version": "5.12.0",
4+
"version": "5.12.1",
55
"license": "GPL-3.0",
66
"minimum-stability": "dev",
77
"prefer-stable": true,

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "wc-plugin-framework",
3-
"version": "5.12.0",
3+
"version": "5.12.1",
44
"title": "WooCommerce Plugin Framework",
55
"author": "SkyVerge Team",
66
"homepage": "https://github.com/skyverge/wc-plugin-framework#readme",

tests/_support/plugins/gateway-test-plugin/includes/API.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace SkyVerge\WooCommerce\GatewayTestPlugin;
44

5-
use SkyVerge\WooCommerce\PluginFramework\v5_12_0 as Framework;
5+
use SkyVerge\WooCommerce\PluginFramework\v5_12_1 as Framework;
66

77
defined( 'ABSPATH' ) or exit;
88

tests/_support/plugins/gateway-test-plugin/includes/Gateway.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace SkyVerge\WooCommerce\GatewayTestPlugin;
44

5-
use SkyVerge\WooCommerce\PluginFramework\v5_12_0 as Framework;
5+
use SkyVerge\WooCommerce\PluginFramework\v5_12_1 as Framework;
66

77
defined( 'ABSPATH' ) or exit;
88

tests/_support/plugins/gateway-test-plugin/includes/Plugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
namespace SkyVerge\WooCommerce\GatewayTestPlugin;
33

4-
use SkyVerge\WooCommerce\PluginFramework\v5_12_0 as Framework;
4+
use SkyVerge\WooCommerce\PluginFramework\v5_12_1 as Framework;
55

66
defined( 'ABSPATH' ) or exit;
77

tests/_support/plugins/test-plugin/includes/API.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
namespace SkyVerge\WooCommerce\TestPlugin;
33

4-
use SkyVerge\WooCommerce\PluginFramework\v5_12_0 as Framework;
4+
use SkyVerge\WooCommerce\PluginFramework\v5_12_1 as Framework;
55

66
defined( 'ABSPATH' ) or exit;
77

tests/_support/plugins/test-plugin/includes/Gateway.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
namespace SkyVerge\WooCommerce\TestPlugin;
33

4-
use SkyVerge\WooCommerce\PluginFramework\v5_12_0 as Framework;
4+
use SkyVerge\WooCommerce\PluginFramework\v5_12_1 as Framework;
55

66
defined( 'ABSPATH' ) or exit;
77

tests/_support/plugins/test-plugin/includes/Plugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
namespace SkyVerge\WooCommerce\TestPlugin;
33

4-
use SkyVerge\WooCommerce\PluginFramework\v5_12_0 as Framework;
4+
use SkyVerge\WooCommerce\PluginFramework\v5_12_1 as Framework;
55

66
defined( 'ABSPATH' ) or exit;
77

tests/integration/API/CacheableAPIBaseTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?php
22

3-
use SkyVerge\WooCommerce\PluginFramework\v5_12_0 as Framework;
4-
use SkyVerge\WooCommerce\PluginFramework\v5_12_0\API\Abstract_Cacheable_API_Base;
5-
use SkyVerge\WooCommerce\PluginFramework\v5_12_0\API\Traits\Cacheable_Request_Trait;
6-
use SkyVerge\WooCommerce\PluginFramework\v5_12_0\SV_WC_API_JSON_Request;
7-
use SkyVerge\WooCommerce\PluginFramework\v5_12_0\SV_WC_API_Request;
3+
use SkyVerge\WooCommerce\PluginFramework\v5_12_1 as Framework;
4+
use SkyVerge\WooCommerce\PluginFramework\v5_12_1\API\Abstract_Cacheable_API_Base;
5+
use SkyVerge\WooCommerce\PluginFramework\v5_12_1\API\Traits\Cacheable_Request_Trait;
6+
use SkyVerge\WooCommerce\PluginFramework\v5_12_1\SV_WC_API_JSON_Request;
7+
use SkyVerge\WooCommerce\PluginFramework\v5_12_1\SV_WC_API_Request;
88

99
if ( ! defined( 'ABSPATH' ) ) {
1010
define( 'ABSPATH', true );

0 commit comments

Comments
 (0)