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!
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?
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:
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.
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.
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
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?