Checkout Page Is Keep Loading After Integration Of Payment Gateway In Magento2

Checkout page is Keep loading after integration of any payment gateway. I have tested with multiple payment gateway using module when i try to checkout the product keep loading.

[Loading Page Snap of checkoutpage] https://i.stack.imgur.com/MvINp.png

[Console Snap of checkoutpage] https://i.stack.imgur.com/2O4aL.png

magento2.3.4 – The PayPal gateway rejected the request. User authentication failed

We recently have signed up with PayPal PayFlow Pro to accept recurring payments. When we were connected to PayPal (just plain simple) , things were working fine. Since we have migrated to Payflow Pro, we are unable to connect to it. Error is “The PayPal gateway rejected the request. User authentication failed”. I can see correct API username and password being passed to PayPal. In the log files I see
‘response’ =>
array (
‘RESULT’ => ‘1’,
‘RESPMSG’ => ‘User authentication failed’,
),

and
main.CRITICAL: PayPal gateway errors: User authentication failed. {“exception”:”(object) (Exception(code: 0): PayPal gateway errors: User authentication failed. at /home/amibook/public_html/vendor/magento/module-paypal/Model/Api/PayflowNvp.php:650)”} ()

and
Trace: #1 MagentoPaypalModelApiNvp->call(‘SetExpressChecko…’, array(‘TENDER’ => ‘P’, ………… ‘BUTTONSOURCE’ => ‘Magento_Cart_Com…’)) called at (vendor/magento/module-paypal/Model/Api/Nvp.php:833)

We are using Magento CE 2.3.4. Any help will be really appreciated.

http – Nginx showing 504 Gateway timed out when uploading large files

I have a simple PHP file upload script that uploads a file. The server consists of 1 nginx reverse proxy and another nginx server (upstream). The problem is that when I try to upload very large files ~ 2GB then I get an error:

504 Gateway Time-out

Here is my reverse proxy configuration:

server {
    listen 80;
    
    server_name upload.mycloudhost.com;

    proxy_buffer_size 1024k;
    proxy_buffers 4 1024k;
    proxy_busy_buffers_size 1024k;
    proxy_connect_timeout       600;
    proxy_send_timeout          600;
    proxy_read_timeout          600;
    send_timeout                600;
    client_body_timeout         600;
    client_header_timeout       600;
    keepalive_timeout           600;
    uwsgi_read_timeout          600;

    location / {
        proxy_set_header X-Real-IP  $remote_addr;
        proxy_set_header X-Forwarded-For $remote_addr;
        proxy_set_header Host $host;
        proxy_pass http://localhost:13670;
    }
}

And here is the other nginx server (upstream):

server {
    listen 80;
    
    server_name upload.mycloudhost.com;

    client_max_body_size 80G;
    proxy_buffer_size 1024k;
    proxy_buffers 4 1024k;
    proxy_busy_buffers_size 1024k;
    proxy_connect_timeout       600;
    proxy_send_timeout          600;
    proxy_read_timeout          600;
    send_timeout                600;
    client_body_timeout         600;
    client_header_timeout       600;
    keepalive_timeout           600;
    uwsgi_read_timeout          600;

    root /var/www/mycloudhost;
    index index.php index.html index.htm index.nginx-debian.html;

    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;
    }

    location / {
        try_files $uri $uri/ =404;
    }
}

Configure DHCPv6-Relay on Unifi Security Gateway

I am trying to configure my Unifi Security Gateway to act as a DHCPv6-Relay Agent.

The Web-GUI has an option called “DHCP Relay” but it seems I am only able to configure an IPv4-Relay there.

Do you know if the Unifi Security Gateway supports that and how I can configure it? I am running version 6.0.41 of the Unifi-Controller.

Looking at the RFC, it seems clear to me that it’s not only about firewall rules and letting some packets pass, but the Relay-Agent actually has to exchange destination addresses in the DHCPv6/ICMP messages and I don’t see a way how to enable this functionality on the Security Gateway.

php – Create a WordPress Contact Form to call a POST AWS API Gateway and send user data

I am working for a company, and I need to create a WordPress contact form to call an AWS Api Gateway with a POST Request, but the API function needs to get some parameters:

Domain;
SecurityKey (each user needs this key);
ContentID (The contentID of the page, it’s from different articles, so each article have an ID);
UserID (the logged user ID);
FormEmail (the email that the user will fill in the contact form);
UserSession;
FormFullName;
FormUserMessage;
UserPageURL;
I am struggling to find any answers on how to get these parameters from a WP contact form.

We are using WordPress, AWS Lambada Api Gateway, and Simple Email Service to send the email to the sponsor of the Article. I need a way to get the UserId, UserSession, SecurityKey params when the user is logged in our platform.

Until now, I am able to send the Form Data (Name, Email, Message), but I do not want the user to type the Session, ID, SecurityKey. I tested creating these form fields own my own and submitting the form, and it does work, but I want it to get these values automatically when the user logs in.

This is the code I have now:

<head>
    <script>
        function submitToAPI(e) {
           e.preventDefault();
           var URL = "https://iwczdv2u40.execute-api.ap-southeast-2.amazonaws.com/Production/transactions";
    
                var Namere = /(A-Za-z){1}(A-Za-z)/;
                if (!Namere.test(jQuery("#FormFullName").val())) {
                             alert ("Name can not less than 2 char");
                    return;
                }
                
                if (jQuery("#FormEmail").val()=="") {
                    alert ("Please enter your email id");
                    return;
                }
    
                var reeamil = /^((w-.)+@((w-)+.)+(w-){2,6})?$/;
                if (!reeamil.test(jQuery("#FormEmail").val())) {
                    alert ("Please enter valid email address");
                    return;
                }
    
           var FormFullName = jQuery("#FormFullName").val();
           var FormEmail = jQuery("#FormEmail").val();
           var UserMessage = jQuery("#UserMessage").val();
           var data = {
              FormFullName : FormFullName,
              FormEmail : FormEmail,
              UserMessage : UserMessage                  
            };
    
           jQuery.ajax({
             type: "POST",
             url : "https://iwczdv2u40.execute-api.ap-southeast-2.amazonaws.com/Production/transactions",
             dataType: "json",
             crossDomain: "true",
             contentType: "application/json; charset=utf-8",
             data: JSON.stringify(data),
    
             
             success: function () {
               // clear form and show a success message
               alert("Thank you for your review. It will be posted shortly.");
               document.getElementById("contact-form").reset();
           location.reload();
             },
             error: function () {
               // show an error message
               alert("Error.");
             }});
         }
    </script>
</head>

<form id="contact-form" method="post">
      <h4>Name:</h4>
      <input type="text" style="height:35px;" id="FormFullName" placeholder="Enter name here…" class="form-control" /><br/>
      <h4>Email:</h4>
      <input type="email" style="height:35px;" id="FormEmail" placeholder="Enter email here…" class="form-control"/><br/>
      <h4>How can we help you?</h4>
      <textarea id="UserMessage" rows="3" placeholder="Enter your message…" class="form-control" style="width:100%;"></textarea><br/>
      <button type="button" onClick="submitToAPI(event)" class="btn btn-lg" style="margin-top:20px;">Submit</button>
</form>

PS: we are not using a serverless website yet, we are changing to it in a near future.

Thanks!

gateway – What’s the difference between these 3 IP addresses?

I’m having trouble understanding the difference between 3 common IP Addresses. These addresses are 192.168.1.1 and 127.0.0.1. I’m pretty sure the first one is the router’s gateway but I don’t know what that does and I’m also pretty sure that the second one is localhost which I’m also not sure what its use is. I’ve heard of another one similar to the first one but I have no idea what it is. That’s 192.168.0.1. If I took a guess, it’s another router gateway. Can someone explain the differences between all 3 of these IP Addresses and their uses please?

networking – How to add _gateway resolution to Unbound/DNSMasq

In Debian 10 Buster/Ubuntu 20.04 LTS, systemd-resolved has a feature where it automatically resolves
the default route’s IP to _gateway. However, I need Unbound or DNSMasqd to run and takeover port 53 and serve my LAN. When I do that, _gateway stops resolving… which is the backbone of my VPN and iptables2 scripts 😭

Potential solutions?:

    1. Configure systemd-resolved to expose the Stub on some other port, and have Unbound treat it as authoritative for that zone
    1. Configure unbound/DNSMasq to read ip route when it changes and resolve _gateway itself.
    1. Perform surgery on my system and build the latest version of systemd-resolved which supports exposing to LAN and disables a check that blocks external traffic
    1. Have unbound resolve _gateway from systemd-resolved with a D-Bus connection

Ideas?

Windows Route Add when Gateway is text instead of IP

I have the following in my route table if I connect to my Company VPN.

IPv4 Route Table
===========================================================================
Active Routes:
Network Destination        Netmask          Gateway       Interface  Metric
          0.0.0.0          0.0.0.0      192.168.0.1    192.168.0.103     41
          0.0.0.0          0.0.0.0         On-link      192.168.11.1      1
          8.8.8.8  255.255.255.255         On-link      192.168.11.1      1
     10.10.10.182  255.255.255.255         On-link      192.168.11.1      1

As can be seen here, the gateway “On-link” is text and not an IP address.
This is routing that automatically gets added by my Company VPN. (paloaltonetworks.com GlobalProtect)

I want to remove some routes so that not all my traffic is not always going over the VPN.

So I delete the 0.0.0.0 route so that by default traffic goes over my normal internet

route DELETE 0.0.0.0

then because there is 2 0.0.0.0 routes before the delete, I add in my default gateway route again

route ADD 0.0.0.0 MASK 0.0.0.0 192.168.0.1 METRIC 1

but now, i cant reach any of my work destinations anymore.
So now i want to add routes to go to the VPN gateway, but instead of an IP address I have “On-link”
So if I try to add a route to go to “On-Link” i get an error

C:Windowssystem32>route ADD 162.29.152.249 MASK 255.255.255.255 On-link
The route addition failed: The parameter is incorrect.

It also does not help to put it in quotes.
So how do I get the IP-address of this gateway?

if I look at my windows network connections, I have “PANGP Virtual Ethernet Adapeter” that seems to be created by the VPN client. If I open it, and go to the TCP/IPv4 settings, I can see my VPN Ip address, and subnet mask, but the “Default gateway” is is blank.

So I don’t know how to get the default gateway IP address, or how to route specific traffic over this VPN connection.

Any help will be much appreciated.

c# – Unhandled Rejection (Error) (HttpError) when connecting to SignalR hub in Ocelot Api Gateway via React Client Application

First of all, web sockets secure (wss), which is not mentioned in the Ocelot documentation, can be used as DownStreamScheme as pointed out by sam9291 here (https://github.com/ThreeMammals/Ocelot/issues/1179).

Secondly, Cors must be enabled on the SignalR app with AllowCredentials() as detailed by Microsoft here (https://docs.microsoft.com/en-us/aspnet/core/signalr/security?view=aspnetcore-5.0).

Thirdly, there has to be a {catchAll} route in the ocelot.json, which is necessary becausse the handshake involves getting/posting to other routes:

    {
        "DownstreamPathTemplate": "/notificationhub/{catchAll}",
        "DownstreamScheme": "ws",
        "DownstreamHostAndPorts": (
          {
            "Host": "localhost",
            "Port": 7001
          }
        ),
        "UpstreamPathTemplate": "/notifications/{catchAll}",
        "UpstreamHttpMethod": ( "GET", "POST", "PUT", "DELETE", "OPTIONS" )
      },

Fourthly, when I tried requesting /notifications after the above change I got error 404, not sure if it is a bug or a feature, like the issue LilRazi ran into here (ocelot: 404 error when add extra path on upstream url). So then I just added a route for the /notifications part, like so:

    {
        "DownstreamPathTemplate": "/notificationhub",
        "DownstreamScheme": "ws",
        "DownstreamHostAndPorts": (
          {
            "Host": "localhost",
            "Port": 7001
          }
        ),
        "UpstreamPathTemplate": "/notifications",
        "UpstreamHttpMethod": ( "GET", "POST", "PUT", "DELETE", "OPTIONS" )
      },

and everything was working perfectly!

mysql – Syncing to a database behind a gateway

On our network we have a tunnel to a NAT gateway host. From the gateway host we are able to access a private network. On this network we will be running jobs that log to a database. The database will be hosted on the same network.

A couple of notes on the remote database:

  1. The database will only receive lightweight insert/update queries when a job starts/finishes. At peak usage this could be 10 queries/minute, but it would probably average closer to 0-1 queries/minute.
  2. The database probably won’t be run from the gateway host, but it could share a file system (so log files may be accessible from the gateway host).

We would like to continuously sync data from the remote database to a local database. The sync should be close to real time, but a 5-10 minute delay is acceptable.

How can we achieve this? I don’t know anything about DBA/networking but it seems like one way to do this would be to set up a cron job to pull log files from the gateway host, then perform an update to the local database based on the logs. Am I on the right track? Is there anything else that I need to consider/look in to?