PayPal popup immediately closes

  • Posts: 145
  • Thank you received: 12
  • Hikashop Business
2 months 18 hours ago #359079

-- HikaShop version -- : 5.0.3
-- Joomla version -- : 4.4.2
-- PHP version -- : 8.1

Hi,

On a site I'm developing, I have an issue with PayPal:
- When I click on PayPal, the pop up opens a second and then disappears
- When I clic on Credit Card nothing happens.

I presume I did something wrong but no clue what.

Could you please help?

Thanks in advance

Sandra

Please Log in or Create an account to join the conversation.

  • Posts: 81428
  • Thank you received: 13058
  • MODERATOR
2 months 14 hours ago #359081

Hi,

Your website's access is restricted: i.imgur.com/OtgOiGj.png
So I can't reproduce the issue in order to analyze the situation directly.
I would guess that it might be a javascript error, or there is something not configured properly with the payment method.
Could you provide a user access to be able to reproduce the issue ?
And if you could also provide a backend access or a screenshot of the settings of the payment method, it would be great.

Please Log in or Create an account to join the conversation.

  • Posts: 145
  • Thank you received: 12
  • Hikashop Business
2 months 12 hours ago #359091

Hi Nicolas,

I'll grant you a Super User access.

Thanks again for your help

Sandra

Please Log in or Create an account to join the conversation.

  • Posts: 81428
  • Thank you received: 13058
  • MODERATOR
2 months 8 hours ago #359097

Hi,

I've made two tests on your website:
- The first time, I used a fake address and kept the default country "Saint Martin" and I got the issue you described. If I check the console of my browser at that time, it says this:
i.imgur.com/ZIYJR78.png
As you can see, it doesn't like the country code.
Here is a list of all the accepted country codes: developer.paypal.com/api/rest/reference/country-codes/
So you need to make sure the country zones you're using are available in that list or the payment will be refused by PayPal.

- The second time, I tried with an address in the USA, and the popup worked just fine. So it confirms that the problem is with the country code.

Last edit: 1 month 4 weeks ago by nicolas.

Please Log in or Create an account to join the conversation.

  • Posts: 145
  • Thank you received: 12
  • Hikashop Business
1 month 4 weeks ago #359109

Thanks a lot Nicolas.

I should have set up Saint-Martin in a wrong way. I know it works on Saint-Martin as I have several e-commerce websites set up with PayPal.

Sandra

Please Log in or Create an account to join the conversation.

  • Posts: 145
  • Thank you received: 12
  • Hikashop Business
1 month 4 weeks ago #359110

I remember how we did previously, we put Saint-Martin and Saint-Barth under France ;)

Please Log in or Create an account to join the conversation.

Time to create page: 0.061 seconds
Powered by Kunena Forum