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

Internal server error on checkout when selected saved card but then switched to paypal (452) #403

Closed
AlexP11223 opened this issue Dec 13, 2021 · 0 comments · Fixed by #404
Labels
bug Something isn't working
Milestone

Comments

@AlexP11223
Copy link
Contributor

When customer has a saved card on checkout and select that card as a payment method, but at a last second choose to switch to pay with a PayPal button, he will receive an internal server error message. Merchant will see in the logs an fatal error log file.

CRITICAL Uncaught Error: Call to a member function from_wc_order() on null in /var/www/html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-wc-gateway/src/Gateway/ProcessPaymentTrait.php:80

To Reproduce

  1. Select a saved card during checkout.
  2. Choose PayPal as a payment method instead of the card.
  3. See "Internal error" when placing the order.
@AlexP11223 AlexP11223 changed the title Internal server error on checkout when going from saved card to paypal (452) Internal server error on checkout when selected saved card but then switched to paypal (452) Dec 13, 2021
@Dinamiko Dinamiko added the bug Something isn't working label Dec 15, 2021
@Dinamiko Dinamiko added this to the Next version milestone Dec 15, 2021
@Dinamiko Dinamiko mentioned this issue Dec 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants