WooCommerce Paypal doesn’t open PayPal modal, just takes me to the thank you page

  paypal, php, woocommerce, wordpress

I’m using the PayPal option that comes out of the box with WooCommerce, see below:

enter image description here

I’ve set the above option up correctly, following this tutorial.

Now, with PayPal all set up, here are the expected results:

  1. User adds item to cart
  2. User accesses the /cart page and clicks proceed to checkout.
  3. Fills out all relevant fields and clicks proceed to PayPal (see image below)
  4. PayPal modal appears / is taken to the PayPal website where user adds there PayPal details and accepts the purchase
  5. Once payment is complete, user is redirected to the thank you page /checkout/order-recieved (I’ve set this auto-return up on PayPal).
  6. IPN received from PayPal is successful and then the Processing order email is triggered for the customer.

enter image description here

Here are the results I’m currently experiencing:

  1. User adds item to cart
  2. User accesses the /cart page and clicks proceed to checkout.
  3. Fills out all relevant fields and clicks proceed to PayPal (see image below)
  4. User is taken to the thank you page (no PayPal modal appears or website redirect)
  5. Processing order email is triggered for the customer.

In short, the PayPal modal where the payment is meant to occur is being skipped for me. How the user is getting to the thank you page without inputting there payment details in is perplexing.

Any ideas on what’s happening? I have no console errors that indicate anything.

Version details:

  • WordPress: 5.8.1
  • WooCommerece: 5.8.0

Source: Ask PHP

LEAVE A COMMENT