Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Paypal redirecting to localhost on prod enviroment #529

Closed
cheskoxd opened this issue May 11, 2024 · 4 comments
Closed

[BUG] Paypal redirecting to localhost on prod enviroment #529

cheskoxd opened this issue May 11, 2024 · 4 comments
Assignees

Comments

@cheskoxd
Copy link

Describe the bug
After completing the payment on Paypal, I should get redirected to the main site, but I'm getting redirected to localhost:3000

To Reproduce
Steps to reproduce the behavior:

  1. Go to Pay an order
  2. Click on Paypal
  3. Pay with paypal
  4. Redirects to localhost instead of main site

Expected behavior
Should redirect to the success order page, like with stripe, after you pay it shows a message that the order was placed

Background (please complete the following information):

  • NodeJS Version
  • Postgres Version
  • EverShop Version Latest
  • OS: Windows
  • Browser Chrome, Safari, Edge

Additional context

@treoden
Copy link
Collaborator

treoden commented May 11, 2024

Hi @cheskoxd ,

You need to configure your home url from your config file (config/default.json)
Something like this

{
    "shop": {
        "homeUrl": "https://www.example.com",
        "weightUnit": "pound"
    }
}

@cheskoxd
Copy link
Author

Yea, I have it exactly like that:
image

but when I try to process a payment, it redirects me to localhost

@treoden
Copy link
Collaborator

treoden commented May 12, 2024

Hi @cheskoxd ,

Are you talking about the payment successful redirection? Can you share some screenshot of the redirection page and your config folder?

Thanks

@cheskoxd
Copy link
Author

Update, it's working now, I just redeployed and tried again with a test account and it worked last time I got the error was with a live account, but I guess well see how it goes, thanks a lot @treoden ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants