Jump to content

Paypal Module


Recommended Posts

I'm currently using Paypal Basic and therefore trying to enable the new Paypal module (as I don't need subscriptions), but each time I try to link my account - I am able to login my paypal account and accept all prompts which then gives me a "Thanks for signing up. You now have an account and you've successfully integrated PayPal with WHMCS." message, but that's it - my account doesn't seem to link to my WHMCS.

Any thoughts?

Link to comment
Share on other sites

Hello @equiphase

Thanks for your post!

If you are able to complete the linking process using the Link to PayPal button under Setup > Payments > Payment Gateways after activating the module, but the details aren't filled in automatically, this would suggest that the server has cross-site access disabled and the required PayPal assets are failing to load.

This will need to be addressed by your system administrator to allow the requests to be successful.

I also understand using Mozilla FireFox is a workaround that can address this.

Link to comment
Share on other sites

I have tried Firefox, Edge, Chrome, Safari and Opera - I have even tried my mobile browsers as well to get Paypal to link ... and whatever I do, all I get is a " Thanks for signing up. You now have an account and you've successfully integrated PayPal with WHMCS. " message and no link!

PS I'm running PHP 7.3

Edited by equiphase
Link to comment
Share on other sites

  • WHMCS Support Manager

Hi all,

Can you confirm if the Client Secret and Client ID are filled in automatically under the "Manage Existing Gateways" tab for the PayPal gateway?

If not, then please open your browser's Network Analyser and click the Link PayPal Account button

Follow the process through in the popup, and at the end inspect the request from signup.js back in the main window.

Are you seeing an error like:

signup.js:1 Uncaught DOMException: Blocked a frame with origin "https://example.com" from accessing a cross-origin frame.

If so, please temporarily disable this setting  in your browser config:

https://stackoverflow.com/questions/3102819/disable-same-origin-policy-in-chrome

https://stackoverflow.com/questions/17088609/disable-firefox-same-origin-policy

https://stackoverflow.com/questions/4556429/disabling-same-origin-policy-in-safari

Then try again. Please let me know if the error still occurs.

Link to comment
Share on other sites

  • 3 weeks later...

Has anyone had any further luck with the new PayPal Module?

I upgraded to 7.9.1 from 7.8 today, and I am experiencing the same issue.

When clicking on 'Link PayPal Account' for the new module, PayPal is opened in a new tab and once finished I am left with the 'Thanks for signing up' message and nothing else. The previous tab has WHMCS open and does not refresh.

I have tried the same process on Chrome and Safari, and both have the same result.

In Chrome, I have tried to temporarily disable the cross browsing setting and still no joy. 😞 

Link to comment
Share on other sites

5 hours ago, WeaveHosting said:

Has anyone had any further luck with the new PayPal Module?

I upgraded to 7.9.1 from 7.8 today, and I am experiencing the same issue.

When clicking on 'Link PayPal Account' for the new module, PayPal is opened in a new tab and once finished I am left with the 'Thanks for signing up' message and nothing else. The previous tab has WHMCS open and does not refresh.

I have tried the same process on Chrome and Safari, and both have the same result.

In Chrome, I have tried to temporarily disable the cross browsing setting and still no joy. 😞 

@WeaveHosting could you please try using FireFox and see if this helps, if you could also try the Network  Analyser and let me know any errors that pop up so we can troubleshoot further,

Link to comment
Share on other sites

5 hours ago, WeaveHosting said:

Has anyone had any further luck with the new PayPal Module?

I upgraded to 7.9.1 from 7.8 today, and I am experiencing the same issue.

When clicking on 'Link PayPal Account' for the new module, PayPal is opened in a new tab and once finished I am left with the 'Thanks for signing up' message and nothing else. The previous tab has WHMCS open and does not refresh.

I have tried the same process on Chrome and Safari, and both have the same result.

In Chrome, I have tried to temporarily disable the cross browsing setting and still no joy. 😞 

Yep, same. 

I was advised that the same-origin header had to be blocked on the server.  I did this and I still can't get it to work.  WHMCS seriously need to look at how this is implemented...but based on my experience with them, it is unlikely that they will do anything about it.

Link to comment
Share on other sites

1 hour ago, 123host said:

Yep, same. 

I was advised that the same-origin header had to be blocked on the server.  I did this and I still can't get it to work.  WHMCS seriously need to look at how this is implemented...but based on my experience with them, it is unlikely that they will do anything about it.

@123host Are you seeing any details in the Network Analyser of your Browser Console?  Did you try using Mozilla FireFox as well?

Link to comment
Share on other sites

  • WHMCS Support Manager

Hi there,

We haven't been able to reproduce this problem on any of our test environments or installations yet.

It would be most helpful if you could open a support ticket with login details so we can inspect exactly what's going in for ourselves: https://www.whmcs.com/submit-a-ticket/

Link to comment
Share on other sites

  • 2 weeks later...

I have opened a ticket regarding this and I got the same answer as here although I have given the credentials so the WHMCS staff can give it a try themselves. They didn't even try, they just gave me the same answer about Firefox and cross-site access.

I have already added the following code in my .htaccess file to enable CORS but it is still not working.

<IfModule mod_headers.c>  
    Header set Access-Control-Allow-Origin '*'
</IfModule>

This is definitely an issue and needs to be resolved ASAP

Link to comment
Share on other sites

What I finally had to do to overcome this issue was to use the firefox developer tools to manually add the ID and secret (pulled from Live section of Paypal developer page). Once saved the integration was complete. 

However, I then realised that the only available method with this new module was Subscription and there was no way to disable this so I decided to switch back to previous Paypal module. 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated