PayPal Payment Method Not Working

Les Girvan asked on June 3, 2021 13:27

Hi Guys,

I have an issue with the standard PayPal checkout working. I have added my ClientID and Secrect in settings, and configured the store settings, see image:Image Text

However, at checkout the payment form does not render the order values:

Image Text

And when I click Pay Now via PayPal, it just reloads the checkout page?( I am selecting agrre terms)

I have checked the event logs, but nothing is being registered as an error, so at a loss to know what I am missing?

Regards Les

Recent Answers


Jake Kula answered on June 3, 2021 15:47 (last edited on June 3, 2021 15:48)

Hi Les,

Have you set the PayPal configuration in the Settings application?

https://docs.xperience.io/k11/configuring-kentico/managing-sites/configuring-settings-for-sites/settings-e-commerce/settings-paypal

0 votesVote for this answer Mark as a Correct answer

Les Girvan answered on June 4, 2021 10:30 (last edited on June 4, 2021 10:38)

Hi Jake,

Yes I can confirm all those settings are applied as required, which is why it confusing me :(

Image Text

Plus the PayPal Payment Execution web part is on the thank-you page

Les

0 votesVote for this answer Mark as a Correct answer

Jake Kula answered on June 5, 2021 01:41

Hi Les,

From what I gather, this is the last step of the cart. Are you able to go into the on button click event in Visual Studio in debug and step through to determine what is happening?

0 votesVote for this answer Mark as a Correct answer

Les Girvan answered on June 7, 2021 14:29

Hey Lester,

Don't think you've read the message correctly, we are not getting to PayPal.

Thanks for your input.

0 votesVote for this answer Mark as a Correct answer

Les Girvan answered on June 7, 2021 14:41 (last edited on June 8, 2021 13:11)

Hi Jake,

I cannot get the site to run in Visual Studio, says it can't find the site: Image Text

I have added localhost to site alias, and added localhost licence and even set a default path to the home page, so unable to test that right now, However, using Chrome inspector, I am seeing these error messages:

Image Text

Cheers Les

0 votesVote for this answer Mark as a Correct answer

Jake Kula answered on June 8, 2021 09:40 (last edited on June 8, 2021 09:41)

Hi Les,

I'm afraid the images in your last message are coming through as broken images, so I can't see the issue in Visual Studio. Could you please check and reference the images again?

However, are you able to set the site up in IIS, then run it from a localhost port.

Open the website/solution in Visual Studio then attach to the w3wp.exe worker process.

My feeling is that one of two things might be happening:

  1. There is a client side error which could be killing the postback; or
  2. In the code-behind event for the button click, some error is occurring (though you did mention there is nothing in the event logs)

Has this project been customised, particularly the E-Commerce functionality?

0 votesVote for this answer Mark as a Correct answer

Les Girvan answered on June 8, 2021 10:11

Hi Jake,

Sorry, the server, as a a dev machine, shuts down at 18:30 and re-starts at 09:00 to save costs. It is running again now.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.