Tagged: x
-
AuthorPosts
-
October 13, 2016 at 10:32 am #1214851
fatheaddrummerParticipantHi There, When I try to purchase a product via Test mode and stripe it tells me the following:
SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON datacould you help me out with this?
related page: https://www.diamond-precision-studio.com/product/top-sound-mit-kleinem-budget/Thanks a lot!
Best, Christian
October 13, 2016 at 4:46 pm #1215302
RadModeratorHi there,
Thanks for writing in.
This is the first error,
XMLHttpRequest cannot load https://api.stripe.com/v1/tokens. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://checkout.stripe.com' is therefore not allowed access.You should allow api.stripe.com, please add this to your site’s .htaccess file
<IfModule mod_headers.c> SetEnvIf Origin "http(s)?://(www\.)?(stripe.com|api.stripe.com)$" AccessControlAllowOrigin=$0 Header add Access-Control-Allow-Origin %{AccessControlAllowOrigin}e env=AccessControlAllowOrigin </IfModule>Maybe it’s affecting how the data is being processed, let’s fix that first 🙂
Cheers!
October 14, 2016 at 2:22 am #1215827
fatheaddrummerParticipantHello Rad,
Thank you so much for helping me out!!
I added it to my .htaccess file like this: https://www.dropbox.com/s/3995xz97n55e46j/Bildschirmfoto%202016-10-14%20um%2009.19.16.png?dl=0Was that correct?
Unfortunately this didn’t solve the issue…
Do you have any more ideas?I am so thankful for your help!!
Best, Christian
October 14, 2016 at 2:56 am #1215849
RadModeratorHi there,
I checked it and it fixes the origin issue, but there is another error.
mPDF error: IMAGE Error (https://staging1.diamond-precision-studio.com/wp-content/uploads/2016/08/dps_logo2014_gold-1-300x212.png): Could not find image fileThe image is still pointing to your staging site, and if you visit the URL, it doesn’t exist anymore. It triggers after hitting the payment button and request is sent as https://www.diamond-precision-studio.com/en/checkout/?wc-ajax=checkout
Where did you set that up? JSON result is responded with that string and it’s invalid.
Thanks!
October 14, 2016 at 3:13 am #1215864
fatheaddrummerParticipantHello Rad,
Your support is so amazingly great! I found the image source and solved the issue! It works perfectly now!
Thank you soooo much!
Best, Christian 🙂
October 14, 2016 at 3:37 am #1215887
RadModeratorYou’re so much welcome 🙂
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1214851 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
