• Resolved voltcandy

    (@voltcandy)


    Hello,

    I have an issue with the Apple pay method. User must be logged in to be apple to use Apple pay or else, User clicks on Apple pay but it keeps loading without requesting user to double click the right side button to place the order.
    I have tried to change settings from woocommerce allowing only logged in user to be able to place orders to allow also guests but that also didn’t work and the issue persisted.

    New edit:

    Just noticed that when user is not logged in the product price doesn’t get passed to the payment and it shows 0.00 when using Apple or Google pay.

    Your help is greatly appreciated

    • This topic was modified 1 year, 1 month ago by voltcandy.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Payment Plugins

    (@mrclayton)

    Hi @voltcandy,

    Can you share a product page link where this can be observed? It sounds like API requests made for Apple Pay are failing for guest users.

    That’s usually the result of a security plugin that’s blocking access to the WordPress REST API.

    Kind Regards

    Thread Starter voltcandy

    (@voltcandy)

    voltcandy.com

    but I have deactivated it till I get it fixed. Also I don’t have security plugins but server security. for API calls, other services are callings APIs and getting responses just fine.

    Thank you

    Plugin Author Payment Plugins

    (@mrclayton)

    We can’t review your site if the plugin isn’t activated.

    3rd party API calls don’t matter. The WordPress REST API is to your site which is what I’m referring to.

    Thread Starter voltcandy

    (@voltcandy)

    I have activated them. Thank you for following up

    Plugin Author Payment Plugins

    (@mrclayton)

    Your NGINX configuration is incorrect. Requests from the Stripe plugin are being blocked with a 403 unauthorized response:

    <html>
    <head><title>403 Forbidden</title></head>
    <body>
    <center><h1>403 Forbidden</h1></center>
    <hr><center>nginx</center>
    </body>
    </html>

    Request URL: https://voltcandy.com/?wc-ajax=wc_stripe_frontend_request&path=/wc-stripe/v1/cart/cart-calculation

    I believe the issue is related to how NGINX is processing request parameters. Here is an example config of a working NGINX server:

    location / {
            try_files $uri $uri/ /index.php?$args;
        }
    
        location ~* \.php$ {
            try_files $uri =404;
            fastcgi_split_path_info ^(.+\.php)(/.+)$;
            fastcgi_pass php:9000;
            fastcgi_index index.php;
            include fastcgi_params;
            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
            fastcgi_param PATH_INFO $fastcgi_path_info;
            fastcgi_param HTTP_X_FORWARDED_PROTO https;
            fastcgi_param HTTPS on;
            fastcgi_pass_header Authorization;
        }
    
        location /.well-known {
            allow all;
            default_type text/plain;
        }

    If you have someone managing your site for you, like a hosting company, they can probably very quickly diagnose the cause.

    Kind Regards

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘User Must be logged in to use Apple Pay’ is closed to new replies.