-
Notifications
You must be signed in to change notification settings - Fork 195
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
WC_Stripe_API::detach_payment_method_from_customer() must be of the type string, null given #2615
Comments
Exactly the same problem for me.
|
This happens for us too. |
Same for us:
|
@nicomollet @duotive @andreDane do you also see paid orders going into pending / failed? My PR seems to be resolving the issue and we've not seen any unexpected behaviour so far. Also, you have more than one gateways? Like Braintree etc? I'm trying to debug another (possibly related) bug... |
Spotted in 6523490-zen while investigating a different issue. |
6585471-zen |
This happens when the customer tries to delete their old payment method after a payment has failed. In $customer = new WC_Stripe_Customer( wp_get_current_user()->ID );
$customer->delete_source( $intent->last_payment_error->source->id ) I'm not sure why an error would be used to fetch the ID, but in any case, a few lines prior, -- Edit: looking more closely... what does that code even do when we already rely on |
[Internal] We received another report of this on 6712627-zen |
7238549-zen |
7950081-zd |
8062147-zen |
8219514-Zen appears to be experiencing this issue as well, may also be a secondary issue involved. |
I am seeing the same error in my site's logs too |
zen - 8311446 |
Describe the bug
We're coming across a number of errors in our logs stating the following
Steps to reproduce
While in test mode use cards 4000000000003220 or 4000000000003063, and when the 3ds modal comes up fail the validation. That will result in a payment intent response from the API with an last_payment_error object that does not contain the source.
This can be reproduced on vanilla installation.
Additional Context
In the comment found here
woocommerce-gateway-stripe/includes/class-wc-stripe-intent-controller.php
Lines 133 to 135 in 12f1e41
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: