PayPal popup immediately closes

  • Posts: 147
  • Thank you received: 12
  • Hikashop Business
2 months 2 weeks 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: 81563
  • Thank you received: 13071
  • MODERATOR
2 months 2 weeks 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: 147
  • Thank you received: 12
  • Hikashop Business
2 months 2 weeks 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: 81563
  • Thank you received: 13071
  • MODERATOR
2 months 1 week 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: 2 months 1 week ago by nicolas.

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

  • Posts: 147
  • Thank you received: 12
  • Hikashop Business
2 months 1 week 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: 147
  • Thank you received: 12
  • Hikashop Business
2 months 1 week 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.068 seconds
Powered by Kunena Forum