Comments (3)
Additional information from the customer, after he talked to Stripe developers:
It looks like the WooCommerce Stripe plugin code does not correctly handle exceptions when adding cards to Customer objects. You can see the code below:
You can see that the code is checking the return value of the add_card
method, but is not catching exceptions thrown by the Stripe PHP bindings, which the method by which the bindings communicate errors.
Without catching exceptions, you'll see this "uncaught exception" error from PHP, and the application will fail to continue.
The particular code with this problem is treated as legacy code by WooCommerce.
The legacy code is loaded when the WC_Payment_Gateway_CC
class cannot be found:
https://github.com/woothemes/woocommerce-gateway-stripe/blob/7e70e76eb6761db2af65f00ccaaba25bde7b794a/woocommerce-gateway-stripe.php#L289
The class was added in 2.6.0:
https://github.com/woothemes/woocommerce/blob/117990d95fd0536413d8b9204f6cddbdfb52132e/includes/gateways/class-wc-payment-gateway-cc.php#L9
from woocommerce-gateway-stripe.
@ValeDeOro that means store uses WC 2.6 but still on old version of WC Stripe.
from woocommerce-gateway-stripe.
According to @gedex this can be closed as customer just needs to update to the latest release.
from woocommerce-gateway-stripe.
Related Issues (20)
- Create filters for bank statement descriptors
- [Split PE - Design] Update payment method names and add icons HOT 1
- Enable card brand choice HOT 6
- SEPA Transfer and Giropay hidden (when store currency isn't EUR)
- New Payment Method: Stripe Invoice HOT 1
- [Split PE] APMs show up on the checkout page when the main Stripe gateway is disabled HOT 1
- Clicking on the Stripe's toggle in the WC settings page takes you to the plugin settings page HOT 1
- Move Alipay and Multibanco inside Stripe settings
- Apple Pay Show only private browser
- The 'wc_stripe_payment_metadata' filter doesn't work with UPE
- Stripe - Deprecate API Keys Sharing
- [Split PE] Reusable APMs are missing under the Add Payment Method page HOT 1
- Deprecate/adjust set_default_source HOT 1
- Split UPE - Disabling all avaiable APMs results in JS error on block checkouts HOT 1
- [Settings] Remove the expandable menu for Payment methods when UPE is disabled
- Split UPE - Add support for Subscription payments with eligible APMs HOT 1
- [GlobalStep] OXXO and Boleto payment methods are displayed on the "Payment > Payment method" page after enabling "Enable the updated checkout experience".
- [GlobalStep] For Twenty Twenty-Four Theme, Payment methods appear big in size on "CheckoutShortcode" page upon enabling the feature:Payments-> settings->Advanced Settings ->"Enable the updated checkout experience" HOT 1
- Deleting a card used for a subscription shows an empty error box
- No option to enable/disable Link in the Payment Element HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from woocommerce-gateway-stripe.