WAIT: Woocommerce Checkout - CC declined notice not displayed

Browser: Chrome
OS: Windows 10
URL: Checkout page (local website)
Video: None

I’m setting up a Woocommerce store and using Angelleye Paypal to process credit card. In testing the CC declined error, I was expecting an error notice to be displayed on top of the checkout page. Instead, checkout redirected me to another page with an error message (basically Woocommerce cart-errors.php) Here’s a screenshot:


Then I switched to the Storefront theme, and the error notice is displayed, keeping me on the checkout page so I can try to place the order again. Here’s the screenshot from Storefront:

I’m running the latest versions of Bricks, Woocommerce and PayPal, and have a notice element in my checkout template. Not sure if this is a bug, or I’m missing some step in setting up my checkout template. Thanks!

Hi @jlan and welcome to the forum!

can you confirm that you have notices correctly set up, and they show otherwise properly? Can you also try to disable the Bricks notice element and check if it’s happening as well?

Thank you,
Matej

Hi Matej and thank you for the suggestion. Why didn’t I think of that :slight_smile:

Notices are set up correctly. I added a couple notices and errors before placing the order and they show up.

I just disabled Bricks notices as you suggested, and I now see the “credit card declined” notice on top of the page.

Thanks!

Jennifer

Hi @jlan,

ok, thank you for your report. Do you know how to replicate this as simply as possible on local installation? Any special configuration needed?

I’m asking because I would like to figure out why it’s not working, and I’ve never worked with that plugin.

Thank you,
Matej

Hi Matej,

The only configuration needed is to install the payment gateway plugin (Stripe, Paypal, etc.) and set up a test sandbox account. Each payment gateway will have it’s own way of simulating failed CC transactions.

I’m not familiar with other payment gateways, but to setup PayPal for testing:

  1. Create PayPal sandbox accounts
  2. Install Angelleye Paypal plugin from here
  3. In Admin, go to Woocommerce > Settings > Payment, enable PayPal Sandbox and and connect your store to the (business) sandbox account created in step 1
  4. PayPal card testing info

If you don’t want to create accounts at PayPal, let me know. I can try to create a temporary sandbox account for you. Thanks!

Hi @jlan,

I’ve tried PayPal sandbox, but as I don’t have sandbox and business account yet, and the registration process required some ID documents, which I would rather not share just for the test.

However, have you maybe contacted the developer, and asked him if he already knows about the issue with that? If not, that may be a good thing to do.

I suppose that even if the issue is on our side, the developer will know why it’s not working. He can also get in contact with us, but it would be nice if we had a testable local installation first.

Thank you,
Matej

Hi @Matej,

I have not contacted the developer since I now believe this is a bug in Bricks’ handling of Woocommerce notice. Basically, Paypal issues a wc_add_notice() call which Bricks is not handling, causing Woocommerce to invoke the display in cart-errors.php. With Bricks notices turned off, the notices are being displayed as expected.

I have created a separate sandbox account for you to use in testing if you’re interested in replicating it in your local environment.

Hi @jlan,

I’ve asked mostly because the developer might already be aware of the issue with Bricks and he may have even identified it. That was the the reason :wink:

However, Bricks notices should be able to handle wc_add_notice() calls, and if you have a sandbox Paypal account, I would love to check it out. Can you send the access and a link to this topic to help@bricksbuilder.io using the email address you used during the purchase, so we can take a look?

Thank you.

Hi @Matej, credentials sent via email.