Product Icon

WooPayments

The only payment solution fully integrated with WooCommerce. Accept credit/debit cards and local payment options with no setup or monthly fees.

Feature Request: Conditional Express Checkout Display Based on Shipping Requirements

Tady je profesionální feature request pro WooPayments:

Feature Request: Conditional Express Checkout Display Based on Shipping Requirements
Hi WooPayments team,
We’d like to propose a feature that would greatly improve Express Checkout compatibility with stores using pickup point delivery systems and local carriers.
Current Issue:
Express Checkout (Apple Pay/Google Pay) bypasses the standard WooCommerce checkout flow, which prevents customers from selecting required pickup points for local carriers (Packeta, DPD parcel shops, etc.). This results in incomplete orders that cannot be fulfilled.
Proposed Solution:
Add conditional display options for Express Checkout buttons with two possible approaches:
Option 1: Shipping Method Filtering

Add a setting in WooPayments admin to enable/disable Express Checkout per shipping method
Simple checkbox list of available shipping methods where Express Checkout should appear
Example: Enable for “Standard delivery” and “Local pickup”, disable for “DPD Parcel Shops” and “Packeta pickup points”

Option 2: Hook-Based Integration

Introduce WordPress hooks that allow developers to control Express Checkout visibility:
php// Hook to control when Express Checkout should be displayed
add_filter(‘woocommerce_payments_express_checkout_enabled’, ‘custom_express_checkout_logic’);

// Hook to validate checkout data before processing Express Checkout payment
add_action(‘woocommerce_payments_express_checkout_validate’, ‘validate_shipping_requirements’);

Use Cases:

Pickup Point Delivery: Hide Express Checkout until customer selects a specific pickup location
Local Carriers: Only show Express Checkout for shipping methods that don’t require additional customer input
Custom Validation: Allow stores to implement custom shipping validation logic

Current Workaround:
We’ve implemented a JavaScript solution that conditionally hides Express Checkout buttons:
javascript// Hide Express Checkout for shipping methods requiring pickup point selection
const allowedShippingMethods = [‘flat_rate:11’, ‘local_pickup:10’];

function toggleExpressCheckout() {
const selectedMethod = document.querySelector(‘input[name=”shipping_method[0]”]:checked’);
const expressButtons = document.querySelectorAll(‘.wcpay-express-checkout-wrapper’);

if (selectedMethod && allowedShippingMethods.includes(selectedMethod.value)) {
expressButtons.forEach(btn => btn.style.display = ”);
} else {
expressButtons.forEach(btn => btn.style.display = ‘none’);
}
}

document.addEventListener(‘change’, function(e) {
if (e.target.name?.includes(‘shipping_method’)) {
toggleExpressCheckout();
}
});
While this works, we prefer an official solution to maintain compatibility with plugin updates and ensure robustness.
Benefits:

Better UX: Customers only see Express Checkout when it’s actually usable
Reduced Support: Fewer incomplete orders and customer service issues
Market Expansion: Better support for European/global markets where pickup delivery is common
Developer Friendly: Provides flexibility for custom shipping workflows

Market Impact:
This feature would benefit many WooCommerce stores, especially in European markets where pickup point delivery dominates. According to our research, major carriers like Packeta, DPD, GLS, and others all use pickup point systems that are currently incompatible with Express Checkout.
Implementation Suggestion:
The simplest approach would be Option 1 – a settings page with checkboxes for each available shipping method. This would solve 80% of use cases without requiring custom development.
Would the team consider adding this feature to the roadmap? We’re happy to provide additional technical details or participate in beta testing.
Thank you for considering this request!

Additional Technical Notes:

Current WooPayments version: [your version]
WooCommerce version: [your version]
Affected shipping plugins: Packeta, WPify WOO, DPD, GLS, Zásilkovna, and others
Estimated impact: All stores using pickup point delivery systems

Author

werfewr3

Current Status

Open

Last updated: June 30, 2025

0 comments

Log in to comment on this feature request.