Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Express checkout compatibility w/ Gift Cards extension #3850

Open
frosso opened this issue Feb 6, 2025 · 0 comments
Open

Express checkout compatibility w/ Gift Cards extension #3850

frosso opened this issue Feb 6, 2025 · 0 comments
Labels
type: bug The issue is a confirmed bug.

Comments

@frosso
Copy link
Contributor

frosso commented Feb 6, 2025

Describe the bug

When a "Gift Cards for WooCommerce" gift card is applied at cart/checkout, it is no longer possible to pay with the ECE button.
Upon clicking the button, Stripe fails with the following error:

Uncaught (in promise) IntegrationError: The amount {xxx} is less than the total amount of the line items provided

To Reproduce
Steps to reproduce the behavior:

  1. Install the "Gift Cards for WooCommerce" extension
  2. Create a "Gift card" product - follow the documentation
  3. Purchase a gift card
  4. Take note of the gift card code
  5. Ensure you have the ECE (GooglePay/ApplePay) enabled for WC Stripe
  6. Go to the checkout page (this applies to both block-based and shortcode-based checkout)
  7. Apply the gift card code you noted on the previous step
  8. Click on the GooglePay/ApplePay button
  9. Observe the error in the console

Expected behavior
There should be no error in the console.
The ECE window should display, allowing the customer to complete checkout with gift cards applied.

Screenshots

Image

Environment (please complete the following information):

System Status Report
### WordPress Environment ###

WordPress address (URL): [Redacted]
Site address (URL): [Redacted]
WC Version: 9.6.0-rc.1
Legacy REST API Package Version: The Legacy REST API plugin is not installed on this site.
Action Scheduler Version: ✔ 3.9.0
Log Directory Writable: ✔
WP Version: 6.7.1
WP Multisite: –
WP Memory Limit: 512 MB
WP Debug Mode: ✔
WP Cron: ✔
Language: en_US
External object cache: –

### Server Environment ###

Server Info: nginx/1.27.0
PHP Version: 8.1.29
PHP Post Max Size: 512 MB
PHP Time Limit: 30
PHP Max Input Vars: 1000
cURL Version: 8.10.0
OpenSSL/3.3.2 (SecureTransport)

SUHOSIN Installed: –
MySQL Version: 11.5.2-MariaDB
Max Upload Size: 512 MB
Default Timezone is UTC: ✔
fsockopen/cURL: ✔
SoapClient: ✔
DOMDocument: ✔
GZip: ✔
Multibyte String: ✔
Remote Post: ✔
Remote Get: ✔

### Database ###

[REDACTED]

### Post Type Counts ###

attachment: 23
elementor_library: 1
page: 10
post: 2
product: 30
product_variation: 18
revision: 18
shop_order_placehold: 162
wp_global_styles: 3
wp_navigation: 1
wp_template: 1

### Security ###

Secure connection (HTTPS): ✔
Hide errors from visitors: ❌Error messages should not be shown to visitors.

### Active Plugins (1) ###

WooCommerce Clone Orders: by Vibe Agency – 1.5.9
Code Snippets: by Code Snippets Pro – 3.6.5.1
Disable All WordPress Updates: by Oliver Schlöbe – 1.7.1
Elementor: by Elementor.com – 3.24.7
Jetpack: by Automattic – 13.9.1
Vendrify Core: by Astoundify – 1.0.2
WooCommerce Beta Tester: by WooCommerce – 2.5.1
WooCommerce Checkout Field Editor: by WooCommerce – 1.7.12
WooCommerce Composite Products: by Woo – 10.3.1
WooCommerce Deposits: by WooCommerce – 2.3.3
WooCommerce Stripe Gateway: by Stripe – 9.1.1
WooCommerce Gift Cards: by Woo – 2.2.2
WooPayments Dev Tools: by Automattic –
WooCommerce Product Bundles: by Woo – 8.2.1
Woo Subscriptions: by WooCommerce – 5.9.1
WooCommerce: by Automattic – 9.6.0-rc.1
WordPress Importer: by wordpressdotorg – 0.8.2
Mail logging - WP Mail Catcher: by James Ward – 2.1.10

### Inactive Plugins (23) ###

BRT Fermopoint: by BRT – 2.0.9
Cookie banner plugin for WordPress – Cookiebot CMP by Usercentrics: by Usercentrics A/S – 4.3.9
WooPayments: by WooCommerce – 8.9.0
Elementor Pro: by Elementor.com – 3.24.4
Failed Gateway: by It could be anyone. – 1.0
Google reCaptcha for WooCommerce: by KoalaApps – 1.4.1
Hello Dolly: by Matt Mullenweg – 1.7.2
Loco Translate: by Tim Whitlock – 2.6.11
Order Bump for WooCommerce: by Flintop – 3.8.0
Query Monitor: by John Blackbourn – 3.16.4
reCaptcha for WooCommerce: by I Thirteen Web Solution – 2.57
reCAPTCHA for WooCommerce: by Elliot Sowersby
RelyWP – 1.3.6

Simple Cloudflare Turnstile: by Elliot Sowersby
RelyWP – 1.28.0

Transact Gateway: by WooCommerce – 0.0.1
Variation Swatches for WooCommerce: by CartFlows – 1.0.11
WooCommerce Advanced Shipping Packages: by Jeroen Sormani – 1.2.1
WooCommerce Bookings: by WooCommerce – 2.1.1
WooCommerce Payment Gateway Based Fees: by InoPlugs – 4.1
WooCommerce PayPal Payments: by WooCommerce – 2.9.0
WooCommerce Square: by WooCommerce – 4.8.3
Woo Product Add-ons: by Woo – 6.8.1
WordPress.com Special Projects Donations: by WordPress.com Special Projects – 2.0.8
WP Armour - Honeypot Anti Spam: by Dnesscarkey – 2.2.05

### Dropin Plugins () ###

db.php: Query Monitor Database Class (Drop-in)

### Settings ###

Legacy API Enabled: –
Force SSL: –
Currency: USD ($)
Currency Position: left
Thousand Separator: ,
Decimal Separator: .
Number of Decimals: 2
Taxonomies: Product Types: bundle (bundle)
composite (composite)
external (external)
grouped (grouped)
simple (simple)
subscription (subscription)
variable (variable)
variable subscription (variable-subscription)

Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
exclude-from-search (exclude-from-search)
featured (featured)
outofstock (outofstock)
rated-1 (rated-1)
rated-2 (rated-2)
rated-3 (rated-3)
rated-4 (rated-4)
rated-5 (rated-5)

Connected to WooCommerce.com: –
Enforce Approved Product Download Directories: ✔
HPOS feature enabled: ✔
Order datastore: Automattic\WooCommerce\Internal\DataStores\Orders\OrdersTableDataStore
HPOS data sync enabled: –

### Logging ###

Enabled: ✔
Handler: Automattic\WooCommerce\Internal\Admin\Logging\LogHandlerFileV2
Retention period: 30 days
Level threshold: –
Log directory size: 14 MB

### WC Pages ###

Shop base: #5 - /shop/
Cart: #156 - /shortcode-cart/ -  Contains the [woocommerce_cart] shortcode
Checkout: #72 - /shortcode-checkout/ -  Contains the [woocommerce_checkout] shortcode
My account: #8 - /my-account/
Terms and conditions: ❌ Page not set

### Theme ###

Name: Storefront
Version: 4.6.0 (update to version 4.6.1 is available)
Author URL: https://woocommerce.com/
Child Theme: ❌ – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme
Theme type: Classic theme
WooCommerce Support: ✔

### Templates ###

Overrides: storefront/woocommerce/single-product-reviews.php version 4.3.0 is out of date. The core version is 9.6.0
Outdated Templates: ❌


						Learn how to update					 |




						Clear system status theme info cache

### Subscriptions ###

WCS_DEBUG: ✔ No
Subscriptions Mode: ✔ Live
Subscriptions Live URL: https://REDACTED
Subscriptions-core Library Version: 6.7.1
Subscription Statuses: wc-active: 2
wc-cancelled: 1
wc-on-hold: 3

WooCommerce Account Connected: ❌ No
Report Cache Enabled: ✔ Yes
Cache Update Failures: ✔ 0 failure

### Store Setup ###

Country / State: United States (US) — California

### Subscriptions by Payment Gateway ###

WooPayments: wc-active: 2
wc-on-hold: 2

other: wc-cancelled: 1
wc-on-hold: 1


### Payment Gateway Support ###

Stripe: products
refunds
tokenization
add_payment_method
subscriptions
subscription_cancellation
subscription_suspension
subscription_reactivation
subscription_amount_changes
subscription_date_changes
subscription_payment_method_change
subscription_payment_method_change_customer
subscription_payment_method_change_admin
multiple_subscriptions

Direct bank transfer: products
Check payments: products
Cash on delivery: products

### Composite Products ###

Database Version: 10.3.1
Loopback Test: ✔
Template Overrides: –

### Gift Cards ###

Database Version: 2.2.2
Loopback Test: ✔
Task Queueing Test: ✔

### Product Bundles ###

Database Version: 8.2.1
Loopback Test: ✔
Template Overrides: –

### Admin ###

Enabled Features: activity-panels
analytics
product-block-editor
coupons
core-profiler
customize-store
customer-effort-score-tracks
import-products-task
experimental-fashion-sample-products
shipping-smart-defaults
shipping-setting-tour
homescreen
marketing
mobile-app-banner
onboarding
onboarding-tasks
pattern-toolkit-full-composability
product-custom-fields
remote-inbox-notifications
remote-free-extensions
payment-gateway-suggestions
printful
shipping-label-banner
subscriptions
store-alerts
transient-notices
woo-mobile-welcome
wc-pay-promotion
wc-pay-welcome-page
launch-your-store

Disabled Features: product-data-views
experimental-blocks
coming-soon-newsletter-template
minified-js
product-pre-publish-modal
settings
async-product-editor-category-field
product-editor-template-system
blueprint
reactify-classic-payments-settings
use-wp-horizon
add-to-cart-with-options-stepper-layout
blockified-add-to-cart
beta-tester-slotfill-examples

Daily Cron: ✔ Next scheduled: 2025-02-06 11:59:53 +00:00
Options: ✔
Notes: 87
Onboarding: completed

### Action Scheduler ###

Canceled: 1
Oldest: 2025-01-31 14:46:45 +0000
Newest: 2025-01-31 14:46:45 +0000

Complete: 573
Oldest: 2025-01-08 14:08:23 +0000
Newest: 2025-02-06 08:43:56 +0000

Failed: 3,879
Oldest: 2024-10-18 20:28:36 +0000
Newest: 2025-02-06 08:43:56 +0000

Pending: 5
Oldest: 2025-02-06 08:44:56 +0000
Newest: 2025-02-13 12:47:19 +0000


### Status report information ###

Generated at: 2025-02-06 08:44:37 +00:00

Additional context
Add any other context about the problem here.

@frosso frosso added the type: bug The issue is a confirmed bug. label Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug The issue is a confirmed bug.
Projects
None yet
Development

No branches or pull requests

1 participant