Title: does not work with Astra pro
Last modified: April 17, 2025

---

# does not work with Astra pro

 *  Resolved [natsshop](https://wordpress.org/support/users/natsshop/)
 * (@natsshop)
 * [1 year ago](https://wordpress.org/support/topic/does-not-work-with-astra-pro/)
 * Hi there,
 * I would love to finally find a plugin, that works perfectly in this sector. I
   have Astra Pro and with your plugin the checkout hangs in an endless loop. Without
   Astra Pro everything works perfectly. Before anyone objects that it’s Astra’s
   fault, I have to say, that I have only this problem with your plugin. On the 
   other hand, other plugins prevent my customers from successfully paying via Klarna.
   Not a single plugin has worked perfectly so far. Can you fixed this with Astra
   Pro? I have activated debug mode. However, I cannot find a single description
   of where the debug log for your plugin is located. The WordPress one doesn’t 
   provide any information on this.
 * Regards
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fdoes-not-work-with-astra-pro%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 13 replies - 1 through 13 (of 13 total)

 *  Plugin Author [Clayton R](https://wordpress.org/support/users/mrclayton/)
 * (@mrclayton)
 * [1 year ago](https://wordpress.org/support/topic/does-not-work-with-astra-pro/#post-18422126)
 * Hi [@natsshop](https://wordpress.org/support/users/natsshop/)
 * Reviewing your checkout page, the first issue I see is the following Javascript
   error:
 *     ```wp-block-code
       Uncaught ReferenceError: astra is not defined    at single-autopost-infinite.min.js?ver=4.10.0:1:16318    at single-autopost-infinite.min.js?ver=4.10.0:1:20173
       ```
   
 * That JS error is coming from your astra-addon plugin. JS errors on the checkout
   page can cause issues with how WooCommerce processes the checkout form. Please
   resolve that JS error and then try again to see if that solves your checkout 
   page issue.
 * Kind Regards
 *  Thread Starter [natsshop](https://wordpress.org/support/users/natsshop/)
 * (@natsshop)
 * [1 year ago](https://wordpress.org/support/topic/does-not-work-with-astra-pro/#post-18422163)
 * Hi,
   great, thank you very much for the quick reply. The JS error is gone now,
   and it still doesn’t work. I’m using a plugin for the checkout because the checkout
   is horribly slow without it. The JS error occurs because the checkout plugin 
   overwrites/blocks Astra. But even without this JS error, the checkout doesn’t
   work with your plugin. And the checkout crashes again, even without the JS error.
   By the way: The js error also exists on my original site, and I have a different
   Connect Stripe plugin there. Nothing crashes there. Why don’t I want the other
   plugin? Just today, it successfully prevented a payment due to an expired API
   key.
 * Regards
 *  Plugin Author [Clayton R](https://wordpress.org/support/users/mrclayton/)
 * (@mrclayton)
 * [1 year ago](https://wordpress.org/support/topic/does-not-work-with-astra-pro/#post-18422166)
 * Hi [@natsshop](https://wordpress.org/support/users/natsshop/)
 * Can you please enable test mode on your site so a proper end to end test can 
   be performed?
 * Thanks
 *  Thread Starter [natsshop](https://wordpress.org/support/users/natsshop/)
 * (@natsshop)
 * [1 year ago](https://wordpress.org/support/topic/does-not-work-with-astra-pro/#post-18422179)
 * Hi,
   it’s truly exceptionally rare, and very pleasing, to see how quickly someone
   here takes care of these errors. Thank you very much. Test mode in the plugin?
   Yes, I can do that. Just a moment, please. I want to make sure that all my payments
   in Stripe aren’t put into test mode.
 * Regards
 *  Thread Starter [natsshop](https://wordpress.org/support/users/natsshop/)
 * (@natsshop)
 * [1 year ago](https://wordpress.org/support/topic/does-not-work-with-astra-pro/#post-18422184)
 * Test mode is activated.
 *  Plugin Author [Clayton R](https://wordpress.org/support/users/mrclayton/)
 * (@mrclayton)
 * [1 year ago](https://wordpress.org/support/topic/does-not-work-with-astra-pro/#post-18422203)
 * Hi [@natsshop](https://wordpress.org/support/users/natsshop/)
 * With test mode enabled I was able to process a payment. Order #128213. The same
   code base is called whether it’s test mode or live mode.
 * Are you able to process a payment when test mode is enabled? Here are [Stripe’s test cards](https://docs.stripe.com/testing)
   which you can use to try and process a test mode payment.
 * Kind Regards,
 *  Thread Starter [natsshop](https://wordpress.org/support/users/natsshop/)
 * (@natsshop)
 * [1 year ago](https://wordpress.org/support/topic/does-not-work-with-astra-pro/#post-18422262)
 * Great, then we know that card payments work. But with Klarna, the plugin crashes.
 *  Thread Starter [natsshop](https://wordpress.org/support/users/natsshop/)
 * (@natsshop)
 * [1 year ago](https://wordpress.org/support/topic/does-not-work-with-astra-pro/#post-18422272)
 * Something changed with Klarna’s processing mode a year ago. Haven’t you updated
   the plugin yet?
 *  Thread Starter [natsshop](https://wordpress.org/support/users/natsshop/)
 * (@natsshop)
 * [1 year ago](https://wordpress.org/support/topic/does-not-work-with-astra-pro/#post-18422405)
 * Oh, sorry, I forgot: That can’t have anything to do with it, it works without
   Astra Pro.
 *  Plugin Author [Clayton R](https://wordpress.org/support/users/mrclayton/)
 * (@mrclayton)
 * [1 year ago](https://wordpress.org/support/topic/does-not-work-with-astra-pro/#post-18423040)
 * Hi [@natsshop](https://wordpress.org/support/users/natsshop/)
 * The reason Klarna isn’t working is because I believe Astra is filtering the redirect
   URL provided by the Stripe plugin. When WooCommerce calls the payment gateway
   during the checkout process, the gateway can respond with an associate array 
   that looks like this:
 *     ```wp-block-code
       ['result' => 'success', 'redirect' => 'https://klon.nats-shop.com/kasse/#response=eyJwbSI6bnVsbCwidHlwZSI6InBh']
       ```
   
 * That `#` in the url results in a `hashchange` event being triggered which the
   Stripe plugin uses to redirect to the Klarna payment page. For some reason, it
   appears Astra is filtering the `#` sign and preventing the hashchange event from
   propagating to other event listeners.
 * Here is the response I observed from your server:
 *     ```wp-block-code
       {    "result": "success",    "redirect": "#response=eyJwbSI6bnVsbCwidHlwZSI6InBheW1lbnRfaW50ZW50IiwiY2xpZW50X3NlY3JldCI6InBpXzNSRXkzR0RKZTJHVVg3MkMwUUFVV1FQN19zZWNyZXRfcDlvV0tDYUdlSUdybUkwbU16ZDBQWVlhbSIsInN0YXR1cyI6InJlcXVpcmVzX3BheW1lbnRfbWV0aG9kIiwiZ2F0ZXdheV9pZCI6InN0cmlwZV9rbGFybmEiLCJvcmRlcl9pZCI6MTI4MjE0LCJvcmRlcl9rZXkiOiJ3Y19vcmRlcl9CemN4Rzl6ZEZOd1FRIiwicmV0dXJuX3VybCI6Imh0dHBzOlwvXC9rbG9uLm5hdHMtc2hvcC5jb21cL2thc3NlXC8%2Fa2V5PXdjX29yZGVyX0J6Y3hHOXpkRk53UVEmb3JkZXJfaWQ9MTI4MjE0Jl9zdHJpcGVfcGF5bWVudF9tZXRob2Q9c3RyaXBlX2tsYXJuYSIsIm9yZGVyX3JlY2VpdmVkX3VybCI6Imh0dHBzOlwvXC9rbG9uLm5hdHMtc2hvcC5jb21cL2thc3NlXC9vcmRlci1yZWNlaXZlZFwvMTI4MjE0XC8%2Fa2V5PXdjX29yZGVyX0J6Y3hHOXpkRk53UVEiLCJjb25maXJtYXRpb25fYXJncyI6eyJyZXR1cm5fdXJsIjoiaHR0cHM6XC9cL2tsb24ubmF0cy1zaG9wLmNvbVwva2Fzc2VcLz9rZXk9d2Nfb3JkZXJfQnpjeEc5emRGTndRUSZvcmRlcl9pZD0xMjgyMTQmX3N0cmlwZV9wYXltZW50X21ldGhvZD1zdHJpcGVfa2xhcm5hIn0sImJpbGxpbmdfZGV0YWlscyI6eyJuYW1lIjoiVGVzdCBVc2VyIiwicGhvbmUiOiIrMTIyMjMzMzIzMjMiLCJlbWFpbCI6InRlc3RlckB0ZXN0LmNvbSIsImFkZHJlc3MiOnsiY2l0eSI6IkF1c3RpbiIsImNvdW50cnkiOiJERSIsImxpbmUxIjoiMTIzIFRlc3QgU3QiLCJsaW5lMiI6bnVsbCwicG9zdGFsX2NvZGUiOiI3ODcwMyIsInN0YXRlIjpudWxsfX0sImVudHJvcHkiOjQ2ODM5M30%3D",    "order_id": 128214}
       ```
   
 * That’s a valid response and notice the # sign is present. I recommend you share
   this response with the Astra developers so they can take a look at why their 
   preventing hashchange events from propogating.
 * Kind Regards
 *  Thread Starter [natsshop](https://wordpress.org/support/users/natsshop/)
 * (@natsshop)
 * [1 year ago](https://wordpress.org/support/topic/does-not-work-with-astra-pro/#post-18423488)
 * Hi,
   ask Astra Support? Forget it. They’re not competent enough for that. They’re
   not even capable of properly eliminating their own errors. The only thing they’ll
   tell me is that your plug-in is to blame. Unfortunately, that’s the plug-in manufacturer’s
   system. Other gateway systems don’t have a problem with Astra. But other gateway
   plug-ins cause other errors that prevent payment. I installed Perfamtters and
   completely removed Astra from the checkout. Now it works. Thanks to my checkout
   plug-in, I don’t need Astra there. I hope this helps others too.
 * Regards
 *  Thread Starter [natsshop](https://wordpress.org/support/users/natsshop/)
 * (@natsshop)
 * [1 year ago](https://wordpress.org/support/topic/does-not-work-with-astra-pro/#post-18423492)
 * I have one more question: Does your plugin also keep having problems with the
   API key? Does the connection remain stable, or does the API key keep expiring?
 *  Plugin Author [Clayton R](https://wordpress.org/support/users/mrclayton/)
 * (@mrclayton)
 * [1 year ago](https://wordpress.org/support/topic/does-not-work-with-astra-pro/#post-18424258)
 * [@natsshop](https://wordpress.org/support/users/natsshop/) this plugin doesn’t
   have problems with the API keys. That’s the cornerstone of how the plugin communicates
   with Stripe’s API’s so it’s very stable. The API keys don’t expire.

Viewing 13 replies - 1 through 13 (of 13 total)

The topic ‘does not work with Astra pro’ is closed to new replies.

 * ![](https://ps.w.org/woo-stripe-payment/assets/icon-256x256.png?rev=2611337)
 * [Payment Plugins for Stripe WooCommerce](https://wordpress.org/plugins/woo-stripe-payment/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-stripe-payment/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-stripe-payment/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-stripe-payment/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-stripe-payment/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-stripe-payment/reviews/)

 * 13 replies
 * 2 participants
 * Last reply from: [Clayton R](https://wordpress.org/support/users/mrclayton/)
 * Last activity: [1 year ago](https://wordpress.org/support/topic/does-not-work-with-astra-pro/#post-18424258)
 * Status: resolved